模板: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) | 字串 | 非必填 |