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:

Example.png
Example image not to be used in article namespace.jpg

TemplateData[编辑]

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)

字符串可选