साचा:GamesSport
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 pictogram of the sport
- 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}}
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:
{{multicol}}
* [[File:Archery pictogram.svg|20px]] [[Archery]] ({{detailslink|Archery at the 2010 South Asian Games}})
* [[File:Athletics pictogram.svg|20px]] [[Track and field athletics|Athletics]] ({{detailslink|Athletics at the 2010 South Asian Games}})
* [[File:Boxing pictogram.svg|20px]] [[Boxing]] ({{detailslink|Boxing at the 2010 South Asian Games}})
* [[File:Cycling pictogram.svg|20px]] [[Cycling]] ({{detailslink|Cycling at the 2010 South Asian Games}})
* [[File:Football pictogram.svg|20px]] [[Association football|Football]] ({{detailslink|Football at the 2010 South Asian Games}})
{{multicol-break}}
* [[File:Golf pictogram.svg|20px]] [[Golf]] ({{detailslink|Golf at the 2010 South Asian Games}})
* [[File:Field hockey pictogram.svg|20px]] [[Field hockey|Hockey]] ({{detailslink|Hockey at the 2010 South Asian Games}})
* [[File:Handball pictogram.svg|20px]] [[Team handball|Handball]] ({{detailslink|Handball at the 2010 South Asian Games}})
* [[File:Judo pictogram.svg|20px]] [[Judo]] ({{detailslink|Judo at the 2010 South Asian Games}})
* [[File:Karate pictogram.svg|20px]] [[Karate]] ({{detailslink|Karate at the 2010 South Asian Games}})
{{multicol-break}}
* [[File:Shooting pictogram.svg|20px]] [[Shooting]] ({{detailslink|Shooting at the 2010 South Asian Games}})
* [[File:Squash pictogram.svg|20px]] [[Squash (sport)|Squash]] ({{detailslink|Squash at the 2010 South Asian Games}})
* [[File:Swimming pictogram.svg|20px]] [[Swimming (sport)|Swimming]] ({{detailslink|Swimming at the 2010 South Asian Games}})
* [[File:Taekwondo pictogram.svg|20px]] [[Taekwondo]] ({{detailslink|Taekwondo at the 2010 South Asian Games}})
* [[File:Weightlifting pictogram.svg|20px]] [[Olympic weightlifting|Weightlifting]] ({{detailslink|Weightlifting at the 2010 South Asian Games}})
{{multicol-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".
{{Col-begin}}
{{Col-3}}
* {{GamesSport|Archery}}
* {{GamesSport|Athletics}}
* {{GamesSport|Boxing}}
* {{GamesSport|Cycling}}
* {{GamesSport|Football}}
{{col-3}}
* {{GamesSport|Golf}}
* {{GamesSport|Hockey}}
* {{GamesSport|Handball}}
* {{GamesSport|Judo}}
* {{GamesSport|Karate}}
{{col-3}}
* {{GamesSport|Shooting}}
* {{GamesSport|Squash}}
* {{GamesSport|Swimming}}
* {{GamesSport|Taekwondo}}
* {{GamesSport|Weightlifting}}
{{col-end}}
Adding number of events
संपादनThe number of events contested within each sport may be listed if desired. This can be done as follows:
* {{GamesSport|Archery|Events=25}}
Would give you the following:
- तिरंदाजी (२५)
See also
संपादन- Template:GamesSport2 – as GamesSport template, but uses just a single link to the sport results
- Template:NoIcon – adding a blank space to align sports without relevant pictograms