Template:GamesSport: Difference between revisions
No edit summary |
No edit summary |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 22: | Line 22: | ||
|Australian football=Australian football | |Australian football=Australian football | ||
|Australian rules football=Australian football | |Australian rules football=Australian football | ||
|Aventine skiing=Alpine skiing | |||
|Badminton=Badminton | |Badminton=Badminton | ||
|Ballooning=Ballooning | |Ballooning=Ballooning | ||
Line 70: | Line 71: | ||
|Bridge=Contract bridge | |Bridge=Contract bridge | ||
|Canoeing=Canoeing (slalom) | |Canoeing=Canoeing (slalom) | ||
|Canoeing (slalom)=Canoeing (slalom) | |||
|Canoeing (sprint)=Canoeing (flatwater) | |||
|Canoeing and kayaking=Canoeing (flatwater) | |Canoeing and kayaking=Canoeing (flatwater) | ||
|Canoeing and kayaking (sprint)=Canoeing (flatwater) | |Canoeing and kayaking (sprint)=Canoeing (flatwater) | ||
Line 76: | Line 79: | ||
|Canoe sprint=Canoeing (flatwater) | |Canoe sprint=Canoeing (flatwater) | ||
|Casting=Casting | |Casting=Casting | ||
|Cavaliering=Cavaliering | |||
|Cheerleading=Cheerleading | |Cheerleading=Cheerleading | ||
|Chess=Chess | |Chess=Chess | ||
Line 142: | Line 146: | ||
|Hoop takraw=Sepaktakraw | |Hoop takraw=Sepaktakraw | ||
|Horseball=Horseball | |Horseball=Horseball | ||
|Ice climbing=Climbing Ice | |||
|Ice hockey=Ice hockey | |Ice hockey=Ice hockey | ||
|Ice Hockey=Ice hockey | |Ice Hockey=Ice hockey | ||
Line 186: | Line 191: | ||
|Luge=Luge | |Luge=Luge | ||
|Marathon swimming=Open water swimming | |Marathon swimming=Open water swimming | ||
|Martial arts=Karate | |||
|Military patrol=Military patrol | |Military patrol=Military patrol | ||
|Minifootball=Minifootball | |Minifootball=Minifootball | ||
Line 199: | Line 205: | ||
|Muay Thai=Muay Thai | |Muay Thai=Muay Thai | ||
|Netball=Netball | |Netball=Netball | ||
|Noivage=Skijoring | |||
|Nordic combined=Nordic combined | |Nordic combined=Nordic combined | ||
|Nordic skiing=Cross country skiing | |Nordic skiing=Cross country skiing | ||
Line 249: | Line 256: | ||
|Sailing=Sailing | |Sailing=Sailing | ||
|Sambo=Sambo | |Sambo=Sambo | ||
|Scovernois combined=Nordic combined | |||
|Sepaktakraw=Sepaktakraw | |Sepaktakraw=Sepaktakraw | ||
|Sepak takraw=Sepaktakraw | |Sepak takraw=Sepaktakraw | ||
Line 264: | Line 272: | ||
|Ski-orienteering=Ski-orienteering | |Ski-orienteering=Ski-orienteering | ||
|Slalom canoeing=Canoeing (slalom) | |Slalom canoeing=Canoeing (slalom) | ||
|Sled dog racing=Sled dog racing | |||
|Snooker=Billiards | |Snooker=Billiards | ||
|Snowboarding=Snowboarding | |Snowboarding=Snowboarding | ||
Line 327: | Line 336: | ||
|Wushu=Wushu | |Wushu=Wushu | ||
|Xiangqi=Xiangqi | |Xiangqi=Xiangqi | ||
|Yachting=Sailing}} pictogram.svg|20px|alt=|link=]]}} {{#switch:{{{Format|}}} |d=[[{{{1}}} {{#invoke:string|match|{{PAGENAME}}|at the.*|nomatch=at the {{PAGENAME}}}}|{{{1}}}]] |{{#switch: {{{1|}}} |3-on-3 basketball=[[3x3 (basketball)|3-on-3 basketball]] |3x3 basketball=[[3x3 basketball]] |Aquatics=Aquatics |Athletics=[[Sport of athletics|Athletics]] |Arctic sports=[[Arctic sports]]|Beach athletics=[[Sport of athletics|Beach athletics]] |Beach sambo=[[Sambo (martial art)|Beach sambo]]|Indoor athletics=[[Sport of athletics|Indoor athletics]]|Indoor archery=[[Archery|Indoor archery]]|Indoor kabaddi=[[Kabaddi|Indoor kabaddi]]|Beach kabaddi=[[Kabaddi|Beach kabaddi]] |Billiard=Billiard |Casting=[[Casting (fishing)|Casting]] |Billiards=[[Cue sports|Billiard]] |Boccia=[[Boccia]] |BMX=[[BMX racing]] |Cross country skiing=[[Cross-country skiing (sport)|Cross-country skiing]] |Cross-country skiing=[[Cross-country skiing (sport)|Cross-country skiing]] |Cycling=[[Cycle sport|Cycling]] |Diving=[[Diving (sport)|Diving]] |Dog mushing=[[Dog mushing]]|Dragon and lion dance=[[Lion dance|Dragon & lion dance]] |Dragonboat=[[Dragon boat]] |Equestrian=[[Equestrianism|Equestrian]] |Extreme sports=[[Extreme sport]]s |Field Hockey=[[Field hockey]] |Football=[[Association football|Football]] |Football 5-a-side=[[Football 5-a-side]] |Football 7-a-side=[[Football 7-a-side]] |Go=[[Go (game)|Go]] |Goalball=[[Goalball]] |Handball=[[Handball]] |Hockey=[[Ice hockey|Hockey]] |Hoop takraw=[[Sepak takraw|Hoop takraw]] |Ice Hockey=[[Ice hockey]]|Muay=[[Muay Thai|Muay]] |Outrigger canoeing= [[Outrigger canoe|Outrigger canoeing]]|Para swimming=[[Para swimming]] |Pétanque=[[Pétanque]] |Road cycling=[[Road bicycle racing|Road cycling]] |Roller sports=[[Roller sports]] |Rowing=[[Rowing (sport)|Rowing]] |Rugby=[[Rugby union]] |Sailing=[[Sailing (sport)|Sailing]] |Sambo=[[Sambo (martial art)|Sambo]] |Shooting=[[Shooting sports|Shooting]] |Short course swimming=[[Swimming (sport)|Short course swimming]] |Para athletics=[[Para-athletics]] |Shuttlecock=[[Jianzi|Shuttlecock]] |Sitting volleyball=[[Sitting volleyball]] |Skating=[[Ice skating|Skating]] |Skeleton=[[Skeleton (sport)|Skeleton]] |Speedway=[[Motorcycle speedway|Speedway]] |Squash=[[Squash (sport)|Squash]] |Swimming=[[Swimming (sport)|Swimming]] |Touch=[[Touch football (rugby league)|Touch]] |Touch rugby=[[Touch rugby]] |Trampoline gymnastics=[[Trampolining|Trampoline]] |Tumbling=[[Tumbling (gymnastics)|Tumbling]] |Underwater fishing=[[Spearfishing|Underwater fishing]] |Va'a=[[Outrigger canoe|Va'a]] |Vocotruyen=[[Vietnamese martial arts|Vocotruyen]] |Weightlifting=[[Olympic weightlifting|Weightlifting]] |Wheelchair basketball=[[Wheelchair basketball]] |Wheelchair rugby=[[Wheelchair rugby]] |Wheelchair tennis=[[Wheelchair tennis]] |Wushu=[[Wushu (sport)|Wushu]] |Yachting=[[Yacht racing|Yachting]] |#default=[[{{{1}}}]]}}}} {{#if:{{{Events|}}}| <small>({{{2|{{{Events}}}}}})</small> }} {{#switch:{{{Format|}}} |d=|m=|({{detailslink|{{{1|}}} {{#invoke:string|match|{{PAGENAME}}|at the.*|nomatch=at the {{PAGENAME}}}} }})}} {{#if:{{{Competitors|}}} | <small>([[{{{Competitors|}}} {{#invoke:string|match|{{PAGENAME}}|at the.*|nomatch=at the {{PAGENAME}}}}|competitors]])</small> }}<noinclude> | |Yachting=Sailing | ||
|Zadany=Horseball}} pictogram.svg|20px|alt=|link=]]}} {{#switch:{{{Format|}}} |d=[[{{{1}}} {{#invoke:string|match|{{PAGENAME}}|at the.*|nomatch=at the {{PAGENAME}}}}|{{{1}}}]] |{{#switch: {{{1|}}} |3-on-3 basketball=[[3x3 (basketball)|3-on-3 basketball]] |3x3 basketball=[[3x3 basketball]] |Aquatics=Aquatics |Athletics=[[Sport of athletics|Athletics]] |Arctic sports=[[Arctic sports]]|Beach athletics=[[Sport of athletics|Beach athletics]] |Beach sambo=[[Sambo (martial art)|Beach sambo]]|Indoor athletics=[[Sport of athletics|Indoor athletics]]|Indoor archery=[[Archery|Indoor archery]]|Indoor kabaddi=[[Kabaddi|Indoor kabaddi]]|Beach kabaddi=[[Kabaddi|Beach kabaddi]] |Billiard=Billiard |Casting=[[Casting (fishing)|Casting]] |Billiards=[[Cue sports|Billiard]] |Boccia=[[Boccia]] |BMX=[[BMX racing]] |Cross country skiing=[[Cross-country skiing (sport)|Cross-country skiing]] |Cross-country skiing=[[Cross-country skiing (sport)|Cross-country skiing]] |Cycling=[[Cycle sport|Cycling]] |Diving=[[Diving (sport)|Diving]] |Dog mushing=[[Dog mushing]]|Dragon and lion dance=[[Lion dance|Dragon & lion dance]] |Dragonboat=[[Dragon boat]] |Equestrian=[[Equestrianism|Equestrian]] |Extreme sports=[[Extreme sport]]s |Field Hockey=[[Field hockey]] |Football=[[Association football|Football]] |Football 5-a-side=[[Football 5-a-side]] |Football 7-a-side=[[Football 7-a-side]] |Go=[[Go (game)|Go]] |Goalball=[[Goalball]] |Handball=[[Handball]] |Hockey=[[Ice hockey|Hockey]] |Hoop takraw=[[Sepak takraw|Hoop takraw]] |Ice Hockey=[[Ice hockey]]|Muay=[[Muay Thai|Muay]] |Outrigger canoeing= [[Outrigger canoe|Outrigger canoeing]]|Para swimming=[[Para swimming]] |Pétanque=[[Pétanque]] |Road cycling=[[Road bicycle racing|Road cycling]] |Roller sports=[[Roller sports]] |Rowing=[[Rowing (sport)|Rowing]] |Rugby=[[Rugby union]] |Sailing=[[Sailing (sport)|Sailing]] |Sambo=[[Sambo (martial art)|Sambo]] |Shooting=[[Shooting sports|Shooting]] |Short course swimming=[[Swimming (sport)|Short course swimming]] |Para athletics=[[Para-athletics]] |Shuttlecock=[[Jianzi|Shuttlecock]] |Sitting volleyball=[[Sitting volleyball]] |Skating=[[Ice skating|Skating]] |Skeleton=[[Skeleton (sport)|Skeleton]] |Speedway=[[Motorcycle speedway|Speedway]] |Squash=[[Squash (sport)|Squash]] |Swimming=[[Swimming (sport)|Swimming]] |Touch=[[Touch football (rugby league)|Touch]] |Touch rugby=[[Touch rugby]] |Trampoline gymnastics=[[Trampolining|Trampoline]] |Tumbling=[[Tumbling (gymnastics)|Tumbling]] |Underwater fishing=[[Spearfishing|Underwater fishing]] |Va'a=[[Outrigger canoe|Va'a]] |Vocotruyen=[[Vietnamese martial arts|Vocotruyen]] |Weightlifting=[[Olympic weightlifting|Weightlifting]] |Wheelchair basketball=[[Wheelchair basketball]] |Wheelchair rugby=[[Wheelchair rugby]] |Wheelchair tennis=[[Wheelchair tennis]] |Wushu=[[Wushu (sport)|Wushu]] |Yachting=[[Yacht racing|Yachting]] |#default=[[{{{1}}}]]}}}} {{#if:{{{Events|}}}| <small>({{{2|{{{Events}}}}}})</small> }} {{#switch:{{{Format|}}} |d=|m=|({{detailslink|{{{1|}}} {{#invoke:string|match|{{PAGENAME}}|at the.*|nomatch=at the {{PAGENAME}}}} }})}} {{#if:{{{Competitors|}}} | <small>([[{{{Competitors|}}} {{#invoke:string|match|{{PAGENAME}}|at the.*|nomatch=at the {{PAGENAME}}}}|competitors]])</small> }}<noinclude> | |||
{{documentation}} | {{documentation}} | ||
[[Category:Multi-sport events templates]] | [[Category:Multi-sport events templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 20:26, 10 December 2023
[[{{{1}}}]] (
)The GamesSport template is for usage on main multi-sport event articles only. The purpose of this template is to radically simplify the listing of sports on multi-sport event articles.
Typically, such articles will have a list of the sports held at the event and each listing comprises three or four parts:
- a link to the main article of that sport
- a link to the detailed summary or results of that sport at that event.
- a figure denoting the total number of events held within that sport during the games
The GamesSport template allows you to render all these elements by simply entering the name of the sport. Its basic usage is:
{{GamesSport|SPORT}}
Note that the template uses International Olympic Committee naming conventions, so "football" directs to association football and "hockey" directs to field hockey.
Plain example (without GamesSport)
Previously, each of these elements would need to be written out separately like the example below for the 2010 South Asian Games:
{{div col|colwidth=22em}}
* [[Sport of athletics|Athletics]] ({{DetailsLink|Athletics at the 2010 South Asian Games}})
* [[Cycle sport|Cycling]] ({{DetailsLink|Cycling at the 2010 South Asian Games}})
* [[Association football|Football]] ({{DetailsLink|Football at the 2010 South Asian Games}})
* [[Golf]] ({{DetailsLink|Golf at the 2010 South Asian Games}})
* [[Field hockey|Hockey]] ({{DetailsLink|Hockey at the 2010 South Asian Games}})
* [[Squash (sport)|Squash]] ({{DetailsLink|Squash at the 2010 South Asian Games}})
{{div col end}}
With GamesSport
This information can be rendered much more easily with the GamesSport template as it removes the need to spend time finding the correct article for each sport and its corresponding pictogram. The link to the results works off the name of the article in which it is placed. Therefore, if you use the template here it links to "SPORT at the GamesSport/doc"; on the 2008 Summer Olympics article it would link to "SPORT at the 2008 Summer Olympics".
{{div col|colwidth=22em}}
* {{GamesSport|Athletics}}
* {{GamesSport|Cycling}}
* {{GamesSport|Football}}
* {{GamesSport|Golf}}
* {{GamesSport|Hockey}}
* {{GamesSport|Squash}}
{{div col end}}
Adding number of events
The number of events contested within each sport may be listed if desired. This can be done with using the "Event=<number of events>" parameter as follows:
{{div col|colwidth=22em}}
* {{GamesSport|Athletics|Events=25}}
* {{GamesSport|Cycling|Events=6}}
* {{GamesSport|Football|Events=1}}
* {{GamesSport|Golf|Events=1}}
* {{GamesSport|Hockey|Events=2}}
* {{GamesSport|Squash|Events=2}}
{{div col end}}
Would give you the following:
Removing pictogram
The pictogram may be removed if desired. This can be done with using the "Image=No" parameter as follows:
{{div col|colwidth=22em}}
* {{GamesSport|Athletics|Events=25|Image=No}}
* {{GamesSport|Cycling|Events=6|Image=No}}
* {{GamesSport|Football|Events=1|Image=No}}
* {{GamesSport|Golf|Events=1|Image=No}}
* {{GamesSport|Hockey|Events=2|Image=No}}
* {{GamesSport|Squash|Events=2|Image=No}}
{{div col end}}
Would give you the following:
Changing listing format
The listing format may be changed if desired. Displaying only single link to the main sport may be done with using the "Format=m" parameter as follows:
{{div col|colwidth=22em}}
* {{GamesSport|Athletics|Events=25|Format=m}}
* {{GamesSport|Cycling|Events=6|Format=m}}
* {{GamesSport|Football|Events=1|Format=m}}
* {{GamesSport|Golf|Events=1|Format=m}}
* {{GamesSport|Hockey|Events=2|Format=m}}
* {{GamesSport|Squash|Events=2|Format=m}}
{{div col end}}
Would give you the following:
Displaying only single link to the details of the sport results may be done with using the "Format=d" parameter as follows:
{{div col|colwidth=22em}}
* {{GamesSport|Athletics|Events=25|Format=d}}
* {{GamesSport|Cycling|Events=6|Format=d}}
* {{GamesSport|Football|Events=1|Format=d}}
* {{GamesSport|Golf|Events=1|Format=d}}
* {{GamesSport|Hockey|Events=2|Format=d}}
* {{GamesSport|Squash|Events=2|Format=d}}
{{div col end}}
Would give you the following: