Contents |
Simple editing is one of the major benefits of using a wiki. Users can edit pages without knowing HTML, and still use many formatting features of HTML. Most wikis define a set of formatting rules to convert plain text into HTML. Some wikis (like this one) also allow some HTML "tags", like <b>, <i>, and <pre> within a page. (Some wikis use raw HTML instead of special formatting rules.)
The following text is an overview of the MediaWiki text formatting rules. For examples without all the explanatory text, see the TextFormattingExamples. To try these rules for yourself, please feel free to edit the Sandbox page. To see how any page is formatted, just follow the link "Edit" at the top of the page.
Most text does not require any special changes for wiki form. A few basic rules are:
To mark text as bold, italic or fixed-width, you can use the HTML <b>, <i> and code tags. For example:
<b> bold </b>, <i> italic </i>, <b> <i> bold+italic </i> </b>.
Note that MediaWiki (like most Wikis) processes pages line-by-line, so if you want three bold lines of text, you will need to use three separate <b>...</b> tags. Also note that unclosed or unmatched tags are not removed from the page.
MediaWiki also implements the old "quote style" of text formatting, which is used on several wikis. Briefly:
''Two single quotes are italics'', '''three single quotes are bold''', '''''five single quotes are bold and italic.'''''
looks like:
Two single quotes are italics, three single quotes are bold, five single quotes are bold and italic.
The "quote style" formatting is often confusing, especially when multiple bold and italic sections are mixed on a line. It is also incompatible with Lyrics pages, where <b> and <i> must be used.
Headings are delimited by 1-6 equal signs (=). They basically correspond to HTML's <h1> through <h6> tags.
= Headline size 1 = == Headline size 2 == === Headline size 3 === ==== Headline size 4 ==== ===== Headline size 5 ===== ====== Headline size 6 ======
Simple lists:
* Text for a bulleted list item. ** Text for second-level list. *** Text for third level, etc.
...which looks like:
Numbered lists:
# Text for a numbered list item. ## Text for second-level list. ### Text for third level, etc. ## Another Text for the second level.
...which looks like:
Simple indented text:
: Text to be indented (quote-block) :: Text indented more ::: Text indented to third level
...which looks like:
Term with indented definition: [without a blank line between term and definition]
;Term:Definition (indented) :;Term (indented):Definition (indented two levels) ::;Term (indented twice):Definition (indented to third level)
...which looks like:
Individual lines can be displayed as preformatted (fixed-width or "typewriter"-font) text by placing one or more spaces at the start of the line. Other wiki formatting (like links) will be applied to this kind of preformatted text.
Additionally, multi-line sections can be marked as pre-formatted text using lines starting with <pre> (to start pre-formatted text), and </pre> (to end preformatted text). The <pre> and </pre> tags are not displayed. Wiki links and other formatting is not done within a preformatted section. (If you want wiki formatting, use spaces at the start of the line instead of the <pre> and </pre> tags.)
For instance:
Pre-formatted section here. No other link or format processing is done on pre-formatted sections. For instance, [[UseModWiki]] is not a link here.
and:
This is the starting-spaces version of preformatted text. Note that links like UseModWiki still work.
Rather than going through the lengthy and complicated way to add a table, you can easily do it using wiki code. To start a table, add this text:
{|
Next, to start a row, use a pipe and a dash, such as this:
|-
For each cell, add a pipe. (Note, start a new line for each cell):
|Cell1 |Cell2 |Cell3
Then, just make sure to close your table with the pipe and squiggly line:
|}
On TMBW's Azure skin, the "ebena" class can be applied to tables for a stylish and clean look as seen on Shows. Just add class="ebena" to the top of a table, like this:
{|class="ebena"
And there you have it!
For more detailed tables, please visit wikimedia.org, or use this HTML to Wiki table converter.
|
|