模板:Switcher
外观
| 此模板已被半保护。仅限自动确认用户及确认用户编辑。 |
| 此模板使用Lua语言: |
| 本模板使用以下JavaScript小工具: |
此模板用来在信息框中创建可切换的图像(附标题)。基于MediaWiki:Gadget-switcher.js小工具。
根据WP:NFCC#8规定,禁止用于隐藏非自由版权档案。
参数
奇数参数以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) | 字符串 | 可选 |