Template: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) | 字符串 | 可选 |