الگو:جدول موفقیت
سال | مسابقه | محل برگزاری | مقام | توضیحات |
---|
The AchievementTable template is a simple way to start a table to list track and field or دو و میدانی achievements on an athlete's article. For an in-use example, see James Kwalia.
Parameters
[ویرایش]The template has four parameters, all of them optional.
{{جدول موفقیت|width=|nation=|Event=|NotesOff=}}
- width This amends the overall width of the achievement table in percent of the page width. This defaults to 71, which is the optimal width for usage alongside the {{MedalTableTop}} series of templates
- nation This allows for a caption showing the nation that the athlete represented at the competition. This should only be used when an athlete has represented multiple nations. Note that where different nations are represented as separate table with a new caption should be used as this helps accessibility for screen readers. This option defaults to no caption.
- Event This adds an additional "Event" column before the final "Notes" column, which should be used to denote the athletic discipline that the result relates to (e.g. دو ۱۰۰ متر). The default is that this column is not shown.
- NotesOff This removes the final notes column from the table – useful when no notes are available or required. The default is that the Notes column is shown.
Usage
[ویرایش]In order to use the template, simply open a table and add the template as follows:
{| {{جدول موفقیت}}
Using this template can help you write tables like the one below
سال | مسابقه | محل برگزاری | مقام | رویداد | توضیحات |
---|---|---|---|---|---|
2001 | World Youth Championships | دبرتسن, Hungary | 3rd | 3000 m | |
2003 | World Athletics Final | مونتکارلو, Monaco | 5th | 3000 m | |
2004 | World Athletics Final | مونتکارلو, Monaco | 2nd | 3000 m | |
2005 | World Cross Country Championships | سن-اتین, France | 15th | Short race | |
مسابقات جهانی دو و میدانی ۲۰۰۵ | هلسینکی, Finland | 13th | 5000 m | ||
World Athletics Final | مونتکارلو, Monaco | 6th | 5000 m | ||
Asian Athletics Championships | اینچئون, South Korea | 1st | 5000 m |
Basic examples
[ویرایش]You can start to add the details immediately after using the AchievementTable template. For example, the following code:
{| {{جدول موفقیت|nation=ESP}} |- | 2004 | 2004 Summer Olympics | Athens, Greece | 4th | 10.04 seconds |- | 2008 | 2008 Summer Olympics | Beijing, China | 5th | 10.08 seconds |}
Would give you the following table:
سال | مسابقه | محل برگزاری | مقام | توضیحات |
---|---|---|---|---|
2004 | 2004 Summer Olympics | Athens, Greece | 4th | 10.04 seconds |
2008 | 2008 Summer Olympics | Beijing, China | 5th | 10.08 seconds |
Event feature
[ویرایش]Many athletes compete in more than one event, sometimes within the same competition – یوسین بولت in the 100 and 200 metres at the 2008 Olympics for instance. If you need to note the specific event which the athlete was competing in, then you can activate the "Event" column.
{| {{جدول موفقیت|Event=yes|nation=ESP}} |- | 2004 | 2004 Summer Olympics | Athens, Greece | 4th | 100 metres | 10.04 seconds |- | 2004 | 2004 Summer Olympics | Athens, Greece | 8th | 200 metres | 20.45 seconds |- | 2008 | 2008 Summer Olympics | Beijing, China | 5th | 100 metres | 10.08 seconds |- | 2008 | 2008 Summer Olympics | Beijing, China | 7th | 200 metres | 20.31 seconds |}
Would give you the following table:
سال | مسابقه | محل برگزاری | مقام | رویداد | توضیحات |
---|---|---|---|---|---|
2004 | 2004 Summer Olympics | Athens, Greece | 4th | 100 metres | 10.04 seconds |
2004 | 2004 Summer Olympics | Athens, Greece | 8th | 200 metres | 20.45 seconds |
2008 | 2008 Summer Olympics | Beijing, China | 5th | 100 metres | 10.08 seconds |
2008 | 2008 Summer Olympics | Beijing, China | 7th | 200 metres | 20.31 seconds |
NotesOff feature
[ویرایش]To turn off the notes column in the table simply add "NotesOff=yes" into the template.
{| {{جدول موفقیت|Event=yes|NotesOff=yes|nation=ESP}} |- | 2004 | 2004 Summer Olympics | Athens, Greece | 4th | 100 metres |- | 2004 | 2004 Summer Olympics | Athens, Greece | 8th | 200 metres |}
Would give you the following table:
سال | مسابقه | محل برگزاری | مقام | رویداد |
---|---|---|---|---|
2004 | 2004 Summer Olympics | Athens, Greece | 4th | 100 metres |
2004 | 2004 Summer Olympics | Athens, Greece | 8th | 200 metres |
Note that the خط عمودی ( | ) character can be written by holding shift and pressing the " \ " key.