Link to get one level up in mediawiki - mediawiki

In my mediawiki I have one page with the following links:
PageA:
LinkToPageB
LinkToPageC
LinkToPageD
Now, when I am on PageB, is there anything I can do to get a link to get to the next level, in this case, to PageA?
Thanks alot in advance.
Wolfgang

One way to do this would be to make PageB a sub-page of PageA. Then PageB would have a link back to PageA at the top of the page. See the subpages help documentation for more information. You have to set the variable $wgNamespacesWithSubpages to include whatever namespace you want to use subpages in (like the main namespace for example). Then you can name your pages:
PageA
PageA/PageB
PageA/PageC
PageA/PageD
and the subpages will have a link back to PageA at the top of the page.

Related

I want Href to take me to a part of another webpage

]2I have a website with 3 pages and in each of one them is a button which should take me to a bottom part of the main page.
index.html is the main page and #r is for it to take me to the bottom part. When i click the button on that page it works perfectly, but when i do it on one of the two other pages it redirects me to the main page and the part i wanted but without all the css classes.
How can i fix this? href="./index.html/#r"
I have tried different approaches but none of them seems to work.
It's not href="./index.html/#r", (i.e. #r is not a separate file and index-html is not a directory in the filepath), but the anchor is directly appended to the filename of the page, like href="./index.html#r"
It is quite simple as you just have to specify a name or id to that part of the main web page, and then you can link it with other web pages by just putting both values(name of the page along with that part of its body) in "href" attribute.
For example-
text
here page.html is the name of webpage and #anchor is the name or id of that specified part
hoping it will help you!!
greetings,
Om Chaudhary

Mediawiki - How do I change which page is the main page?

I have setup my own Madiawiki for a project. I would like to change the main page but the only thing the Mediawiki FAQ say is:
“By default, MediaWiki looks for a page with the title Main Page and serves this as the default page. This can be changed by altering the contents of MediaWiki:Mainpage to point to a different title. If this does not change the 'Main Page' link included on the sidebar at install time, edit MediaWiki:Sidebar.”
The problem is I do not know where to edit this “MediaWiki:Mainpage”. Where do I find this line to edit it? Also if I make a page with the name “x”, and I want it to be the main page do I then change “MediaWiki:Mainpage” to “MediaWiki:x”?
In the search bar, type MediaWiki:Mainpage. Then edit it so its content is the name of the page you want to be the main page. MediaWiki:Mainpage should always contain the title, because it is a system message that is reserved for the title of the main page, so don't change it to MediaWiki:x.
See also: https://www.mediawiki.org/wiki/Manual:Main_Page for changing the main page and https://www.mediawiki.org/wiki/Help:Namespaces#MediaWiki for the MediaWiki namespace and system messages.

Automatically redirect from '/folder' to '/folder/index.html' with Hakyll or another issue with relative links

I want to implement static HTML website with multiple languages using Hakyll framework. I didn't come up with better solution than just put default language under website.com route and any other custom language at website.com/en route. Because I'm using static HTML and having multiple languages I should have multiple versions of every page, for example about.html. Such pages are generated automatically, so that's not a problem. But currently I have a problem with jumping those pages...
I have such link in my website.com/index.html:
<a href=about.html>
When I open this link from website.com/en I want to jump to website.com/en/about.html instead of website.com/about.html. But in reality I'm jumping from website.com/en to website.com/about.html. If I instead jump from website.com/en/index.html I go to website.com/en/about.html as I want. So I'm inserested in one of two possible solutions:
When I go to website.com/en I want to be redirected to website.com/en/index.html. I can see content of index.html from website.com/en but somehow I can't jump to relative link :(
Replace href=about.html with something more smart so I can automatically go folder/about.html from any folder.
Any help appreciated!

HTML links not working

I created my first website uploading the first two pages including the first and main page and then a second page that the first page links to. Before doing so, a link that when clicked on, takes me correctly from my main page to a second page worked. After uploading it on 000webhost.com it no longer worked. Meaning, I can view my main page but when I click on the link that should take me to my second page, it doesn't do anything. Here is the code that was and is still included in my main page for the link that should take me to my second page. I have a feeling that it has something to do with the protocol and that I have to make changes to it but not sure what changes to correctly make so the link will work. I used a sub domain at 000webhost.com not my own. Here is the code that was and is on my main page:
<li>Noah's First Day</li>
The link points to a file on your computer (note the file:// prefix). The best practice is usually to have links to your own pages in relative form. So, for example, assuming you uploaded all the files to the same directory, just use the filename itself:
<li>Noah's First Day</li>

Main page change through Mediawiki:Mainpage url doesn't work on Mediawiki 1.22

I've installed mediawiki 1.22.5 and I've tried to change the main page through the Mediawiki:Mainpage url to another page but It doesn't seem to work!
What I do is edit the http://www.mysite.com/en/index.php?title=MediaWiki:MainPage and write in the text window the name of the page I want as the main page (I've even copied/pasted it to make sure it is written correctly!). However when I click on the logo it takes me to the default main page, not the one I wrote in Mediawiki:Mainpage.
I can change the main page link in the side-bar but the problem with the logo remains.
And I don't want to create just a redirect as it is not elegant on the main page.
Any help is appreciated!
MediaWiki:MainPage should change also the target of the logo link. If it doesn't, my first guess would be extensive caching.
Is your wiki public? Can you provide us with an url?