Wikitext reference I
From Sagataflwiki
(Removing the |Categories ending of one or more category tags) |
(→Linking to a category: Adding new section explaining how to make a redirect to an article or category) |
||
Line 41: | Line 41: | ||
</pre> | </pre> | ||
[[:Category:Editor stuff]] | [[:Category:Editor stuff]] | ||
+ | == Making a redirect == | ||
+ | In the first line of the article, include this | ||
+ | <pre> | ||
+ | #REDIRECT [[pagename]] | ||
+ | </pre> | ||
+ | Where you replace pagename with the name of the article you wish to link to.<br><br> | ||
+ | |||
+ | To redirect to a category instead, put in first a colon, then then name of the cateogry, e.g. like this: | ||
+ | <pre> | ||
+ | #REDIRECT [[:Category:Editor stuff]] | ||
+ | </pre> | ||
+ | |||
+ | In both cases, what happens is an automatic instant redirect, rather than the user being shown a page and expected to clikc on the redirect link. | ||
+ | |||
+ | The command REDIRECT might not be case-sensitive, but just to be safe, always write it in all-caps. It is not known whether it makes any difference if there is text on the lines under the REDIRECT line, but as that is nonsensical, always erase all other text before putting in a redirect. | ||
+ | |||
== See also == | == See also == | ||
[[Wikitext table reference I]]<br> | [[Wikitext table reference I]]<br> |
Revision as of 18:22, 22 January 2011
This is a quick reference guide to some of the WikiText functions. More may appear in Wikitext reference II later.
Contents |
Making a link
[[Article name]]
As shown above, just put the article's name in double square brackets, and make sure that the 2nd and later words in the link are capitalized correctly.
Making a pluralized word link to a singlar article
[[Article name]]s
Most article names are in the singular form (Spell, not Spells), but often an editor will want to turn a pluralized word into an internal hyperlink. This is done simply by adding an s immediately after the 2nd finishing square bracked, without a space in between.
Article names
Making a piped link
[[Destination|ClickMe]]
Gives this: ClickMe
The ClickMe part is the word or words that the reader can see (and can click on), and the Destination part is where the reader is taken by the click.
Making an internal link to an ahcor
stuff
Making an external link
stuff
Adding categories to an article
Put this at the bottom of the article, with XYZ being the name of the category. You can put it anywhere in the article, but it's much easier for everyone if all categories are placed at the bottom.
[[Category:XYZ]](Note, it used to be
[[Category:XYZ|Categories]], but the |Categories ending appears to do no good, and to do some harm, so it should be removed whereever it occurs.
Linking to a category
Notice the preceding colon.
[[:Category:Editor stuff]]
Making a redirect
In the first line of the article, include this
#REDIRECT [[pagename]]
Where you replace pagename with the name of the article you wish to link to.
To redirect to a category instead, put in first a colon, then then name of the cateogry, e.g. like this:
#REDIRECT [[:Category:Editor stuff]]
In both cases, what happens is an automatic instant redirect, rather than the user being shown a page and expected to clikc on the redirect link.
The command REDIRECT might not be case-sensitive, but just to be safe, always write it in all-caps. It is not known whether it makes any difference if there is text on the lines under the REDIRECT line, but as that is nonsensical, always erase all other text before putting in a redirect.
See also
Wikitext table reference I
http://www.mediawiki.org/wiki/Help:Links
http://www.mediawiki.org/wiki/Help:Formatting