跳转到内容

Template:Switcher/doc

维基百科,自由的百科全书

此模板用来在信息框中创建可切换的图像(附标题)。基于MediaWiki:Gadget-switcher.js小工具。

参数

[编辑]

奇数参数以wiki文本格式提供图像,偶数参数提供图像标题。

示例

[编辑]
{{Switcher
| [[File:Example.png|300px]]
| An example
| [[File:Example image not to be used in article namespace.jpg|300px]]
| A different example
}}

输出:

模板数据

[编辑]

Creates a switchable image with caption for use in infoboxes

模板参数

参数描述类型状态
11

Image 1 wikitext

示例值
[[File:Example.png|300px]]
wikitext片段可选
22

Image 1 caption

示例值
This is just an example.
字符串可选
33

See {{{1}}} (recursive)

wikitext片段可选
44

See {{{2}}} (recursive)

字符串可选