Usage ویرایش

This template is used to display a football (soccer) player squad in a standard format.

Syntax ویرایش

Most squads are split into two vertical columns. For these, you can use the {{Football squad start}}, {{Fs mid}} and {{Football squad end}} templates to help with the layouting, and then use this template repeatedly within them:

{{Football squad start}}
<!-- For help using the below template, please see [[Template talk:Football squad player]] -->
{{Football squad player|no=#SHIRT_NUMBER|nat=#NATIONALITY|pos=#POS_OR_ROLE|name=#PLAYER_NAME}}
{{Football squad player|no=#SHIRT_NUMBER|nat=#NATIONALITY|pos=#POS_OR_ROLE|name=#PLAYER_NAME|other=#OTHER_RELATED_INFO}}
...
{{Fs mid}}
{{Football squad player|no=#SHIRT_NUMBER|nat=#NATIONALITY|pos=#POS_OR_ROLE|name=#PLAYER_NAME}}
...
{{Football squad end}}

Alternatively, if you just want a single column, you can use {{football squad blank column}} to fill in a blank right hand column.

{{football squad start}}
{{Football squad player|no=#SHIRT_NUMBER|nat=#NATIONALITY|pos=#POS_OR_ROLE|name=#PLAYER_NAME}}
...
{{football squad blank column}}
{{Football squad end}}

Alternative template names ویرایش

In order to make easier the work of writing new squads, some alternative, shorter, names has been designed. So, you may now use {{Fs start}}, {{Fs mid}}, {{Fs player}}, {{Fs end}} and {{Fs blank column}} as alternative templates, using the same equivalent syntax of the other ones.

Example ویرایش

For example, the following code:

{{Football squad start}}
{{football squad player | no=1  | nat=Spain      | pos=GK | name=[[ایکر کاسیاس]]}}
{{football squad player | no=3  | nat=Spain      | pos=DF | name=[[جرارد پیکه]]}}
{{football squad player | no=9  | nat=Singapore  | pos=FW | name=[[Aleksandar Đurić]] | other=team captain}}
{{Fs mid}}
{{football squad player | no=10 | nat=Netherlands| pos=FW | name=[[رابین فن پرسی]]}}
{{football squad player | no=13 | nat=South Korea| pos=MF | name=[[پارک جی سونگ]]}}
{{football squad player | no=25 | nat=England    | pos=GK | name=[[جو هارت]]}}
{{football squad end}}

Produces this table:

تذکر: پرچم استفاده شده در کنار نام بازیکنان نشان‌دهندهٔ ملیتی است که برای بازیکنان در فیفا ثبت شده‌است. این بازیکنان ممکن است بیش از یک ملیت داشته باشند.

شماره نقش بازیکن
1 اسپانیا GK ایکر کاسیاس
3 اسپانیا DF جرارد پیکه
9 سنگاپور FW Aleksandar Đurić (team captain)
شماره پست بازیکن
10 هلند FW رابین فن پرسی
13 کره جنوبی MF پارک جی سونگ
25 انگلستان GK جو هارت

Parameters ویرایش

  • no: The shirt number for the player, if they have one. If the player's number is not known, or unassigned, then you can use the character instead.
  • nat: The player's nationality. Use the name of the country, or its 3-letter فهرست کدهای کمیته بین‌المللی المپیک, rather than an adjective (e.g. "Spain" instead of "Spanish"). This is usually the country of the player's birth; however, if a player has dual nationality then use the country that he represents in international football.
  • pos: The position in which the player plays. You can use any of the four options below:
    1. GK for دروازه‌بان (فوتبال);
    2. DF for مدافع;
    3. MF for هافبک;
    4. FW for مهاجم (فوتبال) or Forward;
  • name: The player's name.
  • other: This is an optional parameter. You can add any related info to this parameter, like specifying captain, vice-captain, whether the player is on loan, etc. It will show additional info in the brackets after the player name. You do not have to specify it if neither applies.

Microformat ویرایش

The HTML markup produced by this template includes an hCard microformat, which makes the person's name تجزیه‌کننده by computers, either acting automatically to catalogue articles across Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book. For more information about the use of microformats on Wikipedia, please see the microformat project.

To include a URL, use {{URL}}.

Classes ویرایش

The hCard in this template uses at least some of these HTML classes:

  • agent
  • family-name
  • fn (required)
  • given-name
  • honorific-prefix
  • honorific-suffix
  • n
  • nickname
  • org
  • url
  • vcard

Please do not rename or remove these classes; nor collapse nested elements which use them.