Cannabis Ruderalis

Content deleted Content added
m typo
Number 57 (talk | contribs)
→‎Parameters: Remove further misleading instructions, as there is no consensus on this matter
(2 intermediate revisions by the same user not shown)
Line 50: Line 50:


===Flag icons===
===Flag icons===
Whether the [[WP:MOSICON]] guideline's rule against the use of flag icons to indicate a player's birth place or individual legal citizenship, rather than sporting nationality as a team member, should be changed is the subject of an ongoing discussion {{as of|lc=y|June 2014}}.
The use of [[WP:WikiProject Flag Template|flag icons]] is strongly discouraged by [[WP:Manual of Style/Icons]], including in sports articles except where a) the player, in international competition, represents the nation to which the flag pertains, and b) the use of the flag is helpful to readers in the context. This actually obviates most uses of flags (i.e. most uses of the <code>nat=</code> parameter) in this template, since it most commonly illustrates the players on a national team in an article pertaining to that team or to other teams in the same country. For example, the squad list of an Argentine team or championship should not use flag icons, since we already know all these players are on one or more Argentine teams. Icons might be considered useful in cases where a player table includes players from more than one national team, e.g. a table of players injured during a season, etc. {{em|Do not use flag icons to try to indicate birth place or citizenship.}}

Whether guideline's rule against the use of flag icons to indicate a player's birth place or individual legal citizenship, rather than sporting nationality as a team member, should be changed is the subject of an ongoing discussion {{as of|lc=y|June 2014}}.


