「ヘルプ:スタイル/空白」の版間の差分
< ヘルプ:スタイル
ナビゲーションに移動
検索に移動
(en:Help:Style/White space en:ID: 603569 の版の状態に同期) |
(セクション見出しの訳出・リンク先を日本語版に変更(ID: 16062 の版での同期部分)) |
||
1行目: | 1行目: | ||
+ | [[カテゴリ:ヘルプ]] |
||
− | [[Category:Help]] |
||
[[el:Help:Style/White space]] |
[[el:Help:Style/White space]] |
||
[[en:Help:Style/White space]] |
[[en:Help:Style/White space]] |
||
6行目: | 6行目: | ||
[[ru:Help:Style (Русский)/White space]] |
[[ru:Help:Style (Русский)/White space]] |
||
{{Related articles start}} |
{{Related articles start}} |
||
− | {{Related| |
+ | {{Related|ヘルプ:編集#改行}} |
{{Related articles end}} |
{{Related articles end}} |
||
This article defines the standards for the use of whitespace characters in the source code of articles. The style used in the examples is to be considered an integral part of the rules. |
This article defines the standards for the use of whitespace characters in the source code of articles. The style used in the examples is to be considered an integral part of the rules. |
||
− | == |
+ | == 一般的なルール == |
* Use a single space to separate sentences in the same paragraph (i.e. after period marks). |
* Use a single space to separate sentences in the same paragraph (i.e. after period marks). |
||
18行目: | 18行目: | ||
* Separate section headers from section bodies with an empty line. |
* 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. |
* There should be no spaces around template names, template parameters, link titles, and alternative link text. |
||
− | * Separate [[ |
+ | * Separate [[ヘルプ:編集#リスト|list]] characters ({{ic|*}}, {{ic|#}}, {{ic|;}} and {{ic|:}}) from their items with a space. When used for [[ヘルプ:編集#インデント|indentation]], a space after {{ic|:}} is optional. |
* Individual list items cannot be separated by blank lines, otherwise the wiki parser will start a new list for each item. |
* 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, [[ |
+ | * Separate special blocks (lists, code blocks, [[テンプレート:note|note]]s, [[テンプレート:tip|tip]]s, [[テンプレート:warning|warning]]s 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. |
Separate magic words, categories, interlanguage links and the rest of the page with a single line break. |
||
− | === |
+ | === 例 === |
{{bc|<nowiki> |
{{bc|<nowiki> |
||
− | [[ |
+ | [[カテゴリ:Example A]] |
− | [[ |
+ | [[カテゴリ:Example B]] |
[[es:Article]] |
[[es:Article]] |
||
[[zh-CN:Article]] |
[[zh-CN:Article]] |
||
99行目: | 99行目: | ||
</nowiki>}} |
</nowiki>}} |
||
+ | == トーク・全ての議論 名前空間 == |
||
− | == Talk, *_talk namespaces == |
||
Separate different replies with an empty line. |
Separate different replies with an empty line. |
||
− | === |
+ | === 例 === |
{{bc|<nowiki> |
{{bc|<nowiki> |
2020年4月22日 (水) 14:29時点における版
関連記事
This article defines the standards for the use of whitespace characters in the source code of articles. The style used in the examples is to be considered an integral part of the rules.
一般的なルール
- 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. -- ~~~~