قالب:ألعاب رياضية/شرح
![]() | هذه صفحة توثيق قالب:ألعاب رياضية الفرعية، لشرح القالب وتصنيفه، وهي لا تدخل في استخدامه. |
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:
{{ألعاب رياضية|SPORT}}
Note that the template uses International Olympic Committee naming conventions, so "football" directs to كرة القدم and "hockey" directs to هوكي الحقل.
Plain example (without GamesSport)
[عدل]Previously, each of these elements would need to be written out separately like the example below for the ألعاب جنوب آسيا 2010 :
- ألعاب قوى ( )
- ركوب الدراجات ( )
- كرة القدم ( )
- غولف ( )
- هوكي الحقل ( )
- إسكواش ( )
{{Div col|colwidth=22em}}
* [[ألعاب قوى]] ({{Detailslink|Athletics at the 2010 South Asian Games}})
* [[ركوب الدراجات]] ({{Detailslink|Cycling at the 2010 South Asian Games}})
* [[كرة القدم]] ({{Detailslink|Football at the 2010 South Asian Games}})
* [[غولف]] ({{Detailslink|Golf at the 2010 South Asian Games}})
* [[هوكي الحقل]] ({{Detailslink|Hockey at the 2010 South Asian Games}})
* [[إسكواش]] ({{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 article it would link to "SPORT at the 2008 Summer Olympics".
ألعاب قوى ( )
Cycling (road) ( )
كرة القدم ( )
غولف ( )
هوكي الحقل ( )
إسكواتش ( )
{{Div col|colwidth=22em}}
* {{ألعاب رياضية|Athletics}}
* {{ألعاب رياضية|Cycling}}
* {{ألعاب رياضية|Football}}
* {{ألعاب رياضية|Golf}}
* {{ألعاب رياضية|Hockey}}
* {{ألعاب رياضية|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}}
* {{ألعاب رياضية|Athletics|Events=25}}
* {{ألعاب رياضية|Cycling|Events=6}}
* {{ألعاب رياضية|Football|Events=1}}
* {{ألعاب رياضية|Golf|Events=1}}
* {{ألعاب رياضية|Hockey|Events=2}}
* {{ألعاب رياضية|Squash|Events=2}}
{{Div col end}}
Would give you the following:
ألعاب قوى (25) ( )
Cycling (road) (6) ( )
كرة القدم (1) ( )
غولف (1) ( )
هوكي الحقل (2) ( )
إسكواتش (2) ( )
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}}
* {{ألعاب رياضية|Athletics|Events=25|Image=No}}
* {{ألعاب رياضية|Cycling|Events=6|Image=No}}
* {{ألعاب رياضية|Football|Events=1|Image=No}}
* {{ألعاب رياضية|Golf|Events=1|Image=No}}
* {{ألعاب رياضية|Hockey|Events=2|Image=No}}
* {{ألعاب رياضية|Squash|Events=2|Image=No}}
{{Div col end}}
Would give you the following:
- ألعاب قوى (25) ( )
- Cycling (road) (6) ( )
- كرة القدم (1) ( )
- غولف (1) ( )
- هوكي الحقل (2) ( )
- إسكواتش (2) ( )
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}}
* {{ألعاب رياضية|Athletics|Events=25|Format=m}}
* {{ألعاب رياضية|Cycling|Events=6|Format=m}}
* {{ألعاب رياضية|Football|Events=1|Format=m}}
* {{ألعاب رياضية|Golf|Events=1|Format=m}}
* {{ألعاب رياضية|Hockey|Events=2|Format=m}}
* {{ألعاب رياضية|Squash|Events=2|Format=m}}
{{Div col end}}
Would give you the following:
ألعاب قوى (25)
Cycling (road) (6)
كرة القدم (1)
غولف (1)
هوكي الحقل (2)
إسكواتش (2)
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}}
* {{ألعاب رياضية|Athletics|Events=25|Format=d}}
* {{ألعاب رياضية|Cycling|Events=6|Format=d}}
* {{ألعاب رياضية|Football|Events=1|Format=d}}
* {{ألعاب رياضية|Golf|Events=1|Format=d}}
* {{ألعاب رياضية|Hockey|Events=2|Format=d}}
* {{ألعاب رياضية|Squash|Events=2|Format=d}}
{{Div col end}}
Would give you the following:
طالع أيضاً
[عدل]