Formatting – Bohemia Interactive Community

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Erentar moved page User:Cheatsheet to User:Erentar/Sandbox4)
m (Promptly ripped off from mediawiki wiki)
Line 1: Line 1:
''This page contains information about Arma 3. If you were looking for other game titles, see Arma(Disambiguation)''
<!--T:1-->
=Getting started with Arma=
You can format your text by using wiki markup. This consists of normal characters like asterisks, apostrophes 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 apostrophes like <code><nowiki>''this''</nowiki></code>.
==A3==
 
Arma 3 stuff here
== Text formatting markup == <!--T:2-->
==A3==
 
Arma 3 stuff here
{| class="wikitable"
! <!--T:3--> Description
! width="40%" | <!--T:4--> You type
! width="40%" | <!--T:5--> You get
|-
! colspan="3" style="background: #ABE" | <!--T:6--> Character (inline) formatting – ''applies anywhere''
|-
| <!--T:7--> Italic text
| <pre>
''<!--T:8--> italic''
</pre>
|
''<!--T:9--> italic''
|-
| <!--T:10--> Bold text
| <pre>
'''<!--T:11--> bold'''
</pre>
|
'''<!--T:12--> bold'''
|-
| <!--T:13--> Bold and italic
| <pre>
'''''<!--T:14--> bold & italic'''''
</pre>
|
'''''<!--T:15--> bold & italic'''''
|-
| <!--T:19--> Escape wiki markup
| <pre>
&lt;nowiki&gt;<!--T:20--> no ''markup''&lt;/nowiki&gt;
</pre>
|
<!--T:155--> <nowiki>no ''markup''</nowiki>
|-
! colspan="3" style="background: #ABE" | <!--T:24--> Section formatting – ''only at the beginning of the line''
|-
| <!--T:25--> Section Headings of different levels
| <pre>
 
== Level 2 == <!--T:26-->
 
=== Level 3 === <!--T:27-->
 
==== Level 4 ==== <!--T:28-->
 
===== Level 5 ===== <!--T:29-->
 
====== Level 6 ====== <!--T:30-->
 
</pre>
----
{{note|1=<nowiki/>
* <!--T:32--> Do not put any text on the same line after the ending equal signs.
* <!--T:33--> An article with 4 or more headings automatically creates a [[wikipedia:Help:Section#Table of contents (TOC)|table of contents]] (unless setting the magic word<nowiki>__NOTOC__</nowiki>).
}}
|
<!-- using HTML markup to avoid creating new sections -->
 
<!--T:35-->
<h2>Level 2</h2>
 
<!--T:36-->
<h3>Level 3</h3>
 
<!--T:37-->
<h4>Level 4</h4>
 
<!--T:38-->
<h5>Level 5</h5>
 
<!--T:39-->
<h6>Level 6</h6>
 
|-
| <!--T:40--> Horizontal rule
| <pre>
<!--T:41--> Text before
----
<!--T:42--> Text after
</pre>
|
<!--T:43--> Text before
----
<!--T:44--> Text after
|-
| <!--T:45--> Bullet list
|
<pre>
 
<!--T:46-->
* Start each line
* with an [[Wikipedia:asterisk|asterisk]] (*).
** More asterisks give deeper
*** and deeper levels.
* Line breaks <br />don't break levels.
*** But jumping levels creates empty space.
Any other start ends the list.
 
<!--T:160-->
* combine bullet list
** with definition
::- definition
** creates empty space
 
<!--T:161-->
* combine bullet list
** with definition
*:- definition
** without empty spaces
 
<!--T:162-->
*bullet list
:- definition
:* sublist that doesn't create empty
:* spaces after definition
 
</pre>
|
 
<!--T:47-->
* Start each line
* with an [[Wikipedia:asterisk|asterisk]] (*).
** More asterisks give deeper
*** and deeper levels.
* Line breaks <br />don't break levels.
*** But jumping levels creates empty space.
Any other start ends the list.
 
<!--T:163-->
* combine bullet list
** with definition
::- definition
** creates empty space
 
<!--T:164-->
* combine bullet list
** with definition
*:- definition
** without empty spaces
 
<!--T:165-->
*bullet list
:- definition
:* sublist that doesn't create empty
:* spaces after definition
 
|-
| <!--T:48--> Numbered list
|
<pre>
 
<!--T:49-->
# Start each line
# with a [[Wikipedia:Number_sign|number sign]] (#).
## More number signs give deeper
### and deeper
### levels.
# Line breaks <br />don't break levels.
### But jumping levels creates empty space.
# Blank lines
 
<!--T:50-->
# end the list and start another.
Any other start also
ends the list.
 
</pre>
|
 
<!--T:51-->
# Start each line
# with a [[Wikipedia:Number_sign|number sign]] (#).
## More number signs give deeper
### and deeper
### levels.
# Line breaks <br />don't break levels.
### But jumping levels creates empty space.
# Blank lines
 
<!--T:52-->
# end the list and start another.
Any other start also
ends the list.
 
|-
| <!--T:53--> Definition list
| <pre>
 
<!--T:54-->
;item 1
: definition 1
;item 2
: definition 2-1
: definition 2-2
 
</pre>
|
 
<!--T:55-->
;item 1
: definition 1
;item 2
: definition 2-1
: definition 2-2
 
|-
| <!--T:56--> Indent text
| <pre>
 
<!--T:57-->
: Single indent
:: Double indent
::::: Multiple indent
 
</pre>
----
{{Note|1=<!--T:58--> This workaround may harm accessibility.}}
|
 
<!--T:59-->
: Single indent
:: Double indent
::::: Multiple indent
 
|-
| <!--T:60--> Mixture of different types of list
|
<pre>
 
<!--T:61-->
# 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 &lt;nowiki><br />&lt;/nowiki>
# five
## five sub 1
### five sub 1 sub 1
## five sub 2
 
</pre>
----
{{note|1=<!--T:62--> The usage of <code>#:</code> and <code>*:</code> for breaking a line within an item may also harm accessibility.}}
|
 
<!--T:63-->
# 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
 
|-
| <!--T:64--> Preformatted text
| <pre>
 
<!--T:65-->
Start each line with a space.
Text is '''preformatted''' and
''markups'' '''''can''''' be done.
 
</pre>
----
{{note|1=<!--T:66--> This way of preformatting only applies to section formatting. Character formatting markups are still effective.}}
|
 
<!--T:67-->Start each line with a space.
Text is '''preformatted''' and
''markups'' '''''can''''' be done.
 
|-
| <!--T:68--> Preformatted text blocks
| <pre> &lt;nowiki&gt;<!--T:69-->
Start with a space in the first column,
(before the <tvar|1>&lt;nowiki&gt;</>).
 
<!--T:70-->
Then your block format will be
    maintained.
 
<!--T:170-->
This is good for copying in code blocks:
 
 
def function():
    """<!--T:171--> documentation string"""
 
    if True:
        print True
    else:
        print False&lt;nowiki&gt;
</pre>
|
{{#tag:nowiki|<!--T:73-->
Start with a space in the first column,
(before the &lt;nowiki&gt;).
<!--T:74-->
Then your block format will be
    maintained.
<!--T:75-->
This is good for copying in code blocks:
def function():
    """<!--T:172--> documentation string"""
    if True:
        print True
    else:
        print False
}}
|}
 
== Paragraphs == <!--T:78-->
 
<!--T:79-->
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>&lt;br /></code>.
 
== HTML tags == <!--T:80-->
 
<!--T:81-->
Some [[wikipedia:HTML|HTML]] tags are allowed in MediaWiki, for example <code>&lt;code></code>, <code>&lt;div></code>, and <code><nowiki><span></nowiki></code>. These apply anywhere you insert them.
 
{| class="wikitable"
! <!--T:82--> Description
! width="40%" | <!--T:83--> You type
! width="40%" | <!--T:84--> You get
|-
| <!--T:85--> Inserted <br />(Displays as underline in most browsers)
| <pre>
<ins><!--T:86--> Inserted</ins>
 
<!--T:87--> or
 
<u><!--T:88--> Underline</u>
</pre>
|
<ins><!--T:89--> Inserted</ins>
 
<!--T:90--> or
 
<u><!--T:91--> Underline</u>
|-
| <!--T:92--> Deleted <br />(Displays as strikethrough in most browsers)
| <pre>
<s><!--T:93--> Struck out</s>
 
<!--T:94--> or
 
<del><!--T:95--> Deleted</del>
 
</pre>
|
<s><!--T:96--> Struck out</s>
 
<!--T:97--> or
 
<del><!--T:98--> Deleted</del>
|-
| <!--T:99--> Fixed width text
| <pre>
<code><!--T:100--> Source code</code>
 
<!--T:101--> or
 
<code><!--T:157--> Fixed width text</code>
</pre>
|
<code><!--T:154--> Source code</code>
 
<!--T:102--> or
 
<code><!--T:103--> Fixed width text</code>
|-
| <!--T:104--> Blockquotes
| <pre>
<!--T:105--> Text before
<blockquote><!--T:106--> Blockquote</blockquote>
<!--T:107--> Text after
</pre>
|
<!--T:108--> Text before
<blockquote><!--T:109--> Blockquote</blockquote>
<!--T:110--> Text after
|-
| <!--T:167--> Quotes
| <pre>&lt;q&gt;<!--T:168--> This is a quotation&lt;&#47;q&gt;</pre>
{{Note|1=The q element '''must not''' be used in place of quotation marks that do not represent quotes; for example, it is inappropriate to use the q element for marking up sarcastic statements.<ref>[https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-q-element HTML Living Standard—The &lt;'''q'''&gt; element]</ref>}}
| <q><!--T:169--> This is a quotation</q>
|-
| <!--T:111--> Comment
| <pre>
<!--T:112-->
<!-- This is a comment -->
Comments are visible only
in the edit zone.
</pre>
|
 
<!--T:113-->
<!-- This is a comment -->Comments are visible only
in the edit zone.
 
|-
| <!--T:114--> Completely preformatted text
| <pre>
<pre>
<!--T:115-->
Text is '''preformatted''' and
''markups'' '''''cannot''''' be done&lt;/pre>
</pre>
----
{{note|1=<!--T:116--> For marking up of preformatted text, check the "Preformatted text" entry at the end of the previous table.}}
|
<pre>
<!--T:117-->
Text is '''preformatted''' and
''markups'' '''''cannot''''' be done
</pre>
|-
| <!--T:118--> '''Customized''' preformatted text
| <pre>
<pre style="color: red">
<!--T:119-->
Text is '''preformatted'''
with a style and
''markups'' '''''cannot''''' be done
&lt;/pre>
</pre>
----
{{note|1=<!--T:120--> A CSS style can be named within the <code>style</code> attribute.}}
|
<pre style="color: red">
<!--T:121-->
Text is '''preformatted'''
with a style and
''markups'' '''''cannot''''' be done
</pre>
|}
 
<!--T:122-->
continued:
{| class="wikitable" style="table-layout: fixed; width: 100%" |
! <!--T:123--> Description
! width="40%" | <!--T:124--> You type
! width="40%" | <!--T:125--> You get
|-
| <!--T:159--> '''Default''' preformatted text has a CSS attribute (<code>white-space: pre-wrap;</code>) to wrap the text according to available width
| <pre>
<pre>
<!--T:127--> This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer. This additional sentence makes the text even longer.
&lt;/pre>
</pre>
|
<pre>
<!--T:128--> This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer. This additional sentence makes the text even longer.
</pre>
|-
| <!--T:126--> '''Customized''' preformatted text with '''disabled''' text wrapping
| <pre>
<pre style="white-space: pre;">
<!--T:130--> This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer. This additional sentence makes the text even longer.
&lt;/pre>
</pre>
|
<pre style="white-space: pre;">
<!--T:131--> This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer. This additional sentence makes the text even longer.
</pre>
|}
 
== Inserting symbols == <!--T:132-->
 
<!--T:133-->
Symbols and other special characters not available on your keyboard can be inserted in a multitude of ways. Many [http://www.howtogeek.com/210824/how-to-quickly-type-special-characters-on-any-computer-smartphone-or-tablet/ Operating Systems and browsers] allow you to insert special characters through a menu option or Operating System panel.
 
<!--T:166-->
As a last resort, you can use a special sequence of characters. Those sequences are called HTML entities. For example, the following sequence (entity) '''&amp;rarr;''' when inserted will be shown as <ins>right arrow</ins> HTML symbol &rarr; and '''&amp;mdash;''' when inserted will be shown as an <ins>em dash</ins> HTML symbol &mdash;.
----
{{note|1=<!--T:134--> Hover over any character to find out the symbol that it produces.  Some symbols not available in the current font will appear as empty squares.}}
 
{| class="wikitable" width="100%" align="center"
! 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>'''
|}
 
{| class="wikitable"
! <!--T:135--> Description
! width="40%" | <!--T:136--> You type
! width="40%" | <!--T:137--> You get
|-
| <!--T:138--> Copyright symbol
| class="mw-code" | &amp;copy;
|
:::'''&copy;'''
|-
| <!--T:139--> Greek delta letter symbol
| class="mw-code" |&amp;delta;
|
:::'''&delta;'''
|-
| <!--T:140--> Euro currency symbol
| class="mw-code" |&amp;euro;
|
:::'''&euro;'''
|}
 
<!--T:141-->
See the list of all HTML entities on the Wikipedia article [[wikipedia:List of HTML entities|List of HTML entities]]. Additionally, MediaWiki supports two non-standard entity reference sequences: <code>&amp;רלמ;</code> and <code>&amp;رلم;</code> which are both considered equivalent to <code>&amp;rlm;</code> which is a [[wikipedia: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) == <!--T:142-->
 
:<code>&amp;amp;euro;</code> &nbsp;&rarr; '''&amp;euro;'''
 
:<code>&lt;span style="color: red; text-decoration: line-through;"><!--T:143--> Typo to be corrected&lt;/span></code> &nbsp;&rarr; '''<span style="color: red; text-decoration: line-through;"><!--T:144--> Typo to be corrected</span>'''
 
:<code><!--T:156--> <nowiki>&amp;lt;span style="color: red; text-decoration: line-through;">Typo to be corrected</span></nowiki></code> &nbsp;&rarr; '''&lt;span style="color: red; text-decoration: line-through;"><!--T:145--> Typo to be corrected&lt;/span>'''
 
=== Nowiki for HTML === <!--T:146-->
 
<<nowiki/>nowiki /> <!--T:147--> can prohibit (HTML) tags:
* <nowiki><<</nowiki>nowiki />pre> &nbsp;&rarr; <<nowiki/>pre>
<!--T:148--> But ''not'' &amp; symbol escapes:
* &<<nowiki/>nowiki />amp; &nbsp;&rarr; &amp;
<!--T:149-->
To print &amp; symbol escapes as text, use "<code>&amp;amp;</code>" to replace the "&" character (eg. type "<code>&amp;amp;nbsp;</code>", which results in "<code>&amp;nbsp;</code>").

Revision as of 00:42, 6 January 2019

You can format your text by using wiki markup. This consists of normal characters like asterisks, apostrophes 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 apostrophes like ''this''.

Text formatting markup

Description You type You get
Character (inline) formatting – applies anywhere
Italic text
''<!--T:8--> italic''

italic

Bold text
'''<!--T:11--> bold'''

bold

Bold and italic
'''''<!--T:14--> bold & italic'''''

bold & italic

Escape wiki markup
<nowiki><!--T:20--> no ''markup''</nowiki>
no ''markup''
Section formatting – only at the beginning of the line
Section Headings of different levels

== Level 2 == <!--T:26-->

=== Level 3 === <!--T:27-->

==== Level 4 ==== <!--T:28-->

===== Level 5 ===== <!--T:29-->

====== Level 6 ====== <!--T:30-->


Template:note

Level 2

Level 3

Level 4

Level 5
Level 6
Horizontal rule
<!--T:41--> Text before
----
<!--T:42--> Text after
Text before

Text after
Bullet list

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

<!--T:160-->
* combine bullet list
** with definition 
::- definition
** creates empty space

<!--T:161-->
* combine bullet list
** with definition 
*:- definition
** without empty spaces

<!--T:162-->
*bullet list
:- definition
:* sublist that doesn't create empty
:* spaces after definition

  • Start each line
  • with an asterisk (*).
    • More asterisks give deeper
      • and deeper levels.
  • Line breaks
    don't break levels.
      • But jumping levels creates empty space.

Any other start ends the list.

  • combine bullet list
    • with definition
- definition
    • creates empty space
  • combine bullet list
    • with definition
    - definition
    • without empty spaces
  • bullet list
- definition
  • sublist that doesn't create empty
  • spaces after definition
Numbered list

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

<!--T:50-->
# 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 give 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

<!--T:54-->
;item 1
: definition 1
;item 2
: definition 2-1
: definition 2-2

item 1
definition 1
item 2
definition 2-1
definition 2-2
Indent text

<!--T:57-->
: Single indent
:: Double indent
::::: Multiple indent


Unknown author - view page history
Date unknown
-no text defined-
Single indent
Double indent
Multiple indent
Mixture of different types of list

<!--T:61-->
# 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


Template:note

  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

 <!--T:65-->
Start each line with a space.
 Text is '''preformatted''' and
 ''markups'' '''''can''''' be done.


Template:note

Start each line with a space.

Text is preformatted and
markups can be done.
Preformatted text blocks
 <nowiki><!--T:69-->
Start with a space in the first column,
(before the <tvar|1><nowiki></>).

<!--T:70-->
Then your block format will be
    maintained.

<!--T:170-->
This is good for copying in code blocks:


def function():
    """<!--T:171--> 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>, and <span>. These apply anywhere you insert them.

Description You type You get
Inserted
(Displays as underline in most browsers)
<ins><!--T:86--> Inserted</ins>

<!--T:87--> or

<u><!--T:88--> Underline</u>

Inserted

or

Underline

Deleted
(Displays as strikethrough in most browsers)
<s><!--T:93--> Struck out</s>

<!--T:94--> or

<del><!--T:95--> Deleted</del>

Struck out

or

Deleted

Fixed width text
<code><!--T:100--> Source code</code>

<!--T:101--> or

<code><!--T:157--> Fixed width text</code>

Source code

or

Fixed width text

Blockquotes
<!--T:105--> Text before
<blockquote><!--T:106--> Blockquote</blockquote>
<!--T:107--> Text after
Text before

Blockquote

Text after
Quotes
<q><!--T:168--> This is a quotation</q>
Unknown author - view page history
Date unknown
-no text defined-
This is a quotation
Comment
<!--T:112-->
<!-- This is a comment -->
Comments are visible only 
in the edit zone.

Comments are visible only in the edit zone.

Completely preformatted text
<pre>
<!--T:115-->
Text is '''preformatted''' and 
''markups'' '''''cannot''''' be done</pre>

Template:note

<!--T:117-->
Text is '''preformatted''' and 
''markups'' '''''cannot''''' be done
Customized preformatted text
<pre style="color: red">
<!--T:119-->
Text is '''preformatted''' 
with a style and 
''markups'' '''''cannot''''' be done
</pre>

Template:note

<!--T:121-->
Text is '''preformatted''' 
with a style and 
''markups'' '''''cannot''''' be done

continued:

Description You type You get
Default preformatted text has a CSS attribute (white-space: pre-wrap;) to wrap the text according to available width
<pre>
<!--T:127--> This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer. This additional sentence makes the text even longer.
</pre>
<!--T:128--> This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer. This additional sentence makes the text even longer.
Customized preformatted text with disabled text wrapping
<pre style="white-space: pre;">
<!--T:130--> This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer. This additional sentence makes the text even longer.
</pre>
<!--T:131--> This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer. This additional sentence makes the text even longer.

Inserting symbols

Symbols and other special characters not available on your keyboard can be inserted in a multitude of ways. Many Operating Systems and browsers allow you to insert special characters through a menu option or Operating System panel.

As a last resort, you can use a special sequence of characters. Those sequences are called HTML entities. For example, the following sequence (entity) &rarr; when inserted will be shown as right arrow HTML symbol → and &mdash; when inserted will be shown as an em dash HTML symbol —.


Template:note

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

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 &rlm; which is a 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)

&amp;euro;  → &euro;
<span style="color: red; text-decoration: line-through;"> Typo to be corrected</span>  → Typo to be corrected
&lt;span style="color: red; text-decoration: line-through;">Typo to be corrected</span>  → <span style="color: red; text-decoration: line-through;"> Typo to be corrected</span>

Nowiki for HTML

<nowiki /> can prohibit (HTML) tags:

  • <<nowiki />pre>  → <pre>
But not & symbol escapes:
  • &<nowiki />amp;  → &

To print & symbol escapes as text, use "&amp;" to replace the "&" character (eg. type "&amp;nbsp;", which results in "&nbsp;").