Help:Formatting

(Difference between revisions)
m
m (Reverted edits by Rkusterer (Talk) to last revision by Mmocnak)
Line 1: Line 1:
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 <code><nowiki>''this''</nowiki></code>
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 <code><nowiki>''this''</nowiki></code>
-
<table>
+
== Text formatting markup ==
-
<tr style="background-color:#d1d1d1;">
+
-
<td colspan="5" style="text-align:center" id="textformatting">
+
-
====Text formatting markup====
+
-
</td>
+
-
</tr>
+
-
<tr valign="top" style="background-color:#e1e1e1;">
+
-
<td>'''Description'''</td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td>'''You type'''</td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td>'''You get'''  </td>
+
-
</tr>
+
-
<tr valign="top">
+
-
<td>Italic text</td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td><tt><nowiki>''italic''</nowiki></tt></td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td>''italic'' </td>
+
-
</tr>
+
-
<tr valign="top" style="background-color:#f1f1f1;">
+
-
<td> Bold text</td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td><tt><nowiki>'''bold'''</nowiki></tt></td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td>'''bold''' </td>
+
-
</tr>
+
-
<tr valign="top">
+
-
<td> Bold and italic</td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td><tt><nowiki>'''''bold & italic'''''</nowiki></tt></td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td>'''''bold & italic''''' </td>
+
-
</tr>
+
-
<tr valign="top" style="background-color:#f1f1f1;">
+
-
<td>Hyperlink to wiki page <br/></td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td><tt><nowiki>[[Home]]</nowiki></tt> <br/></td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td>[[Home]] </td>
+
-
</tr>
+
-
<tr valign="top">
+
-
<td>Hyperlink to wiki page with different link
+
-
text&mdash;use <tt>|</tt> to separate text</td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td><tt><nowiki>[[Home|Main doc page]]</nowiki></tt></td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td>[[Home|Main doc page]] </td>
+
-
</tr>
+
-
<tr valign="top" style="background-color:#f1f1f1;">
+
-
<td>Hyperlink to external web page</td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td><tt><nowiki>http://www.sun.com</nowiki></tt></td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td>http://www.sun.com </td>
+
-
</tr>
+
-
<tr valign="top">
+
-
<td>Hyperlink to external web page with
+
-
different link text&mdash;''space'' separates text</td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td><tt><nowiki>[http://www.sun.com Sun Microsystems]</nowiki></tt></td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td>[http://www.sun.com Sun Microsystems]</td>
+
-
</tr>
+
-
<tr  valign="top" style="background-color:#f1f1f1;">
+
-
<tr valign="top">
+
{| class="wikitable"
-
<td>Anchor definition. Use the id attribute with an HTML tag that takes this attribute, such as <tt>&lt;span&gt;</tt> or <tt>&lt;div&gt;</tt>.</td>
+
! Description !! You type !! You get
-
<td>&nbsp;&nbsp;</td>
+
|-
-
<td><tt>&lt;span id="anchor_to_link_to"&gt;optional text&lt;/span&gt;</tt></td>
+
! colspan="3" style="background:#ABE" | character (inline) formatting – ''applies anywhere''
-
<td>&nbsp;&nbsp;</td>
+
|-
-
<td><span id="anchor_to_link_to">optional text</span></td>
+
|Italic text
-
</tr>
+
| <code><nowiki>''italic''</nowiki></code>
-
<tr valign="top" style="background-color:#f1f1f1;">
+
|''italic''
-
<td>Hyperlink to anchor<br/></td>
+
|-
-
<td>&nbsp;&nbsp;</td>
+
| Bold text
-
<td><tt><nowiki>[[#anchor_to_link_to|go to anchor]]</nowiki></tt> <br/></td>
+
| <code><nowiki>'''bold'''</nowiki></code>
-
<td>&nbsp;&nbsp;</td>
+
|'''bold'''
-
<td>[[#anchor_to_link_to|go to anchor above]]</td>
+
|-
-
</tr>
+
| Bold and italic
-
<tr valign="top">
+
| <code><nowiki>'''''bold & italic'''''</nowiki></code>
-
<td>Inline image. Use <tt>|</tt> to separate options, which include <tt>thumb</tt> for an 80x80 pixel thumbnail, <tt>99px</tt> to size the image to 99 by 99 pixels square, <tt>66x99px</tt> to size the image to 66px wide by 99px high, <tt>left</tt> or <tt>right</tt> to float the image left or right, <tt>box</tt> to created a boxed image.</td>
+
|'''''bold & italic'''''
-
<td>&nbsp;&nbsp;</td>
+
|-
-
<td><tt><nowiki>[[image:aracari-sm.png]]</nowiki></tt></td>
+
|Escape wiki markup
-
<td>&nbsp;&nbsp;</td>
+
| <code><nowiki><nowiki>no ''markup''&lt;/nowiki></nowiki></code>
-
<td>[[image:aracari-sm.png]]</td>
+
|<nowiki>no ''markup''</nowiki>
-
</tr>
+
|-
-
<tr valign="top"  style="background-color:#f1f1f1;">
+
! colspan="3" style="background:#ABE" | section formatting – ''only at the beginning of the line''
-
<td>Inline image with <tt>thumb</tt>, <tt>right</tt>, and <tt>box</tt>. See [[MediaWikiSamples#Images|Media Wiki Sampler: Images]] for more examples.</td>
+
|-
-
<td>&nbsp;&nbsp;</td>
+
|Headings of different levels
-
<td><tt><nowiki>[[image:aracari.png|thumb|right|box]]</nowiki></tt></td>
+
| <pre>=level 1=
-
<td>&nbsp;&nbsp;</td>
+
==level 2==
-
<td>[[image:aracari.png|thumb|right|box]] </td>
+
===level 3===
-
</tr>
+
====level 4====
-
<tr valign="top">
+
=====level 5=====
-
<td>Escape wiki markup</td>
+
======level 6======</pre>
-
<td>&nbsp;&nbsp;</td>
+
An article with 4 or more headings automatically creates a [[wikipedia:Wikipedia:Section#Table of contents (TOC)|table of contents]].
-
<td><tt>&lt;nowiki&gt;<nowiki>no ''markup''</nowiki>&lt;/nowiki&gt;</tt> </td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td><nowiki>no ''markup''</nowiki> </td>
+
-
</tr>
+
-
<tr  valign="top" style="background-color:#f1f1f1;">
+
-
<td>Table of Contents: Use two underscores before <tt>TOC</tt> and two after. The table of contents is inserted at the location of this identifier and lists all headings defined with wiki heading tags (<nowiki>=, ==, ===</nowiki>, and so on). If you want to exclude a heading, such as the main heading, use HTML tags instead of wiki tags. For example, <tt>&lt;h1&gt;Main Heading&lt;/h1&gt;</tt>.</td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td><tt><nowiki>__TOC__</nowiki></tt></td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td>__TOC__</td>
+
-
</tr>
+
-
<tr valign="top">
+
-
<td colpsan="5">&nbsp;</td>
+
-
</tr>
+
-
<tr valign="top" style="background-color:#d1d1d1;">
+
-
<td colspan="5" style="text-align:center" id="beginning">
+
-
====Apply Only at Beginning of Line====
+
|<!-- hack to prevent TOC viewing for h1 - h6 elements: their style is hardcopied here -->
 +
<div style="font-size: 188%; margin: 0; padding-top: .5em; padding-bottom: .17em; border-bottom: 1px solid #aaa">Level 1</div>
 +
<div style="font-size: 150%; margin: 0; padding-top: .5em; padding-bottom: .17em; border-bottom: 1px solid #aaa">Level 2</div>
 +
<div style="font-size: 132%; font-weight: bold">Level 3</div><!--
 +
--><b>Level 4</b><!--
 +
--><div style="font-size: 86%; font-weight: bold">Level 5</div><!--
 +
--><b style="font-size: 80%">Level 6</b>
 +
|-
 +
|Horizontal rule
 +
| <code>----</code>
 +
|
 +
----
 +
|-
 +
|Bullet list
 +
|
 +
<pre>
 +
* one
 +
* two
 +
* three
 +
** three point one
 +
** three point two
 +
</pre>
 +
Inserting a blank line will end the first list and start another.
 +
|
 +
* one
 +
* two
 +
* three
 +
** three point one
 +
** three point two
 +
|-
 +
|Numbered list
 +
|
 +
<pre>
 +
# one
 +
# two<br />spanning more lines<br />doesn't break numbering
 +
# three
 +
## three point one
 +
## three point two
 +
</pre>
 +
|
 +
# one
 +
# two<br />spanning more lines<br />doesn't break numbering
 +
# three
 +
## three point one
 +
## three point two
 +
|-
 +
|Definition list
 +
|<pre>
 +
;item 1
 +
: definition 1
 +
;item 2
 +
: definition 2-1
 +
: definition 2-2
 +
</pre>
 +
|
 +
;item 1
 +
: definition 1
 +
;item 2
 +
: definition 2-1
 +
: definition 2-2
 +
|-
 +
| Adopting definition list to indent text
 +
|
 +
<pre>: Single indent
 +
:: Double indent
 +
::::: Multiple indent</pre>
 +
This workaround may be controversial from the viewpoint of accessibility.
 +
|
 +
: Single indent
 +
:: Double indent
 +
::::: Multiple indent
 +
|-
 +
| Mixture of different types of list
 +
|
 +
<pre>
 +
# one
 +
# two
 +
#* two point one
 +
#* two point two
 +
# three
 +
#; three item one
 +
#: three def one
 +
# four
 +
#: four def one
 +
#: this rather looks like the continuation of # four
 +
#: and thus often used instead of <br />
 +
# five
 +
## five sub 1
 +
### five sub 1 sub 1
 +
## five sub 2
-
</td>
+
;item 1
-
</tr>
+
:* definition 1-1
-
<tr valign="top"  style="background-color:#e1e1e1;">
+
:* definition 1-2
-
<td>'''Description'''</td>
+
:
-
<td>&nbsp;&nbsp;</td>
+
;item 2
-
<td>'''You type'''</td>
+
:# definition 2-1
-
<td>&nbsp;&nbsp;</td>
+
:# definition 2-2
-
<td>'''You get''' </td>
+
</pre>
-
</tr>
+
The usage of <code>#:</code> and <code>*:</code> for breaking a line within an item may also be controversial.
-
<tr valign="top">
+
|
-
<td> Indented text</td>
+
# one
-
<td>&nbsp;&nbsp;</td>
+
# two
-
<td><tt><nowiki>:Indented text</nowiki></tt></td>
+
#* two point one
-
<td>&nbsp;&nbsp;</td>
+
#* two point two
-
<td>&nbsp;&nbsp;&nbsp;&nbsp;Indented text</td>
+
# three
-
</tr>
+
#; three item one
-
<tr style="background-color:#f1f1f1;">
+
#: three def one
-
<td>Headings of various levels</td>
+
# four
-
<td>&nbsp;&nbsp;</td>
+
#: four def one
-
<td><tt><nowiki>=level 1=</nowiki></tt></td>
+
#: this rather looks like the continuation of <code># four</code>
-
<td>&nbsp;&nbsp;</td>
+
#: often used instead of <code>&lt;br /></code>
-
<td><h1>Level 1</h1></td>
+
# five
-
</tr>
+
## five sub 1
-
<tr> 
+
### five sub 1 sub 1
-
<td>&nbsp; </td>
+
## five sub 2
-
<td>&nbsp;&nbsp;</td>
+
;item 1
-
<td><tt><nowiki>==level 2==</nowiki></tt></td>
+
:* definition 1-1
-
<td>&nbsp;&nbsp;</td>
+
:* definition 1-2
-
<td><h2>Level 2</h2></td>
+
:
-
</tr>
+
;item 2
-
<tr style="background-color:#f1f1f1;"> 
+
:# definition 2-1
-
<td>&nbsp;</td>
+
:# definition 2-2
-
<td>&nbsp;&nbsp;</td>
+
-
<td><tt><nowiki>===level 3===</nowiki></tt></td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td><h3>Level 3</h3></td>
+
-
</tr>
+
-
<tr>
+
-
<td>&nbsp;</td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td><tt><nowiki>====level 4====</nowiki></tt><br /></td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td><h4>Level 4</h4> <br /></td>
+
-
</tr>
+
-
<tr style="background-color:#f1f1f1;">
+
-
<td>Horizontal rule <br /></td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td><tt><nowiki>----</nowiki></tt> &nbsp;</td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td>
+
-
<hr /></td>
+
-
</tr>
+
-
<tr  valign="top">
+
-
<td>Bulleted list</td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td><tt><nowiki>*</nowiki> first item</tt><br />
+
-
<tt><nowiki>*</nowiki> second item</tt><br />
+
-
<tt><nowiki>**</nowiki> first sub-item</tt><br />
+
-
<tt><nowiki>**</nowiki> second sub-item</tt><br />
+
-
<tt><nowiki>***</nowiki> first sub-sub-item</tt><br />
+
-
<tt><nowiki>***</nowiki> second sub-sub-item</tt></td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td>
+
-
* first item
+
-
* second item
+
-
** first sub-item
+
-
** second sub-item
+
-
*** first sub-sub-item
+
-
*** second sub-sub-item</td>
+
-
</tr>
+
-
<tr valign="top" style="background-color:#f1f1f1;">
+
-
<td>Numbered list</td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td><tt><nowiki>#</nowiki> Step 1</tt><br />
+
-
<tt><nowiki>#</nowiki> Step 2<nowiki><br /></nowiki></tt>
+
-
<tt>more on two<nowiki><br /></nowiki></tt>
+
-
<tt>yet more on two</tt><br />
+
-
<tt><nowiki>#</nowiki> Step 3</tt><br />
+
-
<tt><nowiki>##</nowiki> Sub-step 1</tt><br />
+
-
<tt><nowiki>##</nowiki> Sub-step 2</tt></td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td>
+
-
# Step 1
+
-
# Step 2<br />more on two<br />yet more on two
+
-
# Step 3
+
-
## Sub-step 1
+
-
## Sub-step 2</td>
+
-
</tr>
+
-
<tr valign="top">
+
-
<td> Mixture of bulleted<br /> and numbered lists<br /><br /><br /><br /></td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td><tt><nowiki>#</nowiki> Step 1</tt><br />
+
-
<tt><nowiki>#</nowiki> Step 2</tt><br />
+
-
<tt><nowiki>#*</nowiki> Sub-item</tt><br />
+
-
<tt><nowiki>#*</nowiki> Sub-item</tt>
+
-
<br/><br/>
+
-
<tt><nowiki>*</nowiki> Bullet 1</tt><br />
+
-
<tt><nowiki>*</nowiki> Bullet 2</tt><br />
+
-
<tt><nowiki>*#</nowiki> Sub-step 1</tt><br />
+
-
<tt><nowiki>*#</nowiki> Sub-step 2</tt></td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td>
+
-
# Step 1
+
-
# Step 2
+
-
#* Sub-item
+
-
#* Sub-item
+
-
 
+
-
* Bullet 1
+
-
* Bullet 2
+
-
*# Sub-step 1
+
-
*# Sub-step 2</td>
+
-
</tr>
+
-
<tr valign="top" style="background-color:#f1f1f1;">
+
-
<td>Definition list</td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td><tt><nowiki>;</nowiki>Term</tt><br />
+
-
<tt><nowiki>:</nowiki>Definition 1</tt><br />
+
-
<tt><nowiki>:</nowiki>Definition 2</tt></td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td>
+
-
<dl>
+
-
<dt>Term
+
-
</dt>
+
-
<dd>Definition 1
+
-
</dd>
+
-
<dd>Definition 2
+
-
</dd>
+
-
</dl></td>
+
-
</tr>
+
-
<tr  valign="top">
+
-
<td>Preformatted text can be done either with a &lt;pre&gt; tag or with a space at the beginning of each line of text.
+
-
</td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td>&lt;pre&gt;
+
-
This text is preformatted <br/>
+
-
and has the same number of<br/>
+
-
lines as the source has line breaks.<br/>
+
-
&lt;/pre&gt;
+
-
<br/>
+
-
<br/>
+
-
<tt>&nbsp;This preformatted text </tt><br/>
+
-
<tt>&nbsp;has a space at the</tt><br />
+
-
<tt>&nbsp;beginning of each line</tt><br/>
+
-
</td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td><pre>
+
-
This text is preformatted
+
-
and has the same number of
+
-
lines as the source has line breaks.</pre>
+
-
<pre> this preformatted text
+
-
has a space at the
+
-
beginning of each line</pre></td>
+
-
</tr>
+
-
<tr valign="top" style="background-color:#f1f1f1;">
+
-
<td>
+
-
A table with borders, a header row, a simple row, and a row with the valign attribute defined.</td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td><br />
+
-
<tt><nowiki>{|- border="1"</nowiki></tt><br />
+
-
<tt><nowiki>! Heading 1</nowiki></tt><br />
+
-
<tt><nowiki>! Heading 2</nowiki></tt><br />
+
-
<tt><nowiki>|-</nowiki></tt><br />
+
-
<tt><nowiki>| cell 1</nowiki></tt><br />
+
-
<tt><nowiki>| cell 2</nowiki></tt><br />
+
-
<tt><nowiki>|- valign="top"</nowiki></tt><br />
+
-
<tt><nowiki>| single line</nowiki></tt><br />
+
-
<tt><nowiki>| two lines<br />of content</nowiki></tt><br />
+
-
<tt><nowiki>|}</nowiki></tt></td>
+
-
<td>&nbsp;&nbsp;</td>
+
-
<td><br />
+
-
{|- border="1"
+
-
! Heading 1
+
-
! Heading 2
+
|-
|-
-
| cell 1
+
|-
-
| cell 2
+
|Preformatted text
-
|- valign="top"
+
|
-
| single line
+
<pre>
-
| two lines<br />of content
+
preformatted text is done with
-
|}</td>
+
a '''space''' at the
-
</tr>
+
''beginning'' of the line
-
</table>
+
</pre>
 +
This way of preformatting only applies to section formatting, and character formatting markups are still effective.
 +
|
 +
preformatted text is done with
 +
a '''space''' at the
 +
''beginning'' of the line
 +
|}
 +
== Paragraphs ==
 +
MediaWiki ignores normal line breaks. To start a new paragraph, leave an empty line. You can force a line break within a paragraph with the HTML tags <code>&lt;br /></code>.
 +
 +
== HTML ==
 +
Some [[wikipedia:HTML|HTML]] tags are allowed in MediaWiki, for example <code>&lt;code></code>, <code>&lt;div></code>, <code><nowiki><span></nowiki></code> and <code><nowiki><font></nowiki></code>. These apply anywhere you insert them.
 +
 +
{| class="wikitable"
 +
!Description
 +
!You type
 +
!You get
 +
|-
 +
| Strikethrough
 +
| <code>&lt;del>Strikethrough&lt;/del></code> or <code>&lt;s>Strikethrough&lt;/s></code>
 +
|<del>Strikethrough</del>
 +
|- style="white-space:nowrap"
 +
|Fixed width text
 +
| <code>&lt;tt>Fixed width text&lt;/tt></code> or <code>&lt;code>source code&lt;/code></code>
 +
| <tt>Fixed width text</tt>
 +
|-
 +
|Blockquotes
 +
| <code>
 +
text text text text text text text text text text text text
 +
text text text text text text text text text text text text
 +
&lt;blockquote>  quote quote quote quote quote quote &lt;/blockquote>
 +
text text text text text text text text text text text text
 +
</code>
 +
| 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
 +
|-
 +
|Comment
 +
| <code>&lt;!-- This is a comment --></code>
 +
Text can only be viewed in the edit window.
 +
|
 +
<!-- This is a real invisible comment -->
 +
|-
 +
|Completely preformatted text
 +
|
 +
<code><nowiki><pre>this way, all markups are '''ignored'''</pre></nowiki></code>
 +
|
 +
<pre> this way, all markups are '''ignored'''.</pre>
 +
|
 +
|-
 +
|'''Customised''' preformatted text
 +
|
 +
<code><nowiki><pre style="CSS text">this way, all markups are '''ignored''' and formated with a CSS text</pre></nowiki></code>
 +
|
 +
<pre style="white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;overflow:auto;">
 +
this way for instance, all '''ignored''' markups take into account the navigator size, by automatically adding some carriage returns dynamically to it.</pre>
 +
|}
== Other formatting ==
== Other formatting ==

Revision as of 13:38, 10 November 2009

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

Contents

Text formatting markup

Description You type You get
character (inline) formatting – 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''
section formatting – only at the beginning of the line
Headings of different levels
=level 1=
==level 2==
===level 3===
====level 4====
=====level 5=====
======level 6======

An article with 4 or more headings automatically creates a table of contents.

Level 1
Level 2
Level 3
Level 4
Level 5
Level 6
Horizontal rule ----
Bullet list
* one
* two
* three
** three point one
** three point two

Inserting a blank line will end the first list and start another.

  • one
  • two
  • three
    • three point one
    • three point two
Numbered list
# one
# two<br />spanning more lines<br />doesn't break numbering
# three
## three point one
## three point two
  1. one
  2. two
    spanning more lines
    doesn't break numbering
  3. three
    1. three point one
    2. three point two
Definition list
;item 1
: definition 1
;item 2
: definition 2-1
: definition 2-2
item 1
definition 1
item 2
definition 2-1
definition 2-2
Adopting definition list to indent text
: Single indent
:: Double indent
::::: Multiple indent

This workaround may be controversial from the viewpoint of accessibility.

Single indent
Double indent
Multiple indent
Mixture of different types of list
# one
# two
#* two point one
#* two point two
# three
#; three item one
#: three def one
# four
#: four def one
#: this rather looks like the continuation of # four
#: and thus often used instead of <br />
# five
## five sub 1
### five sub 1 sub 1
## five sub 2

;item 1
:* definition 1-1
:* definition 1-2
:
;item 2
:# definition 2-1
:# definition 2-2

The usage of #: and *: for breaking a line within an item may also be controversial.

  1. one
  2. two
    • two point one
    • two point two
  3. three
    three item one
    three def one
  4. four
    four def one
    this rather looks like the continuation of # four
    often used instead of <br />
  5. five
    1. five sub 1
      1. five sub 1 sub 1
    2. five sub 2
item 1
  • definition 1-1
  • definition 1-2
item 2
  1. definition 2-1
  2. definition 2-2
Preformatted text
 preformatted text is done with
 a '''space''' at the 
 ''beginning'' of the line

This way of preformatting only applies to section formatting, and character formatting markups are still effective.

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

Paragraphs

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

HTML

Some HTML tags are allowed in MediaWiki, for example <code>, <div>, <span> and <font>. These apply anywhere you insert them.

Description You type You get
Strikethrough <del>Strikethrough</del> or <s>Strikethrough</s> Strikethrough
Fixed width text <tt>Fixed width text</tt> or <code>source code</code> Fixed width text
Blockquotes

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

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
Comment <!-- This is a comment -->

Text can only be viewed in the edit window.

Completely preformatted text

<pre>this way, all markups are '''ignored'''</pre>

 this way, all markups are '''ignored'''.
Customised preformatted text

<pre style="CSS text">this way, all markups are '''ignored''' and formated with a CSS text</pre>

 this way for instance, all '''ignored''' markups take into account the navigator size, by automatically adding some carriage returns dynamically to it.

Other formatting

Beyond the text formatting markup shown above, here are some other formatting references:

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo