Template:Football squad player2/doc

Usage
This template is used to display a football (soccer) player squad in a standard format. It is derived from Template:Football squad player, with additional features and changes which aim to resolve WP:ACCESS with that template.

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 start2, Fs player2 and Fs end2 as alternative templates, using the same equivalent syntax of the other ones.

Parameters
In Football squad start2:


 * : By default, the note at the top of the template will always display. It can be disabled with |hidenote=yes.
 * : Optional parameter; will display the date as typed.
 * : Optional parameter; will add a reference to the end of the header.
 * : Use this param to specify a custom background color for the table header. Use RRGGBB values without the # sign. Example: |bg=5d9731
 * : Use this param to specify a custom text color for the table header. Use RRGGBB values without the # sign. Example: |color=ffffff

In both Football squad start2 and football squad player2:


 * : Many clubs use squad numbers, but others do not. Adding  to football squad start2 will disable the number column entirely. If used, this parameter should also be added to every player's entry, as otherwise a dash will be shown.
 * : Adding  to football squad start2 will disable the nation column entirely. If used,   should be omitted from every player's entry.

In Football squad player2:


 * : 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.
 * : The player's nationality. Use the name of the country, or its 3-letter IOC country code, rather than an adjective (e.g. "Spain" instead of "Spanish"). This is for (regardless of nationality of birth or citizenship, or non-FIFA sporting nationalities the player may use in other contexts). If this template is used in a non-FIFA context, then some other nationality might apply; however, this parameter is never for indication of birthplace as such, which has nothing to do with football.
 * : If the relevant flag of the country is other that its current one, e.g. 1931.
 * : The position in which the player plays. You can use any of the four options below:
 * for Goalkeeper;
 * for Defender;
 * for Midfielder;
 * for Striker or Forward;
 * : The player's name.
 * : 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.

Example
For example, the following code:

Produces this table:

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": false, "label": "Number" },		"nonumber": { "description": "Player shirt numbers are not shown in the table", "example": "yes", "type": "boolean", "required": false, "label": "No 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", "nonumber", "natvar", "ref" ] }