Guide to Wikitext Formatting

From CompSciWiki
Jump to: navigation, search

Greetings Wiki Editors,

Since I seem to be the person with the most experience with MediaWiki I figured I'd do a quick cheatsheet for those of you who haven't used the software before. It's relatively easy to pick up.

If you have any questions, feel free to ask me, or check out the [official site] for a good starting place for more in depth questions.

Cheers,

Tristan


Bold, Italics etc...

The first thing I'd note is that standard HTML tags work 99% of the time, so if you're familiar with html, go hog wild. Secondly, the wiki editor does give you a (fairly) competent toolbar on the editing box.

If you're the type that prefers to use the codes or if the buttons are being frustrating and you need the codes

 

'''Bolded Text''' 

''Italicized Text''

----  (Adds a line)

gives:

Bolded Text

Italicized Text


Also note that if you're precomposing in word, your word will likely use a different character and you will have to manually fix this.


Bullets:

*Bullet Level 1
**Bullet Level 2
***Bullet Level 3

and

#Bullet Level 1
##Bullet Level 2
###Bullet Level 3

Gives:

  • Bullet Level 1
    • Bullet Level 2
      • Bullet Level 3

and

  1. Bullet Level 1
    1. Bullet Level 2
      1. Bullet Level 3

Sections/Categories

==Section Example==
===Subsection===
====Sub-subsection====
===Subsection 2===
====Sub-subsection 2====

gives:

Section Example

Subsection

Sub-subsection

Subsection 2

Sub-subsection 2

Note that these will appear in the Table of contents above appropriately indexed.


Linking

To link to a page.

Surround your links with square brackets like so: [[Link]]

A Page link is done as  [[Page]]

To link to a category: [[:category:Category Name]] 

(The leading colon is necessary to make it a link, if you forget it you will instead be adding your page to that category)

For any link, if you want to change what will actually be displayed as the link text, you can use a pipe | character.

For example:

[[COMP1260]] and [[COMP1260|Computer Usage I Wiki]]

Will display as

COMP1260 and Computer Usage I Wiki


  • IMPORTANT:As ranted about in class, please remember that only the leading capital is presumed by the wiki software. Thus Windows and windows are the same page but Microsoft Windows and Microsoft windows are NOT.


Images

Uploading

Adding the tag:

[[image:MyImage.jpg]]

Will give you a link once the page is saved. Example: MyImage.jpg

You may then click on that link and be presented with the image upload screen. If that image has been uploaded already it will simply display.

  • IMPORTANT: Please name your images as specifically as possible. Generic names can lead to problems if multiple people try to use them. While most of the time this isn't critical, it's best to just avoid it with really specific image names like MSWindowsArticleImg1.jpg or similiar.

Alternatively, you can simply pre-upload image files using the UPLOAD FILE link on the sidebar on the left.

Displaying Images

Once uploaded, the default diplay is like so:

FormattingDemoMyImage.jpg

However, if you would like to put a caption on your image:

[[image:FormattingDemoMyImage.jpg|frame|none|Caption Text [[Links Work Too!]] ]]
Where frame is the box format and none is the justification

Will produce:

Caption Text Links Work Too!




  • If you're using large images and would prefer thumbnails it's a similiar line:
[[image:FormattingDemoMyImage.jpg|thumb|none|Caption Text [[Links Work Too!]] ]

Will Produce:

Caption Text Links Work Too!


Multiple Images

My favorite way to display multiple images in a small space is to use the gallery tool.

<gallery>
Image:FormattingDemoMyImage.jpg|My Image
Image:FormattingDemoMyImage.jpg|[[My Image]]
</gallery>

Produces:

Signatures

While this is usually used on talk pages, you should know that

  • Three Tildes in a row will give your signature like so: Tristan H.
  • Four Tildes will give a timestamp as well: Tristan H. 14:07, 20 November 2008 (CST)

Miscellaneous

__FORCETOC__ anywhere in your page will force a TOC(Table of Contents) to be created (normally 3 sections must be defined.)

__NOTOC__ will force the page to not include a TOC

__NOEDITSECTION__ removes the edit link that appears by every section though this may or may not be on by default.

Refs courtesy of Wiki guide:

You can add footnotes to sentences using the ref tag -- this is especially good for citing a source.

There are over six billion people in the world.[1] 
References: 
↑ CIA World Factbook, 2006. 
For details, see Wikipedia:Footnotes and Help:Footnotes.
 You can add footnotes to sentences using
the ''ref'' tag -- this is especially good
for citing a source.
</pre

:There are over six billion people in the
world.<ref>CIA World Factbook, 2006.</ref>

References: <references/>

For details, see [[Wikipedia:Footnotes]] 
and [[Help:Footnotes]].