Help:Introduction to WikiText: Difference between revisions

From Rollaclub
Jump to navigation Jump to search
Line 45: Line 45:
= See Also
= See Also
</pre>
</pre>
<h3>Notes</h3>
* Headings are used to generate the Table of Contents at the top of each page.
* If you do not want a heading to appear in the TOC, use the corresponding html tag instead of the ='s.

Revision as of 01:11, 22 May 2005

In Wikis, proper markup of text plays an important role; It is not merely cosmetic. Headings are used to generate Tables of Contents, and links within the wiki, and links to external sites are diffent.

Organisation

An article in MediaWiki is analogous to a webpage. Articles may belong in one more categories. Categories, in turn, maybe subcategories themselves. Within an article, sections are distinguished be headings.

Categories

Categories are assigned to a page like this:

[[Category: (Name of category)]]

So for example, to put an article in the Fuel System Category, we use:

[[Category:Fuel System]]

Notes

  • It is convention to put category tags at the bottom of each article.
  • An article may belong in more than one category.
  • You link to a category page like this: [[:Category:Fuel System]]. (Note the extra : before Category.
  • Adding a category tag to a category page makes it a subcategory.

Headings

= Heading One =
== Heading Two ==
=== Heading Three ===
until
====== Heading Six ===

For example, the article about Carburettors has the following sections:

  • Stock Carbys
  • Aftermarket
    • Fitting aftermarket carburettors
  • See Also

This would be marked up as:

= Stock =
= Aftermarket =
== Fitting aftermarket caburettors ==
= See Also

Notes

  • Headings are used to generate the Table of Contents at the top of each page.
  • If you do not want a heading to appear in the TOC, use the corresponding html tag instead of the ='s.