Difference between revisions of "Help:Formatting"

From eLinux.org
Jump to: navigation, search
m (1 revision(s))
m (1 revision: Attempting latest help pages upload.)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{PD Help Page}}
 
{{PD Help Page}}
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 equal signs 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 pairs of single quotes like <code><nowiki>''this''</nowiki></code>.
  
 
== Text formatting markup ==
 
== Text formatting markup ==
 +
 
{| class="wikitable"
 
{| class="wikitable"
! style="width:15%" |Description
+
! Description
! style="width:45%" |You type
+
! width=40% | You type
! style="width:40%" |You get
+
! width=40% | You get
 
|-
 
|-
! colspan="3" align="center" style="background:#A7C1F2" | character formatting - ''applies anywhere''
+
! colspan="3" style="background:#ABE" | character (inline) formatting ''applies anywhere''
 
|-
 
|-
|Italic text
+
| Italic text
|<pre>''italic''</pre>
+
| <pre>
|''italic''
+
''italic''
 +
</pre>
 +
|
 +
''italic''
 
|-
 
|-
 
| Bold text
 
| Bold text
|<pre>'''bold'''</pre>
+
| <pre>
|'''bold'''
+
'''bold'''
 +
</pre>
 +
|
 +
'''bold'''
 
|-
 
|-
 
| Bold and italic
 
| Bold and italic
|<pre>'''''bold & italic'''''</pre>
+
| <pre>
|'''''bold & italic'''''
+
'''''bold & italic'''''
 +
</pre>
 +
|
 +
'''''bold & italic'''''
 
|-
 
|-
|Escape wiki markup
+
| Escape wiki markup
 +
| <pre>
 +
&lt;nowiki>no ''markup''</nowiki&gt;
 +
</pre>
 
|
 
|
<pre>&lt;nowiki>no ''markup''</nowiki></pre>
+
<nowiki>no ''markup''</nowiki>
|<nowiki>no ''markup''</nowiki>
 
 
|-
 
|-
! colspan="3" align="center" style="background:#A7C1F2"| section formatting - ''only at the beginning of the line''
+
! colspan="3" style="background:#ABE" | section formatting ''only at the beginning of the line''
 
|-
 
|-
|Headings of different levels  
+
| Headings of different levels  
 +
| <pre>
 +
== Level 2 ==
 +
=== Level 3 ===
 +
==== Level 4 ====
 +
===== Level 5 =====
 +
====== Level 6 ======
 +
</pre>
 +
----
 +
{{note|
 +
*[[Help_talk:Formatting#Level_1|Skip Level 1]], it is page name level.
 +
*An article with 4 or more headings automatically creates a [[wikipedia:Wikipedia:Section#Table of contents (TOC)|table of contents]].
 +
}}
 
|
 
|
<pre>=level 1=
 
==level 2==
 
===level 3===
 
====level 4====
 
=====level 5=====
 
======level 6======</pre>
 
An article with four or more headings will automatically create a [http://en.wikipedia.org/wiki/Wikipedia:Section#Table_of_contents_.28TOC.29 table of contents].
 
  
Use of a level 1 heading is '''''highly discouraged''''' as it appears with the same formatting and size as the page title, which can be confusing.
+
== Level 2 ==
|
+
=== Level 3 ===
<!-- little hack to prevent TOC viewing -->
+
==== Level 4 ====
<div style="font-size: 188%; margin: 0; padding-top: .5em; padding-bottom: .17em; border-bottom: 1px solid #aaa;">Level 1</div>
+
===== Level 5 =====
<div style="font-size: 150%; margin: 0; padding-top: .5em; padding-bottom: .17em; border-bottom: 1px solid #aaa;">Level 2</div>
+
====== Level 6 ======
<div style="font-size: 132%; border-bottom: none; font-weight: bold;">Level 3</div>
 
<div style="font-size: 100%; border-bottom: none; font-weight: bold;">Level 4</div>
 
<div style="font-size: 86%; border-bottom: none; font-weight: bold;">Level 5</div>
 
<div style="font-size: 80%; border-bottom: none; font-weight: bold;">Level 6</div>
 
 
|-
 
|-
|Horizontal rule
+
| Horizontal rule
|
+
| <pre>
<pre>----</pre>
+
Text above
 +
----
 +
Text below
 +
</pre>
 
|
 
|
 +
Text above
 
----
 
----
 +
Text below
 
|-
 
|-
|Bullet list
+
| Bullet list
 
|
 
|
 
<pre>
 
<pre>
* one
+
* Start each line
* two
+
* with an [[Wikipedia:asterisk|asterisk]] (*).
* three
+
** More asterisks gives deeper
** three point one
+
*** and deeper levels.
** three point two
+
* Line breaks<br />don't break levels.
 +
*** But jumping levels creates empty space.
 +
Any other start ends the list.
 
</pre>
 
</pre>
Inserting a blank line will end the first list and start another.
 
 
|
 
|
* one
+
* Start each line
* two
+
* with an [[Wikipedia:asterisk|asterisk]] (*).
* three
+
** More asterisks gives deeper
** three point one
+
*** and deeper levels.
** three point two
+
* Line breaks<br />don't break levels.
 +
*** But jumping levels creates empty space.
 +
Any other start ends the list.
 
|-
 
|-
|Numbered list
+
| Numbered list
 
|
 
|
 
<pre>
 
<pre>
# one
+
# Start each line
# two<br />spanning several lines<br />without breaking the numbering
+
# with a [[Wikipedia:Number_sign|number sign]] (#).
# three
+
## More number signs gives deeper
## three point one
+
### and deeper
## three point two
+
### levels.
 +
# Line breaks<br />don't break levels.
 +
### But jumping levels creates empty space.
 +
# Blank lines
 +
 
 +
# end the list and start another.
 +
Any other start also
 +
ends the list.
 
</pre>
 
</pre>
 
|
 
|
# one
+
# Start each line
# two<br />spanning several lines<br />without breaking the numbering
+
# with a [[Wikipedia:Number_sign|number sign]] (#).
# three
+
## More number signs gives deeper
## three point one
+
### and deeper
## three point two
+
### levels.
 +
# Line breaks<br />don't break levels.
 +
### But jumping levels creates empty space.
 +
# Blank lines
 +
 
 +
# end the list and start another.
 +
Any other start also
 +
ends the list.
 
|-
 
|-
|Definition list
+
| Definition list
|
+
| <pre>
<pre>
 
 
;item 1
 
;item 1
:definition 1
+
: definition 1
 
;item 2
 
;item 2
:definition 2-1
+
: definition 2-1
:definition 2-2
+
: definition 2-2
 
</pre>
 
</pre>
 
|
 
|
 
;item 1
 
;item 1
:definition 1
+
: definition 1
 
;item 2
 
;item 2
:definition 2-1
+
: definition 2-1
:definition 2-2
+
: definition 2-2
 
|-
 
|-
 
| Adopting definition list to indent text
 
| Adopting definition list to indent text
 +
| <pre>
 +
: Single indent
 +
:: Double indent
 +
::::: Multiple indent
 +
</pre>
 +
----
 +
{{note|This workaround may be controversial from the viewpoint of accessibility.}}
 
|
 
|
<pre>:Single indent
+
: Single indent
::Double indent
+
:: Double indent
:::::Multiple indent</pre>
+
::::: Multiple indent
This adoption may be controversial from the viewpoint of accessibility.
 
|
 
:Single indent
 
::Double indent
 
:::::Multiple indent
 
 
|-
 
|-
 
| Mixture of different types of list
 
| Mixture of different types of list
Line 127: Line 163:
 
# four
 
# four
 
#: four def one
 
#: four def one
#: this rather looks like the continuation of # four
+
#: this looks like a continuation
#: and thus often used instead of <br />
+
#: and is often used
 +
#: instead<br />of &lt;nowiki><br />&lt;/nowiki>
 
# five
 
# five
 
## five sub 1
 
## five sub 1
 
### five sub 1 sub 1
 
### five sub 1 sub 1
 
## five sub 2
 
## five sub 2
;item 1
 
:* definition 1-1
 
:* definition 1-2
 
:
 
;item 2
 
:# definition 2-1
 
:# definition 2-2
 
 
</pre>
 
</pre>
The usage of <code>#:</code> and <code>*:</code> for breaking a line within an item may also be controversial.
+
----
 +
{{note|The usage of <code>#:</code> and <code>*:</code> for breaking a line within an item may also be controversial.}}
 
|
 
|
 
# one
 
# one
Line 152: Line 183:
 
# four
 
# four
 
#: four def one
 
#: four def one
#: this rather looks like the continuation of <code># four</code>
+
#: this looks like a continuation
#: and thus often used instead of <code><nowiki><br /></nowiki></code>
+
#: and is often used
 +
#: instead<br />of <nowiki><br /></nowiki>
 
# five
 
# five
 
## five sub 1
 
## five sub 1
 
### five sub 1 sub 1
 
### five sub 1 sub 1
 
## five sub 2
 
## five sub 2
;item 1
 
:* definition 1-1
 
:* definition 1-2
 
:
 
;item 2
 
:# definition 2-1
 
:# definition 2-2
 
|-
 
 
|-
 
|-
|Preformatted text
+
| Preformatted text{{anchor|pre}}
|
+
| <pre>
<pre>
+
  Start each line with a space.
  preformatted text is done with
+
  Text is '''preformatted''' and
  a '''space''' at the
+
  ''markups'' '''''can''''' be done
  ''beginning'' of the line
 
 
</pre>
 
</pre>
This way of preformatting only applies to section formatting, and character formatting markups are still effective.
+
----
 +
{{note|This way of preformatting only applies to section formatting. Character formatting markups are still effective.}}
 
|
 
|
  preformatted text is done with
+
  Start each line with a space.
  a '''space''' at the
+
  Text is '''preformatted''' and
  ''beginning'' of the line
+
  ''markups'' '''''can''''' be done
 
|}
 
|}
  
 
== Paragraphs ==
 
== 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><nowiki><br /></nowiki></code>.
+
MediaWiki ignores single 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 ==
+
== HTML tags ==
Some [[wikipedia:HTML|HTML]] tags are allowed in MediaWiki, for example <code><nowiki><code></nowiki></code>, <code><nowiki><div></nowiki></code>, <code><nowiki><span></nowiki></code> and <code><nowiki><font></nowiki></code>. These apply anywhere you insert them.
+
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"
 
{| class="wikitable"
!Description
+
! Description
!You type
+
! width=40% | You type
!You get
+
! width=40% | You get
 +
|-
 +
| Underline
 +
| <pre>
 +
<u>Underline</u>
 +
</pre>
 +
|
 +
<u>Underline</u>
 
|-
 
|-
|Fixed width text
+
| Strikethrough
 +
| <pre>
 +
<del>Strikethrough</del>
 +
 
 +
or
 +
 
 +
<s>Strikethrough</s>
 +
</pre>
 
|
 
|
<pre><tt>Fixed width text</tt></pre>
+
<del>Strikethrough</del>
 +
 
 +
or
 +
 
 +
<s>Strikethrough</s>
 +
|-
 +
| Fixed width text
 +
| <pre>
 +
<code>Source code</code>
 +
 
 +
or
 +
 
 +
<tt>Fixed width text</tt>
 +
</pre>
 
|
 
|
 +
<code>Source code</code>
 +
 +
or
 +
 
<tt>Fixed width text</tt>
 
<tt>Fixed width text</tt>
 
|-
 
|-
|Blockquotes
+
| Blockquotes
 +
| <pre>
 +
text above
 +
text above
 +
<blockquote>blockquote</blockquote>
 +
text below
 +
text below
 +
</pre>
 
|
 
|
<pre>
+
text above
text text text text text text text text text text text text
+
text above
text text text text text text text text text text text text
+
<blockquote>blockquote</blockquote>
<blockquote> quote quote quote quote quote quote </blockquote>
+
text below
text text text text text text text text text text text text
+
text below
 +
|-
 +
| Comment
 +
| <pre>
 +
<!-- This is a comment -->
 +
Comments are only visible
 +
in the edit window.
 
</pre>
 
</pre>
 
|
 
|
text text text text text text text text text text text text
+
<!-- This is a comment -->
text text text text text text text text text text text text
+
Comments are only visible
<blockquote>  quote quote quote quote quote quote </blockquote>
+
in the edit window.
text text text text text text text text text text text text
 
 
|-
 
|-
|Comment
+
| Completely preformatted text
 +
| <pre>
 +
<pre> Text is '''preformatted''' and
 +
''markups'' '''''cannot''''' be done&lt;/pre>
 +
</pre>
 +
----
 +
{{note|For marking up of preformatted text, check the "Preformatted text" entry at the bottom of the previous table.}}
 
|
 
|
<pre><!--This is comment--></pre>
+
<pre> Text is '''preformatted''' and
|
+
''markups'' '''''cannot''''' be done</pre>
<!--This is comment-->
+
</pre>
 
|-
 
|-
|Completely preformatted text
+
| '''Customized''' preformatted text
 +
| <pre>
 +
<pre style="color:red">
 +
Text is '''preformatted'''
 +
with a style and
 +
''markups'' '''''cannot''''' be done
 +
&lt;/pre>
 +
</pre>
 +
----
 +
{{note|A CSS style can be named within the <code>style</code> property.}}
 
|
 
|
<pre><pre>this way, all markups are '''ignored'''&lt;/pre></pre>
+
<pre style="color:red">
|
+
Text is '''preformatted'''
<pre>
+
with a style and
this way, all markups are '''ignored'''</pre>
+
''markups'' '''''cannot''''' be done
 +
</pre>
 +
|}
 +
 
 +
== HTML symbols ==
 +
An HTML symbol entity is a sequence of characters that produces one particular character. For example, <code>&amp;rarr;</code> produces a right arrow "<code>&rarr;</code>" and <code>&amp;mdash;</code> produces an em dash "<code>&mdash;</code>". HTML symbol entities are allowed in MediaWiki and are sometimes used in advanced editing for two main reasons: to insert characters not normally available on keyboards:
 +
 
 +
:<tt>&amp;copy;</tt>&nbsp;&rarr; '''&copy;'''
 +
:<tt>&amp;delta;</tt>&nbsp;&rarr; '''&delta;'''
 +
 
 +
and to prevent the parser from interpreting and displaying HTML tags and symbols:
 +
 
 +
:<tt>&amp;amp;euro;</tt>&nbsp;&rarr; '''<tt>&amp;euro;</tt>'''
 +
:<tt>&amp;euro;</tt>&nbsp;&rarr; '''&euro;'''
 +
 
 +
:<tt>&amp;lt;span style="color:green;">Green&amp;lt;/span></tt>&nbsp;&rarr; '''<tt>&lt;span style="color:green;">Green&lt;/span></tt>'''
 +
:<tt>&lt;span style="color:green;">Green&lt;/span></tt>&nbsp;&rarr; '''<span style="color:green;">Green</span>'''
 +
 
 +
The following is a list of characters that can be produced using HTML symbols. Hover any character to find out the symbol that produces it. Some symbols not available in the current font will appear as empty squares.
 +
 
 +
{| class="wikitable" align=center width=100%
 +
! colspan=32 | HTML Symbol Entities
 +
|- align=center
 +
| <span title="&amp;Aacute;">&Aacute;</span>
 +
| <span title="&amp;aacute;">&aacute;</span>
 +
| <span title="&amp;Acirc;">&Acirc;</span>
 +
| <span title="&amp;acirc;">&acirc;</span>
 +
| <span title="&amp;acute;">&acute;</span>
 +
| <span title="&amp;AElig;">&AElig;</span>
 +
| <span title="&amp;aelig;">&aelig;</span>
 +
| <span title="&amp;Agrave;">&Agrave;</span>
 +
| <span title="&amp;agrave;">&agrave;</span>
 +
| <span title="&amp;alefsym;">&alefsym;</span>
 +
| <span title="&amp;Alpha;">&Alpha;</span>
 +
| <span title="&amp;alpha;">&alpha;</span>
 +
| <span title="&amp;amp;">&amp;</span>
 +
| <span title="&amp;and;">&and;</span>
 +
| <span title="&amp;ang;">&ang;</span>
 +
| <span title="&amp;Aring;">&Aring;</span>
 +
| <span title="&amp;aring;">&aring;</span>
 +
| <span title="&amp;asymp;">&asymp;</span>
 +
| <span title="&amp;Atilde;">&Atilde;</span>
 +
| <span title="&amp;atilde;">&atilde;</span>
 +
| <span title="&amp;Auml;">&Auml;</span>
 +
| <span title="&amp;auml;">&auml;</span>
 +
| <span title="&amp;bdquo;">&bdquo;</span>
 +
| <span title="&amp;Beta;">&Beta;</span>
 +
| <span title="&amp;beta;">&beta;</span>
 +
| <span title="&amp;brvbar;">&brvbar;</span>
 +
| <span title="&amp;bull;">&bull;</span>
 +
| <span title="&amp;cap;">&cap;</span>
 +
| <span title="&amp;Ccedil;">&Ccedil;</span>
 +
| <span title="&amp;ccedil;">&ccedil;</span>
 +
| <span title="&amp;cedil;">&cedil;</span>
 +
| <span title="&amp;cent;">&cent;</span>
 +
|- align=center
 +
| <span title="&amp;Chi;">&Chi;</span>
 +
| <span title="&amp;chi;">&chi;</span>
 +
| <span title="&amp;circ;">&circ;</span>
 +
| <span title="&amp;clubs;">&clubs;</span>
 +
| <span title="&amp;cong;">&cong;</span>
 +
| <span title="&amp;copy;">&copy;</span>
 +
| <span title="&amp;crarr;">&crarr;</span>
 +
| <span title="&amp;cup;">&cup;</span>
 +
| <span title="&amp;curren;">&curren;</span>
 +
| <span title="&amp;dagger;">&dagger;</span>
 +
| <span title="&amp;Dagger;">&Dagger;</span>
 +
| <span title="&amp;darr;">&darr;</span>
 +
| <span title="&amp;dArr;">&dArr;</span>
 +
| <span title="&amp;deg;">&deg;</span>
 +
| <span title="&amp;Delta;">&Delta;</span>
 +
| <span title="&amp;delta;">&delta;</span>
 +
| <span title="&amp;diams;">&diams;</span>
 +
| <span title="&amp;divide;">&divide;</span>
 +
| <span title="&amp;Eacute;">&Eacute;</span>
 +
| <span title="&amp;eacute;">&eacute;</span>
 +
| <span title="&amp;Ecirc;">&Ecirc;</span>
 +
| <span title="&amp;ecirc;">&ecirc;</span>
 +
| <span title="&amp;Egrave;">&Egrave;</span>
 +
| <span title="&amp;egrave;">&egrave;</span>
 +
| <span title="&amp;empty;">&empty;</span>
 +
| <span title="&amp;emsp;">&emsp;</span>
 +
| <span title="&amp;ensp;">&ensp;</span>
 +
| <span title="&amp;Epsilon;">&Epsilon;</span>
 +
| <span title="&amp;epsilon;">&epsilon;</span>
 +
| <span title="&amp;equiv;">&equiv;</span>
 +
| <span title="&amp;Eta;">&Eta;</span>
 +
| <span title="&amp;eta;">&eta;</span>
 +
|- align=center
 +
| <span title="&amp;ETH;">&ETH;</span>
 +
| <span title="&amp;eth;">&eth;</span>
 +
| <span title="&amp;Euml;">&Euml;</span>
 +
| <span title="&amp;euml;">&euml;</span>
 +
| <span title="&amp;euro;">&euro;</span>
 +
| <span title="&amp;exist;">&exist;</span>
 +
| <span title="&amp;fnof;">&fnof;</span>
 +
| <span title="&amp;forall;">&forall;</span>
 +
| <span title="&amp;frac12;">&frac12;</span>
 +
| <span title="&amp;frac14;">&frac14;</span>
 +
| <span title="&amp;frac34;">&frac34;</span>
 +
| <span title="&amp;frasl;">&frasl;</span>
 +
| <span title="&amp;Gamma;">&Gamma;</span>
 +
| <span title="&amp;gamma;">&gamma;</span>
 +
| <span title="&amp;ge;">&ge;</span>
 +
| <span title="&amp;gt;">&gt;</span>
 +
| <span title="&amp;harr;">&harr;</span>
 +
| <span title="&amp;hArr;">&hArr;</span>
 +
| <span title="&amp;hearts;">&hearts;</span>
 +
| <span title="&amp;hellip;">&hellip;</span>
 +
| <span title="&amp;Iacute;">&Iacute;</span>
 +
| <span title="&amp;iacute;">&iacute;</span>
 +
| <span title="&amp;Icirc;">&Icirc;</span>
 +
| <span title="&amp;icirc;">&icirc;</span>
 +
| <span title="&amp;iexcl;">&iexcl;</span>
 +
| <span title="&amp;Igrave;">&Igrave;</span>
 +
| <span title="&amp;igrave;">&igrave;</span>
 +
| <span title="&amp;image;">&image;</span>
 +
| <span title="&amp;infin;">&infin;</span>
 +
| <span title="&amp;int;">&int;</span>
 +
| <span title="&amp;Iota;">&Iota;</span>
 +
| <span title="&amp;iota;">&iota;</span>
 +
|- align=center
 +
| <span title="&amp;iquest;">&iquest;</span>
 +
| <span title="&amp;isin;">&isin;</span>
 +
| <span title="&amp;Iuml;">&Iuml;</span>
 +
| <span title="&amp;iuml;">&iuml;</span>
 +
| <span title="&amp;Kappa;">&Kappa;</span>
 +
| <span title="&amp;kappa;">&kappa;</span>
 +
| <span title="&amp;Lambda;">&Lambda;</span>
 +
| <span title="&amp;lambda;">&lambda;</span>
 +
| <span title="&amp;lang;">&lang;</span>
 +
| <span title="&amp;laquo;">&laquo;</span>
 +
| <span title="&amp;larr;">&larr;</span>
 +
| <span title="&amp;lArr;">&lArr;</span>
 +
| <span title="&amp;lceil;">&lceil;</span>
 +
| <span title="&amp;ldquo;">&ldquo;</span>
 +
| <span title="&amp;le;">&le;</span>
 +
| <span title="&amp;lfloor;">&lfloor;</span>
 +
| <span title="&amp;lowast;">&lowast;</span>
 +
| <span title="&amp;loz;">&loz;</span>
 +
| <span title="&amp;lrm;">&lrm;</span>
 +
| <span title="&amp;lsaquo;">&lsaquo;</span>
 +
| <span title="&amp;lsquo;">&lsquo;</span>
 +
| <span title="&amp;lt;">&lt;</span>
 +
| <span title="&amp;macr;">&macr;</span>
 +
| <span title="&amp;mdash;">&mdash;</span>
 +
| <span title="&amp;micro;">&micro;</span>
 +
| <span title="&amp;middot;">&middot;</span>
 +
| <span title="&amp;minus;">&minus;</span>
 +
| <span title="&amp;Mu;">&Mu;</span>
 +
| <span title="&amp;mu;">&mu;</span>
 +
| <span title="&amp;nabla;">&nabla;</span>
 +
| <span title="&amp;nbsp;">&nbsp;</span>
 +
| <span title="&amp;ndash;">&ndash;</span>
 +
|- align=center
 +
| <span title="&amp;ne;">&ne;</span>
 +
| <span title="&amp;ni;">&ni;</span>
 +
| <span title="&amp;not;">&not;</span>
 +
| <span title="&amp;notin;">&notin;</span>
 +
| <span title="&amp;nsub;">&nsub;</span>
 +
| <span title="&amp;Ntilde;">&Ntilde;</span>
 +
| <span title="&amp;ntilde;">&ntilde;</span>
 +
| <span title="&amp;Nu;">&Nu;</span>
 +
| <span title="&amp;nu;">&nu;</span>
 +
| <span title="&amp;Oacute;">&Oacute;</span>
 +
| <span title="&amp;oacute;">&oacute;</span>
 +
| <span title="&amp;Ocirc;">&Ocirc;</span>
 +
| <span title="&amp;ocirc;">&ocirc;</span>
 +
| <span title="&amp;OElig;">&OElig;</span>
 +
| <span title="&amp;oelig;">&oelig;</span>
 +
| <span title="&amp;Ograve;">&Ograve;</span>
 +
| <span title="&amp;ograve;">&ograve;</span>
 +
| <span title="&amp;oline;">&oline;</span>
 +
| <span title="&amp;Omega;">&Omega;</span>
 +
| <span title="&amp;omega;">&omega;</span>
 +
| <span title="&amp;Omicron;">&Omicron;</span>
 +
| <span title="&amp;omicron;">&omicron;</span>
 +
| <span title="&amp;oplus;">&oplus;</span>
 +
| <span title="&amp;or;">&or;</span>
 +
| <span title="&amp;ordf;">&ordf;</span>
 +
| <span title="&amp;ordm;">&ordm;</span>
 +
| <span title="&amp;Oslash;">&Oslash;</span>
 +
| <span title="&amp;oslash;">&oslash;</span>
 +
| <span title="&amp;Otilde;">&Otilde;</span>
 +
| <span title="&amp;otilde;">&otilde;</span>
 +
| <span title="&amp;otimes;">&otimes;</span>
 +
| <span title="&amp;Ouml;">&Ouml;</span>
 +
|- align=center
 +
| <span title="&amp;ouml;">&ouml;</span>
 +
| <span title="&amp;para;">&para;</span>
 +
| <span title="&amp;part;">&part;</span>
 +
| <span title="&amp;permil;">&permil;</span>
 +
| <span title="&amp;perp;">&perp;</span>
 +
| <span title="&amp;Phi;">&Phi;</span>
 +
| <span title="&amp;phi;">&phi;</span>
 +
| <span title="&amp;Pi;">&Pi;</span>
 +
| <span title="&amp;pi;">&pi;</span>
 +
| <span title="&amp;piv;">&piv;</span>
 +
| <span title="&amp;plusmn;">&plusmn;</span>
 +
| <span title="&amp;pound;">&pound;</span>
 +
| <span title="&amp;prime;">&prime;</span>
 +
| <span title="&amp;Prime;">&Prime;</span>
 +
| <span title="&amp;prod;">&prod;</span>
 +
| <span title="&amp;prop;">&prop;</span>
 +
| <span title="&amp;Psi;">&Psi;</span>
 +
| <span title="&amp;psi;">&psi;</span>
 +
| <span title="&amp;quot;">&quot;</span>
 +
| <span title="&amp;radic;">&radic;</span>
 +
| <span title="&amp;rang;">&rang;</span>
 +
| <span title="&amp;raquo;">&raquo;</span>
 +
| <span title="&amp;rarr;">&rarr;</span>
 +
| <span title="&amp;rArr;">&rArr;</span>
 +
| <span title="&amp;rceil;">&rceil;</span>
 +
| <span title="&amp;rdquo;">&rdquo;</span>
 +
| <span title="&amp;real;">&real;</span>
 +
| <span title="&amp;reg;">&reg;</span>
 +
| <span title="&amp;rfloor;">&rfloor;</span>
 +
| <span title="&amp;Rho;">&Rho;</span>
 +
| <span title="&amp;rho;">&rho;</span>
 +
| <span title="&amp;rlm;">&rlm;</span>
 +
|- align=center
 +
| <span title="&amp;rsaquo;">&rsaquo;</span>
 +
| <span title="&amp;rsquo;">&rsquo;</span>
 +
| <span title="&amp;sbquo;">&sbquo;</span>
 +
| <span title="&amp;Scaron;">&Scaron;</span>
 +
| <span title="&amp;scaron;">&scaron;</span>
 +
| <span title="&amp;sdot;">&sdot;</span>
 +
| <span title="&amp;sect;">&sect;</span>
 +
| <span title="&amp;shy;">&shy;</span>
 +
| <span title="&amp;Sigma;">&Sigma;</span>
 +
| <span title="&amp;sigma;">&sigma;</span>
 +
| <span title="&amp;sigmaf;">&sigmaf;</span>
 +
| <span title="&amp;sim;">&sim;</span>
 +
| <span title="&amp;spades;">&spades;</span>
 +
| <span title="&amp;sub;">&sub;</span>
 +
| <span title="&amp;sube;">&sube;</span>
 +
| <span title="&amp;sum;">&sum;</span>
 +
| <span title="&amp;sup;">&sup;</span>
 +
| <span title="&amp;sup1;">&sup1;</span>
 +
| <span title="&amp;sup2;">&sup2;</span>
 +
| <span title="&amp;sup3;">&sup3;</span>
 +
| <span title="&amp;supe;">&supe;</span>
 +
| <span title="&amp;szlig;">&szlig;</span>
 +
| <span title="&amp;Tau;">&Tau;</span>
 +
| <span title="&amp;tau;">&tau;</span>
 +
| <span title="&amp;there4;">&there4;</span>
 +
| <span title="&amp;Theta;">&Theta;</span>
 +
| <span title="&amp;theta;">&theta;</span>
 +
| <span title="&amp;thetasym;">&thetasym;</span>
 +
| <span title="&amp;thinsp;">&thinsp;</span>
 +
| <span title="&amp;THORN;">&THORN;</span>
 +
| <span title="&amp;thorn;">&thorn;</span>
 +
| <span title="&amp;tilde;">&tilde;</span>
 +
|- align=center
 +
| <span title="&amp;times;">&times;</span>
 +
| <span title="&amp;trade;">&trade;</span>
 +
| <span title="&amp;Uacute;">&Uacute;</span>
 +
| <span title="&amp;uacute;">&uacute;</span>
 +
| <span title="&amp;uarr;">&uarr;</span>
 +
| <span title="&amp;uArr;">&uArr;</span>
 +
| <span title="&amp;Ucirc;">&Ucirc;</span>
 +
| <span title="&amp;ucirc;">&ucirc;</span>
 +
| <span title="&amp;Ugrave;">&Ugrave;</span>
 +
| <span title="&amp;ugrave;">&ugrave;</span>
 +
| <span title="&amp;uml;">&uml;</span>
 +
| <span title="&amp;upsih;">&upsih;</span>
 +
| <span title="&amp;Upsilon;">&Upsilon;</span>
 +
| <span title="&amp;upsilon;">&upsilon;</span>
 +
| <span title="&amp;Uuml;">&Uuml;</span>
 +
| <span title="&amp;uuml;">&uuml;</span>
 +
| <span title="&amp;weierp;">&weierp;</span>
 +
| <span title="&amp;Xi;">&Xi;</span>
 +
| <span title="&amp;xi;">&xi;</span>
 +
| <span title="&amp;Yacute;">&Yacute;</span>
 +
| <span title="&amp;yacute;">&yacute;</span>
 +
| <span title="&amp;yen;">&yen;</span>
 +
| <span title="&amp;yuml;">&yuml;</span>
 +
| <span title="&amp;Yuml;">&Yuml;</span>
 +
| <span title="&amp;Zeta;">&Zeta;</span>
 +
| <span title="&amp;zeta;">&zeta;</span>
 +
| <span title="&amp;zwj;">&zwj;</span>
 +
| <span title="&amp;zwnj;">&zwnj;</span>
 
|}
 
|}
{{Admin tip|tip=If you trust your users you can allow full HTML by setting <code>{{mediawiki|Manual:$wgRawHtml|$wgRawHtml}} = true;</code> in {{mediawiki|Manual:LocalSettings.php|LocalSettings.php}}.}}
 
  
 
== Other formatting ==
 
== Other formatting ==
 
Beyond the text formatting markup shown above, here are some other formatting references:
 
Beyond the text formatting markup shown above, here are some other formatting references:
*[[Help:Links|Links]]
+
 
*[[Help:Images|Images]]
+
* [[Help:Links|Links]]
*[[Help:Tables|Tables]]
+
* [[Help:Images|Images]]
 +
* [[Help:Tables|Tables]]
  
 
{{Languages}}
 
{{Languages}}
  
 
[[Category:Help|Formatting]]
 
[[Category:Help|Formatting]]

Latest revision as of 18:12, 20 January 2011

PD Important note: When you edit this page, you agree to release your contribution into the public domain. If you don't want this or can't do this because of license restrictions, please don't edit. This page is one of the Public Domain Help Pages, which can be freely copied into fresh wiki installations and/or distributed with MediaWiki software; see Help:Contents for an overview of all pages. See Project:PD help/Copying for instructions. PD

You can format your text using wiki markup. This consists of normal characters like asterisks, single quotes or equal signs 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 pairs of single quotes like ''this''.

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 2 ==
=== Level 3 ===
==== Level 4 ====
===== Level 5 =====
====== Level 6 ======

<templatestyles src="Note/styles.css" />

Level 2

Level 3

Level 4

Level 5
Level 6
Horizontal rule
Text above
----
Text below

Text above


Text below

Bullet list
* Start each line
* with an [[Wikipedia:asterisk|asterisk]] (*).
** More asterisks gives deeper
*** and deeper levels.
* Line breaks<br />don't break levels.
*** But jumping levels creates empty space.
Any other start ends the list.
  • Start each line
  • with an asterisk (*).
    • More asterisks gives deeper
      • and deeper levels.
  • Line breaks
    don't break levels.
      • But jumping levels creates empty space.

Any other start ends the list.

Numbered list
# Start each line
# with a [[Wikipedia:Number_sign|number sign]] (#).
## More number signs gives deeper
### and deeper
### levels.
# Line breaks<br />don't break levels.
### But jumping levels creates empty space.
# Blank lines

# end the list and start another.
Any other start also
ends the list.
  1. Start each line
  2. with a number sign (#).
    1. More number signs gives deeper
      1. and deeper
      2. levels.
  3. Line breaks
    don't break levels.
      1. But jumping levels creates empty space.
  4. Blank lines
  1. end the list and start another.

Any other start also ends the list.

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

<templatestyles src="Note/styles.css" />
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 looks like a continuation
#: and is often used
#: instead<br />of <nowiki><br /></nowiki>
# five
## five sub 1
### five sub 1 sub 1
## five sub 2

<templatestyles src="Note/styles.css" />
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 looks like a continuation
    and is often used
    instead
    of <br />
  5. five
    1. five sub 1
      1. five sub 1 sub 1
    2. five sub 2
Preformatted text
 Start each line with a space.
 Text is '''preformatted''' and
 ''markups'' '''''can''''' be done

<templatestyles src="Note/styles.css" />
This way of preformatting only applies to section formatting. Character formatting markups are still effective.
Start each line with a space.
Text is preformatted and
markups can be done

Paragraphs

MediaWiki ignores single 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 tags

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
Underline
<u>Underline</u>

Underline

Strikethrough
<del>Strikethrough</del>

or

<s>Strikethrough</s>

Strikethrough

or

Strikethrough

Fixed width text
<code>Source code</code>

or

<tt>Fixed width text</tt>

Source code

or

Fixed width text

Blockquotes
text above
text above
<blockquote>blockquote</blockquote>
text below
text below

text above text above

blockquote

text below text below

Comment
<!-- This is a comment -->
Comments are only visible
in the edit window.

Comments are only visible in the edit window.

Completely preformatted text
<pre> Text is '''preformatted''' and
''markups'' '''''cannot''''' be done</pre>

<templatestyles src="Note/styles.css" />
For marking up of preformatted text, check the "Preformatted text" entry at the bottom of the previous table.
 Text is '''preformatted''' and
''markups'' '''''cannot''''' be done
Customized preformatted text
<pre style="color:red">
Text is '''preformatted'''
with a style and
''markups'' '''''cannot''''' be done
</pre>

<templatestyles src="Note/styles.css" />
A CSS style can be named within the style property.
Text is '''preformatted'''
with a style and
''markups'' '''''cannot''''' be done

HTML symbols

An HTML symbol entity is a sequence of characters that produces one particular character. For example, &rarr; produces a right arrow "" and &mdash; produces an em dash "". HTML symbol entities are allowed in MediaWiki and are sometimes used in advanced editing for two main reasons: to insert characters not normally available on keyboards:

&copy; → ©
&delta; → δ

and to prevent the parser from interpreting and displaying HTML tags and symbols:

&amp;euro; → &euro;
&euro; →
&lt;span style="color:green;">Green&lt;/span> → <span style="color:green;">Green</span>
<span style="color:green;">Green</span> → Green

The following is a list of characters that can be produced using HTML symbols. Hover any character to find out the symbol that produces it. Some symbols not available in the current font will appear as empty squares.

HTML Symbol Entities
Á á Â â ´ Æ æ À à Α α & Å å Ã ã Ä ä Β β ¦ Ç ç ¸ ¢
Χ χ ˆ © ¤ ° Δ δ ÷ É é Ê ê È è Ε ε Η η
Ð ð Ë ë ƒ ½ ¼ ¾ Γ γ > Í í Î î ¡ Ì ì Ι ι
¿ Ï ï Κ κ Λ λ « < ¯ µ · Μ μ  
¬ Ñ ñ Ν ν Ó ó Ô ô Œ œ Ò ò Ω ω Ο ο ª º Ø ø Õ õ Ö
ö Φ φ Π π ϖ ± £ Ψ ψ " » ® Ρ ρ
Š š § ­ Σ σ ς ¹ ² ³ ß Τ τ Θ θ ϑ Þ þ ˜
× Ú ú Û û Ù ù ¨ ϒ Υ υ Ü ü Ξ ξ Ý ý ¥ ÿ Ÿ Ζ ζ

Other formatting

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

Language: English