=== Parameters ===
=== Parameters ===
Line 59: Line 57:
* <code>'''hidenote=y'''</code> to suppress display of the above-table note about flags, e.g. when there are not flags in the table, or several such tables are being used in series and the first already has the note.
* <code>'''hidenote=y'''</code> to suppress display of the above-table note about flags, e.g. when there are not flags in the table, or several such tables are being used in series and the first already has the note.
* <code>'''nohead'''</code> to rename or suppress the "No." heading (e.g. to replace it with "<code>&amp;nbsp;"</code> to blank it out when it isn't used
* <code>'''nohead'''</code> to rename or suppress the "No." heading (e.g. to replace it with "<code>&amp;nbsp;"</code> to blank it out when it isn't used
* <code>'''nathead=Nat.'''</code> to have a nationality heading appear (it is suppressed by default, since we are usually not using flag icons). Another value can be given, e.g. {{para|nathead|State}}, but the odds of this being useful per [[MOS:ICONS]] is even lower than for national flags. If in doubt, omit this parameter and omits flats.
* <code>'''nathead=Nat.'''</code> to have a nationality heading appear (it is suppressed by default). Another value can be given, e.g. {{para|nathead|State}}.
* <code>'''poshead'''</code> to suppress display of the "Position" heading with "<code>&amp;nbsp;"</code>, when this column isn't being used; or use it to change "Position" to "Pos.", "Role", etc.
* <code>'''poshead'''</code> to suppress display of the "Position" heading with "<code>&amp;nbsp;"</code>, when this column isn't being used; or use it to change "Position" to "Pos.", "Role", etc.


Line 65: Line 63:
* <code>'''name'''</code> (or <code>'''1'''</code>) The player's name, the only required parameter. If the value is unassigned as of this writing, you can simply put "[unassigned]", "[vacant]" or the like, to indicate a vacant position. Do not add anything to the name here (citations go in the {{para|ref}} parameter, and notes go in the {{para|note}} parameter.
* <code>'''name'''</code> (or <code>'''1'''</code>) The player's name, the only required parameter. If the value is unassigned as of this writing, you can simply put "[unassigned]", "[vacant]" or the like, to indicate a vacant position. Do not add anything to the name here (citations go in the {{para|ref}} parameter, and notes go in the {{para|note}} parameter.
* <code>'''num'''</code> (or <code>'''no'''</code>): The shirt number of the player, if they have one. If the player's number is not known, or unassigned, then you can use the <code>&ndash;</code> character instead, or simply omit it. If omitted for all entries, use the {{para|nohead|&amp;nbsp;}} parameter in {{tlx|football squad start}} and {{tlx|football squad mid}} to suppress the "No." heading.
* <code>'''num'''</code> (or <code>'''no'''</code>): The shirt number of the player, if they have one. If the player's number is not known, or unassigned, then you can use the <code>&ndash;</code> character instead, or simply omit it. If omitted for all entries, use the {{para|nohead|&amp;nbsp;}} parameter in {{tlx|football squad start}} and {{tlx|football squad mid}} to suppress the "No." heading.
* <code>'''nat'''</code>: The player's {{em|sporting}} nationality (the country that the player represents in international football), which may have nothing to do with citizenship or birth place. Include this only where relevant, and not redundant in the context of the article. Do not include at all in below-international contexts. Use the name of the country, or its 3-letter [[List of IOC country codes|IOC country code]], rather than an adjective (e.g. "Spain" instead of "Spanish"). If used, also use the {{para|nathead|Nat.}} parameter in {{tlx|football squad start}} and {{tlx|football squad mid}} to enable the "Nat." heading above the icons.
* <code>'''nat'''</code>: The player's {{em|sporting}} nationality (the country that the player represents in international football), which may have nothing to do with citizenship or birth place. Use the name of the country, or its 3-letter [[List of IOC country codes|IOC country code]], rather than an adjective (e.g. "Spain" instead of "Spanish"). If used, also use the {{para|nathead|Nat.}} parameter in {{tlx|football squad start}} and {{tlx|football squad mid}} to enable the "Nat." heading above the icons.
* <code>'''pos'''</code>: The position in which the player plays. If omitted for all entries, use the {{para|poshead|&amp;nbsp;}} parameter in {{tlx|football squad start}} and {{tlx|football squad mid}} to suppress the "Pos." heading. You can use any of the four options below for the position, and they'll be linked automatically:
* <code>'''pos'''</code>: The position in which the player plays. If omitted for all entries, use the {{para|poshead|&amp;nbsp;}} parameter in {{tlx|football squad start}} and {{tlx|football squad mid}} to suppress the "Pos." heading. You can use any of the four options below for the position, and they'll be linked automatically:
*# <code>'''GK'''</code> for [[Goalkeeper (association football)|goalkeeper]]
*# <code>'''GK'''</code> for [[Goalkeeper (association football)|goalkeeper]]
Line 76: Line 74:


=== Examples ===
=== Examples ===
For example, the following code:
The following code (for a table of players, one not an Argentine national, who were on an Argentine team but transferred to other teams):

<nowiki>{{football squad start hidenote=y |nohead=&amp;nbsp;}}</nowiki>
<nowiki>{{football squad player |pos=DF |name=[[Matías Caruzzo]] |note=to [[Universidad de Chile]]}}</nowiki>
<nowiki>{{football squad player |pos=MF |name=[[Damián Escudero]] |note=to [[EC Vitória]]}}</nowiki>
<nowiki>{{football squad player |pos=M&#8288;F |name=[[Jesús Méndez]] |note=to [[Rosario Central]]}}</nowiki>
<nowiki>{{football squad player |pos=M&amp;#8288;F |name=[[Ribair Rodríguez]] |note=of [[Uruguay]]; to [[Santos Laguna]]}}</nowiki>
<nowiki>{{football squad player |pos=FW |name=[[Franco Cángele]] |note=to [[Sanica Boru Elazığspor|Elazığspor]]}}</nowiki>
<nowiki>{{football squad player |pos=F&amp;#8288;W |name=[[Nicolás Blandi]] |note=to [[San Lorenzo de Almagro]] |ref=&ltref>{{citation| title=Title of Work |last=Lastname |first=Firstname |year=2014}}&lt;/ref>}}</nowiki>
<nowiki>{{football squad end}}</nowiki>

produces this table:

{{football squad start |hidenote=y |nohead=&nbsp;}}
{{football squad player |pos=DF |name=[[Matías Caruzzo]] |note=to [[Universidad de Chile]]}}
{{football squad player |pos=MF |name=[[Damián Escudero]] |note=to [[EC Vitória]]}}
{{football squad player |pos=M&#8288;F |name=[[Jesús Méndez]] |note=to [[Rosario Central]]}}
{{football squad player |pos=M&#8288;F |name=[[Ribair Rodríguez]] |note=of [[Uruguay]]; to [[Santos Laguna]]}}
{{football squad player |pos=FW |name=[[Franco Cángele]] |note=to [[Sanica Boru Elazığspor|Elazığspor]]}}
{{football squad player |pos=F&#8288;W |name=[[Nicolás Blandi]] |note=to [[San Lorenzo de Almagro]] |ref=<ref>{{citation| title=Title of Work |last=Lastname |first=Firstname |year=2014}}</ref>}}
{{football squad end}}

Note that the last example includes a reference footnote with the "<code>ref=</code>" parameter, which inserts citation in the article's references section, e.g. this sample data in the example: {{reflist}}


If flag icons are thought to be genuinely useful in the context (here, the start of a listing of FIFA World Cup players from national teams of different nations), the following code:

<nowiki>{{football squad start |nohead=&amp;nbsp; |nathead=Nat. |poshead=&amp;nbsp;}}</nowiki>
<nowiki>{{football squad player |nat=Togo |name=[[Jean-Paul Abalo]] |note=captain}}</nowiki>
<nowiki>{{football squad player |nat=Argentina |name=[[Roberto Abbondanzieri]]}}</nowiki>
<nowiki>{{football squad player |nat=France |name=[[Éric Abidal]] |note=also 2009}}</nowiki>
<nowiki>{{football squad player |nat=Angola |name=[[Marco Abreu]]}}</nowiki>
<nowiki>{{football squad end}}</nowiki>

produces this table:

{{football squad start |nohead=&nbsp; |nathead=Nat. |poshead=&nbsp;}}
{{football squad player |nat=Togo |name=[[Jean-Paul Abalo]] |note=captain}}
{{football squad player |nat=Argentina |name=[[Roberto Abbondanzieri]]}}
{{football squad player |nat=France |name=[[Éric Abidal]] |note=also 2009}}
{{football squad player |nat=Angola |name=[[Marco Abreu]]}}
{{football squad end}}



<nowiki>{{Football squad start}}</nowiki>
{{strongbad|Deprecated example}} &ndash; This table improperly uses flag icons to indicate the original nationality (individual citizenship) of a partial list of members of Real Madrid F.C. of Spain:
<nowiki>{{Football squad start |team=[[Real Madrid F.C.|Real Madrid]] |nathead|Nat.}}</nowiki>
<nowiki>{{football squad player | no=1 | nat=Spain | pos=GK | name=[[Iker Casillas]]}}</nowiki>
<nowiki>{{football squad player |num=1 |nat=Spain |pos=GK |name=[[Iker Casillas]]}}</nowiki>
<nowiki>{{football squad player | no=3 | nat=Spain | pos=DF | name=[[Gerard Pique]]}}</nowiki>
<nowiki>{{football squad player |num=3 |nat=Spain |pos=DF |name=[[Gerard Pique]]}}</nowiki>
<nowiki>{{football squad player | no=9 | nat=Singapore | pos=FW | name=[[Aleksandar Đurić]] | other=team captain}}</nowiki>
<nowiki>{{football squad player |num=9 |nat=Singapore |pos=FW |name=[[Aleksandar Đurić]] |note=captain}}</nowiki>
<nowiki>{{football squad mid}}</nowiki>
<nowiki>{{football squad mid |team=&amp;nbsp; |nathead=Nat.}}</nowiki>
<nowiki>{{football squad player | no=10 | nat=Netherlands| pos=FW | name=[[Robin Van Persie]]}}</nowiki>
<nowiki>{{football squad player |num=10 |nat=Netherlands|pos=F&amp;#8288;W |name=[[Robin Van Persie]]}}</nowiki>
<nowiki>{{football squad player | no=13 | nat=South Korea| pos=MF | name=[[Park Ji-sung]]}}</nowiki>
<nowiki>{{football squad player |num=13 |nat=South Korea|pos=MF |name=[[Park Ji-sung]]}}</nowiki>
<nowiki>{{football squad player | no=25 | nat=England | pos=GK | name=[[Joe Hart]]}}</nowiki>
<nowiki>{{football squad player |num=25 |nat=England |pos=G&amp;#8288;K |name=[[Joe Hart]]}}</nowiki>
<nowiki>{{football squad end}}</nowiki>
<nowiki>{{football squad end}}</nowiki>
<nowiki></nowiki>


Produces this table:
producing this {{strongbad|deprecated}} table, which violates [[MOS:ICONS]]:


{{football squad start |team=[[Real Madrid F.C.|Real Madrid]] |nathead=Nat.}}
{{Football squad start}}
{{football squad player |num=1 |nat=Spain |pos=GK |name=[[Iker Casillas]]}}
{{football squad player | no=1 | nat=Spain | pos=GK | name=[[Iker Casillas]]}}
{{football squad player |num=3 |nat=Spain |pos=DF |name=[[Gerard Pique]]}}
{{football squad player | no=3 | nat=Spain | pos=DF | name=[[Gerard Pique]]}}
{{football squad player |num=9 |nat=Singapore |pos=FW |name=[[Aleksandar Đurić]] |note=captain}}
{{football squad player | no=9 | nat=Singapore | pos=FW | name=[[Aleksandar Đurić]] | other=team captain}}
{{football squad mid |team=&nbsp; |nathead=Nat.}}
{{football squad mid}}
{{football squad player |num=10 |nat=Netherlands|pos=F&#8288;W |name=[[Robin Van Persie]]}}
{{football squad player | no=10 | nat=Netherlands| pos=FW | name=[[Robin Van Persie]]}}
{{football squad player |num=13 |nat=South Korea|pos=MF |name=[[Park Ji-sung]]}}
{{football squad player | no=13 | nat=South Korea| pos=MF | name=[[Park Ji-sung]]}}
{{football squad player |num=25 |nat=England |pos=G&#8288;K |name=[[Joe Hart]]}}
{{football squad player | no=25 | nat=England | pos=GK | name=[[Joe Hart]]}}
{{football squad end}}
{{football squad end}}



Revision as of 11:15, 25 June 2014

Usage

The {{football squad player}} and related templates are used to display the players on an association football (soccer) squad (team, club), in a consistent format:

{{football squad start |team=[[Real Madrid F.C.|Real Madrid]] |hidenote=y}}
{{football squad player |num=9  |pos=FW |name=[[Aleksandar Đurić]] |note=captain}}
{{football squad player |num=1  |pos=GK |name=[[Iker Casillas]]}}
{{football squad player |num=25 |pos=G&#8288;K |name=[[Joe Hart]]}}
...
{{football squad mid |team=&nbsp;}}
{{football squad player |num=13 |pos=MF |name=[[Park Ji-sung]]}}
{{football squad player |num=3  |pos=DF |name=[[Gerard Pique]]}}
{{football squad player |num=10 |pos=F⁠W |name=[[Robin Van Persie]]}}
...
{{football squad end}}
Real Madrid
No. Pos. Nation Player
FW   Aleksandar Đurić
GK   Iker Casillas
G⁠K   Joe Hart
...   {{{name}}}
 
No. Pos. Nation Player
MF   Park Ji-sung
DF   Gerard Pique
F⁠W   Robin Van Persie
...   {{{name}}}

In this case, the captain is listed first, followed by other members by alphabetical order of family name; in other cases, you might prefer to list them by shirt number, position or some other criteria.

The templates can technically be used for other sports, but note that the pre-set values of the |pos= parameter automatically link to association football articles by default.


Syntax

Most such tables are split into two vertical columns. For these, you can use the {{football squad start}}, {{football squad mid}}, and {{football squad end}} templates for layout, and then use the {{football squad player}} template repeatedly within that layout:

{{football squad start}}
<!-- For help using the below template, please see [[Template talk:Football squad player]] -->
{{football squad player |name=Player Name |num=shirt number |nat=team nationality (if not already clear in context) |pos=position or role played |note=optional parenthetical note}}
{{football squad player |name=Player Name |num=shirt number |nat=team nationality (if not already clear in context) |pos=position or role played |note=optional parenthetical note}}
...
{{football squad mid}}
{{football squad player |name=Player Name |num=shirt number |nat=team nationality (if not already clear in context) |pos=position or role played |note=optional parenthetical note}}
...
{{football squad end}}

For a single-column layout, you can omit {{football squad mid}}.

Flag icons

Whether the WP:MOSICON guideline's rule against the use of flag icons to indicate a player's birth place or individual legal citizenship, rather than sporting nationality as a team member, should be changed is the subject of an ongoing discussion as of June 2014.

Parameters

The parameters of {{football squad start}} and {{football squad mid}} are:

  • team to specific the team name (which may be wikilinked)
  • hidenote=y to suppress display of the above-table note about flags, e.g. when there are not flags in the table, or several such tables are being used in series and the first already has the note.
  • nohead to rename or suppress the "No." heading (e.g. to replace it with "&nbsp;" to blank it out when it isn't used
  • nathead=Nat. to have a nationality heading appear (it is suppressed by default). Another value can be given, e.g. |nathead=State.
  • poshead to suppress display of the "Position" heading with "&nbsp;", when this column isn't being used; or use it to change "Position" to "Pos.", "Role", etc.

The parameters of {{football squad player}} are:

  • name (or 1) The player's name, the only required parameter. If the value is unassigned as of this writing, you can simply put "[unassigned]", "[vacant]" or the like, to indicate a vacant position. Do not add anything to the name here (citations go in the |ref= parameter, and notes go in the |note= parameter.
  • num (or no): The shirt number of the player, if they have one. If the player's number is not known, or unassigned, then you can use the character instead, or simply omit it. If omitted for all entries, use the |nohead=&nbsp; parameter in {{football squad start}} and {{football squad mid}} to suppress the "No." heading.
  • nat: The player's sporting nationality (the country that the player represents in international football), which may have nothing to do with citizenship or birth place. Use the name of the country, or its 3-letter IOC country code, rather than an adjective (e.g. "Spain" instead of "Spanish"). If used, also use the |nathead=Nat. parameter in {{football squad start}} and {{football squad mid}} to enable the "Nat." heading above the icons.
  • pos: The position in which the player plays. If omitted for all entries, use the |poshead=&nbsp; parameter in {{football squad start}} and {{football squad mid}} to suppress the "Pos." heading. You can use any of the four options below for the position, and they'll be linked automatically:
    1. GK for goalkeeper
    2. DF for defender (including sweeper, centre-, full- and wing-back
    3. MF for midfielder
    4. FW for forward or striker (incl. winger and second striker)
    5. some other value; one example would be using G&#8288;K to replace second and subsequent occurrences of "GK" with a "G" then a zero-width non-breaking space in it then a "K", so that the template does not redundantly link it; another case could be to use [[Association football positions#Attacking midfield|AM]] if there is some reason to be more specific, or a similar link to another position in another sport if the template is being used for non-soccer purposes.
  • ref: A reference footnote, which appears immediately after the player name. It must be in the form |ref=<ref ...>...</ref>. This keeps the reference citation code from being confused with part of the player's name in metadata.
  • note (or 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 parentheses (round brackets) after the player name.

Examples

For example, the following code:

{{Football squad start}}
{{football squad player | no=1  | nat=Spain      | pos=GK | name=[[Iker Casillas]]}}
{{football squad player | no=3  | nat=Spain      | pos=DF | name=[[Gerard Pique]]}}
{{football squad player | no=9  | nat=Singapore  | pos=FW | name=[[Aleksandar Đurić]] | other=team captain}}
{{football squad mid}}
{{football squad player | no=10 | nat=Netherlands| pos=FW | name=[[Robin Van Persie]]}}
{{football squad player | no=13 | nat=South Korea| pos=MF | name=[[Park Ji-sung]]}}
{{football squad player | no=25 | nat=England    | pos=GK | name=[[Joe Hart]]}}
{{football squad end}}

Produces this table:

Note: Flags indicate national team as defined under FIFA eligibility rules. Players may hold more than one non-FIFA nationality.

No. Pos. Nation Player
1 GK Spain ESP Iker Casillas
3 DF Spain ESP Gerard Pique
9 FW Singapore SGP Aleksandar Đurić (team captain)
No. Pos. Nation Player
10 FW Netherlands NED Robin Van Persie
13 MF South Korea KOR Park Ji-sung
25 GK England ENG Joe Hart

Shortented 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.

Microformat

The HTML markup produced by this template includes an hCard microformat, which makes the person's name parsable 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.


Leave a Reply