Template:Football squad player
Note: Flags indicate national team as defined under FIFA eligibility rules. Players may hold more than one non-FIFA nationality.
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
Usage[change]This template is used to display a football (soccer) player squad in a standard format. Syntax[change]Most squads are split into two vertical columns. For these, you can use the {{Football squad start}}, {{Football squad mid}} and {{Football squad end}} templates to help with the layouting, and then use this template repeatedly within them: {{Football squad start}} {{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}} ... {{Football squad mid}} {{Football squad player|no=11|nat=ITA|pos=FW|name=[[Gioacchini Simone]]}} ... {{Football squad end}} Alternative template names[change]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 player}}, {{Fs mid}} and {{Fs end}} as alternative templates, using the same equivalent syntax of the other ones. Parameters[change]In {{Football squad start}}:
In {{Football squad start}} and {{football squad mid}}
In {{Football squad start}}, {{football squad mid}} and {{Football squad player}}:
In {{Football squad player}}:
Example[change]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=ESP | pos=DF | name=[[Gerard Pique]]}} {{Football squad player | no=9 | nat=Singapore | pos=FW | name=[[Aleksandar Đurić]] | other=team captain}} {{Football squad player | no=10 | nat=NED| pos=FW | name=[[Robin Van Persie]]}} {{Football squad mid}} {{Football squad player | no=13 | nat=South Korea| pos=MF | name=[[Park Ji-sung]]}} {{Football squad player | no=25 | nat=ENG | pos=GK | name=[[Joe Hart]]}} {{Football squad player | no=1 | nat=Spain | natvar=1931 | pos=GK | name=[[Ricardo Zamora]]}} {{Football squad player | no= | nat=HUN | natvar=1949 | pos=FW | name=[[Ferenc Puskas]]}} {{Football squad player | no=42 | nat= | natvar= | pos=FW | name=[[Arthur Dent]]}} {{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.
Microformat[change]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[change]The hCard in this template uses at least some of these HTML classes:
Please do not rename or remove these classes nor collapse nested elements which use them. TemplateData[change]This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Football squad player in articles based on its TemplateData.
TemplateData for Football squad player <templatedata> { "params": { "nat": { "description": "The national team of the player, as name or IOC code.", "example": "Spain or ESP, not Spanish", "type": "string", "required": true, "label": "National team" }, "pos": { "description": "The position of the player which can be either GK (Goal keeper), DF(defender), MF(Mid fielder) or FW(Forward)", "example": "FW", "type": "string", "required": true, "label": "Position" }, "other": { "description": "Optional field that is used to mention captain, vice-captain, on loan, etc.", "example": "on loan", "type": "string", "suggested": true, "label": "Other information" }, "no": { "description": "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.", "example": "10", "type": "number", "required": true, "label": "Number" }, "name": { "description": "Name of player. May be wikilinked.", "example": "Kaká", "type": "content", "required": true, "label": "Name" }, "natvar": { "label": "Flag variant", "description": "To use a historical flag. See Template:Flagicon", "default": "Use the current flag." }, "ref": { "label": "Reference" } }, "description": "The template gives displays the shirt no., country, position and full name of a football (soccer) player. Also mentions if a player is a captain, vice-captain or on-loan.", "format": "inline", "paramOrder": [ "nat", "pos", "name", "other", "no", "natvar", "ref" ] } </templatedata> |