Open main menu

Changes

2,988 bytes removed ,  11:21, 26 May 2018
no edit summary
<languages />
{{TNT|PD Help Page}}
<translate>
<!--T: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>.
== Text formatting markup == <!--T:2-->
</translate>
{| class="wikitable"
! <translate><!--T:3--> Description</translate>! width=40% | <translate><!--T:4--> You type</translate>! width=40% | <translate><!--T:5--> You get</translate>
|-
! colspan="3" style="background: #ABE" | <translate><!--T:6--> Character (inline) formatting – ''applies anywhere''</translate>
|-
| <translate><!--T:7--> Italic text</translate>
| <pre>
''<translate><!--T:8--> italic</translate>''
</pre>
|
''<translate><!--T:9--> italic</translate>''
|-
| <translate><!--T:10--> Bold text</translate>
| <pre>
'''<translate><!--T:11--> bold</translate>'''
</pre>
|
'''<translate><!--T:12--> bold</translate>'''
|-
| <translate><!--T:13--> Bold and italic</translate>
| <pre>
'''''<translate><!--T:14--> bold & italic</translate>'''''
</pre>
|
'''''<translate><!--T:15--> bold & italic</translate>'''''
|-
| <translate><!--T:19--> Escape wiki markup</translate>
| <pre>
&lt;nowiki&gt;<translate><!--T:20--> no ''markup''</translate>&lt;/nowiki&gt;
</pre>
|
<translate><!--T:155--> <nowiki>no ''markup''</nowiki></translate>
|-
! colspan="3" style="background: #ABE" | <translate><!--T:24--> Section formatting – ''only at the beginning of the line''</translate>
|-
| <translate><!--T:25--> Section Headings of different levels</translate>
| <pre>
<translate>
== Level 2 == <!--T:26-->
== Level 2 ==  === Level 3 === <!--T:27--> ==== Level 4 ====
===== Level 4 5 ===== <!--T:28-->
====== Level 5 6 ====== <!--T:29-->
====== Level 6 ====== <!--T:30-->
</translate>
</pre>
----
{{note|
* <translate><!--T:31--> [[<tvar|lv1>Special:MyLanguage/Help_talk:Formatting#Level_1</>|Skip Level 1]], it is page name level.</translate>
* Do not put any text on the same line after the ending equal signs.
* <translate><!--T:33--> An article with 4 or more headings automatically creates a [[wikipedia:Help:Section#Table of contents (TOC)|table of contents]] (unless setting the magic word<nowiki>__NOTOC__</nowiki>).</translate>
}}
|
<!-- using HTML markup to avoid creating new sections -->
<translate>
<!--T:35-->
<h2>Level 2</h2>
<!--T:39-->
<h6>Level 6</h6>
</translate>
|-
| <translate><!--T:40--> Horizontal rule</translate>
| <pre>
<translate><!--T:41--> Text before</translate>
----
<translate><!--T:42--> Text after</translate>
</pre>
|
<translate><!--T:43--> Text before</translate>
----
<translate><!--T:44--> Text after</translate>
|-
| <translate><!--T:45--> Bullet list</translate>
|
<pre>
<translate>
<!--T:46-->
* Start each line
:* sublist that doesn't create empty
:* spaces after definition
</translate>
</pre>
|
<translate>
<!--T:47-->
* Start each line
:* sublist that doesn't create empty
:* spaces after definition
</translate>
|-
| <translate><!--T:48--> Numbered list</translate>
|
<pre>
<translate>
<!--T:49-->
# Start each line
Any other start also
ends the list.
</translate>
</pre>
|
<translate>
<!--T:51-->
# Start each line
Any other start also
ends the list.
</translate>
|-
| <translate><!--T:53--> Definition list</translate>
| <pre>
<translate>
<!--T:54-->
;item 1
: definition 2-1
: definition 2-2
</translate>
</pre>
|
<translate>
<!--T:55-->
;item 1
: definition 2-1
: definition 2-2
</translate>
|-
| <translate><!--T:56--> Indent text</translate>
| <pre>
<translate>
<!--T:57-->
: Single indent
:: Double indent
::::: Multiple indent
</translate>
</pre>
----
{{Note|<translate><!--T:58--> This workaround may harm accessibility.</translate>}}
|
<translate>
<!--T:59-->
: Single indent
:: Double indent
::::: Multiple indent
</translate>
|-
| <translate><!--T:60--> Mixture of different types of list</translate>
|
<pre>
<translate>
<!--T:61-->
# one
### five sub 1 sub 1
## five sub 2
</translate>
</pre>
----
{{note|<translate><!--T:62--> The usage of <code>#:</code> and <code>*:</code> for breaking a line within an item may also harm accessibility.</translate>}}
|
<translate>
<!--T:63-->
# one
### five sub 1 sub 1
## five sub 2{{anchor|pre}}
</translate>
|-
| <translate><!--T:64--> Preformatted text</translate>
| <pre>
<translate>
<!--T:65-->
Start each line with a space.
Text is '''preformatted''' and
''markups'' '''''can''''' be done.
</translate>
</pre>
----
{{note|<translate><!--T:66--> This way of preformatting only applies to section formatting. Character formatting markups are still effective.</translate>}}
|
<translate>
<!--T:67-->
Start each line with a space.
Text is '''preformatted''' and
''markups'' '''''can''''' be done.
</translate>
|-
| <translate><!--T:68--> Preformatted text blocks</translate>| <pre> <translate><!--T:69-->
<nowiki><nowiki>Start with a space in the first column,
(before the <nowiki>).
print True
else:
print False</nowiki></nowiki></translate>
</pre>
|
<translate><!--T:73-->
<nowiki>Start with a space in the first column,
(before the <nowiki>).
print True
else:
print False</nowiki></translate>
|}
<translate>
== Paragraphs == <!--T:78-->
<!--T:81-->
Some [[wikipedia:HTML|HTML]] tags are allowed in MediaWiki, for example <code>&lt;code></code>, <code>&lt;div></code>, and <code><nowiki><span></nowiki></code>. These apply anywhere you insert them.
</translate>
{| class="wikitable"
! <translate><!--T:82--> Description</translate>! width=40% | <translate><!--T:83--> You type</translate>! width=40% | <translate><!--T:84--> You get</translate>
|-
| <translate><!--T:85--> Inserted <br />(Displays as underline in most browsers)</translate>
| <pre>
<ins><translate><!--T:86--> Inserted</translate></ins>
<translate><!--T:87--> or</translate>
<u><translate><!--T:88--> Underline</translate></u>
</pre>
|
<ins><translate><!--T:89--> Inserted</translate></ins>
<translate><!--T:90--> or</translate>
<u><translate><!--T:91--> Underline</translate></u>
|-
| <translate><!--T:92--> Deleted <br />(Displays as strikethrough in most browsers)</translate>
| <pre>
<s><translate><!--T:93--> Struck out</translate></s>
<translate><!--T:94--> or</translate>
<del><translate><!--T:95--> Deleted</translate></del>
</pre>
|
<s><translate><!--T:96--> Struck out</translate></s>
<translate><!--T:97--> or</translate>
<del><translate><!--T:98--> Deleted</translate></del>
|-
| <translate><!--T:99--> Fixed width text</translate>
| <pre>
<code><translate><!--T:100--> Source code</translate></code>
<translate><!--T:101--> or</translate>
<code><translate><!--T:157--> Fixed width text</translate></code>
</pre>
|
<code><translate><!--T:154--> Source code</translate></code>
<translate><!--T:102--> or</translate>
<code><translate><!--T:103--> Fixed width text</translate></code>
|-
| <translate><!--T:104--> Blockquotes</translate>
| <pre>
<translate><!--T:105--> Text before</translate><blockquote><translate><!--T:106--> Blockquote</translate></blockquote><translate><!--T:107--> Text after</translate>
</pre>
|
<translate><!--T:108--> Text before</translate><blockquote><translate><!--T:109--> Blockquote</translate></blockquote><translate><!--T:110--> Text after</translate>
|-
| <translate><!--T:111--> Comment</translate>| <pre><translate>
<!--T:112-->
<!-- This is a comment -->
Comments are visible only
in the edit zone.
</translate></pre>
|
<translate>
<!--T:113-->
<!-- This is a comment -->
Comments are visible only
in the edit zone.
</translate>
|-
| <translate><!--T:114--> Completely preformatted text</translate>
| <pre>
<pre><translate>
<!--T:115-->
Text is '''preformatted''' and
''markups'' '''''cannot''''' be done&lt;/pre>
</translate></pre>
----
{{note|<translate><!--T:116--> For marking up of preformatted text, check the "Preformatted text" entry at the end of the previous table.</translate>}}
|
<pre><translate>
<!--T:117-->
Text is '''preformatted''' and
''markups'' '''''cannot''''' be done
</translate></pre>
|-
| <translate><!--T:118--> '''Customized''' preformatted text</translate>
| <pre>
<pre style="color: red"><translate>
<!--T:119-->
Text is '''preformatted'''
''markups'' '''''cannot''''' be done
&lt;/pre>
</translate></pre>
----
{{note|<translate><!--T:120--> A CSS style can be named within the <code>style</code> attribute.</translate>}}
|
<pre style="color: red"><translate>
<!--T:121-->
Text is '''preformatted'''
with a style and
''markups'' '''''cannot''''' be done
</translate></pre>
|}
<translate>
<!--T:122-->
continued:</translate>
{| class="wikitable" | style="table-layout: fixed; width: 100%"
! <translate><!--T:123--> Description</translate>! width=40% | <translate><!--T:124--> You type</translate>! width=40% | <translate><!--T:125--> You get</translate>
|-
| <translate><!--T:159--> '''Default''' preformatted text has a CSS attribute (<code>white-space: pre-wrap;</code>) to wrap the text according to available width</translate>
| <pre>
<pre>
<translate><!--T:127--> This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer. This additional sentence makes the text even longer.</translate>
&lt;/pre>
</pre>
|
<pre>
<translate><!--T:128--> This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer. This additional sentence makes the text even longer.</translate>
</pre>
|-
| <translate><!--T:126--> '''Customized''' preformatted text with '''disabled''' text wrapping</translate>
| <pre>
<pre style="white-space: pre;">
<translate><!--T:130--> This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer. This additional sentence makes the text even longer.</translate>
&lt;/pre>
</pre>
|
<pre style="white-space: pre;">
<translate><!--T:131--> This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer. This additional sentence makes the text even longer.</translate>
</pre>
|}
<translate>
== Inserting symbols == <!--T:132-->
<!--T:166-->
As a last resort, you can use a special sequence of characters. Those sequences are called HTML entities. For example, the following sequence (entity) '''&amp;rarr;''' when inserted will be shown as <ins>right arrow</ins> HTML symbol &rarr; and '''&amp;mdash;''' when inserted will be shown as an <ins>em dash</ins> HTML symbol &mdash;. </translate>
----
{{note|<translate><!--T:134--> Hover over any character to find out the symbol that it produces. Some symbols not available in the current font will appear as empty squares.</translate>}}
{| class="wikitable" align=center width=100%
{| class="wikitable"
! <translate><!--T:135--> Description</translate>! width=40% | <translate><!--T:136--> You type</translate>! width=40% | <translate><!--T:137--> You get</translate>
|-
| <translate><!--T:138--> Copyright symbol</translate>
|class=mw-code| &amp;copy;
|
:::'''&copy;'''
|-
| <translate><!--T:139--> Greek delta letter symbol</translate>
|class=mw-code|&amp;delta;
|
:::'''&delta;'''
|-
| <translate><!--T:140--> Euro currency symbol</translate>
|class=mw-code|&amp;euro;
|
:::'''&euro;'''
|}
<translate>
<!--T:141-->
See the list of all HTML entities on the Wikipedia article [[wikipedia:List of HTML entities|List of HTML entities]]. Additionally, MediaWiki supports two non-standard entity reference sequences: <code>&amp;רלמ;</code> and <code>&amp;رلم;</code> which are both considered equivalent to <code>&amp;rlm;</code> which is a [[wikipedia:Right-to-left mark|right-to-left mark]]. (Used when combining right to left languages with left to right languages in the same page.)
== HTML tags and symbol entities displayed themselves (with and without interpreting them) == <!--T:142-->
</translate>
:<code>&amp;amp;euro;</code> &nbsp;&rarr; '''&amp;euro;'''
:<code>&lt;span style="color: red; text-decoration: line-through;"><translate><!--T:143--> Typo to be corrected</translate>&lt;/span></code> &nbsp;&rarr; '''<span style="color: red; text-decoration: line-through;"><translate!--T:144--> Typo to be corrected</span>''' :<code><!--T:144156--> <nowiki>&amp;lt;span style="color: red; text-decoration: line-through;"> Typo to be corrected</translatespan></nowiki></code> &nbsp;&rarr; '''&lt;span style="color: red; text-decoration: line-through;"><!--T:145--> Typo to be corrected&lt;/span>'''
:<code><translate><!--T:156--> <nowiki>&amp;lt;span style="color: red; text-decoration: line-through;">Typo to be corrected</span></nowiki></translate></code> &nbsp;&rarr; '''&lt;span style="color: red; text-decoration: line-through;"><translate><!--T:145--> Typo to be corrected</translate>&lt;/span>'''
<translate>
=== Nowiki for HTML === <!--T:146-->
</translate><<nowiki />nowiki /> <translate><!--T:147--> can prohibit (HTML) tags:</translate>
* <nowiki><<</nowiki>nowiki />pre> &nbsp;&rarr; <<nowiki/>pre>
<translate><!--T:148--> But ''not'' &amp; symbol escapes:</translate>
* &<<nowiki />nowiki />amp; &nbsp;&rarr; &amp;
<translate><!--T:149-->
To print &amp; symbol escapes as text, use "<code>&amp;amp;</code>" to replace the "&" character (eg. type "<code>&amp;amp;nbsp;</code>", which results in "<code>&amp;nbsp;</code>").
<!--T:151-->
Beyond the text formatting markup shown hereinbefore, here are some other formatting references:
</translate>
* {{ll|Help:Links|nsp=0}}
<translate>
<!--T:152-->
* [[<tvar|lists>Special:MyLanguage/Help:Lists</>|Lists]]
</translate>
* {{ll|Help:Images|nsp=0}}
<translate>
<!--T:158-->
* References - see [[<tvar|citephp>Special:MyLanguage/Extension:Cite/Cite.php</>|Extension:Cite/Cite.php]]
<!--T:153-->
You can find more references at [[<tvar|help-contents>Special:MyLanguage/Help:Contents</>|Help:Contents]].
</translate>
[[Category:Help{{#translation:}}|Formatting]]