Difference between revisions of "Wiki Editing CheatSheet"

From SmartWiki
Jump to: navigation, search
(Tables of Contents)
Line 1: Line 1:
 
This page is intended to assist editors of the SmartSimple Wiki make revisions and additions.
 
This page is intended to assist editors of the SmartSimple Wiki make revisions and additions.
 +
 +
==Heading Levels==
 +
<nowiki>== Level 2 ==
 +
=== Level 3 ===
 +
==== Level 4 ====
 +
===== Level 5 =====
 +
====== Level 6 ======</nowiki>
 +
 +
*Level 1 is the Page Name.
 +
*An article with 4 or more headings automatically creates a table of contents.
  
 
==Hyperlinks==
 
==Hyperlinks==
Line 32: Line 42:
  
 
==Tables of Contents==
 
==Tables of Contents==
MediaWiki adds a table of contents at the top of the page when you have three or more headers.<br>
+
MediaWiki adds a table of contents at the top of the page when you have four or more headers.<br>
 
To change this behavior, at the top of the page, add:
 
To change this behavior, at the top of the page, add:
 
  <nowiki>__NOTOC__</nowiki> Hides the table of contents (TOC).
 
  <nowiki>__NOTOC__</nowiki> Hides the table of contents (TOC).
 
  <nowiki>__FORCETOC__</nowiki>    Forces the table of contents to appear at its normal position (before the first header).
 
  <nowiki>__FORCETOC__</nowiki>    Forces the table of contents to appear at its normal position (before the first header).
 
  <nowiki>__TOC__</nowiki> Places a table of contents at the word's current position (overriding <nowiki>__NOTOC__</nowiki>).
 
  <nowiki>__TOC__</nowiki> Places a table of contents at the word's current position (overriding <nowiki>__NOTOC__</nowiki>).

Revision as of 13:10, 21 June 2013

This page is intended to assist editors of the SmartSimple Wiki make revisions and additions.

Heading Levels

== Level 2 ==
=== Level 3 ===
==== Level 4 ====
===== Level 5 =====
====== Level 6 ======
  • Level 1 is the Page Name.
  • An article with 4 or more headings automatically creates a table of contents.

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

  1. Under the toolbox, click Upload file.
  2. Upload the image.
  3. 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 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__).