Help:Formatting: Difference between revisions
m (Reverted edits by Joanna (talk) to last revision by Goninjawrit) |
No edit summary |
||
Line 1: | Line 1: | ||
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 | |||
|- | |||
! style="background:#ABE" colspan="3" | 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''''' | |||
|- | |||
| Escape wiki markup | |||
| <pre><nowiki>no ''markup''</nowiki> | |||
</pre> | |||
| | |||
<nowiki>no ''markup''</nowiki> | |||
|- | |||
! style="background:#ABE" colspan="3" | 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> | |||
---- | |||
<br> | |||
| | |||
== 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%20sign|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> | |||
---- | |||
<br> | |||
| | |||
: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> | |||
---- | |||
<br> | |||
| | |||
#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 | |||
|- | |||
| Preformatted text | |||
| <pre> Start each line with a space. | |||
Text is '''preformatted''' and | |||
''markups'' '''''can''''' be done | |||
</pre> | |||
---- | |||
<br> | |||
| | |||
Start each line with a space. | |||
Text is '''preformatted''' and | |||
''markups'' '''''can''''' be done | |||
|- | |||
| Preformatted text blocks | |||
| <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> | |||
</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 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> | |||
---- | |||
<br> | |||
| <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> | |||
---- | |||
<br> | |||
| <pre style="color:red">Text is '''preformatted''' | |||
with a style and | |||
''markups'' '''''cannot''''' be done | |||
</pre> | |||
|- | |||
| '''Customized''' preformatted text with text warp according to screen width | |||
| <pre><pre style="white-space: pre-wrap"> | |||
This sentence is used to demonstrate text wrapping. </pre> | |||
</pre> | |||
| <pre style="white-space: pre-wrap">This sentence is used to demonstrate text wrapping.</pre> | |||
|} | |||
== 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 — | |||
---- | |||
<br> | |||
{| width="100%" align="center" class="wikitable" | |||
|- | |||
! colspan="32" | HTML Symbol Entities | |||
|- align="center|" | |||
| '''<span title="á">á</span>''' | |||
| '''<span title="Â">Â</span>''' | |||
| '''<span title="â">â</span>''' | |||
| '''<span title="´">´</span>''' | |||
| '''<span title="Æ">Æ</span>''' | |||
| '''<span title="æ">æ</span>''' | |||
| '''<span title="À">À</span>''' | |||
| '''<span title="à">à</span>''' | |||
| '''<span title="ℵ">ℵ</span>''' | |||
| '''<span title="Α">Α</span>''' | |||
| '''<span title="α">α</span>''' | |||
| '''<span title="&">&</span>''' | |||
| '''<span title="∧">∧</span>''' | |||
| '''<span title="∠">∠</span>''' | |||
| '''<span title="Å">Å</span>''' | |||
| '''<span title="å">å</span>''' | |||
| '''<span title="≈">≈</span>''' | |||
| '''<span title="Ã">Ã</span>''' | |||
| '''<span title="ã">ã</span>''' | |||
| '''<span title="Ä">Ä</span>''' | |||
| '''<span title="ä">ä</span>''' | |||
| '''<span title="„">„</span>''' | |||
| '''<span title="Β">Β</span>''' | |||
| '''<span title="β">β</span>''' | |||
| '''<span title="¦">¦</span>''' | |||
| '''<span title="•">•</span>''' | |||
| '''<span title="∩">∩</span>''' | |||
| '''<span title="Ç">Ç</span>''' | |||
| '''<span title="ç">ç</span>''' | |||
| '''<span title="¸">¸</span>''' | |||
| '''<span title="¢">¢</span>''' | |||
|- align="center" | |||
| '''<span title="Χ">Χ</span>''' | |||
| '''<span title="χ">χ</span>''' | |||
| '''<span title="ˆ">ˆ</span>''' | |||
| '''<span title="♣">♣</span>''' | |||
| '''<span title="≅">≅</span>''' | |||
| '''<span title="©">©</span>''' | |||
| '''<span title="↵">↵</span>''' | |||
| '''<span title="∪">∪</span>''' | |||
| '''<span title="¤">¤</span>''' | |||
| '''<span title="†">†</span>''' | |||
| '''<span title="‡">‡</span>''' | |||
| '''<span title="↓">↓</span>''' | |||
| '''<span title="⇓">⇓</span>''' | |||
| '''<span title="°">°</span>''' | |||
| '''<span title="Δ">Δ</span>''' | |||
| '''<span title="δ">δ</span>''' | |||
| '''<span title="♦">♦</span>''' | |||
| '''<span title="÷">÷</span>''' | |||
| '''<span title="É">É</span>''' | |||
| '''<span title="é">é</span>''' | |||
| '''<span title="Ê">Ê</span>''' | |||
| '''<span title="ê">ê</span>''' | |||
| '''<span title="È">È</span>''' | |||
| '''<span title="è">è</span>''' | |||
| '''<span title="∅">∅</span>''' | |||
| '''<span title=" "> </span>''' | |||
| '''<span title=" "> </span>''' | |||
| '''<span title="Ε">Ε</span>''' | |||
| '''<span title="ε">ε</span>''' | |||
| '''<span title="≡">≡</span>''' | |||
| '''<span title="Η">Η</span>''' | |||
| '''<span title="η">η</span>''' | |||
|- align="center" | |||
| '''<span title="Ð">Ð</span>''' | |||
| '''<span title="ð">ð</span>''' | |||
| '''<span title="Ë">Ë</span>''' | |||
| '''<span title="ë">ë</span>''' | |||
| '''<span title="€">€</span>''' | |||
| '''<span title="∃">∃</span>''' | |||
| '''<span title="ƒ">ƒ</span>''' | |||
| '''<span title="∀">∀</span>''' | |||
| '''<span title="½">½</span>''' | |||
| '''<span title="¼">¼</span>''' | |||
| '''<span title="¾">¾</span>''' | |||
| '''<span title="⁄">⁄</span>''' | |||
| '''<span title="Γ">Γ</span>''' | |||
| '''<span title="γ">γ</span>''' | |||
| '''<span title="≥">≥</span>''' | |||
| '''<span>">></span>''' | |||
| '''<span title="↔">↔</span>''' | |||
| '''<span title="⇔">⇔</span>''' | |||
| '''<span title="♥">♥</span>''' | |||
| '''<span title="…">…</span>''' | |||
| '''<span title="Í">Í</span>''' | |||
| '''<span title="í">í</span>''' | |||
| '''<span title="Î">Î</span>''' | |||
| '''<span title="î">î</span>''' | |||
| '''<span title="¡">¡</span>''' | |||
| '''<span title="Ì">Ì</span>''' | |||
| '''<span title="ì">ì</span>''' | |||
| '''<span title="ℑ">ℑ</span>''' | |||
| '''<span title="∞">∞</span>''' | |||
| '''<span title="∫">∫</span>''' | |||
| '''<span title="Ι">Ι</span>''' | |||
| '''<span title="ι">ι</span>''' | |||
|- align="center" | |||
| '''<span title="¿">¿</span>''' | |||
| '''<span title="∈">∈</span>''' | |||
| '''<span title="Ï">Ï</span>''' | |||
| '''<span title="ï">ï</span>''' | |||
| '''<span title="Κ">Κ</span>''' | |||
| '''<span title="κ">κ</span>''' | |||
| '''<span title="Λ">Λ</span>''' | |||
| '''<span title="λ">λ</span>''' | |||
| '''<span title="〈">〈</span>''' | |||
| '''<span title="«">«</span>''' | |||
| '''<span title="←">←</span>''' | |||
| '''<span title="⇐">⇐</span>''' | |||
| '''<span title="⌈">⌈</span>''' | |||
| '''<span title="“">“</span>''' | |||
| '''<span title="≤">≤</span>''' | |||
| '''<span title="⌊">⌊</span>''' | |||
| '''<span title="∗">∗</span>''' | |||
| '''<span title="◊">◊</span>''' | |||
| '''<span title=""></span>''' | |||
| '''<span title="‹">‹</span>''' | |||
| '''<span title="‘">‘</span>''' | |||
| '''<span title="<"><</span>''' | |||
| '''<span title="¯">¯</span>''' | |||
| '''<span title="—">—</span>''' | |||
| '''<span title="µ">µ</span>''' | |||
| '''<span title="·">·</span>''' | |||
| '''<span title="−">−</span>''' | |||
| '''<span title="Μ">Μ</span>''' | |||
| '''<span title="μ">μ</span>''' | |||
| '''<span title="∇">∇</span>''' | |||
| '''<span title=" "> </span>''' | |||
| '''<span title="–">–</span>''' | |||
|- align="center" | |||
| '''<span title="≠">≠</span>''' | |||
| '''<span title="∋">∋</span>''' | |||
| '''<span title="¬">¬</span>''' | |||
| '''<span title="∉">∉</span>''' | |||
| '''<span title="⊄">⊄</span>''' | |||
| '''<span title="Ñ">Ñ</span>''' | |||
| '''<span title="ñ">ñ</span>''' | |||
| '''<span title="Ν">Ν</span>''' | |||
| '''<span title="ν">ν</span>''' | |||
| '''<span title="Ó">Ó</span>''' | |||
| '''<span title="ó">ó</span>''' | |||
| '''<span title="Ô">Ô</span>''' | |||
| '''<span title="ô">ô</span>''' | |||
| '''<span title="Œ">Œ</span>''' | |||
| '''<span title="œ">œ</span>''' | |||
| '''<span title="Ò">Ò</span>''' | |||
| '''<span title="ò">ò</span>''' | |||
| '''<span title="‾">‾</span>''' | |||
| '''<span title="Ω">Ω</span>''' | |||
| '''<span title="ω">ω</span>''' | |||
| '''<span title="Ο">Ο</span>''' | |||
| '''<span title="ο">ο</span>''' | |||
| '''<span title="⊕">⊕</span>''' | |||
| '''<span title="∨">∨</span>''' | |||
| '''<span title="ª">ª</span>''' | |||
| '''<span title="º">º</span>''' | |||
| '''<span title="Ø">Ø</span>''' | |||
| '''<span title="ø">ø</span>''' | |||
| '''<span title="Õ">Õ</span>''' | |||
| '''<span title="õ">õ</span>''' | |||
| '''<span title="⊗">⊗</span>''' | |||
| '''<span title="Ö">Ö</span>''' | |||
|- align="center" | |||
| '''<span title="ö">ö</span>''' | |||
| '''<span title="¶">¶</span>''' | |||
| '''<span title="∂">∂</span>''' | |||
| '''<span title="‰">‰</span>''' | |||
| '''<span title="⊥">⊥</span>''' | |||
| '''<span title="Φ">Φ</span>''' | |||
| '''<span title="φ">φ</span>''' | |||
| '''<span title="Π">Π</span>''' | |||
| '''<span title="π">π</span>''' | |||
| '''<span title="ϖ">ϖ</span>''' | |||
| '''<span title="±">±</span>''' | |||
| '''<span title="£">£</span>''' | |||
| '''<span title="′">′</span>''' | |||
| '''<span title="″">″</span>''' | |||
| '''<span title="∏">∏</span>''' | |||
| '''<span title="∝">∝</span>''' | |||
| '''<span title="Ψ">Ψ</span>''' | |||
| '''<span title="ψ">ψ</span>''' | |||
| '''<span title=""">"</span>''' | |||
| '''<span title="√">√</span>''' | |||
| '''<span title="〉">〉</span>''' | |||
| '''<span title="»">»</span>''' | |||
| '''<span title="→">→</span>''' | |||
| '''<span title="⇒">⇒</span>''' | |||
| '''<span title="⌉">⌉</span>''' | |||
| '''<span title="”">”</span>''' | |||
| '''<span title="ℜ">ℜ</span>''' | |||
| '''<span title="®">®</span>''' | |||
| '''<span title="⌋">⌋</span>''' | |||
| '''<span title="Ρ">Ρ</span>''' | |||
| '''<span title="ρ">ρ</span>''' | |||
| '''<span title=""></span>''' | |||
|- align="center" | |||
| '''<span title="›">›</span>''' | |||
| '''<span title="’">’</span>''' | |||
| '''<span title="‚">‚</span>''' | |||
| '''<span title="Š">Š</span>''' | |||
| '''<span title="š">š</span>''' | |||
| '''<span title="⋅">⋅</span>''' | |||
| '''<span title="§">§</span>''' | |||
| '''<span title=""></span>''' | |||
| '''<span title="Σ">Σ</span>''' | |||
| '''<span title="σ">σ</span>''' | |||
| '''<span title="ς">ς</span>''' | |||
| '''<span title="∼">∼</span>''' | |||
| '''<span title="♠">♠</span>''' | |||
| '''<span title="⊂">⊂</span>''' | |||
| '''<span title="⊆">⊆</span>''' | |||
| '''<span title="∑">∑</span>''' | |||
| '''<span title="⊃">⊃</span>''' | |||
| '''<span title="¹">¹</span>''' | |||
| '''<span title="²">²</span>''' | |||
| '''<span title="³">³</span>''' | |||
| '''<span title="⊇">⊇</span>''' | |||
| '''<span title="ß">ß</span>''' | |||
| '''<span title="Τ">Τ</span>''' | |||
| '''<span title="τ">τ</span>''' | |||
| '''<span title="∴">∴</span>''' | |||
| '''<span title="Θ">Θ</span>''' | |||
| '''<span title="θ">θ</span>''' | |||
| '''<span title="ϑ">ϑ</span>''' | |||
| '''<span title=" "> </span>''' | |||
| '''<span title="Þ">Þ</span>''' | |||
| '''<span title="þ">þ</span>''' | |||
| '''<span title="˜">˜</span>''' | |||
|- align="center" | |||
| '''<span title="×">×</span>''' | |||
| '''<span title="™">™</span>''' | |||
| '''<span title="Ú">Ú</span>''' | |||
| '''<span title="ú">ú</span>''' | |||
| '''<span title="↑">↑</span>''' | |||
| '''<span title="⇑">⇑</span>''' | |||
| '''<span title="Û">Û</span>''' | |||
| '''<span title="û">û</span>''' | |||
| '''<span title="Ù">Ù</span>''' | |||
| '''<span title="ù">ù</span>''' | |||
| '''<span title="¨">¨</span>''' | |||
| '''<span title="ϒ">ϒ</span>''' | |||
| '''<span title="Υ">Υ</span>''' | |||
| '''<span title="υ">υ</span>''' | |||
| '''<span title="Ü">Ü</span>''' | |||
| '''<span title="ü">ü</span>''' | |||
| '''<span title="℘">℘</span>''' | |||
| '''<span title="Ξ">Ξ</span>''' | |||
| '''<span title="ξ">ξ</span>''' | |||
| '''<span title="Ý">Ý</span>''' | |||
| '''<span title="ý">ý</span>''' | |||
| '''<span title="¥">¥</span>''' | |||
| '''<span title="ÿ">ÿ</span>''' | |||
| '''<span title="Ÿ">Ÿ</span>''' | |||
| '''<span title="Ζ">Ζ</span>''' | |||
| '''<span title="ζ">ζ</span>''' | |||
| '''<span title=""></span>''' | |||
| '''<span title=""></span>''' | |||
|} | |||
{| class="wikitable" | |||
|- | |||
! Description | |||
! width="40%" | You type | |||
! width="40%" | You get | |||
|- | |||
| Copyright <br> Symbol | |||
| <tt><pre>&copy; | |||
</pre></tt> | |||
| | |||
:::'''©''' | |||
|- | |||
| Greek Delta <br> Letter Symbol | |||
| <tt><pre>&delta; | |||
</pre></tt> | |||
| | |||
:::'''δ''' | |||
|- | |||
| Euro <br> 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 or right languages in the same page) | |||
== HTML tags and symbol entities displayed themselves (with and without interpreting them) == | |||
:<tt>&amp;euro;</tt> → '''<tt>&euro;</tt>''' | |||
:<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">Typo to be corrected&lt;/span></span></tt> → '''<tt><span style="color:red;"text-decoration:line-through;">Typo to be corrected</span></tt>''' |
Revision as of 08:08, 27 October 2015
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 ''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 ======
|
Level 2Level 3Level 4Level 5Level 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. |
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. |
Any other start also ends the list. |
Definition list | ;item 1 : definition 1 ;item 2 : definition 2-1 : definition 2-2 |
|
Indent text | : 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
|
|
Preformatted text | Start each line with a space. Text is '''preformatted''' and ''markups'' '''''can''''' be done
|
Start each line with a space. Text is preformatted and markups can be done |
Preformatted text blocks | <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> |
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 |
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 <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 |
---|---|---|
Inserted (Displays as underline in most browsers.) |
<ins>Inserted</ins> or <span style="text-decoration: underline;">Underline</span> |
Inserted or Underline |
Deleted (Displays as strikethrough in most browsers.) |
<del>Deleted</del> or <span style="text-decoration:line-through;">Deleted</span> |
or Deleted |
Fixed width text | <code>Source code</code> or <tt>Fixed width text</tt> |
or Fixed width text |
Blockquotes | text above text above <blockquote>blockquote</blockquote> text below text below |
text above text above
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>
|
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>
|
Text is '''preformatted''' with a style and ''markups'' '''''cannot''''' be done |
Customized preformatted text with text warp according to screen width | <pre style="white-space: pre-wrap"> This sentence is used to demonstrate text wrapping. </pre> |
This sentence is used to demonstrate text wrapping. |
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) → when inserted will be shown as right arrow HTML symbol → and — when inserted will be shown as an em dash HTML symbol —
HTML Symbol Entities | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
á | Â | â | ´ | Æ | æ | À | à | ℵ | Α | α | & | ∧ | ∠ | Å | å | ≈ | Ã | ã | Ä | ä | „ | Β | β | ¦ | • | ∩ | Ç | ç | ¸ | ¢ | |
Χ | χ | ˆ | ♣ | ≅ | © | ↵ | ∪ | ¤ | † | ‡ | ↓ | ⇓ | ° | Δ | δ | ♦ | ÷ | É | é | Ê | ê | È | è | ∅ | Ε | ε | ≡ | Η | η | ||
Ð | ð | Ë | ë | € | ∃ | ƒ | ∀ | ½ | ¼ | ¾ | ⁄ | Γ | γ | ≥ | ">> | ↔ | ⇔ | ♥ | … | Í | í | Î | î | ¡ | Ì | ì | ℑ | ∞ | ∫ | Ι | ι |
¿ | ∈ | Ï | ï | Κ | κ | Λ | λ | 〈 | « | ← | ⇐ | ⌈ | “ | ≤ | ⌊ | ∗ | ◊ | | ‹ | ‘ | <span title="<"><</span> | ¯ | — | µ | · | − | Μ | μ | ∇ | – | |
≠ | ∋ | ¬ | ∉ | ⊄ | Ñ | ñ | Ν | ν | Ó | ó | Ô | ô | Œ | œ | Ò | ò | ‾ | Ω | ω | Ο | ο | ⊕ | ∨ | ª | º | Ø | ø | Õ | õ | ⊗ | Ö |
ö | ¶ | ∂ | ‰ | ⊥ | Φ | φ | Π | π | ϖ | ± | £ | ′ | ″ | ∏ | ∝ | Ψ | ψ | " | √ | 〉 | » | → | ⇒ | ⌉ | ” | ℜ | ® | ⌋ | Ρ | ρ | |
› | ’ | ‚ | Š | š | ⋅ | § | | Σ | σ | ς | ∼ | ♠ | ⊂ | ⊆ | ∑ | ⊃ | ¹ | ² | ³ | ⊇ | ß | Τ | τ | ∴ | Θ | θ | ϑ | Þ | þ | ˜ | |
× | ™ | Ú | ú | ↑ | ⇑ | Û | û | Ù | ù | ¨ | ϒ | Υ | υ | Ü | ü | ℘ | Ξ | ξ | Ý | ý | ¥ | ÿ | Ÿ | Ζ | ζ | | |
Description | You type | You get |
---|---|---|
Copyright Symbol |
© |
|
Greek Delta Letter Symbol |
δ |
|
Euro Currency Symbol |
€ |
|
See the list of all HTML entities on the Wikipedia article List of HTML entities. Additionally, MediaWiki supports two non-standard entity reference sequences: &רלמ;
and &رلم;
which are both considered equivalent to ‏
which is a Right-to-left mark (Used when combining right to left languages with left or right languages in the same page)
HTML tags and symbol entities displayed themselves (with and without interpreting them)
- &euro; → €
- <span style="color:red;text-decoration:line-through;">Typo to be corrected</span> → Typo to be corrected
- <span style="color:red;text-decoration:line-through;">Typo to be corrected">Typo to be corrected</span></span> → <span style="color:red;"text-decoration:line-through;">Typo to be corrected</span>