Jump to content

ទំព័រគំរូ:តារាងមេដាយ/doc

ពីវិគីភីឌា

នេះគឺជាទំព័រគំរូបង្កើតតារាងមេដាយសម្រាប់ព្រឹត្តិការណ៍កីឡាដែលចំនួនសរុប និងចំណាត់ថ្នាក់ត្រូវបានគណនាដោយស្វ័យប្រវត្តិ។

មូលដ្ឋានគំរូ

[កែប្រែ]
{{Medals table
 | caption        = 
 | host           = <!-- Text to display after host color box -->
 | show_limit     = <!-- Will limit to displaying only the first N rows if this param is provided -->
 | remaining_text = <!-- Text to display for the remaining N rows (default is 'Remaining') -->
 | flag_template  = <!-- Optional, will default to use Template:Flagteam -->
 | event          = <!-- required IF flag_template requires a secondary param -->
 | team           = <!-- Optional, will default to Nation -->
 | source         = <!-- External link or reference -->

 ... <!-- For a list of valid IOC values, see [[List of IOC country codes]] -->

 | gold_IOC    =
 | silver_IOC  = 
 | bronze_IOC  =
 | host_IOC    = <!-- leave blank UNLESS this is the host nation -->
 | name_IOC    = <!-- Optional override of default which is {{flag_template|IOC}} -->
 | note_IOC    = <!-- Option note that is added after the nation name -->
}}

Parameters

[កែប្រែ]

Some of the optional parameters

Parameter Explanation
caption The caption or title given to the table
host The host entity. If set to a 3 letter code matching one of the rows, the host name will be automatically formatted. Otherwise this param will override the host text.
flag_template Which of the many flag templates to use. If left blank, {{flag country}} will be used.
event For flag templates which require a 2nd parameter (such as {{flag IOC team}}) this param will be that 2nd param.
team An optional override for the header to column 2. The default is "Nation".
hide_rank When set the rank column will be hidden.
hide_totals When set the totals row will be hidden.

For a list of valid IOC values, see List of IOC country codes

In case of multiple hosts, use |host1= and |host2=

Blank with all IOC codes

[កែប្រែ]

The below template contains a condensed version of the template with ALL IOC country codes included. Obviously not all are needed. You are free to pick and choose those that you need for your implementation of the template.

Event & Flag Template

[កែប្រែ]

If ទំព័រគំរូ:Param and ទំព័រគំរូ:Param are given values, then the nation value will be rendered as {{<flag_template>|<IOC>|<event>}}.

So for example, with the following params:

{{Medals table
 | event    = 2018 Winter 
 | flag_template = Flag IOC team
 | nation1  = USA
 | nation2  = CAN
}}

The nations will be rendered as ទំព័រគំរូ:Flag IOC team & ទំព័រគំរូ:Flag IOC team

ឧទាហរណ៍

[កែប្រែ]
{{តារាងមេដាយ
 | caption        = 
 | host           = 
 | show_limit     = 
 | remaining_text = 
 | flag_template  = FlagIOC
 | event          = ព្រឹត្តិការណ៍...
 | source         = <ref>[http://wuni15.sportresult.com/HIDE/en/MedalTally?sport=00&medalKind=DefaultSports Medal Tally]</ref>
 | gold_FRA = 7 | silver_FRA = 4 | bronze_FRA = 4
 | gold_GBR = 5 | silver_GBR = 5 | bronze_GBR = 5
 | gold_USA = 5 | silver_USA = 3 | bronze_USA = 2
 | gold_AUS = 3 | silver_AUS = 5 | bronze_AUS = 7
 | gold_RSA = 3 | silver_RSA = 4 | bronze_RSA = 3
 | gold_GER = 1 | silver_GER = 3 | bronze_GER = 3
}}
ចំណាត់ថ្នាក់Nationមាសប្រាក់សំរិទ្ធសរុប
1 បារាំង74415
2 ក្រង់ប្រឺតាញ55515
3 សហរដ្ឋអាមេរិក53210
4 អូស្ត្រាលី35715
5 អាហ្វ្រិកខាងត្បូង34310
6 អាល្លឺម៉ង់1337
សរុប (6 ប្រទេសចូលគ្នា)24242472
Source: []

ឧទាហរណ៍ទី 2

[កែប្រែ]
{{Medals table
 | caption        = 2015 Winter Universiade medal table
 | host           = SVK
 | source         = <ref>[http://wuni15.sportresult.com/HIDE/en/MedalTally?sport=00&medalKind=DefaultSports Medal Tally]</ref>
 | flag_template  = FlagIOC
 | event          = 2015 Winter Universiade
 | team           = 
 | gold_RUS = 9 | silver_RUS = 9 | bronze_RUS = 9
 | gold_KOR = 5 | silver_KOR = 5 | bronze_KOR = 5
 | gold_ITA = 4 | silver_ITA = 4 | bronze_ITA = 4 
 | gold_1   = 1 | silver_1   = 1 | bronze_1   = 0 | name_1 = Independent Athletes | skip_1 = yes | note_1 = <ref>this is a note</ref>
 | gold_SVK = 0 | silver_SVK = 0 | bronze_SVK = 1 | host_SVK = yes
}}

  *   ម្ចាស់ផ្ទះ (ស្លូវ៉ាគី)

2015 Winter Universiade medal table
ចំណាត់ថ្នាក់Nationមាសប្រាក់សំរិទ្ធសរុប
1 រុស្ស៊ី99927
2 កូរ៉េខាងត្បូង55515
3 អ៊ីតាលី44412
អត្តពលិកឯករាជ្យ[]1102
4 ស្លូវ៉ាគី*0011
សរុប (4 ប្រទេសចូលគ្នា)19191957
Source: []

References

[កែប្រែ]
  1. Medal Tally
  2. Medal Tally
  3. this is a note