m (→Lists: class="wikitable") |
Notmyhandle (talk | contribs) (header -> heading) |
||
(39 intermediate revisions by 13 users not shown) | |||
Line 1: | Line 1: | ||
{{Header Nav|game=StrategyWiki:Guide}} | |||
You can format your text using wiki markup. This consists of normal characters like asterisks, single quotes or equation marks which have a special function in the wiki, sometimes depending on their position. For example, to format a word in ''italic'', you include it in two single quotes like <tt><nowiki>''this''</nowiki></tt>. Also note that when editing a page there are buttons that can help you if you forget such code, the ones at the top that look like this: [[Image:button_bold.png]] By clicking them, an example will appear with the wikitext and text for you to replace. | |||
{| width=" | == Text formatting markup == | ||
{|{{prettytable}} | |||
!width="300px"|Description | |||
!You type… | |||
!You get… | |||
|- | |||
! colspan="3" align="center" | ''Applies anywhere'' | |||
|- | |||
|Italic text | |||
|<tt><nowiki>''italic''</nowiki></tt> | |||
|''italic'' | |||
|- | |- | ||
| Bold text | |||
|<tt><nowiki>'''bold'''</nowiki></tt> | |||
|'''bold''' | |||
|- | |- | ||
| | | Bold and italic | ||
|<tt><nowiki>'''''bold & italic'''''</nowiki></tt> | |||
| | |'''''bold & italic''''' | ||
< | |||
|- | |- | ||
| | |Escape wiki markup | ||
|<tt><nowiki><nowiki>no ''markup''</nowiki></nowiki></tt> | |||
|<nowiki>no ''markup''</nowiki> | |||
| | |||
< | |||
|- | |- | ||
! colspan="3" align="center" | ''Only at the beginning of the line'' | |||
|- | |- | ||
| | |Headings of different sizes | ||
| | |||
<tt><nowiki>==Level 1==</nowiki></tt><br /> | |||
<tt><nowiki>===Level 2===</nowiki></tt><br /> | |||
<tt><nowiki>====Level 3====</nowiki></tt><br /> | |||
<tt><nowiki>=====Level 4=====</nowiki></tt><br /> | |||
< | |||
<br /> | |||
== | '''Notes''': | ||
*Never use <nowiki>=Level 0=</nowiki> because the page's title, e.g. StrategyWiki:Guide/Wiki markup on this page, is considered Level 0 and encompasses the whole page. | |||
*Do not use wiki formatting within a heading (e.g. bold or italics), except for images and links (e.g. <nowiki>[[File:FILENAME.png]] or [[Game title or page|Heading text]]</nowiki>). | |||
== | *All headings should use the highest level possible. That is, if it isn't a sub-section/header, then it should be <nowiki>== Level 1==</nowiki>. This removes arbitrarily assigning heading levels, and makes all headings use the largest font. | ||
*If you are putting a heading underneath another one, it should be logical. For example, if the page is for a world, then a sub section would be a continent. The world would be Level 0 (single =), and the levels would be level 1 (double ==). | |||
| | |||
==Level 1== | |||
===Level 2=== | |||
====Level 3==== | |||
=====Level 4===== | |||
|- | |- | ||
|Horizontal rule | |||
| | |||
<tt><nowiki>----</nowiki></tt> | |||
| | |||
---- | |||
|- | |- | ||
| | |Bullet list | ||
| | |||
* one<br> | |||
< | * two<br> | ||
* three<br> | |||
** three and one-third<br> | |||
** three and two-thirds<br> | |||
| | |||
* one | |||
* two | |||
* three | |||
** three and one-third | |||
** three and two-thirds | |||
|- | |- | ||
| | |Numbered list | ||
| | |||
# one<br /> | |||
< | # two<br /> | ||
# three<br /> | |||
## three point one<br /> | |||
## three point two<br /> | |||
| | |||
# one | |||
# two | |||
# three | |||
## three point one | |||
## three point two | |||
|- | |- | ||
| | |Numbered list starting from any number (must use HTML or a combination of HTML and Wiki Markup; # begins a new order list so it can only be used for sub-lists) | ||
| | |||
| | <nowiki><ol start="50"></nowiki><br /> | ||
< | <nowiki><li>fifty</li></nowiki><br /> | ||
<nowiki><li>fifty one</li></nowiki><br /> | |||
<nowiki><li>fifty two</li></nowiki><br /> | |||
#fifty two point one<br /> | |||
#fifty two point two<br /> | |||
<nowiki></ol></nowiki> | |||
| | |||
<ol start="50"> | |||
<li>fifty</li> | |||
<li>fifty one</li> | |||
<li>fifty two</li> | |||
#fifty two point one | |||
#fifty two point two | |||
</ol> | |||
|- | |- | ||
| | | Mixture of bulleted<br /> and numbered lists | ||
| | |||
# one<br /> | |||
< | # two<br /> | ||
#* two point one<br /> | |||
#* two point two<br /> | |||
| | |||
# one | |||
# two | |||
#* two point one | |||
#* two point two | |||
|- | |- | ||
| | |Definition list | ||
| | |||
;Definition<br /> | |||
< | :item 1<br /> | ||
:item 2<br /> | |||
| | |||
;Definition | |||
:item 1 | |||
:item 2 | |||
|- | |- | ||
| | |Preformatted text | ||
| | |||
preformatted text is done with<br /> | |||
< | a space at the<br /> | ||
beginning of the line<br /> | |||
| | |||
preformatted text is done with | |||
a space at the | |||
beginning of the line | |||
|} | |} | ||
== | '''Note that using <tt><nowiki>=Top-level headings=</nowiki></tt> is not allowed, as they disrupt page flow.''' For the top-level headings in a page, use <tt><nowiki>==First-level headings==</nowiki></tt>. | ||
== Paragraphs == | |||
MediaWiki ignores normal line breaks. To start a new paragraph, leave an empty line. You can also start a newline with the HTML tag <tt><nowiki>"<br/>"</nowiki></tt>. However, it is advised you always start new paragraphs by leaving an empty line, as it is more semantically correct than just using an HTML linebreak; this also helps us keep a consistent style across the wiki. | |||
< | |||
== | == HTML == | ||
Some HTML tags are allowed in MediaWiki; for example <tt><nowiki><code></nowiki></tt>, <tt><nowiki><div></nowiki></tt>, <tt><nowiki><pre></nowiki></tt>, <tt><nowiki><span></nowiki></tt> and <tt><nowiki><font></nowiki></tt>. | |||
<pre> | |||
< | |||
== Automated Table of Contents == | |||
Although an automated Table of Contents will appear on pages with enough headings, sometimes you don't want this. You can force pages to always display a table of contents (for instance if you have only two very long sections) or never display a table of contents (usually for aesthetic purposes). | |||
To force a table of contents, or to change the position of the table of contents, use <nowiki>__TOC__</nowiki> at the top of your page. To never show a table of contents, use <nowiki>__NOTOC__</nowiki>. | |||
<nowiki> | |||
< | |||
Note that this is not the same as a guide's /Table of Contents subpage. For information on creating and modifying those see [[StrategyWiki:Guide/Table of contents|Table of contents]]. | |||
== | == Section Editing == | ||
If your preferences enable it, edit by section links will appear on pages containing headings. You can force these not to display regardless of preferences by putting <nowiki>__NOEDITSECTION__</nowiki> on the top of the page. | |||
== | {{Footer Nav|game=StrategyWiki:Guide|prevpage=Discussing issues|nextpage=Links}} | ||
Latest revision as of 20:35, 8 December 2012
You can format your text using wiki markup. This consists of normal characters like asterisks, single quotes or equation marks which have a special function in the wiki, sometimes depending on their position. For example, to format a word in italic, you include it in two single quotes like ''this''. Also note that when editing a page there are buttons that can help you if you forget such code, the ones at the top that look like this: By clicking them, an example will appear with the wikitext and text for you to replace.
Text formatting markup[edit]
Description | You type… | You get… |
---|---|---|
Applies anywhere | ||
Italic text | ''italic'' | italic |
Bold text | '''bold''' | bold |
Bold and italic | '''''bold & italic''''' | bold & italic |
Escape wiki markup | <nowiki>no ''markup''</nowiki> | no ''markup'' |
Only at the beginning of the line | ||
Headings of different sizes |
==Level 1== Notes:
|
Level 1[edit]Level 2[edit]Level 3[edit]Level 4[edit] |
Horizontal rule |
---- |
|
Bullet list |
* one |
|
Numbered list |
# one |
|
Numbered list starting from any number (must use HTML or a combination of HTML and Wiki Markup; # begins a new order list so it can only be used for sub-lists) |
<ol start="50"> |
|
Mixture of bulleted and numbered lists |
# one |
|
Definition list |
;Definition |
|
Preformatted text |
preformatted text is done with |
preformatted text is done with a space at the beginning of the line |
Note that using =Top-level headings= is not allowed, as they disrupt page flow. For the top-level headings in a page, use ==First-level headings==.
Paragraphs[edit]
MediaWiki ignores normal line breaks. To start a new paragraph, leave an empty line. You can also start a newline with the HTML tag "<br/>". However, it is advised you always start new paragraphs by leaving an empty line, as it is more semantically correct than just using an HTML linebreak; this also helps us keep a consistent style across the wiki.
HTML[edit]
Some HTML tags are allowed in MediaWiki; for example <code>, <div>, <pre>, <span> and <font>.
Automated Table of Contents[edit]
Although an automated Table of Contents will appear on pages with enough headings, sometimes you don't want this. You can force pages to always display a table of contents (for instance if you have only two very long sections) or never display a table of contents (usually for aesthetic purposes).
To force a table of contents, or to change the position of the table of contents, use __TOC__ at the top of your page. To never show a table of contents, use __NOTOC__.
Note that this is not the same as a guide's /Table of Contents subpage. For information on creating and modifying those see Table of contents.
Section Editing[edit]
If your preferences enable it, edit by section links will appear on pages containing headings. You can force these not to display regardless of preferences by putting __NOEDITSECTION__ on the top of the page.