跳至內容

模板:Switcher/doc

維基百科,自由的百科全書

此模板用來在信息框中創建可切換的圖像(附標題)。基於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

模板參數

參數描述類型狀態
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)

字串非必填