Formatting – Bohemia Interactive Community
m (Erentar moved page User:Erentar/Sandbox4 to Bohemia Interactive Community:Formatting) |
mNo edit summary |
||
Line 1: | Line 1: | ||
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>. | 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" | {| class="wikitable" | ||
! | ! Description | ||
! width="40%" | | ! width="40%" | You type | ||
! width="40%" | | ! width="40%" | You get | ||
|- | |- | ||
! colspan="3" style="background: #ABE" | | ! colspan="3" style="background: #ABE" | Character (inline) formatting – ''applies anywhere'' | ||
|- | |- | ||
| | | Italic text | ||
| <pre> | | <pre> | ||
'' | ''italic'' | ||
</pre> | </pre> | ||
| | | | ||
'' | ''italic'' | ||
|- | |- | ||
| | | Bold text | ||
| <pre> | | <pre> | ||
''' | '''bold''' | ||
</pre> | </pre> | ||
| | | | ||
''' | '''bold''' | ||
|- | |- | ||
| | | Bold and italic | ||
| <pre> | | <pre> | ||
''''' | '''''bold & italic''''' | ||
</pre> | </pre> | ||
| | | | ||
''''' | '''''bold & italic''''' | ||
|- | |- | ||
| | | Escape wiki markup | ||
| <pre> | | <pre> | ||
<nowiki> | <nowiki> no ''markup''</nowiki> | ||
</pre> | </pre> | ||
| | | | ||
<nowiki>no ''markup''</nowiki> | |||
|- | |||
|Small chunks of source code within a line of normal text. | |||
Code is displayed in a monospace font. | |||
|<pre> | |||
function <code>int m2()</code> is nice. | |||
</pre> | |||
|function <code>int m2()</code> is nice. | |||
|- | |||
|Small text | |||
|<pre> | |||
Text can be made <small>smaller like this</small> | |||
</pre> | |||
|Text can be made <small>smaller like this</small> | |||
|- | |||
|Big text | |||
|<pre> | |||
Text can be made <big>bigger like this</big> | |||
</pre> | |||
|Text can be made <big>bigger like this</big> | |||
|- | |- | ||
! colspan="3" style="background: #ABE" | | ! colspan="3" style="background: #ABE" | Section formatting – ''only at the beginning of the line'' | ||
|- | |- | ||
| | | Section Headings of different levels | ||
| <pre> | | <pre> | ||
== Level 2 == | |||
== Level | === Level 3 === | ||
=== Level | ==== Level 4 ==== | ||
===== Level 5 ===== | |||
===== Level 5 ===== | |||
====== Level 6 ====== | |||
</pre> | </pre> | ||
---- | ---- | ||
{{note|1=<nowiki/> | {{note|1=<nowiki/> | ||
* | * 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>). | ||
}} | }} | ||
| | | | ||
<!-- using HTML markup to avoid creating new sections --> | <!-- using HTML markup to avoid creating new sections --> | ||
<span style="font-family:Georgia;font-size:18pt">Level 2</span> | |||
---- | |||
< | <span style="font-family:arial;font-size:12pt">'''Level 3'''</span> | ||
---- | |||
< | <span style="font-family:arial;font-size:11pt">'''Level 4'''</span> | ||
---- | |||
< | <span style="font-family:arial;font-size:11pt">'''Level 5'''</span> | ||
---- | |||
<span style="font-family:arial;font-size:11pt">'''Level 6'''</span> | |||
---- | |||
|- | |- | ||
| | | Horizontal rule | ||
| <pre> | | <pre> | ||
Text before | |||
---- | ---- | ||
Text after | |||
</pre> | </pre> | ||
| | | | ||
Text before | |||
---- | ---- | ||
Text after | |||
|- | |- | ||
| < | |Line Breaks | ||
|<pre> | |||
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. | |||
</pre> | |||
|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. | |||
|- | |||
| Bullet list | |||
| | | | ||
<pre> | <pre> | ||
* Start each line | * Start each line | ||
* with an asterisk (*). | * with an [[Wikipedia:asterisk|asterisk]] (*). | ||
** More asterisks give deeper | ** More asterisks give deeper | ||
*** and deeper levels. | *** and deeper levels. | ||
Line 103: | Line 133: | ||
Any other start ends the list. | Any other start ends the list. | ||
* combine bullet list | * combine bullet list | ||
** with definition | ** with definition | ||
Line 109: | Line 139: | ||
** creates empty space | ** creates empty space | ||
* combine bullet list | * combine bullet list | ||
** with definition | ** with definition | ||
Line 115: | Line 145: | ||
** without empty spaces | ** without empty spaces | ||
*bullet list | *bullet list | ||
:- definition | :- definition | ||
Line 124: | Line 154: | ||
| | | | ||
* Start each line | * Start each line | ||
* with an asterisk (*). | * with an [[Wikipedia:asterisk|asterisk]] (*). | ||
** More asterisks give deeper | ** More asterisks give deeper | ||
*** and deeper levels. | *** and deeper levels. | ||
Line 133: | Line 162: | ||
Any other start ends the list. | Any other start ends the list. | ||
* combine bullet list | * combine bullet list | ||
** with definition | ** with definition | ||
Line 139: | Line 168: | ||
** creates empty space | ** creates empty space | ||
* combine bullet list | * combine bullet list | ||
** with definition | ** with definition | ||
Line 145: | Line 174: | ||
** without empty spaces | ** without empty spaces | ||
*bullet list | *bullet list | ||
:- definition | :- definition | ||
Line 152: | Line 181: | ||
|- | |- | ||
| | | Numbered list | ||
| | | | ||
<pre> | <pre> | ||
# Start each line | # Start each line | ||
# with a number sign (#). | # with a [[Wikipedia:Number_sign|number sign]] (#). | ||
## More number signs give deeper | ## More number signs give deeper | ||
### and deeper | ### and deeper | ||
Line 166: | Line 193: | ||
# Blank lines | # Blank lines | ||
# end the list and start another. | # end the list and start another. | ||
Any other start also | Any other start also | ||
ends the list. | ends the list. | ||
</pre> | </pre> | ||
| | | | ||
# Start each line | # Start each line | ||
# with a number sign (#). | # with a [[Wikipedia:Number_sign|number sign]] (#). | ||
## More number signs give deeper | ## More number signs give deeper | ||
### and deeper | ### and deeper | ||
Line 184: | Line 209: | ||
# Blank lines | # Blank lines | ||
# end the list and start another. | # end the list and start another. | ||
Any other start also | Any other start also | ||
Line 190: | Line 215: | ||
|- | |- | ||
| | | Definition list | ||
| <pre> | | <pre> | ||
;item 1 | ;item 1 | ||
: definition 1 | : definition 1 | ||
Line 199: | Line 222: | ||
: definition 2-1 | : definition 2-1 | ||
: definition 2-2 | : definition 2-2 | ||
</pre> | </pre> | ||
| | | | ||
;item 1 | ;item 1 | ||
: definition 1 | : definition 1 | ||
Line 211: | Line 232: | ||
|- | |- | ||
| | | Indent text | ||
| <pre> | | <pre> | ||
: Single indent | : Single indent | ||
:: Double indent | :: Double indent | ||
::::: Multiple indent | ::::: Multiple indent | ||
</pre> | </pre> | ||
---- | ---- | ||
{{Note|1= | {{Note|1= This workaround may harm accessibility.}} | ||
| | | | ||
: Single indent | : Single indent | ||
:: Double indent | :: Double indent | ||
Line 230: | Line 247: | ||
|- | |- | ||
| | | Mixture of different types of list | ||
| | | | ||
<pre> | <pre> | ||
# one | # one | ||
# two | # two | ||
Line 251: | Line 266: | ||
### five sub 1 sub 1 | ### five sub 1 sub 1 | ||
## five sub 2 | ## five sub 2 | ||
</pre> | </pre> | ||
---- | ---- | ||
{{note|1= | {{note|1= The usage of <code>#:</code> and <code>*:</code> for breaking a line within an item may also harm accessibility.}} | ||
| | | | ||
# one | # one | ||
# two | # two | ||
Line 276: | Line 289: | ||
|- | |- | ||
| | | Preformatted text | ||
| <pre> | | <pre> | ||
Start each line with a space. | Start each line with a space. | ||
Text is '''preformatted''' and | Text is '''preformatted''' and | ||
''markups'' '''''can''''' be done. | ''markups'' '''''can''''' be done. | ||
</pre> | </pre> | ||
---- | ---- | ||
{{note|1= | {{note|1= 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 | Text is '''preformatted''' and | ||
''markups'' '''''can''''' be done. | ''markups'' '''''can''''' be done. | ||
|- | |- | ||
| | | Preformatted text blocks | ||
| <pre> <nowiki> | | <pre> <nowiki> | ||
Start with a space in the first column, | Start with a space in the first column, | ||
(before the <tvar|1><nowiki></>). | (before the <tvar|1><nowiki></>). | ||
Then your block format will be | Then your block format will be | ||
maintained. | maintained. | ||
This is good for copying in code blocks: | This is good for copying in code blocks: | ||
def function(): | def function(): | ||
""" | """ documentation string""" | ||
if True: | if True: | ||
Line 316: | Line 325: | ||
</pre> | </pre> | ||
| | | | ||
{{#tag:nowiki| | {{#tag: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 == | == Paragraphs == | ||
MediaWiki ignores single line breaks. To start a new paragraph, leave an empty line. You can force a line break within a paragraph with the HTML tag <code><br /></code>. | MediaWiki ignores single line breaks. To start a new paragraph, leave an empty line. You can force a line break within a paragraph with the HTML tag <code><br /></code>. | ||
== HTML tags == | == HTML tags == | ||
Some [[wikipedia:HTML|HTML]] tags are allowed in MediaWiki, for example <code><code></code>, <code><div></code>, and <code><nowiki><span></nowiki></code>. These apply anywhere you insert them. | |||
{| class="wikitable" | {| class="wikitable" | ||
! | ! Description | ||
! width="40%" | | ! width="40%" | You type | ||
! width="40%" | | ! width="40%" | You get | ||
|- | |- | ||
| | | Inserted <br />(Displays as underline in most browsers) | ||
| <pre> | | <pre> | ||
<ins | <ins> Inserted</ins> | ||
or | |||
<u | <u> Underline</u> | ||
</pre> | </pre> | ||
| | | | ||
<ins | <ins> Inserted</ins> | ||
or | |||
<u | <u> Underline</u> | ||
|- | |- | ||
| | | Deleted <br />(Displays as strikethrough in most browsers) | ||
| <pre> | | <pre> | ||
<s | <s> Struck out</s> | ||
or | |||
<del | <del> Deleted</del> | ||
</pre> | </pre> | ||
| | | | ||
<s | <s> Struck out</s> | ||
or | |||
<del | <del> Deleted</del> | ||
|- | |- | ||
| | | Fixed width text | ||
| <pre> | | <pre> | ||
<code | <code> Source code</code> | ||
or | |||
<code | <code> Fixed width text</code> | ||
</pre> | </pre> | ||
| | | | ||
<code | <code> Source code</code> | ||
or | |||
<code | <code> Fixed width text</code> | ||
|- | |- | ||
| | | Blockquotes | ||
| <pre> | | <pre> | ||
Text before | |||
<blockquote | <blockquote> Blockquote</blockquote> | ||
Text after | |||
</pre> | </pre> | ||
| | | | ||
Text before | |||
<blockquote | <blockquote> Blockquote</blockquote> | ||
Text after | |||
|- | |- | ||
| | | Quotes | ||
| <pre><q> | | <pre><q> This is a quotation</q></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 <'''q'''> element]</ref>}} | {{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 <'''q'''> element]</ref>}} | ||
| <q | | <q> This is a quotation</q> | ||
|- | |- | ||
| | | Comment | ||
| <pre> | | <pre> | ||
<!-- This is a comment --> | <!-- This is a comment --> | ||
Comments are visible only | Comments are visible only | ||
Line 423: | Line 432: | ||
</pre> | </pre> | ||
| | | | ||
<!-- 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 | ||
| <pre> | | <pre> | ||
<pre> | <pre> | ||
Text is '''preformatted''' and | Text is '''preformatted''' and | ||
''markups'' '''''cannot''''' be done</pre> | ''markups'' '''''cannot''''' be done</pre> | ||
</pre> | </pre> | ||
---- | ---- | ||
{{note|1= | {{note|1= 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 | ||
| <pre> | | <pre> | ||
<pre style="color: red"> | <pre style="color: red"> | ||
Text is '''preformatted''' | Text is '''preformatted''' | ||
with a style and | with a style and | ||
Line 455: | Line 462: | ||
</pre> | </pre> | ||
---- | ---- | ||
{{note|1= | {{note|1= A CSS style can be named 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 | ||
Line 465: | Line 472: | ||
|} | |} | ||
continued: | continued: | ||
{| class="wikitable" style="table-layout: fixed; width: 100%" | | {| class="wikitable" style="table-layout: fixed; width: 100%" | | ||
! | ! Description | ||
! width="40%" | | ! width="40%" | You type | ||
! width="40%" | | ! 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 | ||
| <pre> | | <pre> | ||
<pre> | <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> | </pre> | ||
</pre> | </pre> | ||
| | | | ||
<pre> | <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> | </pre> | ||
|- | |- | ||
| | | '''Customized''' preformatted text with '''disabled''' text wrapping | ||
| <pre> | | <pre> | ||
<pre style="white-space: pre;"> | <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> | </pre> | ||
</pre> | </pre> | ||
| | | | ||
<pre style="white-space: pre;"> | <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> | </pre> | ||
|} | |} | ||
== 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) '''&rarr;''' when inserted will be shown as <ins>right arrow</ins> HTML symbol → and '''&mdash;''' when inserted will be shown as an <ins>em dash</ins> HTML symbol —. | 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 <ins>right arrow</ins> HTML symbol → and '''&mdash;''' when inserted will be shown as an <ins>em dash</ins> HTML symbol —. | ||
---- | ---- | ||
{{note|1= | {{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.}} | ||
{| class="wikitable" width="100%" align="center" | {| class="wikitable" width="100%" align="center" | ||
Line 770: | Line 776: | ||
{| class="wikitable" | {| class="wikitable" | ||
! | ! Description | ||
! width="40%" | | ! width="40%" | You type | ||
! width="40%" | | ! width="40%" | You get | ||
|- | |- | ||
| | | Copyright symbol | ||
| class="mw-code" | &copy; | | class="mw-code" | &copy; | ||
| | | | ||
:::'''©''' | :::'''©''' | ||
|- | |- | ||
| | | Greek delta letter symbol | ||
| class="mw-code" |&delta; | | class="mw-code" |&delta; | ||
| | | | ||
:::'''δ''' | :::'''δ''' | ||
|- | |- | ||
| | | Euro currency symbol | ||
| class="mw-code" |&euro; | | class="mw-code" |&euro; | ||
| | | | ||
Line 790: | Line 796: | ||
|} | |} | ||
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>&רלמ;</code> and <code>&رلم;</code> which are both considered equivalent to <code>&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.) | |||
See the list of all HTML entities on the Wikipedia article [ | |||
== 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;euro;</code> → '''&euro;''' | :<code>&amp;euro;</code> → '''&euro;''' | ||
:<code><span style="color: red; text-decoration: line-through;" | :<code><span style="color: red; text-decoration: line-through;"> Typo to be corrected</span></code> → '''<span style="color: red; text-decoration: line-through;"> Typo to be corrected</span>''' | ||
:<code | :<code> <nowiki>&lt;span style="color: red; text-decoration: line-through;">Typo to be corrected</span></nowiki></code> → '''<span style="color: red; text-decoration: line-through;"> Typo to be corrected</span>''' | ||
=== Nowiki for HTML === | === Nowiki for HTML === | ||
<<nowiki/>nowiki /> | <<nowiki/>nowiki /> can prohibit (HTML) tags: | ||
* <nowiki><<</nowiki>nowiki />pre> → <<nowiki/>pre> | * <nowiki><<</nowiki>nowiki />pre> → <<nowiki/>pre> | ||
But ''not'' & symbol escapes: | |||
* &<<nowiki/>nowiki />amp; → & | * &<<nowiki/>nowiki />amp; → & | ||
To print & symbol escapes as text, use "<code>&amp;</code>" to replace the "&" character (eg. type "<code>&amp;nbsp;</code>", which results in "<code>&nbsp;</code>"). | To print & symbol escapes as text, use "<code>&amp;</code>" to replace the "&" character (eg. type "<code>&amp;nbsp;</code>", which results in "<code>&nbsp;</code>") | ||
---- | |||
==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=== | |||
<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> | |||
<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;">* 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</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> | |||
<ul><li>Item1</li> | |||
<li>Item2</li> | |||
<li>Item3</li> | |||
<li>Item4 | |||
<ul><li>Sub-item 4 a) | |||
<ul><li>Sub-item 4 a) 1. | |||
<ul><li>Sub-item 4 a) 1. i)</li> | |||
<li>Sub-item 4 a) 1. ii)</li></ul></li></ul></li> | |||
<li>Sub-item 4 b)</li></ul></li> | |||
<li>Item5</li></ul> | |||
</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> | |||
<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;"># Item1 | |||
# Item2 | |||
# Item3 | |||
# Item4 | |||
## Sub-item 1 | |||
### Sub-sub-item | |||
#### Sub-sub-sub-item | |||
## Sub-item 2 | |||
# Item5 | |||
</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> | |||
<ol><li>Item1</li> | |||
<li>Item2</li> | |||
<li>Item3</li> | |||
<li>Item4 | |||
<ol><li>Sub-item 1 | |||
<ol><li>Sub-sub-item | |||
<ol><li>Sub-sub-sub-item</li></ol></li></ol></li> | |||
<li>Sub-item 2</li></ol></li> | |||
<li>Item5</li></ol> | |||
</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> | |||
==={{Anchor|DL}}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''<!--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. | |||
'''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.''' | |||
<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> | |||
<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;">; Term : Definition1</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> | |||
<dl><dt>Term </dt> | |||
<dd>Definition1</dd></dl> | |||
</div> | |||
</td></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;">; Term | |||
: Definition1 | |||
: Definition2 | |||
: Definition3 | |||
: Definition4</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> | |||
<dl><dt>Term</dt> | |||
<dd>Definition1</dd> | |||
<dd>Definition2</dd> | |||
<dd>Definition3</dd> | |||
<dd>Definition4</dd></dl> | |||
</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> | |||
HTML equivalent: {{tag|dl|o}} {{tag|dt}}, {{tag|dd}} {{tag|dl|c}} | |||
==Links== | |||
===Internal Links=== | |||
In most wikis, internal links are used in wikitext markup instead of regular urls to simplify linking and reading | |||
{| class="wikitable" | |||
! Description | |||
! width="40%" | You type | |||
! width="40%" | You get | |||
|- | |||
| Internal link | |||
| <pre>Arma is made by [[Bohemia Interactive]].</pre> | |||
| Arma is made by [[Bohemia Interactive]]. | |||
|- | |||
| Renamed link | |||
| <pre>Ylands is also made by [[Bohemia Interactive|BI]].</pre> | |||
| Ylands is also made by [[Bohemia Interactive|BI]]. | |||
|- | |||
! colspan="3" | Auto renamed links (pipe trick) | |||
|- | |||
| Auto renamed link (pipe trick) | |||
| <pre>[[createTrigger (VBS1)|]]</pre> | |||
| [[createTrigger (VBS1)|createTrigger]] | |||
|- | |||
| Automatically hide stuff in parentheses | |||
| <pre>[[createTrigger (VBS1)|]]</pre> | |||
| [[createTrigger (VBS1)|createTrigger]] | |||
|- | |||
| Automatically hide the comma and following text | |||
| <pre>[[Seattle, Washington|]]</pre> | |||
| [[Seattle, Washington|Seattle]] | |||
|- | |||
| Automatically hide namespace | |||
| <pre>[[Wikipedia:Village pump|]]</pre> | |||
| [[Wikipedia:Village pump|Village pump]] | |||
|- | |||
| Or both | |||
| <pre>[[Wikipedia:Manual of Style (headings)|]]</pre> | |||
| [[Wikipedia:Manual of Style (headings)|Manual of Style]] | |||
|- | |||
| Does not work for section links | |||
| <pre>[[Wikipedia:Manual of Style#Links|]]</pre> | |||
|<nowiki> [[Wikipedia:Manual of Style#Links|]]</nowiki> | |||
|- | |||
|} | |||
====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). | |||
{| class="wikitable" | |||
! width="40%" | You type | |||
! width="40%" | You get | |||
|- | |||
| <pre>[[Wikipedia:Manual of Style#Italics]] is a link to a section within another page.</pre> | |||
| [[Wikipedia:Manual of Style#Italics]] is a link to a section within another page. | |||
|- | |||
| <pre>[[Wikipedia:Manual of Style#Italics|Italics]] is a piped link to a section within another page.</pre> | |||
| [[Wikipedia:Manual of Style#Italics|Italics]] is a piped link to a section within another page. | |||
|- | |||
|} | |||
====Blended links==== | |||
{| class="wikitable" | |||
! Desctiption | |||
! width="40%" | You type | |||
! width="40%" | You get | |||
|- | |||
| Blending active | |||
| <pre>San Francisco also has [[public transport]]ation. Examples include [[bus]]es, [[taxicab]]s, and [[tram]]s.</pre> | |||
| San Francisco also has [[public transport]]ation. Examples include [[bus]]es, [[taxicab]]s, and [[tram]]s. | |||
|- | |||
| Blending supressed | |||
| <pre>A [[micro-]]<nowiki />second.</pre> | |||
| A [[micro-]]<nowiki/>second. | |||
|- | |||
|} | |||
===Redirects=== | |||
Redirects are used to redirect specific pages to another page. | |||
{| class="wikitable" border="1" | |||
!Description | |||
!What you type | |||
|- | |||
| | |||
Redirect to an article | |||
| | |||
<code><nowiki>#REDIRECT [[United States]] </nowiki></code> | |||
|- | |||
| | |||
Redirect to a section | |||
| | |||
<code><nowiki>#REDIRECT [[United States#History]]</nowiki></code> | |||
|} | |||
===Link to another namespace=== | |||
{| class="wikitable" | |||
!What you type | |||
!What it looks like | |||
|- | |||
| | |||
<code><nowiki>See the [[Wikipedia:Manual of Style]].</nowiki></code> | |||
| | |||
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>. | |||
{| class="wikitable" | |||
!Description | |||
!What you type | |||
!What it looks like | |||
|- | |||
| Add article to category | |||
| <code><nowiki>[[Category:Character sets]]</nowiki></code> | |||
| | |||
|- | |||
| Link to a category | |||
| <code><nowiki>[[:Category:Character sets]]</nowiki></code> | |||
| [[:Category:Character sets]] | |||
|- | |||
| Without prefix. | |||
| <code><nowiki>[[:Category:Character sets|]]</nowiki></code> | |||
| [[: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" | |||
!Description | |||
!What you type | |||
!What it looks like | |||
|- | |||
| | |||
''Named link'' with an [[Help:external link icons|external link icon]] | |||
| | |||
<code><nowiki>[http://www.wikipedia.org Wikipedia]</nowiki></code> | |||
| | |||
[http://www.wikipedia.org Wikipedia] | |||
|- | |||
| | |||
''Unnamed link'' | |||
''(Used only within article body for footnotes)'' | |||
| | |||
<code><nowiki>[http://www.wikipedia.org]</nowiki></code> | |||
| | |||
[http://www.wikipedia.org] | |||
|- | |||
| | |||
''Bare URL'' | |||
''(Bad style)'' | |||
use <nowiki><nowiki></nowiki></nowiki> to keep this bad style from showing | |||
| | |||
<code><nowiki>http://www.wikipedia.org</nowiki></code> | |||
| | |||
http://www.wikipedia.org | |||
|- | |||
| | |||
''Link without arrow'' | |||
''(Not often used)'' | |||
| | |||
<code><nowiki><span class="plainlinks">[http://www.wikipedia.org Wikipedia]</span></nowiki></code> | |||
| | |||
<span class="plainlinks"> [http://www.wikipedia.org Wikipedia]</span> | |||
|} | |||
==Images== | |||
Images can be put into a page using internal links in <code>[[Image:]] or [[File:]]</code> format. | |||
{| class="wikitable" | |||
!What you type | |||
!What it looks like | |||
|- | |||
| <code><nowiki>[[Image:image]]</nowiki></code> | |||
| [[Image:image]] | |||
|- | |||
| <code><nowiki>[[File:image]]</nowiki></code> | |||
| [[File:image]] | |||
|} | |||
== 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 == | |||
Templates are segments of wiki markup that are meant to be copied automatically ("transcluded") into a page. | |||
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>. | |||
There are three pairs of [[html element|tags]] that can be used in [[wikitext]] to control how transclusion affects parts of a template or article. | |||
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''. | |||
* '''<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. | |||
There can be several such section "[[HTML#Elements|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. | |||
If a page is transcluded without transclusion markup, it may cause an unintentional [[Help:Category#Putting_pages_in_categories|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. | |||
{{anchor|hovertext}} | |||
Some templates take ''parameters'', as well, which you separate with the pipe character <code>|</code>. |
Revision as of 00:14, 7 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 | ''italic'' |
italic |
Bold text | '''bold''' |
bold |
Bold and italic | '''''bold & italic''''' |
bold & italic |
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 |
Section formatting – only at the beginning of the line | ||
Section Headings of different levels | == Level 2 == === Level 3 === ==== Level 4 ==== ===== Level 5 ===== ====== Level 6 ====== |
Level 2
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. |
Bullet list |
* 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 |
Any other start ends the list.
|
Numbered list |
# 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. |
Any other start also ends the list. |
Definition list | ;item 1 : definition 1 ;item 2 : definition 2-1 : definition 2-2 |
|
Indent text | : Single indent :: Double indent ::::: Multiple indent
|
|
Mixture of different types of list |
# one # two #* two point one #* two point two # three #; three item one #: three def one # four #: four def one #: this looks like a continuation #: and is often used #: instead <br />of <nowiki><br /></nowiki> # five ## five sub 1 ### five sub 1 sub 1 ## five sub 2 |
|
Preformatted text | Start each line with a space. Text is '''preformatted''' and ''markups'' '''''can''''' be done. |
Start each line with a space. Text is preformatted and markups can be done. |
Preformatted text blocks | <nowiki> Start with a space in the first column, (before the <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 |
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> Inserted</ins> or <u> Underline</u> |
Inserted or Underline |
Deleted (Displays as strikethrough in most browsers) |
<s> Struck out</s> or <del> Deleted</del> |
or
|
Fixed width text | <code> Source code</code> or <code> Fixed width text</code> |
or
|
Blockquotes | Text before <blockquote> Blockquote</blockquote> Text after |
Text before
Text after |
Quotes | <q> This is a quotation</q>
|
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> |
Text is '''preformatted''' and ''markups'' '''''cannot''''' be done |
Customized preformatted text | <pre style="color: red"> Text is '''preformatted''' with a style and ''markups'' '''''cannot''''' be done </pre> |
Text is '''preformatted''' with a style and ''markups'' '''''cannot''''' be done |
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) → when inserted will be shown as right arrow HTML symbol → and — when inserted will be shown as an em dash HTML symbol —.
HTML symbol entities | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Á | á | Â | â | ´ | Æ | æ | À | à | ℵ | Α | α | & | ∧ | ∠ | Å | å | ≈ | Ã | ã | Ä | ä | „ | Β | β | ¦ | • | ∩ | Ç | ç | ¸ | ¢ |
Χ | χ | ˆ | ♣ | ≅ | © | ↵ | ∪ | ¤ | † | ‡ | ↓ | ⇓ | ° | Δ | δ | ♦ | ÷ | É | é | Ê | ê | È | è | ∅ | Ε | ε | ≡ | Η | η | ||
Ð | ð | Ë | ë | € | ∃ | ƒ | ∀ | ½ | ¼ | ¾ | ⁄ | Γ | γ | ≥ | > | ↔ | ⇔ | ♥ | … | Í | í | Î | î | ¡ | Ì | ì | ℑ | ∞ | ∫ | Ι | ι |
¿ | ∈ | Ï | ï | Κ | κ | Λ | λ | ⟨ | « | ← | ⇐ | ⌈ | “ | ≤ | ⌊ | ∗ | ◊ | | ‹ | ‘ | < | ¯ | — | µ | · | − | Μ | μ | ∇ | – | |
≠ | ∋ | ¬ | ∉ | ⊄ | Ñ | ñ | Ν | ν | Ó | ó | Ô | ô | Œ | œ | Ò | ò | ‾ | Ω | ω | Ο | ο | ⊕ | ∨ | ª | º | Ø | ø | Õ | õ | ⊗ | Ö |
ö | ¶ | ∂ | ‰ | ⊥ | Φ | φ | Π | π | ϖ | ± | £ | ′ | ″ | ∏ | ∝ | Ψ | ψ | " | √ | ⟩ | » | → | ⇒ | ⌉ | ” | ℜ | ® | ⌋ | Ρ | ρ | |
› | ’ | ‚ | Š | š | ⋅ | § | | Σ | σ | ς | ∼ | ♠ | ⊂ | ⊆ | ∑ | ⊃ | ¹ | ² | ³ | ⊇ | ß | Τ | τ | ∴ | Θ | θ | ϑ | Þ | þ | ˜ | |
× | ™ | Ú | ú | ↑ | ⇑ | Û | û | Ù | ù | ¨ | ϒ | Υ | υ | Ü | ü | ℘ | Ξ | ξ | Ý | ý | ¥ | ÿ | Ÿ | Ζ | ζ | | |
Description | You type | You get |
---|---|---|
Copyright symbol | © |
|
Greek delta letter symbol | δ |
|
Euro currency symbol | € |
|
See the list of all HTML entities on the Wikipedia article List of HTML entities. Additionally, MediaWiki supports two non-standard entity reference sequences: &רלמ;
and &رلم;
which are both considered equivalent to ‏
which is a right-to-left mark. (Used when combining right to left languages with left to right languages in the same page.)
HTML tags and symbol entities displayed themselves (with and without interpreting them)
&euro;
→ €
<span style="color: red; text-decoration: line-through;"> Typo to be corrected</span>
→ Typo to be corrected
<span style="color: red; text-decoration: line-through;">Typo to be corrected</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 "&
" to replace the "&" character (eg. type "&nbsp;
", which results in "
")
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 |
|
Ordered lists
Markup | Renders as |
---|---|
# Item1 # Item2 # Item3 # Item4 ## Sub-item 1 ### Sub-sub-item #### Sub-sub-sub-item ## Sub-item 2 # Item5 |
|
Template:AnchorDescription 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 : Definition2 : Definition3 : Definition4 |
|
HTML equivalent: Template:tag Template:tag, Template:tag Template:tag
Links
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) | [[createTrigger (VBS1)|]] |
createTrigger |
Automatically hide stuff in parentheses | [[createTrigger (VBS1)|]] |
createTrigger |
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).
You type | You get |
---|---|
[[Wikipedia:Manual of Style#Italics]] is a link to a section within another page. |
Wikipedia:Manual of Style#Italics is a link to a section within another page. |
[[Wikipedia:Manual of Style#Italics|Italics]] is a piped link to a section within another page. |
Italics is a piped link to a section within another page. |
Blended links
Desctiption | 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 | What you type |
---|---|
Redirect to an article |
|
Redirect to a section |
|
Link to another namespace
What you type | What it looks like |
---|---|
|
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 Category:nameofcategory
.
Description | What you type | What it looks like |
---|---|---|
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 | What you type | What it looks like |
---|---|---|
Named link with an external link icon |
|
|
Unnamed link (Used only within article body for footnotes) |
|
|
Bare URL (Bad style) use <nowiki></nowiki> to keep this bad style from showing |
|
|
Link without arrow (Not often used) |
|
Images
Images can be put into a page using internal links in [[Image:]] or [[File:]]
format.
What you type | What it looks like |
---|---|
[[Image:image]]
|
File:image |
[[File:image]]
|
File:image |
Tables
There are 2 ways to make tables in wikitext
- Using wikitable(recommended)
- Using HTML elements:
<table>
,<tr>
,<td>
,<th>
https://en.wikipedia.org/wiki/index.php?title=Help:Table&action=edit&redlink=1
Templates and transclusions
Templates are segments of wiki markup that are meant to be copied automatically ("transcluded") into a page. You add them by putting the template's name in {{double braces}}. It is also possible to transclude other pages by using {{:colon and double braces}}.
There are three pairs of tags that can be used in wikitext to control how transclusion affects parts of a template or article. 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".
- <noinclude>: the content will not be rendered there. These tags have no effect here.
- <includeonly>: the content will render only there, and will not render here (like invisible ink made visible by means of transclusion).
- <onlyinclude>: the content will render here and will render there, but it will only render there what is between these tags.
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 <onlyinclude> tags. To append text there, wrap the addition in <includeonly> tags before, within, or after the section. To omit portions of the section, nest <noinclude> tags within it.
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 <noinclude> tags to prevent incorrect categorization.
Template:anchor
Some templates take parameters, as well, which you separate with the pipe character |
.