Template:Tag/doc
| This is a documentation subpage for Template:Tag. It contains usage information, categories and other content that is not part of the original template page. |
| この記事は、クリエイティブ・コモンズ・表示・継承ライセンス3.0のもとで公表されたウィキペディアの項目Template:Tag/docを素材として二次利用しています。 WB item: |
<ref>...</ref>や<nowiki />など、説明文においてHTMLタグの例を容易に挿入します。
(注:このテンプレートは、{{#tag:ref|...}} などとは別のものです。{{#tag:ref|...}}などの使い方についてはja:Help:マジックワードをご覧下さい。)
使用法
- 第1引数(必須) - HTMLタグ名
- 第2引数
- 省略、pまたは
pair- 開くタグと閉じるタグを両方記述する場合:<font>...</font> - oまたは
open- 開くタグのみ記述する場合:<span> - cまたは
close- 閉じるタグのみ記述する場合:</span> - sまたは
single- 単一のタグを記述する場合:<br />
- 省略、pまたは
- content - 開くタグと閉じるタグの間に記述するテキスト。
- params - 開くタグの中に記述するパラメータ名。
使用例
{{Tag|ref}}→<ref>...</ref>{{Tag|ref|content=hello}}→<ref>hello</ref>{{Tag|font|content=foo}}→<font>foo</font>{{Tag|font|open}}→<font>{{Tag|font|open|content=hello}}→<font>hello{{Tag|span|close|content=hello}}→hello</span>{{Tag|span|pair|content=hello}}→<span>hello</span>{{Tag|ref|open|params=group=note}}→<ref group=note>{{Tag|references|single}}→<references />{{Tag|br|single}}→<br />