“Help:格式”的版本间的差异

来自Akbfun
跳到导航 跳到搜索
(以“== 文本格式化标记 == {| class="wikitable" ! 描述 ! width=40% | 用户键入 ! width=40% | 输出效果 |- ! colspan="3" style="background: #ABE" | Character...”为内容创建页面)
 
第5行: 第5行:
 
! width=40% | 输出效果
 
! width=40% | 输出效果
 
|-
 
|-
! colspan="3" style="background: #ABE" | Character (inline) formatting – ''applies anywhere''
+
! colspan="3" style="background: #ABE" | 字符 ( 内嵌) 格式 – '' 适用于任何地方''
 
|-
 
|-
 
| 斜体文字
 
| 斜体文字
第28行: 第28行:
 
'''''粗斜体'''''
 
'''''粗斜体'''''
 
|-
 
|-
| Strike text
+
| 删除线
 
| <pre>
 
| <pre>
<strike> strike text </strike>
+
<strike> 删除线 </strike>
 
</pre>
 
</pre>
|<strike> strike text </strike>
+
|<strike> 删除线 </strike>
 
|-
 
|-
| Escape wiki markup
+
| 显示维基标记符号
 
| <pre>
 
| <pre>
&lt;nowiki&gt;no ''markup''&lt;/nowiki&gt;
+
&lt;nowiki&gt; 不使用 '' 标记符号''&lt;/nowiki&gt;
 
</pre>
 
</pre>
 
|
 
|
<nowiki>no ''markup''</nowiki>
+
<nowiki> 不使用 '' 标记符号''</nowiki>
 
|-
 
|-
| Escape wiki markup once
+
| 单次显示维基标记符号
 
| <pre>
 
| <pre>
 
[[API]]&lt;nowiki/>扩展
 
[[API]]&lt;nowiki/>扩展
第48行: 第48行:
 
[[API]]<nowiki/>扩展
 
[[API]]<nowiki/>扩展
 
|-
 
|-
! colspan="3" style="background: #ABE" | Section formatting – ''only at the beginning of the line''
+
! colspan="3" style="background: #ABE" | 区域格式 – '' 仅在行首起作用''
 
|-
 
|-
| Headings of different levels
+
| 不同等级的小标题
 
| <pre>
 
| <pre>
 
== 第二级 ==
 
== 第二级 ==
第62行: 第62行:
 
====== 第六级 ======
 
====== 第六级 ======
 
</pre>
 
</pre>
----
 
{{note|
 
* [[Special:MyLanguage/Help_talk:Formatting#Level_1|Skip Level 1]], it is page name level.
 
* An article with 4 or more headings automatically creates a [[wikipedia:Wikipedia:Section#Table of contents (TOC)|table of contents]].
 
}}
 
 
|
 
|
 
<!-- using HTML markup to avoid creating new sections -->
 
<!-- using HTML markup to avoid creating new sections -->
<h2>Level 2</h2>
+
<h2> 第二级</h2>
  
<h3>Level 3</h3>
+
<h3> 第三级</h3>
  
<h4>Level 4</h4>
+
<h4> 第四级</h4>
  
<h5>Level 5</h5>
+
<h5> 第五级</h5>
  
<h6>Level 6</h6>
+
<h6> 第六级</h6>
 
|-
 
|-
| Horizontal rule
+
| 水平分割先
 
| <pre>
 
| <pre>
Text before
+
之前的文字
 
----
 
----
Text after
+
之后的文字
 
</pre>
 
</pre>
 
|
 
|
Text before
+
之前的文字
 
----
 
----
Text after
+
之后的文字
 
|-
 
|-
| Bullet list
+
| 圆点列表
 
|
 
|
 
<pre>
 
<pre>
* Start each line
+
* 在每一行的开始
* with an [[Wikipedia:asterisk|asterisk]] (*).
+
* 加入一个 [[Wikipedia:asterisk|asterisk]] (*).
** More asterisks give deeper
+
** 越多的星号意味着
*** and deeper levels.
+
*** 更深的层级.
* Line breaks <br />don't break levels.
+
* 换行符 <br /> 并不会破坏层级.
*** But jumping levels creates empty space.
+
*** 多层级间的跳转会产生空白。
Any other start ends the list.
+
一个不带星号的行会使列表结束
 
</pre>
 
</pre>
 
|
 
|
* Start each line
+
* 在每一行的开始
* with an [[Wikipedia:asterisk|asterisk]] (*).
+
* 加入一个 [[Wikipedia:asterisk|asterisk]] (*).
** More asterisks give deeper
+
** 越多的星号意味着
*** and deeper levels.
+
*** 更深的层级.
* Line breaks <br />don't break levels.
+
* 换行符 <br /> 并不会破坏层级.
*** But jumping levels creates empty space.
+
*** 多层级间的跳转会产生空白。
Any other start ends the list.
+
一个不带星号的行会使列表结束
 
|-
 
|-
| Numbered list
+
| 有序列表
 
|
 
|
 
<pre>
 
<pre>
# Start each line
+
# 在每一行的开始
# with a [[Wikipedia:Number_sign|number sign]] (#).
+
# 加入一个 [[Wikipedia:Number_sign|number sign]] (#).
## More number signs give deeper
+
## 越多的井号意味着
### and deeper
+
### 更深的.
### levels.
+
### 层级.
# Line breaks <br />don't break levels.
+
# 换行符 <br /> 并不会破坏层级.
### But jumping levels creates empty space.
+
### 多层级间的跳转会产生空白。
# Blank lines
+
# 空白的行
  
# end the list and start another.
+
# 会结束一个列表,并开启另一个新的列表
Any other start also
+
另外的一个空行,同样会终结一个列表
ends the list.
 
 
</pre>
 
</pre>
 
|
 
|
# Start each line
+
# 在每一行的开始
# with a [[Wikipedia:Number_sign|number sign]] (#).
+
# 加入一个 [[Wikipedia:Number_sign|number sign]] (#).
## More number signs give deeper
+
## 越多的井号意味着
### and deeper
+
### 更深的.
### levels.
+
### 层级.
# Line breaks <br />don't break levels.
+
# 换行符 <br /> 并不会破坏层级.
### But jumping levels creates empty space.
+
### 多层级间的跳转会产生空白。
# Blank lines
+
# 空白的行
  
# end the list and start another.
+
# 会结束一个列表,并开启另一个新的列表
Any other start also
+
另外的一个空行,同样会终结一个列表
ends the list.
 
 
|-
 
|-
 
| Definition list
 
| Definition list
第255行: 第248行:
 
      print False</nowiki>
 
      print False</nowiki>
 
|}
 
|}
 +
 +
 +
== 段落 ==
 +
 +
MediaWiki会忽略所有的单个换行。 为了开始一个新的段落,请使用一个单独的空白行。在段落中可以使用HTML的换行符 <code>&lt;br /></code> 来强行换行。

2014年8月8日 (五) 14:26的版本

文本格式化标记

描述 用户键入 输出效果
字符 (内嵌) 格式 – 适用于任何地方
斜体文字
''斜体''

斜体

粗体文字
'''粗体'''

粗体

粗斜体
'''''粗斜体'''''

粗斜体

删除线
<strike> 删除线 </strike>
删除线
显示维基标记符号
<nowiki>不使用 ''标记符号''</nowiki>

不使用 ''标记符号''

单次显示维基标记符号
[[API]]<nowiki/>扩展

API扩展

区域格式 – 仅在行首起作用
不同等级的小标题
== 第二级 ==

=== 第三极 ===

==== 第四级 ====

===== 第五级 =====

====== 第六级 ======

第二级

第三级

第四级

第五级
第六级
水平分割先
之前的文字
----
之后的文字

之前的文字


之后的文字

圆点列表
* 在每一行的开始
* 加入一个 [[Wikipedia:asterisk|asterisk]] (*).
** 越多的星号意味着
*** 更深的层级.
* 换行符 <br /> 并不会破坏层级.
*** 多层级间的跳转会产生空白。
一个不带星号的行会使列表结束
  • 在每一行的开始
  • 加入一个 asterisk (*).
    • 越多的星号意味着
      • 更深的层级.
  • 换行符
    并不会破坏层级.
      • 多层级间的跳转会产生空白。

一个不带星号的行会使列表结束

有序列表
# 在每一行的开始
# 加入一个 [[Wikipedia:Number_sign|number sign]] (#).
## 越多的井号意味着
### 更深的.
### 层级.
# 换行符 <br /> 并不会破坏层级.
### 多层级间的跳转会产生空白。
# 空白的行

# 会结束一个列表,并开启另一个新的列表
另外的一个空行,同样会终结一个列表
  1. 在每一行的开始
  2. 加入一个 number sign (#).
    1. 越多的井号意味着
      1. 更深的.
      2. 层级.
  3. 换行符
    并不会破坏层级.
      1. 多层级间的跳转会产生空白。
  4. 空白的行
  1. 会结束一个列表,并开启另一个新的列表

另外的一个空行,同样会终结一个列表

Definition list
;item 1
: definition 1
;item 2
: definition 2-1
: definition 2-2
item 1
definition 1
item 2
definition 2-1
definition 2-2
Indent text
: Single indent
:: Double indent
::::: Multiple indent

Template:Note

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

Template:Note

  1. one
  2. two
    • two point one
    • two point two
  3. three
    three item one
    three def one
  4. four
    four def one
    this looks like a continuation
    and is often used
    instead
    of <br />
  5. five
    1. five sub 1
      1. five sub 1 sub 1
    2. five sub 2Template:Anchor
Preformatted text
 Start each line with a space.
 Text is '''preformatted''' and
 ''markups'' '''''can''''' be done.

Template:Note

Start each line with a space.
Text is preformatted and
markups can be done.
Preformatted text blocks
 <nowiki>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</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


段落

MediaWiki会忽略所有的单个换行。 为了开始一个新的段落,请使用一个单独的空白行。在段落中可以使用HTML的换行符 <br /> 来强行换行。