Help:Contents

From OpenMW Wiki
Revision as of 17:47, 8 February 2013 by Lgromanowski (talk | contribs) (→‎Source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

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
Indent text :Indent text     Indent text
Headings of

different levels. Use of a heading created by single equal signs is discouraged as it appears with the same formatting and size as the page title, which can be confusing. An article with four or more headings will automatically create a table of contents.

==level 1==
===level 2===
====level 3====
=====level 4=====

Level 1

Level 2

Level 3

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<br>spanning several lines<br>without breaking the numbering
# three
## three point one
## three point two

  1. one
  2. two
    spanning several lines
    without breaking the numbering
  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
Blockquotes

Body
text text text text text text text text text text text text text text text text text text text text text text text text

<blockquote> quote quote quote quote quote quote </blockquote>

text text text text text text text text text text text text

Body
text text text text text text text text text text text text text text text text text text text text text text text text

quote quote quote quote quote quote

text text text text text text text text text text text text

Paragraphs

MediaWiki ignores normal line breaks. To start a new paragraph, leave an empty line. You can also start a new line with the HTML tags <br> or <br/>.

HTML

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

How to link

There are four sorts of links in MediaWiki:

  1. internal links to other pages in the wiki
  2. external links to websites
  3. inter-wiki links (links to other wikis)
  4. inter-language links to other language versions of the same wiki

To add an internal link, enclose the name of the page you want to link to in double square brackets. When you save the page, you'll see the new link pointing to your page. If the page exists already, it is displayed in blue, empty pages are displayed in red. Selflinks to the current page are not transformed in URLs but displayed in bold.

The first letter of the target page is automatically capitalized and spaces are represented as underscores (typing an underscore in the link will have a similar effect as typing a space, but is not recommended, since the underscore will also be shown in the text).

Description You type You get
Internal link [[Main Page]] Main Page
Piped link [[Main Page|different text]] different text
External link http://mediawiki.org http://mediawiki.org
External link,

different title

[http://mediawiki.org MediaWiki] MediaWiki
External link,

numbered

[http://mediawiki.org] [1]
Anchor link [[#See also]] #See also
Category link [[:Category:Help]] Category:Help
Internal link to image file [[media:example.jpg]] media:example.jpg
Interwiki link [[Wikipedia:MediaWiki]] Wikipedia:MediaWiki
mailto link [mailto:[email protected] email me] email me
redirect #REDIRECT [[Main Page]] Main Page

More advanced

Description You type You get
Piped link,

different title

[[Main Page|<span title="different title">different text</span>]] different text
External link,

same host unnamed

[http://{{SERVERNAME}}/pagename] [2]
mailto named with subject line and body [mailto:[email protected]?Subject=URL%20Encoded%20Subject&body=Body%20Text info] info

Interwiki examples

The following are some examples of interwiki prefixes which are available by default:

prefix destination URL usage example
commons http://commons.wikimedia.org/wiki/ commons:MediaWiki
mediazilla http://bugzilla.wikimedia.org/ mediazilla:1209
metawikipedia http://meta.wikimedia.org/wiki/ metawikipedia:Main Page
mediawikiwiki http://www.mediawiki.org/wiki/ mediawikiwiki:Help:Contents
wikibooks http://en.wikibooks.org/wiki/ wikibooks:Main Page
wikimedia http://wikimediafoundation.org/wiki/ wikimedia:Main Page
wikinews http://en.wikinews.org/wiki/ wikinews:Main Page
wikiquote http://en.wikiquote.org/wiki/ wikiquote:Main Page
wikisource http://en.wikisource.org/wiki/ wikisource:Main Page
wikispecies http://species.wikimedia.org/wiki/ wikispecies:Main Page
wiktionary http://en.wiktionary.org/wiki/ wiktionary:Main Page
wikipedia http://en.wikipedia.org/wiki/ wikipedia:Main Page

How to avoid auto-links

By default, when you write a URL as is, it will be transformed in an external link.

To avoid that effect, put the URL between <nowiki> start & end tags as in:

<nowiki>http://mediawiki.org</nowiki>


Source

MediaWiki Help