StrategyWiki:Guide/Wiki markup

From StrategyWiki, the free strategy guide and walkthrough wiki

< StrategyWiki:Guide(Redirected from Help:Editing)

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: Image:button_bold.png By clicking them, an example will appear with the wikitext and text for you to replace.

Contents

[edit] Text formatting markup

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

[edit] Level 1

[edit] Level 2

[edit] Level 3

[edit] Level 4
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
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==.

[edit] 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 "<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.

[edit] HTML

Some HTML tags are allowed in MediaWiki; for example <code>, <div>, <pre>, <span> and <font>.

[edit] 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 __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 Organizing the pages.

[edit] 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 __NOEDITSECTION__ on the top of the page.