Help:Syntax: Difference between revisions
No edit summary |
No edit summary |
||
Line 87: | Line 87: | ||
#*# Numbered Sub-sub-item | #*# Numbered Sub-sub-item | ||
# Item</nowiki></pre> | # Item</nowiki></pre> | ||
|- | |||
|} | |||
== Links == | |||
{| class="wikitable" | |||
! Type of Link | |||
! Example | |||
! Syntax | |||
|- | |||
| A page inside this wiki | |||
| [[Sideling Hill tunnel]] | |||
| <pre>[[Sideling Hill tunnel]]</pre> | |||
|- | |||
| '''Bold Text''' | |||
| Three single quotes on each side | |||
| <pre>'''Bold Text'''</pre> | |||
|- | |||
| '''''Bold and Italic''''' | |||
| Five single quotes on each side | |||
| <pre>'''''Bold and Italic'''''</pre> | |||
|- | |||
| <strike>Strikethru</strike> | |||
| The "strike" tag | |||
| <pre><strike>Strikethru</strike></pre> | |||
|- | |||
| <pre>Preformatted text</pre> | |||
| The "pre" tag | |||
| <pre><pre>Preformatted text</pre></pre> | |||
|- | |- | ||
|} | |} |
Revision as of 17:22, 19 March 2016
This is a handy guide to the most common bits of Wiki syntax you may want to use.
Basic text formatting markup
Desired Result | Description | Example |
---|---|---|
Italic Text | Two single quotes on each side | ''Italic Text'' |
Bold Text | Three single quotes on each side | '''Bold Text''' |
Bold and Italic | Five single quotes on each side | '''''Bold and Italic''''' |
The "strike" tag | <strike>Strikethru</strike> | |
Preformatted text |
The "pre" tag | <pre>Preformatted text</pre> |
Headlines and Table of Contents
Note: In order for headline syntax to be parsed, it must be placed at the beginning of a line, with no spaces before it.
To create a headline for a section, start and end the line with a number of equals signs. The number of signs determines the level of the headline.
Level 1 headlines are used for page titles themselves. Please do not use them in pages.
== Main page sections are Level 2 == === Subsections are level 3 === ==== You can go to level 6 but beyond 4 is pushing it ====
When a page contains four or more headlines, a Table of Contents is automatically generated for it. If you wish to suppress this, put the magic word __NOTOC__
somewhere in the page. (That's two underscores on either side of the letters.)
Lists
Like headlines, the special characters for lists must occur at the beginning of a line, with no spaces. The characters are asterisks for bullets and number/hash/pound signs for numbering. A simple and more complex example are shown below.
|
* Bulleted list item ** Sub-item * Item * Item ** Sub-item *** Sub-sub-item * Item |
|
# Numbered list item #* Bulleted Sub-item #* Bulleted Sub-item # Numbered Item #* Bulleted Sub-item #*# Numbered Sub-sub-item #*# Numbered Sub-sub-item # Item |
Links
Type of Link | Example | Syntax |
---|---|---|
A page inside this wiki | Sideling Hill tunnel | [[Sideling Hill tunnel]] |
Bold Text | Three single quotes on each side | '''Bold Text''' |
Bold and Italic | Five single quotes on each side | '''''Bold and Italic''''' |
The "strike" tag | <strike>Strikethru</strike> | |
Preformatted text |
The "pre" tag | <pre>Preformatted text</pre> |
The <nowiki> tag
If you want to ''demonstrate '''bits''' of wiki syntax '''without''' it actually being processed'', as we just did there, enclose your example in the <nowiki>...</nowiki>
tag:
<nowiki>''Demonstrate '''bits''' of wiki syntax '''without''' it actually being processed''</nowiki>