Template:Switcher
跳到导航
跳到搜索
This template is used to create a switchable image with caption, for use in infoboxes. Note that this template does not work in the editing preview.
Parameters[编辑]
Odd numbered parameters provide the image in wikitext; even numbered parameters provide the captions.
Example[编辑]
{{Switcher | [[File:Example.png|300px]] | An example | [[File:Example image not to be used in article namespace.jpg|300px]] | A different example }}
Output:
TemplateData[编辑]
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) | 字符串 | 可选 |
上述文档嵌入自Template:Switcher/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。本模板的子页面。 |