Template:Switcher
外观
此模板用来在信息框中创建可切换的图像(附标题)。基于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
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
1 | 1 | Image 1 wikitext
| wikitext片段 | 可选 |
2 | 2 | Image 1 caption
| 字符串 | 可选 |
3 | 3 | See {{{1}}} (recursive) | wikitext片段 | 可选 |
4 | 4 | See {{{2}}} (recursive) | 字符串 | 可选 |