模板:Switcher/doc
外觀
| 此頁面是Template:Switcher的模板文件。 此頁面可能包含了模板的使用說明、分類和其他內容。 |
此模板用來在信息框中創建可切換的圖像(附標題)。基於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
| 參數 | 描述 | 類型 | 狀態 | |
|---|---|---|---|---|
| 1 | 1 | Image 1 wikitext
| 不對稱的 WikiText | 非必填 |
| 2 | 2 | Image 1 caption
| 字串 | 非必填 |
| 3 | 3 | See {{{1}}} (recursive) | 不對稱的 WikiText | 非必填 |
| 4 | 4 | See {{{2}}} (recursive) | 字串 | 非必填 |

