แม่แบบ:Multiple sports table preview
การใช้งาน[แก้]
This templates provides a preview for multiple instances of Module:Sports table on the same template page when the switch parser function is used.
- To use the template, add all the branch names used by the switch parser function to the template's parameters (which are unnamed).
- By default, matches are not displayed next to sports tables.
- To display the matches for a specific table, set
|matches#=yes
, replacing#
with the sequential number of the relevant table. - To display the matches for all the tables, set
|matches=yes
.- If
|matches=yes
is set, but you wish to hide the matches for a specific table, set|matches#=no
, replacing#
with the sequential number of the relevant table.
- If
- To display the matches for a specific table, set
- To add a reflist below a specific table, set
|ref#=yes
, replacing#
with the sequential number of the relevant table.
ตัวอย่าง[แก้]
For example, if you have four group tables (named "Group A", "Group B", "Group C", and "3rd place"), and you wish to display a reflist below "Group B", and display the matches for all tables except "3rd place":
{{Multiple sports table preview|matches=yes|matches4=no|ref2=yes|Group A|Group B|Group C|3rd place}}
For an example of the template in use, see Template:UEFA Euro 2016 qualifying group tables.
คู่มือการใช้งานที่ปรากฏด้านบนนี้ดึงมาจาก แม่แบบ:Multiple sports table preview/doc (แก้ | ประวัติ) ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (สร้าง | คัดลอก) และชุดทดสอบ (สร้าง) ของแม่แบบนี้ โปรดเพิ่มหมวดหมู่ไปที่หน้าย่อย /doc หน้าย่อยของแม่แบบนี้ |