テンプレート:Tag
表示
<tag>...</tag>
<ref>...</ref>や<nowiki />など、説明文においてHTMLタグの例を容易に挿入します。
使用法
[編集]- 第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 />