跳转至内容

帮助:风格/空格

来自 ArchWiki

本文定义了在文章源代码中使用空白字符的标准。示例中所使用的样式应被视为规则不可分割的一部分。

通用规则

  • 在同一段落中的句子之间(即句号之后)使用单个空格分隔。
  • 避免使用多个空行来分隔段落或章节。
  • 章节标题与 = 字符之间使用单个空格分隔。
  • 章节标题与章节正文之间用一个空行分隔。
  • 模板名称、模板参数、链接标题和替代链接文本周围不应有空格。
  • 列表字符(*, #, ;:)与其项目之间用空格分隔。当用于缩进时,: 后的空格是可选的。
  • 单个列表项之间不能用空行分隔,否则 Wiki 解析器会为每个项目启动一个新列表。
  • 文章头部元素(魔术词分类跨语言链接)之间,以及头部与正文首行或标记之间,不应有空行。
  • 在文章正文中,特殊区块(相关文章框、列表、代码块、状态模板注释提示警告等)与普通文本之间用一个空行分隔。

主页、分类、ArchWiki、帮助命名空间

示例

[[Category:Example A]]
[[Category:Example B]]
[[es:Article]]
[[zh-hans:Article]]
{{Expansion|Example status template}}

{{Related articles start}}
{{Related|Related article A}}
{{Related|Related article B}}
{{Related articles end}}

Example introduction.

== Section 1 ==

Example section body.

=== Section 1.1 ===

Example section body with [[Related article|link]].

== Section 2 ==

=== Section 2.1 ===

Example section body with {{Template|Parameter 1|2=Parameter 2}}.

* List item
** List item
* List item

=== Section 2.2 ===

 Single-line code example

{{bc|
Multiline code example
1
2
3
}}

{{bc|1=
Multiline code example
1
2
3
}}

{{bc|<nowiki>
Multiline code example
1
2
3
</nowiki>}}

=== Section 2.3 ===

Paragraph text

{{Note|
* first note
* second note
}}

Second paragraph

{{Tip|some useful tip}}

讨论、*_talk 命名空间

不同的回复之间用一个空行分隔。

示例

== Discussion 1 ==

First post, paragraph 1.

First post, paragraph 2.

-- ~~~~

:Reply 1, single paragraph. -- ~~~~

::Reply 2, paragraph 1.
::Reply 2, paragraph 2.
::-- ~~~~

== Discussion 2 ==

First post, single paragraph. -- ~~~~

:Reply 1, paragraph 1.
:Reply 1, paragraph 2.
:-- ~~~~

::Reply 2, single paragraph. -- ~~~~

© . This site is unofficial and not affiliated with Arch Linux.

Content is available under GNU Free Documentation License 1.3 or later unless otherwise noted.