模 板 :Tag
<tag>...</tag>
模 板 介 绍
[编辑]使用 方法
[编辑]|1=
(必需 ):HTML标签名称 |2=
:标签的 显示方式 p
、pair
:(预设)显示相互 对应的 开、关标签,如<font>...</font>
要 隐藏标签之 间的省略 号 的 话,可 加入 置 空 的 |content=
参 数
o
、open
、开
、
:左 只 显示开标签,如<span>
c
、close
、关
、
:右 只 显示关标签,如</span>
s
、single
:显示单项标签,如<br />
|content=
、|3=
、|
、内容 =|
:标签文字 =之 间的内容 |params=
、|4=
、|
:参 数 =任 何 置 于开标签内的 参 数
范例
[编辑]{{tag|ref}}
→<ref>...</ref>
{{tag|ref|content=}}
→<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 />
注意 事 项
[编辑]参 见
[编辑]- {{HTMLElement}}
- {{XMLElement}}
- {{xtag}}
可 显示MediaWiki解析 器 或 扩展标签,并连结至该扩展 的 说明页面 - #tag:
解析 器 函数 可 显示实际生 效 的 标签
给模板 编辑者 的 说明
[编辑]模 板 结构
[编辑]实现方法
[编辑]编辑注意
[编辑]编者 请在/doc |