帮助:格式

来自Akbfun
跳到导航 跳到搜索

文本格式化标记

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

斜体

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

粗体

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

粗斜体

删除线
<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 /> 来强行换行。

其他格式