From StrategyWiki, the video game walkthrough and strategy guide wiki
Jump to navigation Jump to search
(→‎Basic Formatting: class="wikitable")
(header -> heading)
 
(41 intermediate revisions by 13 users not shown)
Line 1: Line 1:
This page explains basic wiki markup and provides links to pages explaining advanced features. For a more complete guide, you may want to see [http://meta.wikimedia.org/wiki/Help:Editing Help:Editing on Wikimedia.org].
{{Header Nav|game=StrategyWiki:Guide}}


== Basic Formatting ==
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.
Plain text appears the same way that it was entered. A single newline inside the editing window will not affect the appearance of the text, but two consecutive newlines (one blank line) will cause a paragraph break. You can also use '''bold''', ''italics'', and '''''bold italics''''' formatting on blocks of text.


{| width="100%" border="1" class="wikitable"
== Text formatting markup ==
|-
! width="50%"|
What you see
! width="50%"|
What you type
|-
| width="50%"|
Hello, world!
| width="50%"|
<pre>Hello, world!</pre>
|-
| width="50%"|
Hello
there.
| width="50%"|
<pre>Hello
there.</pre>
|-
| width="50%"|
Paragraph one.


Paragraph two.
{|{{prettytable}}
| width="50%"|
!width="300px"|Description
<pre>Paragraph one.
!You type…
 
!You get…
Paragraph two.</pre>
|-
|-
| width="50%"|
! colspan="3" align="center" | ''Applies anywhere''
'''Bold.'''
 
''Italics.''
 
'''''Bold italics.'''''
| width="50%"|
<pre>'''Bold.'''
 
''Italics.''
 
'''''Bold italics.'''''</pre>
|}
<br />
 
== Headings ==
Use headings to divide up a page into logical sections. A table of contents will automatically appear at the top of pages with four or more headings for easy navigation. See [[Help:Heading]] for information about using headings.
 
== Links ==
Link from one page to another to help readers navigate your guide. You can link to any page on the wiki or any external web page. To link to a page in another wiki namespace, use the full page name (i.e. <nowiki>Help:Contents</nowiki>).
 
{| width="100%" border="1"
|-
|-
! width="50%"|
|Italic text
What you see
|<tt><nowiki>''italic''</nowiki></tt>
! width="50%"|
|''italic''
What you type
|-
|-
| width="50%"|
| Bold text
[[Zelda: Ocarina of Time]]
|<tt><nowiki>'''bold'''</nowiki></tt>
| width="50%"|
|'''bold'''
<pre>[[Zelda: Ocarina of Time]]</pre>
|-
|-
| width="50%"|
| Bold and italic
[[Zelda: Ocarina of Time|Ocarina of Time Homepage (named link)]]
|<tt><nowiki>'''''bold & italic'''''</nowiki></tt>
| width="50%"|
|'''''bold & italic'''''
<pre>[[Zelda: Ocarina of Time|Ocarina of Time Homepage (named link)]]</pre>
|-
|-
| width="50%"|
|Escape wiki markup
[[Nonexistant page]]
|<tt><nowiki><nowiki>no ''markup''</nowiki></nowiki></tt>
| width="50%"|
|<nowiki>no ''markup''</nowiki>
<pre>[[Nonexistant page]]</pre>
|-
|-
| width="50%"|
! colspan="3" align="center" | ''Only at the beginning of the line''
http://www.google.com
| width="50%"|
<pre>http://www.google.com</pre>
|-
|-
| width="50%"|
|Headings of different sizes
[http://www.google.com]
|
| width="50%"|
<tt><nowiki>==Level 1==</nowiki></tt><br />
<pre>[http://www.google.com]</pre>
<tt><nowiki>===Level 2===</nowiki></tt><br />
<tt><nowiki>====Level 3====</nowiki></tt><br />
<tt><nowiki>=====Level 4=====</nowiki></tt><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=====
|-
|-
| width="50%"|
|Horizontal rule
[http://www.google.com Google]
|
| width="50%"|
<tt><nowiki>----</nowiki></tt>
<pre>[http://www.google.com Google]</pre>
|
|}
----
<br />
== Lists ==
You can create bulleted or numbered lists and sublists by prefixing lines with a special character.
 
{| width="100%" border="1"
|-
|-
! width="50%"|
|Bullet list
What you see
|
! width="50%"|
&#42; one<br>
What you type
&#42; two<br>
&#42; three<br>
&#42;&#42; three and one-third<br>
&#42;&#42; three and two-thirds<br>
|
* one
* two
* three
** three and one-third
** three and two-thirds
|-
|-
| width="50%"|
|Numbered list
* Bullet one
|
* Bullet two
&#35; one<br />
* Bullet three
&#35; two<br />
| width="50%"|
&#35; three<br />
<pre>* Bullet one
&#35;&#35; three point one<br />
* Bullet two
&#35;&#35; three point two<br />
* Bullet three</pre>
|
# one
# two
# three
## three point one
## three point two
|-
|-
| width="50%"|
|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)
# First
|
# Second
<nowiki><ol start="50"></nowiki><br />
# Third
<nowiki><li>fifty</li></nowiki><br />
| width="50%"|
<nowiki><li>fifty one</li></nowiki><br />
<pre># First
<nowiki><li>fifty two</li></nowiki><br />
# Second
&#35;fifty two point one<br />
# Third</pre>
&#35;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>
|-
|-
| width="50%"|
| Mixture of bulleted<br /> and numbered lists
* Point
|
** Subpoint
&#35; one<br />
** Subpoint
&#35; two<br />
*** Subsubpoint
&#35;&#42; two point one<br />
* Point
&#35;&#42; two point two<br />
| width="50%"|
|
<pre>* Point
# one
** Subpoint
# two
** Subpoint
#* two point one
*** Subsubpoint
#* two point two
* Point</pre>
|-
|-
| width="50%"|
|Definition list
# Thing
|
## Subthing
&#59;Definition<br />
## Subthing
&#58;item 1<br />
### Subsubthing
&#58;item 2<br />
# Thing
|
| width="50%"|
;Definition
<pre># Thing
:item 1
## Subthing
:item 2
## Subthing
### Subsubthing
# Thing</pre>
|-
|-
| width="50%"|
|Preformatted text
* Bullet
|
# Numbered
&nbsp;&nbsp;preformatted text is done with<br />
# Numbered
&nbsp;&nbsp;a space at the<br />
* Bullet
&nbsp;&nbsp;beginning of the line<br />
# Numbered
|
# Numbered
preformatted text is done with
| width="50%"|
a space at the
<pre>* Bullet
beginning of the line
# Numbered
# Numbered
* Bullet
# Numbered
# Numbered</pre>
|}
|}
<br />
== Indenting ==
You can indent paragraphs by prefixing the paragraph with a colon. This is helpful for lining up items under a bullet point or for quoting big blocks of text.


{| width="100%" border="1"
'''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>.
|-
 
! width="50%"|
== Paragraphs ==
What you see
 
! width="50%"|
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.
What you type
 
|-
== HTML ==
| width="50%"|
 
This is a short paragraph. It is not indented.
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>.
:This is a second paragraph. It has been indented a little bit.
::This third paragraph has been indented twice.
| width="50%"|
<pre>This is a short paragraph. It is not indented.
:This is a second paragraph. It has been indented a little bit.
::This third paragraph has been indented twice.</pre>
|}
<br />
== No Formatting/No Wiki ==
There are several methods to keep your text from being formatted and keep its contents from being parsed for wiki markup.


{| width="100%" border="1"
== 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).
! width="50%"|
What you see
! width="50%"|
What you type
|-
| width="50%"|
Preformatted text.
'''Wiki markup still works.'''
| width="50%"|
<pre> Preformatted text.
'''Wiki markup still works.'''</pre>


(There is a space before these lines.)
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>.
|-
| width="50%"|
<nowiki>Unwikified text.
'''Wiki markup is off.'''</nowiki>
| width="50%"|
<pre>&lt;nowiki&gt;[[Unwikified text.]]
'''Wiki markup is off.'''&lt;/nowiki&gt;</pre>
|-
| width="50%"|
<pre>Preformatted text.
No [[formatting]]
or '''wiki markup'''.</pre>
| width="50%"|
<pre>&lt;pre&gt;Preformatted text.
No [[formatting]]
or '''wiki markup'''.&lt;/pre&gt;</pre>
|}
<br />


== Images ==
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]].
Use of images can really help an explanation and can help to spice up a dull guide. See the [[Help:Image]] page for detailed instructions about uploading and using images in your pages.


== Templates ==
== Section Editing ==
You can use templates to insert pre-created content into your pages. By inserting a simple tag into your pages, you can achieve some nice effects and simplify editing. When a page is viewed, the tags are expanded out to their original form. See the [[Help:Template]] page for detailed information about creating and using templates.
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.


== Categories ==
{{Footer Nav|game=StrategyWiki:Guide|prevpage=Discussing issues|nextpage=Links}}
You can place your page into categories that group it with related pages and make it easier for readers to find. See the [[Help:Category]] page for information about adding your page to categories and linking to category listings.

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: Button bold.png 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==
===Level 2===
====Level 3====
=====Level 4=====

Notes:

  • Never use =Level 0= 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. [[File:FILENAME.png]] or [[Game title or page|Heading text]]).
  • All headings should use the highest level possible. That is, if it isn't a sub-section/header, then it should be == Level 1==. 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[edit]

Level 2[edit]

Level 3[edit]

Level 4[edit]
Horizontal rule

----


Bullet list

* one
* two
* three
** three and one-third
** three and two-thirds

  • one
  • two
  • three
    • three and one-third
    • three and two-thirds
Numbered list

# one
# two
# three
## three point one
## three point two

  1. one
  2. two
  3. three
    1. three point one
    2. 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)

<ol start="50">
<li>fifty</li>
<li>fifty one</li>
<li>fifty two</li>
#fifty two point one
#fifty two point two
</ol>

  1. fifty
  2. fifty one
  3. fifty two
    1. fifty two point one
    2. fifty two point two
Mixture of bulleted
and numbered lists

# one
# two
#* two point one
#* two point two

  1. one
  2. two
    • two point one
    • two point two
Definition list

;Definition
:item 1
:item 2

Definition
item 1
item 2
Preformatted text

  preformatted text is done with
  a space at the
  beginning of the line

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.