Formatting – Bohemia Interactive Community

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Feature|Informative|" to "{{Feature|informative|")
 
(65 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Category:Community Wiki]]<br clear="all">
[[File:BIKI Editor Help.PNG|thumb|The text editor comes with some basic text formatting tips|500px]]


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>.
== Text formatting markup ==


== Text formatting markup ==
{| class="wikitable" width = "100%"
 
{| class="wikitable"
! Description
! Description
! width="40%" | You type
! width="40%" | You type
! width="40%" | You get
! width="40%" | You get
|-
|-
! colspan="3" style="background: #ABE" | Character (inline) formatting – ''applies anywhere''
! colspan="3" style="background: #ABE" | Character (inline) formatting – ''applies anywhere''
|-
|-
| Italic text
| Italic text
Line 31: Line 31:
|
|
'''''bold & italic'''''
'''''bold & italic'''''
|-
| Colored text
| <pre>
<span style="color: red;">Colour</span>
</pre>
|
<span style="color: red;">Colour</span>
|-
| Spoiler
| <pre>
<spoiler text="Click me!">spoiler</spoiler>
</pre>
|
<spoiler text="Click me!">spoiler</spoiler>
|-
|-
| Escape wiki markup
| Escape wiki markup
Line 57: Line 71:
</pre>
</pre>
|Text can be made <big>bigger like this</big>
|Text can be made <big>bigger like this</big>
|-
|Teletype (using {{Template|hl}})
|<pre>
Highlight {{hl|TAG_someVariable}} in a text
</pre>
|Highlight {{hl|TAG_someVariable}} in a text
|-
|-
! colspan="3" style="background: #ABE" | Section formatting – ''only at the beginning of the line''
! colspan="3" style="background: #ABE" | Section formatting – ''only at the beginning of the line''
|-
|-
| Section Headings of different levels  
| Section Headings of different levels
| <pre>
| <pre>
== Level 2 ==  
== Level 2 ==


=== Level 3 ===  
=== Level 3 ===


==== Level 4 ====  
==== Level 4 ====


===== Level 5 =====  
===== Level 5 =====


====== Level 6 ======
====== Level 6 ======
</pre>
</pre>
----
----
{{note|1=<nowiki/>
{{Feature|important|
* Do not put any text on the same line after the ending equal signs.
* Do not put any text on the same line after the ending equal signs.
* An article with 4 or more headings automatically creates a table of contents (unless setting the magic word<nowiki>__NOTOC__</nowiki>).
* An article with 4 or more headings automatically creates a '''T'''able '''o'''f '''C'''ontents (ToC) - unless setting the magic word {{hl|<nowiki>__NOTOC__</nowiki>}}.
* You can use a right-side ToC with the [[Template:TOC|{{<nowiki/>TOC|side}} template]].
* Recommended spacing:
** Add spaces between the title itself and the equal signs
** '''Two''' empty lines before a '''Level 2''' title, one after
** '''One''' empty line before a '''Level 3''' title, one after
** '''One''' empty line before a '''Level 4..6''' title, '''none''' after.
}}
}}
|
|
Line 95: Line 121:
----
----
|-
|-
| Horizontal rule
| Horizontal rule
| <pre>
| <pre>
  Text before
  Text before
Line 122: Line 148:
like this.
like this.
|-
|-
| Bullet list
| Indent text
|
<pre>
* 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.
 
 
* 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
 
</pre>
|
 
* 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.
 
 
* 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
|
<pre>
# 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
 
 
# 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 give 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>
| <pre>
: Single indent
: Single indent
Line 239: Line 155:
</pre>
</pre>
----
----
{{Note|1= This workaround may harm accessibility.}}
{{Feature|informative|This workaround may harm accessibility.}}
|
|


Line 247: Line 163:


|-
|-
| Mixture of different types of list
| Mixture of different types of list
|
|
<pre>
<pre>
Line 268: Line 184:
</pre>
</pre>
----
----
{{note|1= The usage of <code>#:</code> and <code>*:</code> for breaking a line within an item may also harm accessibility.}}
{{Feature|informative|The usage of <code>#:</code> and <code>*:</code> to break a line within an item may also harm accessibility.}}
|
|


Line 289: Line 205:


|-
|-
| Preformatted text
| Preformatted text
| <pre>
| <pre>
Start each line with a space.
Start each line with a space.
Line 296: Line 212:
</pre>
</pre>
----
----
{{note|1= This way of preformatting only applies to section formatting. Character formatting markups are still effective.}}
{{Feature|informative|This way of preformatting only applies to section formatting. Character formatting markups are still effective.}}
|
|
Start each line with a space.
Start each line with a space.
Line 303: Line 219:


|-
|-
| Preformatted text blocks
| Preformatted text blocks
| <pre> &lt;nowiki&gt;
| <pre> &lt;nowiki&gt;
Start with a space in the first column,
Start with a space in the first column,
Line 347: Line 263:
|}
|}


== Paragraphs ==


== HTML tags ==


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>.
{| class="wikitable" width = "100%"
 
! Description
== HTML tags ==
! width="40%" | You type
 
! width="40%" | You get
 
Some 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"
! Description
! width="40%" | You type
! width="40%" | You get
|-
|-
| Inserted <br />(Displays as underline in most browsers)
| Inserted <br />(Displays as underline in most browsers)
| <pre>
| <syntaxhighlight lang="html"><ins> Inserted</ins></syntaxhighlight>
<ins> Inserted</ins>


or
or


<u> Underline</u>
<syntaxhighlight lang="html"><u>Underline</u></syntaxhighlight>
</pre>
</pre>
|
|
<ins> Inserted</ins>
<ins>Inserted</ins>


or
or


<u> Underline</u>
<u>Underline</u>
|-
|-
| Deleted <br />(Displays as strikethrough in most browsers)
| Deleted <br />(Displays as strikethrough in most browsers)
| <pre>
| <syntaxhighlight lang="html"><s>Struck out</s></syntaxhighlight>
<s> Struck out</s>


  or
  or


<del> Deleted</del>
<syntaxhighlight lang="html"><del>Deleted</del></syntaxhighlight>
 
</pre>
|
|
<s> Struck out</s>
<s>Struck out</s>


  or
  or


<del> Deleted</del>
<del>Deleted</del>
|-
|-
| Fixed width text
| Blockquotes
| <pre>
| <syntaxhighlight lang="html">
<code> Source code</code>
 
or
 
<code> Fixed width text</code>
</pre>
|
<code> Source code</code>
 
or
 
<code> Fixed width text</code>
|-
Blockquotes
| <pre>
  Text before
  Text before
<blockquote> Blockquote</blockquote>
<blockquote> Blockquote</blockquote>
  Text after
  Text after
</pre>
</syntaxhighlight>
|
|
Text before
Text before
<blockquote> Blockquote</blockquote>
<blockquote> Blockquote</blockquote>
Text after
Text after
|-
|-
| Quotes
| Quotes
| <pre>&lt;q&gt; This is a quotation&lt;&#47;q&gt;</pre>
| <syntaxhighlight lang="html"><q>This is a quotation</q></syntaxhighlight>
{{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>}}
{{Feature|important|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> This is a quotation</q>
| <q>This is a quotation</q>
|-
|-
| Comment
| Comment
| <pre>
| <syntaxhighlight lang="html">
 
<!-- This is a comment -->
<!-- This is a comment -->
Comments are visible only  
Comments are visible only
in the edit zone.
in the edit zone.
</pre>
</syntaxhighlight>
|
|
<!-- This is a comment -->Comments are visible only  
<!-- This is a comment -->
Comments are visible only
in the edit zone.
in the edit zone.


|-
|-
| Completely preformatted text
| Completely preformatted text
| <pre>
| <syntaxhighlight lang="html">
<pre>
<pre>


Text is '''preformatted''' and  
Text is '''preformatted''' and
''markups'' '''''cannot''''' be done&lt;/pre>
''markups'' '''''cannot''''' be done</pre>
</pre>
</syntaxhighlight>
----
----
{{note|1= For marking up of preformatted text, check the "Preformatted text" entry at the end of the previous table.}}  
{{Feature|informative|For marking up of preformatted text, check the "Preformatted text" entry at the end of the previous table.}}
|
|
<pre>
<pre>


Text is '''preformatted''' and  
Text is '''preformatted''' and
''markups'' '''''cannot''''' be done
''markups'' '''''cannot''''' be done
</pre>
</pre>
|-
|-
| '''Customized''' preformatted text
| '''Customized''' preformatted text
| <pre>
| <syntaxhighlight lang="html">
<pre style="color: red">
<pre style="color: red">


Text is '''preformatted'''  
Text is '''preformatted'''
with a style and  
with a style and
''markups'' '''''cannot''''' be done
''markups'' '''''cannot''''' be done
&lt;/pre>
</pre>
</pre>
</syntaxhighlight>
----
----
{{note|1= A CSS style can be named within the <code>style</code> attribute.}}
{{Feature|informative|A CSS style can be defined within the <code>style</code> attribute.}}
|
|
<pre style="color: red">
<pre style="color: red">


Text is '''preformatted'''  
Text is '''preformatted'''
with a style and  
with a style and
''markups'' '''''cannot''''' be done
''markups'' '''''cannot''''' be done
</pre>
</pre>
Line 474: Line 364:
continued:
continued:
{| class="wikitable" style="table-layout: fixed; width: 100%" |
{| class="wikitable" style="table-layout: fixed; width: 100%" |
! Description
! Description
! width="40%" | You type
! width="40%" | You type
! width="40%" | You get
! width="40%" | You get
|-
|-
| '''Default''' preformatted text has a CSS attribute (<code>white-space: pre-wrap;</code>) to wrap the text according to available width
| '''Default''' preformatted text has a CSS attribute (<syntaxhighlight lang="css" inline>white-space: pre-wrap;</syntaxhighlight>) to wrap the text according to available width
| <pre>
| <pre>
<pre>
<pre>
Line 489: Line 379:
</pre>
</pre>
|-
|-
| '''Customized''' preformatted text with '''disabled''' text wrapping
| '''Customized''' preformatted text with '''disabled''' text wrapping
| <pre>
| <pre>
<pre style="white-space: pre;">
<pre style="white-space: pre;">
Line 501: Line 391:
|}
|}


== Inserting symbols ==  
== Inserting symbols ==


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.


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.


 
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;.
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= 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.}}  
{{Feature|informative|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"
{| class="wikitable" width="100%" align="center"
Line 776: Line 666:


{| class="wikitable"
{| class="wikitable"
! Description
! Description
! width="40%" | You type
! width="40%" | You type
! width="40%" | You get
! width="40%" | You get
|-
|-
| Copyright symbol
| Copyright symbol
| class="mw-code" | &amp;copy;
| class="mw-code" | &amp;copy;
|
|
:::'''&copy;'''
:::'''&copy;'''
|-
|-
| Greek delta letter symbol
| Greek delta letter symbol
| class="mw-code" |&amp;delta;
| class="mw-code" |&amp;delta;
|
|
:::'''&delta;'''
:::'''&delta;'''
|-
|-
| Euro currency symbol
| Euro currency symbol
| class="mw-code" |&amp;euro;
| class="mw-code" |&amp;euro;
|
|
Line 796: Line 686:
|}
|}


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) ==
 
== HTML tags and symbol entities displayed themselves (with and without interpreting them) ==  


:<code>&amp;amp;euro;</code> &nbsp;&rarr; '''&amp;euro;'''
:<code>&amp;amp;euro;</code> &nbsp;&rarr; '''&amp;euro;'''


:<code>&lt;span style="color: red; text-decoration: line-through;"> Typo to be corrected&lt;/span></code> &nbsp;&rarr; '''<span style="color: red; text-decoration: line-through;"> Typo to be corrected</span>'''
:<code style="display: block">&lt;span style="color: red; text-decoration: line-through;"> Typo to be corrected&lt;/span></code> &nbsp;&rarr; '''<span style="color: red; text-decoration: line-through;"> Typo to be corrected</span>'''


:<code> <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;"> Typo to be corrected&lt;/span>'''
:<code style="display: block"> <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;"> Typo to be corrected&lt;/span>'''


=== Nowiki for HTML ===  
=== Nowiki for HTML ===


<<nowiki/>nowiki /> can prohibit (HTML) tags:
<<nowiki/>nowiki /> can prohibit (HTML) tags:
* <nowiki><<</nowiki>nowiki />pre> &nbsp;&rarr; <<nowiki/>pre>
* <nowiki><<</nowiki>nowiki />pre> &nbsp;&rarr; <<nowiki/>pre>
  But ''not'' &amp; symbol escapes:
  But ''not'' &amp; symbol escapes:
* &<<nowiki/>nowiki />amp; &nbsp;&rarr; &amp;
* &<<nowiki/>nowiki />amp; &nbsp;&rarr; &amp;


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>")
To print &amp; symbol escapes as text, use "<code style="display: block">&amp;amp;</code>" to replace the "&" character (eg. type "<code style="display: block">&amp;amp;nbsp;</code>", which results in "<code style="display: block">&amp;nbsp;</code>")
 
== Code Formatting ==
 
{| class="wikitable" width = "100%"
|-
! Description !! You type !! You get
|-
| Code block (no highlighting)
| <pre>Lorem ipsum ...
<code style="display: block">player setPosASL [0, 0, 0];
player setDamage 0;</code>
... dolor sit amet.</pre>
| <div>Lorem ipsum ...<code style="display: block">player setPosASL [0, 0, 0];
player setDamage 0;</code>... dolor sit amet.</div>
 
|-
| Code inline-block (no highlighting)
| <pre>Lorem ipsum ... <code style="display: inline-block">player setPosASL [0, 0, 0];
player setDamage 0;</code> ... dolor sit amet.</pre>
| <div>Lorem ipsum ... <code style="display: inline-block">player setPosASL [0, 0, 0];
player setDamage 0;</code> ... dolor sit amet.</div>
 


----
|-
| [[Template:cc|Single-line code comment]] (should only be used inside <code>&lt;code&gt;</code> tags where the usage of <code>&lt;sqf&gt;</code> tags is not possible)
| <pre><code style="display: block">[[player]] setPos{{Color|red|ASL}} [0, 0, 0]; {{cc|teleports the player}}</code></pre>
| <code style="display: block">[[player]] setPos{{Color|red|ASL}} [0, 0, 0]; {{cc|teleports the player}}</code>
|-
<!-- The template {{codecomment}} adds no real value.
| [[Template:codecomment|Code comment]] || <pre>{{codecomment|// Code comment}}</pre> || {{codecomment|// Code comment}}
|-
-->
| Config code block (uses C++ highlighting)
| <pre><syntaxhighlight lang="cpp">
class ExampleClass
{
value1 = 1; // Lorem ipsum dolor sit amet.
value2 = "value2";
};
</syntaxhighlight></pre>
| <syntaxhighlight lang="cpp">
class ExampleClass
{
value1 = 1; // Lorem ipsum dolor sit amet.
value2 = "value2";
};
</syntaxhighlight>
|-
| [[SQS Syntax|SQS]] code block
| <pre><sqs>
#Label1
hint "repeating"
goto "Label1"
</sqs></pre>
| <sqs>
#Label1
hint "repeating"
goto "Label1"
</sqs>
|-
| Inline SQS code || <pre>Lorem ipsum <sqs inline>[player, _jeep] exec "getin.sqs"</sqs> dolor sit amet.</pre> || Lorem ipsum <sqs inline>[player, _jeep] exec "getin.sqs"</sqs> dolor sit amet.
|-
| [[SQF Syntax|SQF]] code block
| <pre><sqf>
private _pos = [0, 0, 0];
player setPosASL _pos;
player setDamage 0; // Heals the player
</sqf></pre>
| <sqf>
private _pos = [0, 0, 0];
player setPosASL _pos;
player setDamage 0; // Heals the player
</sqf>
|-
| Inline SQF code || <pre>Lorem ipsum <sqf inline>player setPosASL [0, 0, 0]</sqf> dolor sit amet.</pre> || Lorem ipsum <sqf inline>player setPosASL [0, 0, 0]</sqf> dolor sit amet.
|-
| Enforce Script code block
| <pre>
<enforce>
string text = "Hello World!";
Print(text); // Prints "Hello World!".
</enforce>
</pre>
| <enforce>
string text = "Hello World!";
Print(text); // Prints "Hello World!".
</enforce>
|-
| Inline Enforce Script code (uses C# highlighting) || <pre>Lorem ipsum <enforce inline>string text = "Hello World!"</enforce> dolor sit amet.</pre> || Lorem ipsum <enforce inline>string text = "Hello World!"</enforce> dolor sit amet.
|}
 
'''Notes:'''
* To render an equals sign ({{hl|{{=}}}}) or a pipe ({{hl|{{!}}}}) within a template without breaking the page, use the [[Template:=|equals template]] ({{hl|<nowiki>{{=}}</nowiki>}}) and the [[Template:!|pipe template]] ({{hl|<nowiki>{{!}}</nowiki>}}) or wrap the symbols with {{hl|<<nowiki/>nowiki>}} tags. Example:
** {{hl|<nowiki>{{hl|_myNumber = 5;}}</nowiki>}} - This will not render properly.
** {{hl|<nowiki>{{hl|_myNumber {{=}} 5;}}</nowiki>}} - This renders properly.
* Use the [[Template:hl|highlight template]] ({{hl|<nowiki>{{hl}}</nowiki>}}) or {{hl|<nowiki><var></nowiki>}} tags for inline variables (e.g. "The variable <var>_myNumber</var> has the value 5").
* Use tabs for indentation, not spaces (tick the box ''Allow tabulations usage'' in the Editing Area if necessary).
* Maintain spacing between symbols and items, for example: <syntaxhighlight lang="cpp">
class ExampleClass
{
stringValue="value"; // bad (no space around the equals sign)
stringValue = "value"; // good
 
arrayValue = {0,0.5,0,1}; // bad (no space between the numbers)
arrayValue = { 0, 0.5, 0, 1 }; // good
};
</syntaxhighlight>
 
{{Feature|informative|At the root level of the page (i.e. not within templates and tables), text indented by one space renders the same way as text wrapped in {{hl|<nowiki><code style="display: block"></nowiki>}} tags.}}
 
== Lists ==


==Lists==
Do not leave blank lines between items in a list unless there is a reason to do so, since this causes the MediaWiki software to interpret each item as beginning a new list.
Do not leave blank lines between items in a list unless there is a reason to do so, since this causes the MediaWiki software to interpret each item as beginning a new list.


===Unordered lists===
=== Unordered lists ===


<table style="table-layout:fixed; width:100%; margin-top:0;margin-left:0; border-width:medium; padding:0;"><tr>
<table style="table-layout:fixed; width:100%; margin-top:0;margin-left:0; border-width:medium; padding:0;"><tr>
<th scope="col" style="width:50%;">Markup</th>
<th scope="col" style="width:50%;">Markup</th>
<th scope="col" style="width:50%;">Renders as  
<th scope="col" style="width:50%;">Renders as
</th></tr>
</th></tr>
<tr>
<tr>
Line 856: Line 852:
<td style="width:50%; border-width:1px;border-style:solid none none none;border-color:#ddd; padding:5px; vertical-align:top;"></td></tr></table>
<td style="width:50%; border-width:1px;border-style:solid none none none;border-color:#ddd; padding:5px; vertical-align:top;"></td></tr></table>


===Ordered lists===
====  Unordered, multi column, list ====


<table style="table-layout:fixed; width:100%; margin-top:0;margin-left:0; border-width:medium; padding:0;"><tr>
<table style="table-layout:fixed; width:100%; margin-top:0;margin-left:0; border-width:medium; padding:0;"><tr>
<th scope="col" style="width:50%;">Markup</th>
<th scope="col" style="width:50%;">Markup</th>
<th scope="col" style="width:50%;">Renders as  
<th scope="col" style="width:50%;">Renders as
</th></tr>
<tr>
<td style="width:50%; background:#f9f9f9; border-width:1px;border-style:solid none none solid;border-color:#ddd; padding:9px 5px 5px; vertical-align:top;"><pre style="margin:0;border:none;padding:0; word-wrap:break-word; white-space:-moz-pre-wrap;white-space:-o-pre-wrap;white-space:-pre-wrap;white-space:pre-wrap;">
<div style="columns: 3">
* {{arma3}}
* {{arma2}}
* {{arma1}}
* {{ofp}}
</div></pre>
</td>
<td style="width:50%; background:#f9f9f9; border-width:1px;border-style:solid solid none solid;border-color:#ddd; padding:5px; vertical-align:top;"><div style="">
<p></p>
<div style="columns: 3">
* {{arma3}}
* {{arma2}}
* {{arma1}}
* {{ofp}}
</div>
</td></tr>
<tr>
<td style="width:50%; border-width:1px;border-style:solid none none none;border-color:#ddd; padding:5px; vertical-align:top;"></td>
<td style="width:50%; border-width:1px;border-style:solid none none none;border-color:#ddd; padding:5px; vertical-align:top;"></td></tr></table>
 
=== Ordered lists ===
 
<table style="table-layout:fixed; width:100%; margin-top:0;margin-left:0; border-width:medium; padding:0;"><tr>
<th scope="col" style="width:50%;">Markup</th>
<th scope="col" style="width:50%;">Renders as
</th></tr>
</th></tr>
<tr>
<tr>
Line 891: Line 915:
<td style="width:50%; border-width:1px;border-style:solid none none none;border-color:#ddd; padding:5px; vertical-align:top;"></td></tr></table>
<td style="width:50%; border-width:1px;border-style:solid none none none;border-color:#ddd; padding:5px; vertical-align:top;"></td></tr></table>


==={{Anchor|DL}}Description lists===
=== Description lists ===
 
To list terms and definitions, start a new line with a semicolon (;) followed by the term. Then, type a colon (:) followed by a definition. The format can also be used for other purposes, such as make and models of vehicles, etc.
To list terms and definitions, start a new line with a semicolon (;) followed by the term. Then, type a colon (:) followed by a definition. The format can also be used for other purposes, such as make and models of vehicles, etc.


''Description lists''<!--HTML5 name--> (formerly ''definition lists''<!--HTML4 name-->, and a.k.a. ''association lists''<!--draft HTML5 name-->) consist of group names corresponding to values. Group names (terms) are in bold. Values (definitions) are indented. Each group <em>must</em> include one or more definitions. For a single or first value, the <code>:</code> can be placed on the same line after <code>;</code> – but subsequent values must be placed on separate lines.
''Description lists''<!--HTML5 name--> (formerly ''definition lists''<!--HTML4 name-->, and a.k.a. ''association lists''<!--draft HTML5 name-->) consist of group names corresponding to values. Group names (terms) are in bold. Values (definitions) are indented. Each group <em>must</em> include one or more definitions. For a single or first value, the <code style="display: block">:</code> can be placed on the same line after <code style="display: block">;</code> – but subsequent values must be placed on separate lines.


'''Do not use a semicolon (;) simply to bold a line without defining a value using a colon (:). This usage renders invalid HTML5 and creates issues with screen readers.'''
'''Do not use a semicolon (;) simply to bold a line without defining a value using a colon (:). This usage renders invalid HTML5 and creates issues with screen readers.'''
Line 900: Line 925:
<table style="table-layout:fixed; width:100%; margin-top:0;margin-left:0; border-width:medium; padding:0;"><tr>
<table style="table-layout:fixed; width:100%; margin-top:0;margin-left:0; border-width:medium; padding:0;"><tr>
<th scope="col" style="width:50%;">Markup</th>
<th scope="col" style="width:50%;">Markup</th>
<th scope="col" style="width:50%;">Renders as  
<th scope="col" style="width:50%;">Renders as
</th></tr>
</th></tr>
<tr>
<tr>
Line 909: Line 934:
<dl><dt>Term&nbsp;</dt>
<dl><dt>Term&nbsp;</dt>
<dd>Definition1</dd></dl>
<dd>Definition1</dd></dl>
</div>  
</div>
</td></tr>
</td></tr>
<tr>
<tr>
Line 931: Line 956:
<td style="width:50%; border-width:1px;border-style:solid none none none;border-color:#ddd; padding:5px; vertical-align:top;"></td></tr></table>
<td style="width:50%; border-width:1px;border-style:solid none none none;border-color:#ddd; padding:5px; vertical-align:top;"></td></tr></table>


HTML equivalent: {{tag|dl|o}} {{tag|dt}}, {{tag|dd}} {{tag|dl|c}}
HTML equivalent: <nowiki><dl>, <dt> <dd>, <dl></nowiki>
 
 
== Links ==
 
Most links can be created through the {{Template|Link}} feature, it should be used as much as possible at least for external links:
{| class="wikitable"
! colspan="2" style="width: 50%" | Internal Link
! colspan="2" style="width: 50%" | External Link
|-
|
<syntaxhighlight lang="html+handlebars">
{{Link|https://www.bohemia.net/}}
{{Link|https://www.bohemia.net/|link text}}
{{Link|https://www.bohemia.net/?page{{=}}1|link text}}
{{Link|https://en.wikipedia.org/wiki/Arma_2}}
</syntaxhighlight>
|
* {{Link|https://www.bohemia.net/}}
* {{Link|https://www.bohemia.net/|link text}}
* {{Link|https://www.bohemia.net/?page{{=}}1|link text}}
* {{Link|https://en.wikipedia.org/wiki/Arma_2}}
|
<syntaxhighlight lang="html+handlebars">
{{Link|setDir}}
{{Link|setDir#Syntax 1}}
{{Link|setDir#Syntax 1|link text}}
</syntaxhighlight>
|
* {{Link|setDir}}
* {{Link|setDir#Syntax 1}}
* {{Link|setDir#Syntax 1|link text}}
|}
 
=== Internal Links ===


==Links==
===Internal Links===
In most wikis, internal links are used in wikitext markup instead of regular urls to simplify linking and reading
In most wikis, internal links are used in wikitext markup instead of regular urls to simplify linking and reading


{| class="wikitable"
{| class="wikitable" width = "100%"
! Description
! Description
! width="40%" | You type
! width="40%" | You type
! width="40%" | You get
! width="40%" | You get
|-
|-
| Internal link
| Internal link
| <pre>Arma is made by [[Bohemia Interactive]].</pre>
| <pre>Arma is made by [[Bohemia Interactive]].</pre>
| Arma is made by [[Bohemia Interactive]].
| Arma is made by [[Bohemia Interactive]].
|-
|-
Line 953: Line 1,010:
|-
|-
| Auto renamed link (pipe trick)
| Auto renamed link (pipe trick)
| <pre>[[createTrigger (VBS1)|]]</pre>
| <pre>[[:Category:Scripting Commands|]]</pre>
| [[createTrigger (VBS1)|createTrigger]]
| [[:Category:Scripting Commands|Scripting Commands]]
|-
|-
| Automatically hide stuff in parentheses
| Automatically hide stuff in parentheses
| <pre>[[createTrigger (VBS1)|]]</pre>
| <pre>[[raP (ArmA)|]]</pre>
| [[createTrigger (VBS1)|createTrigger]]
| [[raP (ArmA)|raP]]
|-
|-
| Automatically hide the comma and following text
| Automatically hide the comma and following text
Line 974: Line 1,031:
| Does not work for section links
| Does not work for section links
| <pre>[[Wikipedia:Manual of Style#Links|]]</pre>
| <pre>[[Wikipedia:Manual of Style#Links|]]</pre>
|<nowiki> [[Wikipedia:Manual of Style#Links|]]</nowiki>
| <nowiki>[[Wikipedia:Manual of Style#Links|]]</nowiki>
|-
|-
|}
|}


====Link to a section of a page====
==== Link to a section of a page ====
You can add the specific section you want to link by adding the seciton title to the link after a # (hash).
You can add the specific section you want to link by adding the seciton title to the link after a # (hash).
{| class="wikitable"
{| class="wikitable" width = "100%"
! width="40%" | You type
!Description
! width="40%" | You get
! width="40%" | You type
! width="40%" | You get
|-
|-
| <pre>[[Wikipedia:Manual of Style#Italics]] is a link to a section within another page.</pre>
| Link to a section within another page
| [[Wikipedia:Manual of Style#Italics]] is a link to a section within another page.
| <pre>[[Wikipedia:Manual of Style#Italics]]</pre>
| [[Wikipedia:Manual of Style#Italics]]
|-
|-
| <pre>[[Wikipedia:Manual of Style#Italics|Italics]] is a piped link to a section within another page.</pre>
| Piped link to a section within another page.
| [[Wikipedia:Manual of Style#Italics|Italics]] is a piped link to a section within another page.
| <pre>[[Wikipedia:Manual of Style#Italics|Italics]]</pre>
| [[Wikipedia:Manual of Style#Italics|Italics]].
|-
|-
|}
|}


====Blended links====
==== Blended links ====
{| class="wikitable"
{| class="wikitable" width = "100%"
! Desctiption
! Description
! width="40%" | You type
! width="40%" | You type
! width="40%" | You get
! width="40%" | You get
|-
|-
| Blending active
| Blending active
Line 1,008: Line 1,068:
|}
|}


===Redirects===
=== Redirects ===
 
Redirects are used to redirect specific pages to another page.
Redirects are used to redirect specific pages to another page.
{| class="wikitable" border="1"
{| class="wikitable" width = "100%"  
!Description
! width="20%" |  Description
!What you type
! width="80%" |  You type
|-
|-
|
| Redirect to an article
Redirect to an article
| <code style="display: block"><nowiki>#REDIRECT [[United States]] </nowiki></code>
|
<code><nowiki>#REDIRECT [[United States]] </nowiki></code>
|-
|-
|
| Redirect to a section
Redirect to a section
| <code style="display: block"><nowiki>#REDIRECT [[United States#History]]</nowiki></code>
|
<code><nowiki>#REDIRECT [[United States#History]]</nowiki></code>
|}
===Link to another namespace===
{| class="wikitable"
!What you type
!What it looks like
|-
|-
|
| Link to another namespace
<code><nowiki>See the [[Wikipedia:Manual of Style]].</nowiki></code>
| <code style="display: block"><nowiki>See the [[Wikipedia:Manual of Style]].</nowiki></code>
|
| See the [[Wikipedia:Manual of Style]].
See the [[Wikipedia:Manual of Style]].
|}
|}
===Categories===
 
Categories are used to categorize articles. You can add links of a category to a page to add that article. To link to a category you have to add <code>[[:Category:nameofcategory]]</code>.
=== Categories ===
{| class="wikitable"
 
{| class="wikitable" width = "100%"
!Description
!Description
!What you type
! width="40%" | You type
!What it looks like
! width="40%" | You get
|-
|-
| Add article to category
| Add article to category
| <code><nowiki>[[Category:Character sets]]</nowiki></code>
| <code style="display: block"><nowiki>[[Category:Character sets]]</nowiki></code>
|
|
|-
|-
| Link to a category
| Link to a category
| <code><nowiki>[[:Category:Character sets]]</nowiki></code>
| <code style="display: block"><nowiki>[[:Category:Character sets]]</nowiki></code>
| [[:Category:Character sets]]
| [[:Category:Character sets]]
|-
|-
| Without prefix.
| Without prefix.
| <code><nowiki>[[:Category:Character sets|]]</nowiki></code>
| <code style="display: block"><nowiki>[[:Category:Character sets|]]</nowiki></code>
| [[:Category:Character sets|Character sets]]
| [[:Category:Character sets|Character sets]]
|}
|}
===External links===
External links link to external websites other than the Biki. These links are in url format.


{| class="wikitable"
=== External links ===
 
External links link to external websites other than the Biki. These links are in url format.
 
{| class="wikitable" width = "100%"
!Description
!Description
!What you type
! width="40%" | You type
!What it looks like
! width="40%" | You get
|-
|-
| Named link with an external link icon
| Named link with an external link icon
Line 1,075: Line 1,129:
| Bare URL
| Bare URL


(Bad style)
(Bad style)


use <nowiki>&lt;nowiki&gt;</nowiki>&lt;/nowiki&gt; to keep this bad style from showing
use <nowiki>&lt;nowiki&gt;</nowiki>&lt;/nowiki&gt; to keep this bad style from showing
|
|
<code><nowiki>http://www.wikipedia.org</nowiki></code>
<code style="display: block"><nowiki>http://www.wikipedia.org</nowiki></code>
|
|
http://www.wikipedia.org
http://www.wikipedia.org
Line 1,088: Line 1,142:
(Not often used)
(Not often used)
|
|
<code><nowiki><span class="plainlinks">[http://www.wikipedia.org Wikipedia]</span></nowiki></code>
<code style="display: block"><nowiki><span class="plainlinks">[http://www.wikipedia.org Wikipedia]</span></nowiki></code>
|
|
<span class="plainlinks"> [http://www.wikipedia.org Wikipedia]</span>
<span class="plainlinks"> [http://www.wikipedia.org Wikipedia]</span>
|}
|}


==Images==
== Images ==
Images can be put into a page using internal links in <code>[[Image:]] or [[File:]]</code> format.


{| class="wikitable"
{| class="wikitable" width = "100%"
!What you type
!Description
!What it looks like
! width="40%" | You type
! width="40%" | You get
|-
|-
| <code><nowiki>[[Image:image]]</nowiki></code>
| Simple image without description
| [[Image:image]]
| <pre>[[File:Logo_A3_black.png]]</pre> or <pre>[[Image:Logo_A3_black.png]]</pre>
{{Feature|important|<code>File:</code> is to be preferred.}}
| [[File:Logo_A3_black.png]]
|-
|-
| <code><nowiki>[[File:image]]</nowiki></code>
| Thumb image with description, defined size and aligned right. Size can by any number. Alignment can be (left, right and center)
| [[File:image]]
| <pre>[[File:Logo_A3_black.png|thumb|right|100px|Some description]]</pre>
| [[File:Logo_A3_black.png|thumb|right|100px|Some description]]
|}
|}


== Tables ==
== Tables ==
There are 2 ways to make tables in wikitext
* Using wikitable(recommended)
* Using HTML elements: <code><nowiki><table></nowiki></code>, <code><nowiki><tr></nowiki></code>, <code><nowiki><td></nowiki></code>, <code><nowiki><th></nowiki></code>
https://en.wikipedia.org/wiki/index.php?title=Help:Table&action=edit&redlink=1


== Templates and transclusions ==
There are multiple ways to make tables in wikitext. Recommended are:
Templates are segments of wiki markup that are meant to be copied automatically ("transcluded") into a page.
* Table tool in the text editor
You add them by putting the template's name in <nowiki>{{double braces}}</nowiki>. It is also possible to transclude other pages by using <nowiki>{{:colon and double braces}}</nowiki>.
* [https://www.tablesgenerator.com/mediawiki_tables Table Generator]


There are three pairs of tags that can be used in wikitext to control how transclusion affects parts of a template or article.
{{Feature|informative|Make sure the raw text is well formatted so it is easier to edit later.}}
They determine whether or not wikitext renders, either in its own article, which we will call "'''here'''", or in another article where it is transcluded, which we will call "'''there'''".
 
* '''<nowiki><noinclude></nowiki>: ''' the content '''will not be rendered ''there'''''. These tags have no effect ''here''.
== Useful templates ==
* '''<nowiki><includeonly></nowiki>: ''' the content  '''will render only ''there''''', and  '''will not render ''here''''' (like invisible ink made visible by means of transclusion).
 
* '''<nowiki><onlyinclude></nowiki>: ''' the content '''will render ''here''''' and '''will render ''there''''', but it will only render ''there'' what is between these tags.
{{Feature|informative|Visit [[:Category:Templates]], to see a complete list of available templates.}}
There can be several such section "elements". Also, they can be nested. All possible renderings are achievable. For example, to render ''there'' one or more sections of the page ''here'' use '''<nowiki><onlyinclude></nowiki>''' tags. To append text ''there'', wrap the addition in '''<nowiki><includeonly></nowiki>''' tags before, within, or after the section. To omit portions of the section, nest '''<nowiki><noinclude></nowiki>''' tags within it.
 
{| class="wikitable"  width = "100%"
! Template
! width="40%" | You type
! width="40%" | You get
|-
| rowspan="4" | [[Template:Wiki]]
| <pre>{{Wiki|delete|reason}}</pre>
| {{Messagebox|'''This article has been submitted for''' <big>deletion</big>'''.''' '''The reason given was:''' reason'''.'''|🗙|#F00}}
|-
| <pre>{{Wiki|merge}}</pre>
| {{Messagebox|This article has been proposed to merge with [[Main Page]].|<div style{{=}}"font-size: .75em; line-height: .6em">↘<br>↗</div><!--↣-->|blueviolet}}
|-
| <pre>{{Wiki|stub}}</pre>
| <div class="notice metadata" id="stub">''This article is a [[:Category:Stubs|Stub]]. You can help BI Community Wiki by <span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=edit}} expanding it]</span>.''</div>
|-
| <pre>{{Wiki|WIP}}</pre>
| {{Messagebox|This article is a '''work in progress'''!|🏗|dodgerblue}}
|-
| rowspan="6" | [[Template:Feature]]<br>See {{Template|Feature}} for all the available types.
| <pre>{{Feature|arma3|text}}</pre>
| {{Feature|arma3|text}}
|-
| <pre>{{Feature|informative|text}}</pre>
| {{Feature|informative|text}}
|-
| <pre>{{Feature|important|important text}}</pre>
| {{Feature|important|text}}
|-
| <pre>{{Feature|warning|text}}</pre>
| {{Feature|warning|text}}
|-
| <pre>{{Feature|obsolete}}</pre>
| {{Feature|obsolete}}
|-
| <pre>{{Feature|quote|Gastovski, out!|James Gastovski
|https://www.youtube.com/watch?v{{=}}TGKFY1QiIGA}}</pre>
| {{Feature|quote|Gastovski, out!|James Gastovski|https://www.youtube.com/watch?v{{=}}TGKFY1QiIGA}}
|-
| [[Template:GVI]]
| <pre>{{GVI|arma3|version}}</pre>
| {{GVI|arma3|1.96}}
|-
| [[Template:cn]]
| <pre>{{cn}}</pre>
<pre>{{cn|Miller is a nice guy}}</pre>
| {{cn}}<br>
{{cn|Miller is a nice guy}}
|-
| [[Template:Icon]]
| <pre>{{Icon|serverExec|32}}
{{Icon|globalArgument|32}}
{{Icon|localArgument|32}}
{{Icon|globalEffect|32}}
{{Icon|localEffect|32}}</pre>
|
{{Icon|serverExec|32}}
{{Icon|globalArgument|32}}
{{Icon|localArgument|32}}
{{Icon|globalEffect|32}}
{{Icon|localEffect|32}}
|}


If a page is transcluded without transclusion markup, it may cause an unintentional categorization. Any page transcluding it will contain the same category as the original page. Wrap the category markup with '''<nowiki><noinclude></nowiki>''' tags to prevent incorrect categorization.


Some templates take ''parameters'', as well, which you separate with the pipe character <code>|</code>.
[[Category:Community Wiki]]

Latest revision as of 00:24, 2 February 2024


The text editor comes with some basic text formatting tips

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

Colored text
<span style="color: red;">Colour</span>

Colour

Spoiler
<spoiler text="Click me!">spoiler</spoiler>

spoiler

Escape wiki markup
<nowiki> no ''markup''</nowiki>
no ''markup''
Small chunks of source code within a line of normal text.

Code is displayed in a monospace font.

function <code>int m2()</code> is nice.
function int m2() is nice.
Small text
Text can be made <small>smaller like this</small>
Text can be made smaller like this
Big text
Text can be made <big>bigger like this</big>
Text can be made bigger like this
Teletype (using {{hl}})
Highlight {{hl|TAG_someVariable}} in a text
Highlight TAG_someVariable in a text
Section formatting – only at the beginning of the line
Section Headings of different levels
== Level 2 ==

=== Level 3 ===

==== Level 4 ====

===== Level 5 =====

====== Level 6 ======

  • Do not put any text on the same line after the ending equal signs.
  • An article with 4 or more headings automatically creates a Table of Contents (ToC) - unless setting the magic word __NOTOC__.
  • You can use a right-side ToC with the {{TOC|side}} template.
  • Recommended spacing:
    • Add spaces between the title itself and the equal signs
    • Two empty lines before a Level 2 title, one after
    • One empty line before a Level 3 title, one after
    • One empty line before a Level 4..6 title, none after.

Level 2



Level 3


Level 4


Level 5


Level 6


Horizontal rule
 Text before
----
 Text after
Text before

Text after
Line Breaks
A single newline here has no effect on the layout.

But an empty line starts a new paragraph, or ends a list or an indented part.
Lines can be forced to break <br> like this.
A single newline here has no effect on the layout.

But an empty line starts a new paragraph,

or ends a list or an indented part.

Lines can be forced to break

like this.

Indent text
: Single indent
:: Double indent
::::: Multiple indent

This workaround may harm 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

The usage of #: and *: to break a line within an item may also harm accessibility.
  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.

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
 <nowiki>
Start with a space in the first column,
(before the <tvar|1><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
       


HTML tags

Description You type You get
Inserted
(Displays as underline in most browsers)
<ins> Inserted</ins>

or

<u>Underline</u>

Inserted

or

Underline

Deleted
(Displays as strikethrough in most browsers)
<s>Struck out</s>
or
<del>Deleted</del>

Struck out

or

Deleted

Blockquotes
 Text before
<blockquote> Blockquote</blockquote>
 Text after

Text before

Blockquote

Text after

Quotes
<q>This is a quotation</q>
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.[1]
This is a quotation
Comment
<!-- This is a comment -->
Comments are visible only
in the edit zone.

Comments are visible only in the edit zone.

Completely preformatted text
<pre>

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

For marking up of preformatted text, check the "Preformatted text" entry at the end 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>

A CSS style can be defined within the style attribute.

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>
 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>
 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;">
 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>
 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 —.


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

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;")

Code Formatting

Description You type You get
Code block (no highlighting)
Lorem ipsum ...
<code style="display: block">player setPosASL [0, 0, 0];
player setDamage 0;</code>
... dolor sit amet.
Lorem ipsum ...player setPosASL [0, 0, 0]; player setDamage 0;... dolor sit amet.
Code inline-block (no highlighting)
Lorem ipsum ... <code style="display: inline-block">player setPosASL [0, 0, 0];
player setDamage 0;</code> ... dolor sit amet.
Lorem ipsum ... player setPosASL [0, 0, 0]; player setDamage 0; ... dolor sit amet.


Single-line code comment (should only be used inside <code> tags where the usage of <sqf> tags is not possible)
<code style="display: block">[[player]] setPos{{Color|red|ASL}} [0, 0, 0]; {{cc|teleports the player}}</code>
player setPosASL [0, 0, 0]; // teleports the player
Config code block (uses C++ highlighting)
<syntaxhighlight lang="cpp">
class ExampleClass
{
	value1 = 1; // Lorem ipsum dolor sit amet.
	value2 = "value2";
};
</syntaxhighlight>
class ExampleClass
{
	value1 = 1; // Lorem ipsum dolor sit amet.
	value2 = "value2";
};
SQS code block
<sqs>
#Label1
hint "repeating"
goto "Label1"
</sqs>
#Label1 hint "repeating" goto "Label1"
Inline SQS code
Lorem ipsum <sqs inline>[player, _jeep] exec "getin.sqs"</sqs> dolor sit amet.
Lorem ipsum [player, _jeep] exec "getin.sqs" dolor sit amet.
SQF code block
<sqf>
private _pos = [0, 0, 0];
player setPosASL _pos;
player setDamage 0; // Heals the player
</sqf>
private _pos = [0, 0, 0]; player setPosASL _pos; player setDamage 0; // Heals the player
Inline SQF code
Lorem ipsum <sqf inline>player setPosASL [0, 0, 0]</sqf> dolor sit amet.
Lorem ipsum player setPosASL [0, 0, 0] dolor sit amet.
Enforce Script code block
<enforce>
string text = "Hello World!";
Print(text); // Prints "Hello World!".
</enforce>
string text = "Hello World!"; Print(text); // Prints "Hello World!".
Inline Enforce Script code (uses C# highlighting)
Lorem ipsum <enforce inline>string text = "Hello World!"</enforce> dolor sit amet.
Lorem ipsum string text = "Hello World!" dolor sit amet.

Notes:

  • To render an equals sign (=) or a pipe (|) within a template without breaking the page, use the equals template ({{=}}) and the pipe template ({{!}}) or wrap the symbols with <nowiki> tags. Example:
    • {{hl|_myNumber = 5;}} - This will not render properly.
    • {{hl|_myNumber {{=}} 5;}} - This renders properly.
  • Use the highlight template ({{hl}}) or <var> tags for inline variables (e.g. "The variable _myNumber has the value 5").
  • Use tabs for indentation, not spaces (tick the box Allow tabulations usage in the Editing Area if necessary).
  • Maintain spacing between symbols and items, for example:
    class ExampleClass
    {
    	stringValue="value";			// bad (no space around the equals sign)
    	stringValue = "value";			// good
    
    	arrayValue = {0,0.5,0,1};		// bad (no space between the numbers)
    	arrayValue = { 0, 0.5, 0, 1 };	// good
    };
    
At the root level of the page (i.e. not within templates and tables), text indented by one space renders the same way as text wrapped in <code style="display: block"> tags.

Lists

Do not leave blank lines between items in a list unless there is a reason to do so, since this causes the MediaWiki software to interpret each item as beginning a new list.

Unordered lists

Markup Renders as
* Item1
* Item2
* Item3
* Item4
** Sub-item 4 a)
*** Sub-item 4 a) 1.
**** Sub-item 4 a) 1. i)
**** Sub-item 4 a) 1. ii)
** Sub-item 4 b)
* Item5

  • Item1
  • Item2
  • Item3
  • Item4
    • Sub-item 4 a)
      • Sub-item 4 a) 1.
        • Sub-item 4 a) 1. i)
        • Sub-item 4 a) 1. ii)
    • Sub-item 4 b)
  • Item5

Unordered, multi column, list

Markup Renders as
<div style="columns: 3">
* {{arma3}}
* {{arma2}}
* {{arma1}}
* {{ofp}}
</div>

  • Arma 3
  • Arma 2
  • Armed Assault
  • Operation Flashpoint

Ordered lists

Markup Renders as
# Item1
# Item2
# Item3
# Item4
## Sub-item 1
### Sub-sub-item
#### Sub-sub-sub-item
## Sub-item 2
# Item5

  1. Item1
  2. Item2
  3. Item3
  4. Item4
    1. Sub-item 1
      1. Sub-sub-item
        1. Sub-sub-sub-item
    2. Sub-item 2
  5. Item5

Description lists

To list terms and definitions, start a new line with a semicolon (;) followed by the term. Then, type a colon (:) followed by a definition. The format can also be used for other purposes, such as make and models of vehicles, etc.

Description lists (formerly definition lists, and a.k.a. association lists) consist of group names corresponding to values. Group names (terms) are in bold. Values (definitions) are indented. Each group must include one or more definitions. For a single or first value, the : can be placed on the same line after ; – but subsequent values must be placed on separate lines.

Do not use a semicolon (;) simply to bold a line without defining a value using a colon (:). This usage renders invalid HTML5 and creates issues with screen readers.

Markup Renders as
; Term : Definition1

Term 
Definition1
; Term
: Definition1
: Definition2
: Definition3
: Definition4

Term
Definition1
Definition2
Definition3
Definition4

HTML equivalent: <dl>, <dt> <dd>, <dl>


Links

Most links can be created through the {{Link}} feature, it should be used as much as possible at least for external links:

Internal Link External Link
{{Link|https://www.bohemia.net/}}
{{Link|https://www.bohemia.net/|link text}}
{{Link|https://www.bohemia.net/?page{{=}}1|link text}}
{{Link|https://en.wikipedia.org/wiki/Arma_2}}
{{Link|setDir}}
{{Link|setDir#Syntax 1}}
{{Link|setDir#Syntax 1|link text}}

Internal Links

In most wikis, internal links are used in wikitext markup instead of regular urls to simplify linking and reading

Description You type You get
Internal link
Arma is made by [[Bohemia Interactive]].
Arma is made by Bohemia Interactive.
Renamed link
Ylands is also made by [[Bohemia Interactive|BI]].
Ylands is also made by BI.
Auto renamed links (pipe trick)
Auto renamed link (pipe trick)
[[:Category:Scripting Commands|]]
Scripting Commands
Automatically hide stuff in parentheses
[[raP (ArmA)|]]
raP
Automatically hide the comma and following text
[[Seattle, Washington|]]
Seattle
Automatically hide namespace
[[Wikipedia:Village pump|]]
Village pump
Or both
[[Wikipedia:Manual of Style (headings)|]]
Manual of Style
Does not work for section links
[[Wikipedia:Manual of Style#Links|]]
[[Wikipedia:Manual of Style#Links|]]

Link to a section of a page

You can add the specific section you want to link by adding the seciton title to the link after a # (hash).

Description You type You get
Link to a section within another page
[[Wikipedia:Manual of Style#Italics]]
Wikipedia:Manual of Style#Italics
Piped link to a section within another page.
[[Wikipedia:Manual of Style#Italics|Italics]]
Italics.

Blended links

Description You type You get
Blending active
San Francisco also has [[public transport]]ation. Examples include [[bus]]es, [[taxicab]]s, and [[tram]]s.
San Francisco also has public transportation. Examples include buses, taxicabs, and trams.
Blending supressed
A [[micro-]]<nowiki />second.
A micro-second.

Redirects

Redirects are used to redirect specific pages to another page.

Description You type
Redirect to an article #REDIRECT [[United States]]
Redirect to a section #REDIRECT [[United States#History]]
Link to another namespace See the [[Wikipedia:Manual of Style]]. See the Wikipedia:Manual of Style.

Categories

Description You type You get
Add article to category [[Category:Character sets]]
Link to a category [[:Category:Character sets]] Category:Character sets
Without prefix. [[:Category:Character sets|]] Character sets

External links

External links link to external websites other than the Biki. These links are in url format.

Description You type You get
Named link with an external link icon [http://www.wikipedia.org Wikipedia] Wikipedia
Unnamed link

(Used only within article body for footnotes)

[http://www.wikipedia.org]

[2]

Bare URL

(Bad style)

use <nowiki></nowiki> to keep this bad style from showing

http://www.wikipedia.org

http://www.wikipedia.org

Link without arrow

(Not often used)

<span class="plainlinks">[http://www.wikipedia.org Wikipedia]</span>

Wikipedia

Images

Description You type You get
Simple image without description
[[File:Logo_A3_black.png]]
or
[[Image:Logo_A3_black.png]]
File: is to be preferred.
Logo A3 black.png
Thumb image with description, defined size and aligned right. Size can by any number. Alignment can be (left, right and center)
[[File:Logo_A3_black.png|thumb|right|100px|Some description]]
Some description

Tables

There are multiple ways to make tables in wikitext. Recommended are:

Make sure the raw text is well formatted so it is easier to edit later.

Useful templates

Visit Category:Templates, to see a complete list of available templates.
Template You type You get
Template:Wiki
{{Wiki|delete|reason}}
🗙
This article has been submitted for deletion. The reason given was: reason.
{{Wiki|merge}}

This article has been proposed to merge with Main Page.
{{Wiki|stub}}
{{Wiki|WIP}}
🏗
This article is a work in progress!
Template:Feature
See {{Feature}} for all the available types.
{{Feature|arma3|text}}
Arma 3
text
{{Feature|informative|text}}
text
{{Feature|important|important text}}
text
{{Feature|warning|text}}
text
{{Feature|obsolete}}
🕖
This information is obsolete.
{{Feature|quote|Gastovski, out!|James Gastovski
|https://www.youtube.com/watch?v{{=}}TGKFY1QiIGA}}
«
« Gastovski, out! » – James Gastovski (source)
Template:GVI
{{GVI|arma3|version}}
Arma 3 logo black.png1.96
Template:cn
{{cn}}
{{cn|Miller is a nice guy}}
[citation needed]

Miller is a nice guy [citation needed]

Template:Icon
{{Icon|serverExec|32}}
{{Icon|globalArgument|32}}
{{Icon|localArgument|32}}
{{Icon|globalEffect|32}}
{{Icon|localEffect|32}}

SEServer GAGlobal LALocal GEGlobal LELocal