แม่แบบ:Rail icon
หน้าตา
| หน้านี้เป็นส่วนหนึ่งของ |
| มอดูล:Adjacent stations |
|---|
| (คุย | กระบะทราย | หน้าย่อย) |
| {{กล่องข้อมูล สถานี}} |
| (คุย | กระบะทราย | ชุดทดสอบ) |
| {{Station link}} |
| (คุย | กระบะทราย | ชุดทดสอบ) |
| {{Station icon link}} |
| (คุย | กระบะทราย | ชุดทดสอบ) |
| {{Rail color}} |
| (คุย | กระบะทราย | ชุดทดสอบ) |
| {{Line link}} |
| (คุย | กระบะทราย | ชุดทดสอบ) |
| {{Rail icon}} |
| (คุย | กระบะทราย | ชุดทดสอบ) |
| {{Rail color box}} |
| (คุย | กระบะทราย | ชุดทดสอบ) |
| {{Adjacent stations}} |
| (คุย | กระบะทราย | ชุดทดสอบ) |
| {{Line terminus link}} |
| (คุย | กระบะทราย | ชุดทดสอบ) |
| แม่แบบนี้ใช้ลูอา |
Template:Rail icon returns an icon, an image or another preset value, from a subpage of {{Adjacent stations}}.
การใช้งาน
[แก้]Module:Adjacent stations/system must exist for this template to work.
Variables
[แก้]- system is the name of the system or an abbreviation.
- line is the line name, if any.
- branch is the name of the branch or service, if any.
Parameters
[แก้]Optional parameters:
|size=– image size, expressed as width (15px), height (x15px) or both if necessary (15x15px).|link=– image link (full page name)|alt=– alt text|bold=– setting for some types of text-based icon; default is "yes" for all of those types|name=y– setting to any value will add the system or line name.
Examples
[แก้]Using Module:Adjacent stations/MRT:
{{Rail icon|MRT}}→
{{Rail icon|MRT|name=y}}→
รถไฟฟ้ามหานคร{{Rail icon|MRT|Purple}}→
{{Rail icon|MRT|Purple|name=y}}→
สายสีม่วง{{Rail icon|MRT|purple}}→
(using the "purple" alias)
If there are two or more images by default, then the image-applicable values will be set for all of them.
ดูเพิ่ม
[แก้]- {{Rail-interchange}} (abbreviated {{rint}}) for a similar template that has icons for many more systems.