201
edits
Line 4: | Line 4: | ||
{| class="wikitable" | {| class="wikitable" | ||
! | ! <!--T:3--> Description | ||
! width=40% | | ! width=40% | <!--T:4--> You type | ||
! width=40% | | ! width=40% | <!--T:5--> You get | ||
|- | |- | ||
! colspan="3" style="background: #ABE" | | ! colspan="3" style="background: #ABE" | <!--T:6--> Character (inline) formatting – ''applies anywhere'' | ||
|- | |- | ||
| | | <!--T:7--> Italic text | ||
| <pre> | | <pre> | ||
'' | ''<!--T:8--> italic'' | ||
</pre> | </pre> | ||
| | | | ||
'' | ''<!--T:9--> italic'' | ||
|- | |- | ||
| | | <!--T:10--> Bold text | ||
| <pre> | | <pre> | ||
''' | '''<!--T:11--> bold''' | ||
</pre> | </pre> | ||
| | | | ||
''' | '''<!--T:12--> bold''' | ||
|- | |- | ||
| | | <!--T:13--> Bold and italic | ||
| <pre> | | <pre> | ||
''''' | '''''<!--T:14--> bold & italic''''' | ||
</pre> | </pre> | ||
| | | | ||
''''' | '''''<!--T:15--> bold & italic''''' | ||
|- style="visibility: collapse;" | |- style="visibility: collapse;" | ||
| colspan="3" | | | colspan="3" | | ||
|- | |- | ||
| | | <!--T:19--> Escape wiki markup | ||
| | | | ||
<!--T:155--> <nowiki>no [[wiki]] ''markup''</nowiki> | |||
|- | |- | ||
! colspan="3" style="background: #ABE" | | ! colspan="3" style="background: #ABE" | <!--T:24--> Section formatting – ''only at the beginning of the line'' | ||
|- | |- | ||
| | | <!--T:25--> Section Headings of different levels | ||
| <pre> | | <pre> | ||
== Level 2 == <!--T:26--> | == Level 2 == <!--T:26--> | ||
Line 51: | Line 51: | ||
====== Level 6 ====== <!--T:30--> | ====== Level 6 ====== <!--T:30--> | ||
</pre> | </pre> | ||
---- | ---- | ||
| | | | ||
<!-- using HTML markup to avoid creating new sections --> | <!-- using HTML markup to avoid creating new sections --> | ||
<!--T:35--> | <!--T:35--> | ||
<h2>Level 2</h2> | <h2>Level 2</h2> | ||
Line 71: | Line 71: | ||
<!--T:39--> | <!--T:39--> | ||
<h6>Level 6</h6> | <h6>Level 6</h6> | ||
|- | |- | ||
| | | <!--T:40--> Horizontal rule | ||
| <pre> | | <pre> | ||
<!--T:41--> Text before | |||
---- | ---- | ||
<!--T:42--> Text after | |||
</pre> | </pre> | ||
| | | | ||
<!--T:43--> Text before | |||
---- | ---- | ||
<!--T:44--> Text after | |||
|- | |- | ||
| | | <!--T:45--> Bullet list | ||
| | | | ||
<pre> | <pre> | ||
<!--T:46--> | <!--T:46--> | ||
* Start each line | * Start each line | ||
Line 114: | Line 114: | ||
:* sublist that doesn't create empty | :* sublist that doesn't create empty | ||
:* spaces after definition | :* spaces after definition | ||
</pre> | </pre> | ||
| | | | ||
<!--T:47--> | <!--T:47--> | ||
* Start each line | * Start each line | ||
Line 144: | Line 144: | ||
:* sublist that doesn't create empty | :* sublist that doesn't create empty | ||
:* spaces after definition | :* spaces after definition | ||
|- | |- | ||
| | | <!--T:48--> Numbered list | ||
| | | | ||
<pre> | <pre> | ||
<!--T:49--> | <!--T:49--> | ||
# Start each line | # Start each line | ||
Line 167: | Line 167: | ||
<!--T:183--> | <!--T:183--> | ||
<tvar name=1><nowiki>#</nowiki></tvar> use "nowiki" tags to display a literal (#) at the beginning of a line without interpreting it as a numbered list. | <tvar name=1><nowiki>#</nowiki></tvar> use "nowiki" tags to display a literal (#) at the beginning of a line without interpreting it as a numbered list. | ||
</pre> | </pre> | ||
| | | | ||
<!--T:51--> | <!--T:51--> | ||
# Start each line | # Start each line | ||
Line 187: | Line 187: | ||
<!--T:184--> | <!--T:184--> | ||
<tvar name=1><nowiki>#</nowiki></tvar> use "nowiki" tags to display a literal (#) at the beginning of a line without interpreting it as a numbered list. | <tvar name=1><nowiki>#</nowiki></tvar> use "nowiki" tags to display a literal (#) at the beginning of a line without interpreting it as a numbered list. | ||
|- | |- | ||
| | | <!--T:53--> Definition list | ||
| <pre> | | <pre> | ||
<!--T:54--> | <!--T:54--> | ||
;item 1 | ;item 1 | ||
Line 198: | Line 198: | ||
: definition 2-1 | : definition 2-1 | ||
: definition 2-2 | : definition 2-2 | ||
</pre> | </pre> | ||
| | | | ||
<!--T:55--> | <!--T:55--> | ||
;item 1 | ;item 1 | ||
Line 208: | Line 208: | ||
: definition 2-1 | : definition 2-1 | ||
: definition 2-2 | : definition 2-2 | ||
|- | |- | ||
| | | <!--T:56--> Indent text | ||
| <pre> | | <pre> | ||
<!--T:57--> | <!--T:57--> | ||
: Single indent | : Single indent | ||
:: Double indent | :: Double indent | ||
::::: Multiple indent | ::::: Multiple indent | ||
</pre> | </pre> | ||
---- | ---- | ||
| | | | ||
<!--T:59--> | <!--T:59--> | ||
: Single indent | : Single indent | ||
:: Double indent | :: Double indent | ||
::::: Multiple indent | ::::: Multiple indent | ||
|- | |- | ||
| | | <!--T:60--> Mixture of different types of list | ||
| <syntaxhighlight lang="html"> | | <syntaxhighlight lang="html"> | ||
<!--T:61--> | <!--T:61--> | ||
# one | # one | ||
Line 248: | Line 248: | ||
### five sub 1 sub 1 | ### five sub 1 sub 1 | ||
## five sub 2 | ## five sub 2 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
---- | ---- | ||
| | | | ||
<!--T:63--> | <!--T:63--> | ||
# one | # one | ||
Line 270: | Line 270: | ||
### five sub 1 sub 1 | ### five sub 1 sub 1 | ||
## five sub 2 | ## five sub 2 | ||
|- | |- | ||
| | | <!--T:64--> Preformatted text | ||
| <pre> | | <pre> | ||
<!--T:65--> Start each line with a space. | |||
<!--T:179--> Text is '''preformatted''' and | |||
<!--T:180--> ''markups'' '''''can''''' be done. | |||
</pre> | </pre> | ||
---- | ---- | ||
| | | | ||
<!--T:67--> Start each line with a space. | |||
<!--T:181--> Text is '''preformatted''' and | |||
<!--T:182--> ''markups'' '''''can''''' be done. | |||
|} | |} | ||
== Paragraphs == <!--T:78--> | == Paragraphs == <!--T:78--> | ||
<!--T:79--> | <!--T:79--> | ||
MediaWiki ignores single line breaks. To start a new paragraph, leave an empty line. You can force a line break within a paragraph with the HTML tag <nowiki><br /></nowiki>. | 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 <nowiki><br /></nowiki>. | ||
== Template 提供 == | == Template 提供 == | ||
Line 330: | Line 330: | ||
<nowiki><htmltag tagname="img" 正常标签属性 /></nowiki> | <nowiki><htmltag tagname="img" 正常标签属性 /></nowiki> | ||
</code> | </code> | ||