Help:Linking
Links are words enclosed within square brackets [[ ]]. A link to an existing page is blue, while an invalid link is red.
Internal linking
Regular linking
Regular linking means that you just enclose the name of the article in the square brackets, and that is then the way it will be presented in the article.
- [[Super Mario Bros.]] links to Super Mario Bros..
Labels
A label is a text-string added to a link, so that one can link to an article, but have the link say something other than the name of the article. There are basically two ways of labeling: piped labeling and add-on labeling.
Piped labeling
Piped labeling is done by adding a pipe between the actual link and the label you wish to present.
- [[User:HannahMontanaFan|HMF]] links to User:HannahMontanaFan, but the label appears as HMF and displays like this: HMF
Add-on labeling
Add-on labels is text "added on" to the link. It is written directly after the two closing square brackets of a link.
- [[Goomba]]s links to Goomba, but displays as Goombas. This is most often used for adding plurals or an "ing" suffix to a link. For example, writing [[Goomba]]s instead of [[Goomba|Goombas]] or [[Petrify]]ing instead of [[Petrify|Petrifying]]. The restrictions are that any symbol, even uppercase letters, can break the label.
- GoombaS (a case of an uppercase letter breaking the label)
- Goomba# (a case of a symbol breaking the label)
Mixing
It is possible to mix both types of labeling, but there really is no point, since what is written as the add-on label might as well be a part of the piped label.
- HannahMontanaFans (code is [[User:HannahMontanaFan|Results Mary Vary]]s)
- HannahMontanaFans (code is [[User:HannahMontanaFan|Results Mary Varys]])
External linking
To make an external link, just write the URL. Please note that this means that the http:// part is needed. Simply starting the link with www. will not work.
- https://mario.miraheze.org/ automatically turns into https://mario.miraheze.org/
However, if you wish to label the link, you must enclose it in single square brackets and write the label after a space as opposed to after a pipe. It has the same properties as a Piped Label though.
- [https://mario.miraheze.org/ Main page] (note the space between the URL and the label) becomes Main page
Add-on labeling is not possible with external links.
- [https://mario.miraheze.org/ Main page]s gives Main pages (note that "s" is not part of the label)
Subpages
Subpages, can be linked to like regular articles, as long as the entire path is there.
- [[User:HannahMontanaFan/Sandbox]] gives User:HannahMontanaFan/Sandbox
It is likewise possible to label them as regular links.
Section linking
Sections of a page are determined by the use of "="s as headers in a page. In order to direct a link towards a certain section of a page, the "#" symbol must be used inside the link. To do this, link to a page as normal, but immediately after the page name, insert an # and the name of the section desired.
- [[Yoshi#Super Mario Galaxy]] gives Yoshi#Super Mario Galaxy
Piped linking is usually utilized when linking to sections of a page in mainspace articles.
- [[Yoshi#Super Mario Galaxy|Yoshi]] gives Yoshi
Sometimes in an article, multiple section headers will have the same name. To specify which section you want the link to direct towards, type a space after the section name, followed by a number which corresponds to the placement of the desired section in relation to other sections with the same name.
- [[Goomba#Super Mario Bros. 3 2]] gives Goomba#Super Mario Bros. 3 2
which will link to the second section that is titled "Super Mario Bros. 3".
Pipes
Pipes cut down the amount of piping needed for linking to disambigs, other spaces and titles with colons or commas. For example, if you wished to link to the page Goomba (Super Mario World) and show it as Goomba, you can type [[Goomba (Super Mario World)|Goomba]].
Pipe trick
There is a "pipe trick" where simply typing [[Goomba (Super Mario World)|]] also gives Goomba. This saves a lot of time and effort if you're fixing a lot of links.