<tag></tag>
[編輯] []
模板說明文件
This template provides a quick way to mention an XML-style tag in a preformatted way. Mainly used in discussion/help pages.
用法
- first parameter (compulsory) the name of the HTML tag
- second parameter — what type of tag to display:
pair(default) – display a matched pair of open-and-close tags:<font></font>open– display only the opening tag of an open-and-close pair:<span>close– display only the closing tag of an open-and-close pair:</span>single– display a single tag:<br/>
- content= — the text content of the tags
- params= — any parameters to be included in the opening tag
範例
{{tag|ref}}→<ref></ref>{{tag|ref|hello}}→<ref></ref>{{tag|font|content=foo}}→<font>foo</font>{{tag|font|open}}→<font>{{tag|font|open|content=hello}}→<font>{{tag|span|close|content=hello}}→</span>{{tag|span|pair|content=hello}}→<span>hello</span>{{tag|ref|params=group=note|open}}→<ref group=note>{{tag|br|single}}→<br/>
另見
| 以上說明文件嵌入自模板:Tag/doc。 (編輯 | 歷史) 編輯們可以在這模板的 沙盒 (建立) 和 測試案例 (建立) 頁面進行實驗。 請到/doc子頁面增添分類。 這模板的子頁面。 |
除非另有註明,否則社區內容均使用CC-BY-SA授權條款。