Help:Formatting/ja

ウィキマークアップを使用することによりテキストの整形ができます. テキスト整形マークアップには、アスタリスク・シングルクォート・等号などごく一般的な記号を使用します. これらの記号がウィキ内では特別な機能を果たすのです（一部の記号は特定の位置で使った時だけ機能します）. 例えばことばをイタリック体にするには、そのことばを シングルクオート2つではさみます.

テキスト整形のマークアップ
{| class="wikitable" ! 説明 ! width=40% | 入力 ! width=40% | 出力 ! colspan="3" style="background: #ABE" | (インライン) 文字整形 - どこでも有効 斜体 斜体 太字 太字 太字 & 斜体 太字 & 斜体 取り消し線 &lt;nowiki&gt;マークアップなし&lt;/nowiki&gt; no markup API&lt;nowiki/>extension API extension ! colspan="3" style="background: #ABE" | 節の整形 - 行頭でのみ有効
 * 斜体テキスト
 * 斜体テキスト
 * 太字テキスト
 * 太字テキスト
 * 太字と斜体
 * 太字と斜体
 * 取り消し線
 * 取り消し線
 * 取り消し線
 * ウィキ マークアップの回避
 * ウィキ マークアップの回避
 * Escape wiki markup once
 * Escape wiki markup once
 * さまざまなレベルの見出し
 * さまざまなレベルの見出し

レベル 6


レベル 2

レベル 3

レベル 4

レベル 5

レベル 6 Text before
 * 水平線
 * 水平線

Text after Text before

Text after don't break levels. Any other start ends the list. don't break levels. Any other start ends the list. don't break levels.
 * 番号なしリスト (箇条書き)
 * 番号なしリスト (箇条書き)
 * Start each line
 * with an asterisk (*).
 * More asterisks give deeper
 * and deeper levels.
 * Line breaks
 * But jumping levels creates empty space.
 * Start each line
 * with an asterisk (*).
 * More asterisks give deeper
 * and deeper levels.
 * Line breaks
 * Line breaks
 * But jumping levels creates empty space.
 * 番号付きリスト
 * 番号付きリスト
 * 1) Start each line
 * 2) with a number sign (#).
 * 3) More number signs give deeper
 * 4) and deeper
 * 5) levels.
 * 6) Line breaks
 * 1) But jumping levels creates empty space.
 * 2) Blank lines

Any other start also ends the list. don't break levels.
 * 1) end the list and start another.
 * 1) Start each line
 * 2) with a number sign (#).
 * 3) More number signs give deeper
 * 4) and deeper
 * 5) levels.
 * 6) Line breaks
 * 1) Line breaks
 * 1) But jumping levels creates empty space.
 * 2) Blank lines

Any other start also ends the list.
 * 1) end the list and start another.
 * 定義リスト
 * 項目 1
 * 定義 1
 * 項目 1
 * 定義 1


 * 項目 2
 * 定義 2-1
 * 定義 2-2


 * 項目 1
 * 定義 1
 * 定義 1


 * 項目 2
 * 定義 2-1
 * 定義 2-2


 * テキストのインデント
 * Single indent
 * Double indent
 * Multiple indent
 * Double indent
 * Multiple indent


 * Single indent
 * Double indent
 * Multiple indent
 * Multiple indent

of &lt;nowiki> &lt;/nowiki>
 * さまざまな種類のリストの混在
 * さまざまな種類のリストの混在
 * 1) one
 * 2) two
 * 3) * two point one
 * 4) * two point two
 * 5) three
 * 6) ; three item one
 * three def one
 * 1) four
 * four def one
 * this looks like a continuation
 * and is often used
 * instead
 * 1) five
 * 2) five sub 1
 * 3) five sub 1 sub 1
 * 4) five sub 2

of
 * 1) one
 * 2) two
 * 3) * two point one
 * 4) * two point two
 * 5) three
 * 6) ; three item one
 * three def one
 * 1) four
 * four def one
 * this looks like a continuation
 * and is often used
 * instead
 * instead

Start each line with a space. Text is preformatted and markups can be done.
 * 1) five
 * 2) five sub 1
 * 3) five sub 1 sub 1
 * 4) five sub 2
 * Preformatted text
 * Preformatted text

Start each line with a space. Text is preformatted and markups can be done. (before the ).
 * Preformatted text blocks
 * Start with a space in the first column,
 * Start with a space in the first column,

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 Start with a space in the first column, (before the ).

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

Paragraphs
MediaWiki ignores single line breaks. To start a new paragraph, leave an empty line. You can force a line break within a paragraph with the HTML tag.

HTML tags
Some HTML tags are allowed in MediaWiki, for example,  ,   and. These apply anywhere you insert them. continued:

Inserting symbols
Symbols and other special characters not available on your keyboard can be inserted through a special sequence of characters. Those sequences are called HTML entities. For example, the following sequence (entity) &amp;rarr; when inserted will be shown as right arrow HTML symbol &rarr; and &amp;mdash; when inserted will be shown as an em dash HTML symbol &mdash;.

See the list of all HTML entities on the Wikipedia article List of HTML entities. Additionally, MediaWiki supports two non-standard entity reference sequences:  and   which are both considered equivalent to   which is a right-to-left mark. (Used when combining right to left languages with left to right languages in the same page.)

HTML tags and symbol entities displayed themselves (with and without interpreting them)

 * &amp;amp;euro; &rarr; &amp;euro;


 * &lt;span style="color: red; text-decoration: line-through;">Typo to be corrected&lt;/span> &rarr;  Typo to be corrected 


 *  Typo to be corrected   &rarr; &lt;span style="color: red; text-decoration: line-through;">Typo to be corrected&lt;/span>

Nowiki for HTML
< nowiki /> can prohibit (HTML) tags: But not &amp; symbol escapes: To print &amp; symbol escapes as text, use "&amp;amp;" to replace the "&" character (eg. type "&amp;amp;nbsp;", which results in "&amp;nbsp;").
 * < pre> &rarr;
 * &< nowiki />amp; &rarr; &amp;

Other formatting
Beyond the text formatting markup shown hereinbefore, here are some other formatting references:


 * Links
 * Lists
 * Images
 * References - see Extension:Cite/Cite.php
 * Tables

You can find more references at Help:Contents.