クリエイティブ・コモンズ・ライセンス北野成昭(キタノナルアキ) 作『獣医志Wiki』はクリエイティブ・コモンズ 表示 - 非営利 - 継承 4.0 国際 ライセンスで提供されています。

ヘルプ:Formatting/ja

提供: 獣医志Wiki
移動: 案内検索

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

テキスト整形のマークアップ

説明 入力 出力
(インライン) 文字整形 - どこでも有効
斜体テキスト
''斜体''

斜体

太字テキスト
'''太字'''

太字

太字と斜体
'''''太字 & 斜体'''''

太字 & 斜体

取り消し線
<strike> 取り消し線 </strike>
取り消し線
ウィキ マークアップの回避
<nowiki>''マークアップ''なし</nowiki>

''マークアップ''なし

Escape wiki markup once
[[Special:MyLanguage/API:Main page|API]]<nowiki/> extension

API extension

節の整形 - 行頭でのみ有効
さまざまなレベルの見出し
== レベル 2 ==

=== レベル 3 ===

==== レベル 4 ====

===== レベル 5 =====

====== レベル 6 ======

テンプレート:Note

レベル 2

レベル 3

レベル 4

レベル 5
レベル 6
水平線
前のテキスト
----
後のテキスト

前のテキスト


後のテキスト

番号なしリスト (箇条書き)
* Start each line
* with an [[Wikipedia:asterisk|asterisk]] (*).
** More asterisks give deeper
*** and deeper levels.
* Line breaks <br />don't break levels.
*** But jumping levels creates empty space.
Any other start ends the list.
  • Start each line
  • with an asterisk (*).
    • More asterisks give deeper
      • and deeper levels.
  • Line breaks
    don't break levels.
      • But jumping levels creates empty space.

Any other start ends the list.

番号付きリスト
# Start each line
# with a [[Wikipedia:Number_sign|number sign]] (#).
## More number signs give deeper
### and deeper
### levels.
# Line breaks <br />don't break levels.
### But jumping levels creates empty space.
# Blank lines

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

Any other start also ends the list.

定義リスト
;項目 1
: 定義 1
;項目 2
: 定義 2-1
: 定義 2-2
項目 1
定義 1
項目 2
定義 2-1
定義 2-2
テキストのインデント
: Single indent
:: Double indent
::::: Multiple indent

テンプレート:Note

Single indent
Double indent
Multiple indent
さまざまな種類のリストの混在
# 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

テンプレート: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 2テンプレート:Anchor
整形済みテキスト
 行頭に空白を挿入すると
 テキストが'''整形済み'''になり
 ''マークアップ''も'''''できます'''''。

テンプレート:Note

行頭に空白を挿入すると
テキストが整形済みになり
マークアップできます
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 /> を使用できます。

HTMLタグ

MediaWikiではいくつかの HTML タグが認められています。これには<code>, <div>, <span> および <font> などがあります。これらのマークアップはどこで使用しても有効です。

説明 入力 出力
Inserted
(Displays as underline in most browsers)
<ins>挿入済み</ins>

または

<u>下線</u>

挿入済み

または

下線

Deleted
(Displays as strikethrough in most browsers)
<s>取り消し済み</s>

または

<del>削除済み</del>

取り消し済み

または

削除済み

等幅テキスト
<code>ソース コード</code>

または

<tt>等幅テキスト</tt>

ソース コード

または

等幅テキスト

Blockquotes
前のテキスト
<blockquote>Blockquote</blockquote>
後のテキスト

前のテキスト

Blockquote

後のテキスト

コメント
<!-- This is a comment -->
Comments are visible only 
in the edit zone.

Comments are visible only in the edit zone.

Completely preformatted text
<pre>Text is '''preformatted''' and 
''markups'' '''''cannot''''' be done</pre>

テンプレート:Note

Text is '''preformatted''' and 
''markups'' '''''cannot''''' be done
Customized preformatted text
<pre style="color: red">Text is '''preformatted''' 
with a style and 
''markups'' '''''cannot''''' be done
</pre>

テンプレート:Note

Text is '''preformatted''' 
with a style and 
''markups'' '''''cannot''''' be done

continued:

説明 入力 出力
Customized preformatted text with text wrap according to available width
<pre style="white-space: pre-wrap; 
white-space: -moz-pre-wrap; 
white-space: -pre-wrap; 
white-space: -o-pre-wrap; 
word-wrap: break-word;">
This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer.
</pre>
This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer.
Preformatted text with text wrap according to available width
<code>
This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer.
</code>

This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer.

記号の挿入

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) &rarr; when inserted will be shown as right arrow HTML symbol → and &mdash; when inserted will be shown as an em dash HTML symbol —.


テンプレート:Note

HTML symbol entities
Á á Â â ´ Æ æ À à Α α & Å å Ã ã Ä ä Β β ¦ Ç ç ¸ ¢
Χ χ ˆ © ¤ ° Δ δ ÷ É é Ê ê È è Ε ε Η η
Ð ð Ë ë ƒ ½ ¼ ¾ Γ γ > Í í Î î ¡ Ì ì Ι ι
¿ Ï ï Κ κ Λ λ « < ¯ µ · Μ μ  
¬ Ñ ñ Ν ν Ó ó Ô ô Œ œ Ò ò Ω ω Ο ο ª º Ø ø Õ õ Ö
ö Φ φ Π π ϖ ± £ Ψ ψ " » ® Ρ ρ
Š š § ­ Σ σ ς ¹ ² ³ ß Τ τ Θ θ ϑ Þ þ ˜
× Ú ú Û û Ù ù ¨ ϒ Υ υ Ü ü Ξ ξ Ý ý ¥ ÿ Ÿ Ζ ζ
説明 入力 出力
著作権記号
&copy;
©
ギリシャ文字の「デルタ」
&delta;
δ
通貨のユーロ記号
&euro;

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 &rlm; 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;euro;  → &euro;
<span style="color: red; text-decoration: line-through;">Typo to be corrected</span>  → Typo to be corrected
&lt;span style="color: red; text-decoration: line-through;">Typo to be corrected</span>  → <span style="color: red; text-decoration: line-through;">Typo to be corrected</span>

Nowiki for HTML

<nowiki /> は、(HTML) タグを阻害します:

  • <<nowiki />pre>  → <pre>

しかし、& 記号はエスケープされません:

  • &<nowiki />amp;  → &

& 記号をテキストとして出力するには以下のようにします。「&amp;」を使用すると、「&」の文字に置換されます (例: 「&amp;nbsp;」と入力すると、「&nbsp;」になります)。

その他の整形

テキスト整形以外の整形用マークアップについては以下を参照してください:

You can find more references at Help:Contents. [[Category:Helpテンプレート:Langcat|Formatting]]