Difference between revisions of "Wiki Editing CheatSheet"

From SmartWiki
Jump to: navigation, search
(Example)
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 please refer to this page before you make revisions and additions.
  
'''Remember these basic best practices for building your Wiki page:'''
+
'''Follow these practices for building your Wiki page:'''
* [http://www.bartleby.com/141/strunk5.html Make it brief.]  
+
 
* Add [[Wiki_Editing_CheatSheet#Hyperlinks|hyperlinks]] to other pages where SmartSimple's terminology is used.
+
* [http://www.bartleby.com/141/strunk5.html Make it brief.]
 +
* Add [[Wiki_Editing_CheatSheet#Hyperlinks|hyperlinks]] to other pages where SmartSimple's terminology is used.
 
* Add an [[Wiki_Editing_CheatSheet#Image_Files|image]] of the subject(s) of the article.
 
* Add an [[Wiki_Editing_CheatSheet#Image_Files|image]] of the subject(s) of the article.
* Add a "[[Arcadia_-_Level_1_Summary_(matrix)_Settings#See_Also|See Also]]" section with related articles that may or may not have been mentioned in the text.  
+
* Add a "[[Arcadia_-_Level_1_Summary_(matrix)_Settings#See_Also|See Also]]" section with related articles that may or may not have been mentioned in the text.
 
* Put your page under one or more [[Wiki_Editing_CheatSheet#Categories|Categories]].
 
* Put your page under one or more [[Wiki_Editing_CheatSheet#Categories|Categories]].
  
Line 42: Line 43:
 
  <nowiki>== Level 2 ==
 
  <nowiki>== Level 2 ==
 
=== Level 3 ===
 
=== Level 3 ===
==== Level 4 ====
+
==== Level 4 ====
===== Level 5 =====
+
===== Level 5 =====
====== Level 6 ======</nowiki>
+
====== Level 6 ======</nowiki>
  
*Level 1 is the Page Name.
+
* Level 1 is the Page Name.
*An article with four or more headings automatically creates a [[Wiki_Editing_CheatSheet#Tables_of_Contents|table of contents]].
+
* An article with four or more headings automatically creates a [[Wiki_Editing_CheatSheet#Tables_of_Contents|table of contents]].
  
 
For more info, go to [http://www.mediawiki.org/wiki/Help:Formatting MediaWiki Help: Formatting]
 
For more info, go to [http://www.mediawiki.org/wiki/Help:Formatting MediaWiki Help: Formatting]
  
 
==Tables of Contents==
 
==Tables of Contents==
MediaWiki adds a table of contents at the top of the page when you have four or more [[Wiki_Editing_CheatSheet#Heading_Levels|headers]].<br>
+
MediaWiki adds a table of contents at the top of the page when you have four or more [[Wiki_Editing_CheatSheet#Heading_Levels|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).
Line 61: Line 63:
  
 
==Hyperlinks==
 
==Hyperlinks==
 
 
===Links to Internal Pages===
 
===Links to Internal Pages===
 
To add a link to '''Main Page''':
 
To add a link to '''Main Page''':
 +
 
  <nowiki>[[Main Page]]</nowiki>
 
  <nowiki>[[Main Page]]</nowiki>
  
 
To add a link to '''Main Page''' which displays as ''different text'':
 
To add a link to '''Main Page''' which displays as ''different text'':
 +
 
  <nowiki>[[Main Page|</nowiki>''different text''<nowiki>]]</nowiki>
 
  <nowiki>[[Main Page|</nowiki>''different text''<nowiki>]]</nowiki>
  
 
===Links to External Pages===
 
===Links to External Pages===
 
To add a link to www.smartsimple.com
 
To add a link to www.smartsimple.com
 +
 
  <nowiki>http://www.smartsimple.com</nowiki>
 
  <nowiki>http://www.smartsimple.com</nowiki>
  
 
To add a link to www.smartsimple.com with a ''different label''
 
To add a link to www.smartsimple.com with a ''different label''
 +
 
  <nowiki>[http://www.smartsimple.com</nowiki> ''different label''<nowiki>]</nowiki>
 
  <nowiki>[http://www.smartsimple.com</nowiki> ''different label''<nowiki>]</nowiki>
  
  
<pre style="white-space: pre-wrap;
+
<pre style="white-space: -o-pre-wrap; word-wrap: break-word;">Note: All external links are currently set to open in a new window.</pre><!--Chin can change this if necessary (apparently using syntax from https://www.mediawiki.org/wiki/Manual:$wgExternalLinkTarget)-->
white-space: -moz-pre-wrap;
 
white-space: -pre-wrap;
 
white-space: -o-pre-wrap;  
 
word-wrap: break-word;">Note: All external links are currently set to open in a new window.</pre><!--Chin can change this if necessary (apparently using syntax from https://www.mediawiki.org/wiki/Manual:$wgExternalLinkTarget)-->
 
 
 
  
 
For more info, go to [http://www.mediawiki.org/wiki/Help:Links MediaWiki Help: Links]
 
For more info, go to [http://www.mediawiki.org/wiki/Help:Links MediaWiki Help: Links]
Line 104: Line 104:
 
==Tables==
 
==Tables==
 
===Syntax===
 
===Syntax===
<table class="wikitable" width="60%">
+
¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶<code><code>
<tr>
+
</code></code>¶¶¶<code>
<td style="padding: 10px;"><big>{|</big></td>
+
</code>
<td style="padding: 5px;"><b>table start</b></td>
+
 
</tr>
+
{| class="wikitable" width="60%"
<tr>
+
|-
<td style="padding: 10px;"><big>|+</big></td>
+
| style="padding: 10px;"|<big>{|</big>
<td style="padding: 5px;">table <b>caption,</b> <i>optional;</i> only between <b>table start</b> and first <b>table row</b></td>
+
| style="padding: 5px;"|'''table start'''
</tr>
+
|-
<tr>
+
| style="padding: 10px;"|<big>|+</big>
<td style="padding: 10px;"><big>|-</big></td>
+
| style="padding: 5px;"|table '''caption,''' ''optional;'' only between '''table start''' and first '''table row'''
<td style="padding: 5px;"><b>table row,</b> <i>optional on first row</i> -- wiki engine assumes the first row</td>
+
|-
</tr>
+
| style="padding: 10px;"|<big>|-</big>
<tr>
+
| style="padding: 5px;"|'''table row,''' ''optional on first row'' -- wiki engine assumes the first row
<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>
+
| style="padding: 10px;"|<big>!</big>
</tr>
+
| style="padding: 5px;"|'''table header''' cell, ''optional.'' Consecutive '''table header''' 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>).
<tr>
+
|-
<td style="padding: 10px;"><big>|</big></td>
+
| style="padding: 10px;"|<big>|</big>
<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>
+
| style="padding: 5px;"|'''table data''' cell, ''required!'' Consecutive '''table data''' cells may be added on same line separated by double marks (
</tr>
+
|-
<tr>
+
||) or start on new lines, each with its own single mark (<code>></code>).
<td style="padding: 10px;"><big>|}</big></td>
+
|-
<td style="padding: 5px;"><b>table end</b></td>
+
| style="padding: 10px;"|<big>|}</big>
</tr>
+
| style="padding: 5px;"|'''table end'''
</table>
+
|}
  
 
===Example===
 
===Example===
Line 160: Line 160:
 
||Sample Text
 
||Sample Text
 
||Sample Text
 
||Sample Text
|-
 
 
|}
 
|}
  
 
==Categories==
 
==Categories==
 
 
===Adding a Category to a Page===
 
===Adding a Category to a Page===
 
 
  <nowiki>[[Category:Help]]</nowiki>
 
  <nowiki>[[Category:Help]]</nowiki>
  
 
===Adding a Category to a Page with a Different Label===
 
===Adding a Category to a Page with a Different Label===
 
 
  <nowiki>[[Category:Help|Help category]]</nowiki>
 
  <nowiki>[[Category:Help|Help category]]</nowiki>
  
 
===Adding a Link to a Category Page===
 
===Adding a Link to a Category Page===
 
 
  <nowiki>[[:Category:Help|Help category]]</nowiki>
 
  <nowiki>[[:Category:Help|Help category]]</nowiki>
 
  
 
For more info, go to [http://www.mediawiki.org/wiki/Help:Categories MediaWiki Help: Categories]
 
For more info, go to [http://www.mediawiki.org/wiki/Help:Categories MediaWiki Help: Categories]
  
 
==Templates==
 
==Templates==
 
+
Pages that start with the phrase "Template:" can be used in a similar fashion to SmartSimple's [[System Variables]]. They can contain blocks of text, such as commonly used terms, Wiki tables and uploaded images. You should use templates if a term, table or image will be repeated across multiple pages. The template can be referenced by surrounding the template name (minus the leading "Template:" string) with <nowiki>{{double brackets}}</nowiki>.
Pages that start with the phrase "Template:" can be used in a similar fashion to SmartSimple's [[System Variables]]. They can contain blocks of text, such as commonly used terms, Wiki tables and uploaded images. You should use templates if a term, table or image will be repeated across multiple pages. The template can be referenced by surrounding the template name (minus the leading "Template:" string) with <nowiki>{{double brackets}}</nowiki>.  
 
  
 
===Example Templates===
 
===Example Templates===

Revision as of 11:36, 5 July 2019

This page is intended to assist editors of the SmartSimple Wiki please refer to this page before you make revisions and additions.

Follow these practices for building your Wiki page:

  • Make it brief.
  • Add hyperlinks to other pages where SmartSimple's terminology is used.
  • Add an image of the subject(s) of the article.
  • Add a "See Also" section with related articles that may or may not have been mentioned in the text.
  • Put your page under one or more Categories.

Text Formatting

* Bulleted Text

* Bulleted Text

Bold Text

'''Bold Text'''

Italicized Text

''Italicized Text''

AddingSuperscript

<sup>superscript</sup>

AddingSubscript

<sub>subscript</sub>

#Numbered...

  1. ...Series
#Numbered...
#...Series

Preformatted text

Use @@@PRE1@@@ tags.
In order to use word wrapping, use the following:
@@@PRE2@@@

For more info, go to MediaWiki Help: Formatting

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

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__).

For more info, go to MediaWiki Manual: Table of contents or MediaWiki Help: Magic words

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]


Note: All external links are currently set to open in a new window.

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:

Image no link with caption

[[File:imgname.png|thumb|none|500px|Caption for under the image]]

Image linked to external link

[[File:Who-is-using-btn.png|330px|link=http://www.smartsimple.com/collaborators-online.html]]

Image linked to internal link

[[File:thumbnail-blue-white.jpg|400px|link=Blue and White]]

For more info, go to MediaWiki Help: Images

Tables

Syntax

¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶<code> </code>¶¶¶

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

Example

This

{| class="wikitable"
|-
!|Sample Header
!|Sample Header
|-
||Sample Text
||Sample Text
|-
||Sample Text
||Sample Text
|-
|} 

Creates

Sample Header Sample Header
Sample Text Sample Text
Sample Text Sample Text

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: Categories

Templates

Pages that start with the phrase "Template:" can be used in a similar fashion to SmartSimple's System Variables. They can contain blocks of text, such as commonly used terms, Wiki tables and uploaded images. You should use templates if a term, table or image will be repeated across multiple pages. The template can be referenced by surrounding the template name (minus the leading "Template:" string) with {{double brackets}}.

Example Templates

How to Add a User to Wiki:

  • On left panel, click on Special pages
  • Under Login / create account, click on Create account
  • Fill in details and send random password
  • On left panel, click on Special pages again
  • Under Users and rights, click on User rights management
  • Type in username, click on Edit user groups
  • Add administrator, bureaucrat and smartstaff groups, click on Save user groups