ヘルプ:スタイル/空白

提供: ArchWiki
< ヘルプ:スタイル
2020年4月23日 (木) 12:21時点におけるNy-a (トーク | 投稿記録)による版 (前書きの訳出(ID: 16062 の版での同期部分))
ナビゲーションに移動 検索に移動

関連記事

このページでは、ページのソースコードでの空白文字の使用に関する標準を定義します。例で使われているスタイルはルールの必須の部分とみなされます。

一般的なルール

  • Use a single space to separate sentences in the same paragraph (i.e. after period marks).
  • Avoid using multiple blank lines to space out paragraphs or sections.
  • Separate section titles from the = characters with a single space character.
  • Separate section headers from section bodies with an empty line.
  • There should be no spaces around template names, template parameters, link titles, and alternative link text.
  • Separate list characters (*, #, ; and :) from their items with a space. When used for indentation, a space after : is optional.
  • Individual list items cannot be separated by blank lines, otherwise the wiki parser will start a new list for each item.
  • Separate special blocks (lists, code blocks, notes, tips, warnings etc.) from normal text with an empty line.

メイン・カテゴリ・ArchWiki・ヘルプ 名前空間

Separate magic words, categories, interlanguage links and the rest of the page with a single line break.

[[カテゴリ:Example A]]
[[カテゴリ:Example B]]
[[es:Article]]
[[zh-CN: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 ===

 Singe-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}}

トーク・全ての議論 名前空間

Separate different replies with an empty line.

== 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. -- ~~~~