الگو:GamesSport

از ویکی‌پدیا، دانشنامهٔ آزاد
پرش به ناوبری پرش به جستجو

[[{{{1}}}]] (جزئیات)

توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

The GamesSport template is for usage on main رویداد چندورزشی 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:

  1. a link to the main article of that sport
  2. a link to the detailed summary or results of that sport at that event.
  3. 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:


{{Col-begin}}
{{Col-3}}
* [[تیراندازی با کمان]] ({{detailslink|Archery at the 2010 South Asian Games}})
* [[Track and field athletics|Athletics]] ({{detailslink|Athletics at the 2010 South Asian Games}})
* [[بوکس]] ({{detailslink|Boxing at the 2010 South Asian Games}})
* [[دوچرخه‌سواری]] ({{detailslink|Cycling at the 2010 South Asian Games}})
* [[فوتبال]] ({{detailslink|Football at the 2010 South Asian Games}})
{{col-3}}
* [[گلف]] ({{detailslink|Golf at the 2010 South Asian Games}})
* [[هاکی روی چمن]] ({{detailslink|Hockey at the 2010 South Asian Games}})
* [[هندبال]] ({{detailslink|Handball at the 2010 South Asian Games}})
* [[جودو]] ({{detailslink|Judo at the 2010 South Asian Games}})
* [[کاراته]] ({{detailslink|Karate at the 2010 South Asian Games}})
{{col-3}}
* [[تیراندازی]] ({{detailslink|Shooting at the 2010 South Asian Games}})
* [[اسکواش]] ({{detailslink|Squash at the 2010 South Asian Games}})
* [[شنا (انسان)|شنا]] ({{detailslink|Swimming at the 2010 South Asian Games}})
* [[تکواندو]] ({{detailslink|Taekwondo at the 2010 South Asian Games}})
* [[وزنه‌برداری]] ({{detailslink|Weightlifting at the 2010 South Asian Games}})
{{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 بازی‌های المپیک تابستانی ۲۰۰۸ 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