Difference between revisions of "Wiki Editing CheatSheet"
From SmartWiki
Line 42: | Line 42: | ||
For more info, go to [http://www.mediawiki.org/wiki/Help:Images MediaWiki Help: Images] | For more info, go to [http://www.mediawiki.org/wiki/Help:Images MediaWiki Help: Images] | ||
+ | |||
+ | ==Tables== | ||
+ | |||
+ | <table class="wikitable" width="60%"> | ||
+ | <tr> | ||
+ | <td style="padding: 10px;"><big>{|</big></td> | ||
+ | <td style="padding: 5px;"><b>table start</b></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td style="padding: 10px;"><big>|+</big></td> | ||
+ | <td style="padding: 5px;">table <b>caption,</b> <i>optional;</i> only between <b>table start</b> and first <b>table row</b></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td style="padding: 10px;"><big>|-</big></td> | ||
+ | <td style="padding: 5px;"><b>table row,</b> <i>optional on first row</i> -- wiki engine assumes the first row</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td style="padding: 10px;"><big>!</big></td> | ||
+ | <td style="padding: 5px;"><b>table header</b> cell, <i>optional.</i> Consecutive <b>table header</b> cells may be added on same line separated by double marks (<code>!!</code>) or start on new lines, each with its own single mark (<code>!</code>).</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td style="padding: 10px;"><big>|</big></td> | ||
+ | <td style="padding: 5px;"><b>table data</b> cell, <i>required!</i> Consecutive <b>table data</b> cells may be added on same line separated by double marks (<code>||</code>) or start on new lines, each with its own single mark (<code>|</code>).</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td style="padding: 10px;"><big>|}</big></td> | ||
+ | <td style="padding: 5px;"><b>table end</b></td> | ||
+ | </tr> | ||
+ | </table> | ||
==Tables of Contents== | ==Tables of Contents== |
Revision as of 13:30, 21 June 2013
This page is intended to assist editors of the SmartSimple Wiki make revisions and additions.
Contents
Heading Levels
== Level 2 == === Level 3 === ==== Level 4 ==== ===== Level 5 ===== ====== Level 6 ======
- Level 1 is the Page Name.
- An article with four or more headings automatically creates a table of contents.
For more info, go to MediaWiki Help: Formatting
Hyperlinks
Links to Internal Pages
To add a link to Main Page:
[[Main Page]]
To add a link to Main Page which displays as different text:
[[Main Page|different text]]
Links to External Pages
To add a link to www.smartsimple.com
http://www.smartsimple.com
To add a link to www.smartsimple.com with a different label
[http://www.smartsimple.com different label]
For more info, go to MediaWiki Help: Links
Image Files
- Under the toolbox, click Upload file.
- Upload the image.
- On the page you wish to display the image: enter this format:
[[File:example.jpg|link=|caption|50px]]
- link= removes the link to the image file. If you want the image to link to a page, add link=Page Name without brackets.
- caption is optional.
- You can specify the width in pixels of the image by adding an argument such as 50px.
For more info, go to MediaWiki Help: Images
Tables
{| | table start |
|+ | table caption, optional; only between table start and first table row |
|- | table row, optional on first row -- wiki engine assumes the first row |
! | table header cell, optional. Consecutive table header cells may be added on same line separated by double marks (!! ) or start on new lines, each with its own single mark (! ). |
| | table data cell, required! Consecutive table data cells may be added on same line separated by double marks (|| ) or start on new lines, each with its own single mark (| ). |
|} | table end |
Tables of Contents
MediaWiki adds a table of contents at the top of the page when you have four or more headers.
To change this behavior, at the top of the page, add:
__NOTOC__ Hides the table of contents (TOC). __FORCETOC__ Forces the table of contents to appear at its normal position (before the first header). __TOC__ Places a table of contents at the word's current position (overriding __NOTOC__).
Categories
Adding a Category to a Page
[[Category:Help]]
Adding a Category to a Page with a Different Label
[[Category:Help|Help category]]
Adding a Link to a Category Page
[[:Category:Help|Help category]]
For more info, go to MediaWiki Help: Magic_words