แม่แบบ:Switcher

จากวิกิพีเดีย สารานุกรมเสรี
Documentation icon คู่มือการใช้งานแม่แบบ[ดู] [แก้] [ประวัติ] [ล้างแคช]

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.

ตัวอย่าง[แก้]

{{Switcher
| [[ไฟล์:New Hampshire Democratic presidential primary election results by county, 2020.svg|x300px]]
| Election results by county
| [[ไฟล์:New Hampshire Democratic presidential primary election results by town, 2020.svg|x300px]]
| Election results by town
}}

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]]
ข้อความวิกิที่ไม่สมดุลเลือกได้
22

Image 1 caption

ตัวอย่าง
This is just an example.
สตริงเลือกได้
33

See {{{1}}} (recursive)

ข้อความวิกิที่ไม่สมดุลเลือกได้
44

See {{{2}}} (recursive)

สตริงเลือกได้