Help

Wikicode Links

From Children of StarClan

THIS PAGE WAS ORIGINALLY WRITTEN BY mediawiki.org.
All credit goes to them, and you should visit their version for the absolute latest edition.


Internal links

To add an internal link, enclose the name of the page you want to link to in double square brackets. When you save the page, you'll see the new link pointing to your page. If the page exists already it is displayed in blue, if it does not, in red. Selflinks to the current page are not transformed in URLs but displayed in bold. (If you really want to link to the current page, use an anchor (see below), or [[#top|current page]] which always links to the top.)

The first letter of the target page is automatically capitalized, unless otherwise set by the admins, and spaces are represented as underscores (typing an underscore in the link will have a similar effect as typing a space, but is not recommended, since the underscore will also be shown in the text).

Description You type You get
Internal link
[[Main Page]]
Main Page
Piped link
[[Main Page|different text]]
different text
Pipe trick
[[Help:Contents|]]

[[User:Kitsufox|]]

[[Character:Bloodstar|]]

[[Info:Index|]]

The pipe trick quickly makes shorter link text, but could be confusing in circumstances like the DynamicPageList link examples.

Contents

Kitsufox

Index

Index

Word-ending links, following so called "linktrail rules" localised per each language
[[ThunderClan]]s

[[ThunderClan]]ing

[[ThunderClan]]ers

[[ThunderClan]]almostanylettersyoulikehere

ThunderClans

ThunderClaning

ThunderClaners

ThunderClanalmostanylettersyoulikehere

Avoiding word-ending links
[[RiverClan]]<nowiki />ful advice

[[wikipedia:GNU General Public License|GPL]]<nowiki />v3

RiverClanful advice

GPLv3

Redirect
#REDIRECT [[Main Page]]
Main Page
Internal link to an anchor
[[#See also]]

Section headings and the top of the page are automatically anchored.

#See also
Internal link to an anchor from different text
[[#See also|different text]]
different text
Setting an internal link anchor
<div id="NameOfAnchorHere">optional text</div>

Omit the "optional text" for invisible anchor.

optional text
Internal link to an anchor at another page
[[Help:Wikicode Images#Supported media types for images]]
Help:Wikicode Images#Supported media types for images
Internal link to the current page's talk page
[[{{TALKPAGENAME}}|Discussion]]
Discussion
Internal link to a subpage
[[/example]]

Shortcut for [[Help:Wikicode Links/example|/example]].

/example
Internal link to a subpage without the leading slash
[[/example/]]

Shortcut for [[Help:Wikicode Links/example|example]].

example
Internal link to a category page
[[:Category:Characters]]
Category:Characters
Internal link to an image or a file of other types
[[media:Logo.png]]

[[media:Logo.png]]

See also Wikicode Images

media:Logo.png

media:Logo.png

Internal link to the user's user page
[[Special:MyPage]]
Special:MyPage
Internal link to the user's talk page
[[Special:MyTalk]]
Special:MyTalk