21,821 bytes added,
23:16, 19 August 2012
You can format your text by 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 ==
{| class="wikitable"
! Description
! width=40% | You type
! width=40% | You get
|-
! colspan="3" style="background:#ABE" | character (inline) formatting – ''applies anywhere''
|-
| Italic text
| <pre>
''italic''
</pre>
|
''italic''
|-
| Bold text
| <pre>
'''bold'''
</pre>
|
'''bold'''
|-
| Bold and italic
| <pre>
'''''bold & italic'''''
</pre>
|
'''''bold & italic'''''
|-
| Strike text
| <pre>
<strike> strike text </strike>
</pre>
|<strike> strike text </strike>
|-
| Escape wiki markup
| <pre>
<nowiki>no ''markup''</nowiki>
</pre>
|
<nowiki>no ''markup''</nowiki>
|-
| Escape wiki markup once
| <pre>
[[API]]<nowiki/>extension
</pre>
|
[[API]]<nowiki/>extension
|-
! colspan="3" style="background:#ABE" | section formatting – ''only at the beginning of the line''
|-
| 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]].
}}
|
== Level 2 ==
=== Level 3 ===
==== Level 4 ====
===== Level 5 =====
====== Level 6 ======
|-
| Horizontal rule
| <pre>
Text above
----
Text below
</pre>
|
Text above
----
Text below
|-
| Bullet list
|
<pre>
* 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.
</pre>
|
* 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.
|-
| Numbered list
|
<pre>
# 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.
</pre>
|
# 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.
|-
| 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
|-
| Indent text
| <pre>
: Single indent
:: Double indent
::::: Multiple indent
</pre>
----
{{Note|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 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
</pre>
----
{{note|The usage of <code>#:</code> and <code>*:</code> for breaking a line within an item may also be controversial.}}
|
# 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{{anchor|pre}}
|-
| Preformatted text
| <pre>
Start each line with a space.
Text is '''preformatted''' and
''markups'' '''''can''''' be done.
</pre>
----
{{note|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.
|-
| Preformatted text blocks
| <pre> <nowiki><nowiki>Start with a space in the first column,
(before the <nowiki>).
Then your block format will be
maintained.
This is good for copying in code blocks:
def function():
"""documentation string"""
if True:
print True
else:
print False</nowiki></nowiki>
</pre>
|
<nowiki>Start with a space in the first column,
(before the <nowiki>).
Then your block format will be
maintained.
This is good for copying in code blocks:
def function():
"""documentation string"""
if True:
print True
else:
print False</nowiki>
|}
== 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 tag <code><br/></code>.
== HTML tags ==
Some [[wikipedia:HTML|HTML]] tags are allowed in MediaWiki, for example <code><code></code>, <code><div></code>, <code><nowiki><span></nowiki></code> and <code><nowiki><font></nowiki></code>. These apply anywhere you insert them.
{| class="wikitable"
! Description
! width=40% | You type
! width=40% | You get
|-
| Inserted<br/>(Displays as underline in most browsers.)
| <pre>
<ins>Inserted</ins>
or
<span style="text-decoration: underline;">Underline</span>
</pre>
|
<ins>Inserted</ins>
or
<span style="text-decoration: underline;">Underline</span>
|-
| Deleted<br/>(Displays as strikethrough in most browsers.)
| <pre>
<del>Deleted</del>
or
<span style="text-decoration:line-through;">Deleted</span>
</pre>
|
<del>Deleted</del>
or
<span style="text-decoration:line-through;">Deleted</span>
|-
| 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>
|-
| Blockquotes
| <pre>
text above
text above
<blockquote>blockquote</blockquote>
text below
text below
</pre>
|
text above
text above
<blockquote>blockquote</blockquote>
text below
text below
|-
| Comment
| <pre>
<!-- This is a comment -->
Comments are only visible
in the edit window.
</pre>
|
<!-- This is a comment -->
Comments are only visible
in the edit window.
|-
| Completely preformatted text
| <pre>
<pre> Text is '''preformatted''' and
''markups'' '''''cannot''''' be done</pre>
</pre>
----
{{note|For marking up of preformatted text, check the "Preformatted text" entry at the bottom of the previous table.}}
|
<pre> Text is '''preformatted''' and
''markups'' '''''cannot''''' be done</pre>
|-
| '''Customized''' preformatted text
| <pre>
<pre style="color:red">
Text is '''preformatted'''
with a style and
''markups'' '''''cannot''''' be done
</pre>
</pre>
----
{{note|A CSS style can be named within the <code>style</code> property.}}
|
<pre style="color:red">
Text is '''preformatted'''
with a style and
''markups'' '''''cannot''''' be done
</pre>
|-
| '''Customized''' preformatted text with text wrap according to screen width
| <pre>
<pre style="white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word">
This longer sentence is used to demonstrate text wrapping.
</pre>
</pre>
|
<pre style="white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word">
This longer sentence is used to demonstrate text wrapping.
</pre>
|-
| Preformatted text with text wrap according to screen width
| <pre>
<code>
This longer sentence is used to demonstrate text wrapping.
</code>
</pre>
| <code>
This longer sentence is used to demonstrate text wrapping.
</code>
|}
== Inserting symbols ==
Symbols and other special characters not available on your keyboard can be inserted through a special sequence of characters. Those sequences are called HTML entities. For example, the following sequence (entity) '''&rarr;''' when inserted will be shown as <ins>right arrow</ins> HTML symbol → and '''&mdash;''' when inserted will be shown as an <ins>em dash</ins> HTML symbol —
----
{{note|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="&Aacute;">Á</span>
| '''<span title="&aacute;">á</span>
| '''<span title="&Acirc;">Â</span>
| '''<span title="&acirc;">â</span>
| '''<span title="&acute;">´</span>
| '''<span title="&AElig;">Æ</span>
| '''<span title="&aelig;">æ</span>
| '''<span title="&Agrave;">À</span>
| '''<span title="&agrave;">à</span>
| '''<span title="&alefsym;">ℵ</span>
| '''<span title="&Alpha;">Α</span>
| '''<span title="&alpha;">α</span>
| '''<span title="&amp;">&</span>
| '''<span title="&and;">∧</span>
| '''<span title="&ang;">∠</span>
| '''<span title="&Aring;">Å</span>
| '''<span title="&aring;">å</span>
| '''<span title="&asymp;">≈</span>
| '''<span title="&Atilde;">Ã</span>
| '''<span title="&atilde;">ã</span>
| '''<span title="&Auml;">Ä</span>
| '''<span title="&auml;">ä</span>
| '''<span title="&bdquo;">„</span>
| '''<span title="&Beta;">Β</span>
| '''<span title="&beta;">β</span>
| '''<span title="&brvbar;">¦</span>
| '''<span title="&bull;">•</span>
| '''<span title="&cap;">∩</span>
| '''<span title="&Ccedil;">Ç</span>
| '''<span title="&ccedil;">ç</span>
| '''<span title="&cedil;">¸</span>
| '''<span title="&cent;">¢</span>
|- align=center
| '''<span title="&Chi;">Χ</span>
| '''<span title="&chi;">χ</span>
| '''<span title="&circ;">ˆ</span>
| '''<span title="&clubs;">♣</span>
| '''<span title="&cong;">≅</span>
| '''<span title="&copy;">©</span>
| '''<span title="&crarr;">↵</span>
| '''<span title="&cup;">∪</span>
| '''<span title="&curren;">¤</span>
| '''<span title="&dagger;">†</span>
| '''<span title="&Dagger;">‡</span>
| '''<span title="&darr;">↓</span>
| '''<span title="&dArr;">⇓</span>
| '''<span title="&deg;">°</span>
| '''<span title="&Delta;">Δ</span>
| '''<span title="&delta;">δ</span>
| '''<span title="&diams;">♦</span>
| '''<span title="&divide;">÷</span>
| '''<span title="&Eacute;">É</span>
| '''<span title="&eacute;">é</span>
| '''<span title="&Ecirc;">Ê</span>
| '''<span title="&ecirc;">ê</span>
| '''<span title="&Egrave;">È</span>
| '''<span title="&egrave;">è</span>
| '''<span title="&empty;">∅</span>
| '''<span title="&emsp;"> </span>
| '''<span title="&ensp;"> </span>
| '''<span title="&Epsilon;">Ε</span>
| '''<span title="&epsilon;">ε</span>
| '''<span title="&equiv;">≡</span>
| '''<span title="&Eta;">Η</span>
| '''<span title="&eta;">η</span>
|- align=center
| '''<span title="&ETH;">Ð</span>
| '''<span title="&eth;">ð</span>
| '''<span title="&Euml;">Ë</span>
| '''<span title="&euml;">ë</span>
| '''<span title="&euro;">€</span>
| '''<span title="&exist;">∃</span>
| '''<span title="&fnof;">ƒ</span>
| '''<span title="&forall;">∀</span>
| '''<span title="&frac12;">½</span>
| '''<span title="&frac14;">¼</span>
| '''<span title="&frac34;">¾</span>
| '''<span title="&frasl;">⁄</span>
| '''<span title="&Gamma;">Γ</span>
| '''<span title="&gamma;">γ</span>
| '''<span title="&ge;">≥</span>
| '''<span title="&gt;">></span>
| '''<span title="&harr;">↔</span>
| '''<span title="&hArr;">⇔</span>
| '''<span title="&hearts;">♥</span>
| '''<span title="&hellip;">…</span>
| '''<span title="&Iacute;">Í</span>
| '''<span title="&iacute;">í</span>
| '''<span title="&Icirc;">Î</span>
| '''<span title="&icirc;">î</span>
| '''<span title="&iexcl;">¡</span>
| '''<span title="&Igrave;">Ì</span>
| '''<span title="&igrave;">ì</span>
| '''<span title="&image;">ℑ</span>
| '''<span title="&infin;">∞</span>
| '''<span title="&int;">∫</span>
| '''<span title="&Iota;">Ι</span>
| '''<span title="&iota;">ι</span>
|- align=center
| '''<span title="&iquest;">¿</span>
| '''<span title="&isin;">∈</span>
| '''<span title="&Iuml;">Ï</span>
| '''<span title="&iuml;">ï</span>
| '''<span title="&Kappa;">Κ</span>
| '''<span title="&kappa;">κ</span>
| '''<span title="&Lambda;">Λ</span>
| '''<span title="&lambda;">λ</span>
| '''<span title="&lang;">⟨</span>
| '''<span title="&laquo;">«</span>
| '''<span title="&larr;">←</span>
| '''<span title="&lArr;">⇐</span>
| '''<span title="&lceil;">⌈</span>
| '''<span title="&ldquo;">“</span>
| '''<span title="&le;">≤</span>
| '''<span title="&lfloor;">⌊</span>
| '''<span title="&lowast;">∗</span>
| '''<span title="&loz;">◊</span>
| '''<span title="&lrm;">‎</span>
| '''<span title="&lsaquo;">‹</span>
| '''<span title="&lsquo;">‘</span>
| '''<span title="&lt;"><</span>
| '''<span title="&macr;">¯</span>
| '''<span title="&mdash;">—</span>
| '''<span title="&micro;">µ</span>
| '''<span title="&middot;">·</span>
| '''<span title="&minus;">−</span>
| '''<span title="&Mu;">Μ</span>
| '''<span title="&mu;">μ</span>
| '''<span title="&nabla;">∇</span>
| '''<span title="&nbsp;"> </span>
| '''<span title="&ndash;">–</span>
|- align=center
| '''<span title="&ne;">≠</span>
| '''<span title="&ni;">∋</span>
| '''<span title="&not;">¬</span>
| '''<span title="&notin;">∉</span>
| '''<span title="&nsub;">⊄</span>
| '''<span title="&Ntilde;">Ñ</span>
| '''<span title="&ntilde;">ñ</span>
| '''<span title="&Nu;">Ν</span>
| '''<span title="&nu;">ν</span>
| '''<span title="&Oacute;">Ó</span>
| '''<span title="&oacute;">ó</span>
| '''<span title="&Ocirc;">Ô</span>
| '''<span title="&ocirc;">ô</span>
| '''<span title="&OElig;">Œ</span>
| '''<span title="&oelig;">œ</span>
| '''<span title="&Ograve;">Ò</span>
| '''<span title="&ograve;">ò</span>
| '''<span title="&oline;">‾</span>
| '''<span title="&Omega;">Ω</span>
| '''<span title="&omega;">ω</span>
| '''<span title="&Omicron;">Ο</span>
| '''<span title="&omicron;">ο</span>
| '''<span title="&oplus;">⊕</span>
| '''<span title="&or;">∨</span>
| '''<span title="&ordf;">ª</span>
| '''<span title="&ordm;">º</span>
| '''<span title="&Oslash;">Ø</span>
| '''<span title="&oslash;">ø</span>
| '''<span title="&Otilde;">Õ</span>
| '''<span title="&otilde;">õ</span>
| '''<span title="&otimes;">⊗</span>
| '''<span title="&Ouml;">Ö</span>
|- align=center
| '''<span title="&ouml;">ö</span>
| '''<span title="&para;">¶</span>
| '''<span title="&part;">∂</span>
| '''<span title="&permil;">‰</span>
| '''<span title="&perp;">⊥</span>
| '''<span title="&Phi;">Φ</span>
| '''<span title="&phi;">φ</span>
| '''<span title="&Pi;">Π</span>
| '''<span title="&pi;">π</span>
| '''<span title="&piv;">ϖ</span>
| '''<span title="&plusmn;">±</span>
| '''<span title="&pound;">£</span>
| '''<span title="&prime;">′</span>
| '''<span title="&Prime;">″</span>
| '''<span title="&prod;">∏</span>
| '''<span title="&prop;">∝</span>
| '''<span title="&Psi;">Ψ</span>
| '''<span title="&psi;">ψ</span>
| '''<span title="&quot;">"</span>
| '''<span title="&radic;">√</span>
| '''<span title="&rang;">⟩</span>
| '''<span title="&raquo;">»</span>
| '''<span title="&rarr;">→</span>
| '''<span title="&rArr;">⇒</span>
| '''<span title="&rceil;">⌉</span>
| '''<span title="&rdquo;">”</span>
| '''<span title="&real;">ℜ</span>
| '''<span title="&reg;">®</span>
| '''<span title="&rfloor;">⌋</span>
| '''<span title="&Rho;">Ρ</span>
| '''<span title="&rho;">ρ</span>
| '''<span title="&rlm;">‏</span>
|- align=center
| '''<span title="&rsaquo;">›</span>
| '''<span title="&rsquo;">’</span>
| '''<span title="&sbquo;">‚</span>
| '''<span title="&Scaron;">Š</span>
| '''<span title="&scaron;">š</span>
| '''<span title="&sdot;">⋅</span>
| '''<span title="&sect;">§</span>
| '''<span title="&shy;">­</span>
| '''<span title="&Sigma;">Σ</span>
| '''<span title="&sigma;">σ</span>
| '''<span title="&sigmaf;">ς</span>
| '''<span title="&sim;">∼</span>
| '''<span title="&spades;">♠</span>
| '''<span title="&sub;">⊂</span>
| '''<span title="&sube;">⊆</span>
| '''<span title="&sum;">∑</span>
| '''<span title="&sup;">⊃</span>
| '''<span title="&sup1;">¹</span>
| '''<span title="&sup2;">²</span>
| '''<span title="&sup3;">³</span>
| '''<span title="&supe;">⊇</span>
| '''<span title="&szlig;">ß</span>
| '''<span title="&Tau;">Τ</span>
| '''<span title="&tau;">τ</span>
| '''<span title="&there4;">∴</span>
| '''<span title="&Theta;">Θ</span>
| '''<span title="&theta;">θ</span>
| '''<span title="&thetasym;">ϑ</span>
| '''<span title="&thinsp;"> </span>
| '''<span title="&THORN;">Þ</span>
| '''<span title="&thorn;">þ</span>
| '''<span title="&tilde;">˜</span>
|- align=center
| '''<span title="&times;">×</span>
| '''<span title="&trade;">™</span>
| '''<span title="&Uacute;">Ú</span>
| '''<span title="&uacute;">ú</span>
| '''<span title="&uarr;">↑</span>
| '''<span title="&uArr;">⇑</span>
| '''<span title="&Ucirc;">Û</span>
| '''<span title="&ucirc;">û</span>
| '''<span title="&Ugrave;">Ù</span>
| '''<span title="&ugrave;">ù</span>
| '''<span title="&uml;">¨</span>
| '''<span title="&upsih;">ϒ</span>
| '''<span title="&Upsilon;">Υ</span>
| '''<span title="&upsilon;">υ</span>
| '''<span title="&Uuml;">Ü</span>
| '''<span title="&uuml;">ü</span>
| '''<span title="&weierp;">℘</span>
| '''<span title="&Xi;">Ξ</span>
| '''<span title="&xi;">ξ</span>
| '''<span title="&Yacute;">Ý</span>
| '''<span title="&yacute;">ý</span>
| '''<span title="&yen;">¥</span>
| '''<span title="&yuml;">ÿ</span>
| '''<span title="&Yuml;">Ÿ</span>
| '''<span title="&Zeta;">Ζ</span>
| '''<span title="&zeta;">ζ</span>
| '''<span title="&zwj;">‍</span>
| '''<span title="&zwnj;">‌</span>'''
|}
{| class="wikitable"
! Description
! width=40% | You type
! width=40% | You get
|-
| Copyright symbol
| <tt><pre>
&copy;
</pre></tt>
|
:::'''©'''
|-
| Greek delta letter symbol
| <tt><pre>
&delta;
</pre></tt>
|
:::'''δ'''
|-
| Euro currency symbol
| <tt><pre>
&euro;
</pre></tt>
|
:::'''€'''
|}
See the list of all HTML entities on the Wikipedia article [[w:List of HTML entities|List of HTML entities]]. Additionally, MediaWiki supports two non-standard entity reference sequences: <code>&רלמ;</code> and <code>&رلم;</code> which are both considered equivalent to <code>&rlm;</code> which is a [[w:Right-to-left mark|right-to-left mark]]. (Used when combining right to left languages with left to right languages in the same page.)
== HTML tags and symbol entities displayed themselves (with and without interpreting them) ==
:<tt>&amp;euro;</tt> → '''&euro;'''
:<tt><span style="color: red; text-decoration: line-through;">Typo to be corrected</span></tt> → '''<span style="color: red; text-decoration: line-through;">Typo to be corrected</span>'''
:<tt>&lt;span style="color: red; text-decoration: line-through;">Typo to be corrected&lt;/span></tt> → '''<span style="color: red; text-decoration: line-through;">Typo to be corrected</span>'''
== Other formatting ==
Beyond the text formatting markup shown above, here are some other formatting references:
* [[Help:Links|Links]]
* [[Help:List|Lists]]
* [[Help:Images|Images]]
* [[Help:Tables|Tables]]
You can find more references at [[Help:Contents]].
{{Languages}}
[[Category:Help|Formatting]]