Wikitext reference I

From Sagataflwiki

(Difference between revisions)
Jump to: navigation, search
(See also)
(Removing |Categories, and explaining that it should be removed from articles when spotted)
Line 32: Line 32:
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.
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.
<pre>
<pre>
-
[[Category:XYZ|Categories]]
+
[[Category:XYZ]]
</pre>
</pre>
 +
(Note, it used to be <pre>[[Category:XYZ|Categories]]</pre>, 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 ==
== Linking to a category ==
Notice the preceding colon.
Notice the preceding colon.

Revision as of 04:04, 5 October 2010

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]]

Category:Editor stuff

See also

Wikitext table reference I
http://www.mediawiki.org/wiki/Help:Links

Personal tools