Editing tips: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
*There is more information on [https://en.wikipedia.org/wiki/Help:Wiki_markup Wiki formatting here] | *There is more information on [https://en.wikipedia.org/wiki/Help:Wiki_markup Wiki formatting here] | ||
__TOC__ | |||
====<u>Inserting a Table of contents (TOC)</u>==== | |||
For each page with more than three headings, a '''table of contents (TOC)''' is '''automatically''' generated from the section headings, unless: | For each page with more than three headings, a '''table of contents (TOC)''' is '''automatically''' generated from the section headings, unless: | ||
Line 19: | Line 19: | ||
<nowiki>{{Toc right no-numbers}}</nowiki> | <nowiki>{{Toc right no-numbers}}</nowiki> | ||
===Formatting Text=== | ====<u>Formatting Text</u>==== | ||
=====Centering text===== | |||
<div class="center">Center text like this: | <div class="center">Center text like this: | ||
<nowiki><div class="center">Center text like this</div></nowiki> | <nowiki><div class="center">Center text like this</div></nowiki> | ||
</div> | </div> | ||
=====New un-spaced lines===== | |||
New lines without spaces between them<br /> | New lines without spaces between them<br /> | ||
have the following code<br /> | have the following code<br /> | ||
Line 34: | Line 34: | ||
placed at the end of them</nowiki> | placed at the end of them</nowiki> | ||
:New lines that are indented | :New lines that are indented | ||
:and have no spaces between them | :and have no spaces between them | ||
Line 42: | Line 41: | ||
:begin with a colon:</nowiki> | :begin with a colon:</nowiki> | ||
=====Deleted text===== | |||
<del>deleted text</del> | <del>deleted text</del> | ||
<nowiki><del>deleted text</del></nowiki> | <nowiki><del>deleted text</del></nowiki> | ||
=====Underlined text===== | |||
<u>underlined text</u> | <u>underlined text</u> | ||
<nowiki><u>underlined text</u></nowiki> | <nowiki><u>underlined text</u></nowiki> | ||
=====Italic text===== | |||
''Italic text'' | ''Italic text'' | ||
<nowiki>''Italic text''</nowiki> | <nowiki>''Italic text''</nowiki> | ||
=====Bold text===== | |||
'''Bold text''' | '''Bold text''' | ||
<nowiki>'''Bold text'''</nowiki> | <nowiki>'''Bold text'''</nowiki> | ||
=====Large text===== | |||
<big>Big text</big> | <big>Big text</big> | ||
<nowiki><big>Big text</big></nowiki> | <nowiki><big>Big text</big></nowiki> | ||
=====Small text===== | |||
<small>Small text</small> | <small>Small text</small> | ||
<nowiki><small>Small text</small></nowiki> | <nowiki><small>Small text</small></nowiki> | ||
=====Superscript text===== | |||
This sentence has some <sup>Superscript text</sup> in it. | This sentence has some <sup>Superscript text</sup> in it. | ||
<nowiki><sup>Superscript text</sup></nowiki> | <nowiki><sup>Superscript text</sup></nowiki> | ||
=====Subscript text===== | |||
This sentence has some <sub>Subscript text</sub> in it. | This sentence has some <sub>Subscript text</sub> in it. | ||
<nowiki><sub>Subscript text</sub></nowiki> | <nowiki><sub>Subscript text</sub></nowiki> | ||
=====Multiple blank lines===== | |||
To place multiple blank lines <br /><br /><br /><br /><br /><br /> | |||
before the next line of text. | |||
To place multiple blank lines | |||
<nowiki><br /><br /><br /><br /><br /><br /></nowiki> | |||
<br /><br /><br /><br /><br /><br /> | |||
before the next line of text. | |||
=====Multiple spaces===== | |||
To place multiple spaces between words. | |||
To place multiple &nbsp; &nbsp; &nbsp; &nbsp; spaces &nbsp; &nbsp; between &nbsp; &nbsp; &nbsp; &nbsp; words. | |||
=====Blockquote===== | |||
A Blockquote will indent both left and right margins: | A Blockquote will indent both left and right margins: | ||
<blockquote>Blockquote</blockquote> | <blockquote>Blockquote</blockquote> | ||
Line 72: | Line 91: | ||
<nowiki><blockquote>Blockquote</blockquote></nowiki> | <nowiki><blockquote>Blockquote</blockquote></nowiki> | ||
=====Special Characters and Symbols===== | |||
*More info can be [https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Character_entity_references_in_HTML found here] | |||
{| border="1" cellpadding="5" cellspacing="0" | |||
|+ | |||
! Name !! Char !! Code | |||
|- | |||
| and || & || &amp; | |||
|- | |||
| ellipsis || … || &hellip; | |||
|- | |||
| em dash || — || &mdash; | |||
|- | |||
| en dash || & || &ndash; | |||
|- | |||
| space || &nbsp; || &nbsp; | |||
|- | |||
| Copyright || © || &copy; | |||
|- | |||
| Fraction || ¼ || &frac14; | |||
|- | |||
| Fraction || ½ || &frac12; | |||
|- | |||
| Fraction || ¾ || &frac34; | |||
|- | |||
| Degrees || ° || &deg; | |||
|- | |||
|} | |||
====<u>Horizontal Lines</u>==== | |||
Text before Horizontal line | |||
---- | |||
text after Horizontal line | |||
<nowiki>Text before Horizontal line | |||
---- or <hr> | |||
text after Horizontal line</nowiki> | |||
text before a narrow horizontal line | |||
<hr width=20%> | |||
text after line | |||
<nowiki>text before a narrow horizontal line | |||
<hr width=20%> | |||
text after line (the 20% may be adjusted as necessary)</nowiki> | |||
<div class="center"> | |||
text before a centered narrow horizontal line | |||
<hr width=50%> | |||
text after line | |||
</div> | |||
<nowiki><div class="center"> | |||
text before a centered narrow horizontal line | |||
<hr width=50%> | |||
text after line (the 50% may be adjusted as necessary) | |||
</div></nowiki> | |||
====<u>Tables</u>==== | |||
{| border="1" cellpadding="2" cellspacing="0" | {| border="1" cellpadding="2" cellspacing="0" | ||
|+ Table | |+ Table | ||
Line 88: | Line 157: | ||
| cell || cell | | cell || cell | ||
|} | |} | ||
<nowiki> | |||
{| border="1" cellpadding="2" cellspacing="0" | |||
|+ Table | |||
! heading !! heading | |||
|- | |||
| cell || cell | |||
|- | |||
| cell || cell | |||
|} | |||
</nowiki> | |||
====<u>Redirects</u>==== | |||
To create a re-direct page use this code: | To create a re-direct page use this code: | ||
<nowiki>#REDIRECT [[article link]]</nowiki> | <nowiki>#REDIRECT [[article link]]</nowiki> | ||
====<u>Placing and Linking to Anchors</u>==== | |||
=====Place an Anchor===== | |||
At the beginning of the text to be linked to add: | |||
<nowiki><span id="anchor_name">ANY TEXT HERE</span></nowiki> | |||
=====Link to an Anchor===== | |||
=== | |||
Add #anchor_name to the end of the URL | |||
====<u>Hidden Comments</u>==== | |||
To make hidden comments, simply use <nowiki><!-- Your text goes here --></nowiki> | |||
<nowiki><!-- TEXT HERE WILL NOT BE DISPLAYED --> Please start and end text with a space</nowiki> |
Revision as of 12:27, 9 July 2014
- There is more information on Wiki formatting here
Inserting a Table of contents (TOC)
For each page with more than three headings, a table of contents (TOC) is automatically generated from the section headings, unless:
__NOTOC__ is added to the top or bottom of the page
If a page has fewer than four headings then
__TOC__ is must be added where the TOC is required
To align the TOC to the right use:
<div style="float:right;">__TOC__</div>
To insert a TOC with no numbers use:
{{Toc right no-numbers}}
Formatting Text
Centering text
<div class="center">Center text like this</div>
New un-spaced lines
New lines without spaces between them
have the following code
placed at the end of them
New lines without spaces between them<br /> have the following code<br /> placed at the end of them
- New lines that are indented
- and have no spaces between them
- begin with a colon
:New lines that are indented :and have no spaces between them :begin with a colon:
Deleted text
deleted text
<del>deleted text</del>
Underlined text
underlined text
<u>underlined text</u>
Italic text
Italic text
''Italic text''
Bold text
Bold text
'''Bold text'''
Large text
Big text
<big>Big text</big>
Small text
Small text
<small>Small text</small>
Superscript text
This sentence has some Superscript text in it.
<sup>Superscript text</sup>
Subscript text
This sentence has some Subscript text in it.
<sub>Subscript text</sub>
Multiple blank lines
To place multiple blank lines
before the next line of text.
To place multiple blank lines <br /><br /><br /><br /><br /><br />
before the next line of text.
Multiple spaces
To place multiple spaces between words.
To place multiple spaces between words.
Blockquote
A Blockquote will indent both left and right margins:
Blockquote
Text after the Blockquote
<blockquote>Blockquote</blockquote>
Special Characters and Symbols
- More info can be found here
Name | Char | Code |
---|---|---|
and | & | & |
ellipsis | … | … |
em dash | — | — |
en dash | & | – |
space | | |
Copyright | © | © |
Fraction | ¼ | ¼ |
Fraction | ½ | ½ |
Fraction | ¾ | ¾ |
Degrees | ° | ° |
Horizontal Lines
Text before Horizontal line
text after Horizontal line
Text before Horizontal line ---- or <hr> text after Horizontal line
text before a narrow horizontal line
text after line
text before a narrow horizontal line <hr width=20%> text after line (the 20% may be adjusted as necessary)
text before a centered narrow horizontal line
text after line
<div class="center"> text before a centered narrow horizontal line <hr width=50%> text after line (the 50% may be adjusted as necessary) </div>
Tables
heading | heading |
---|---|
cell | cell |
cell | cell |
{| border="1" cellpadding="2" cellspacing="0" |+ Table ! heading !! heading |- | cell || cell |- | cell || cell |}
Redirects
To create a re-direct page use this code:
#REDIRECT [[article link]]
Placing and Linking to Anchors
Place an Anchor
At the beginning of the text to be linked to add:
<span id="anchor_name">ANY TEXT HERE</span>
Link to an Anchor
Add #anchor_name to the end of the URL
Hidden Comments
To make hidden comments, simply use <!-- Your text goes here -->
<!-- TEXT HERE WILL NOT BE DISPLAYED --> Please start and end text with a space