แม่แบบ:Infobox AFL biography/doc

__TOC__

**การใช้งาน**

**Parameters**

**Name**
name
Player's common name (first and last). Should be the same as the article's title, except with no disambiguation. Example:

fullname
Player's full name, if possible. No nicknames should be included. Example:

nickname
Player's nickname(s). If not widespread, should be backed up by a reliable source, otherwise deleted.


**Image**
image
Name of image. Note you should not include "File:" or wikilink it – the template does this automatically. Example:

image_upright
The scaling factor for the image.

alt
Alternative text for the image. Example:

caption 
Image caption. Example:


**Age, birth and death**
birth_date
Use . Example:

produces 23 May 1971 (age 40)
birth_place
If unknown, leave blank. The wikified placename and state of Australia should be included. If overseas-born, include the country of birth. Example:

death_date
Use . Note the death dates go before the birth dates. If alive, leave blank. Example:

death_place
If unknown, leave blank. The wikified placename and state of Australia should be included. If died overseas, include the country of death. Example:


**Playing information**
originalteam
The original team from which the player was recruited. This will usually be a junior or country football club. Do not include previous AFL clubs. State league teams should not be used unless no other information is available. Wikify if possible. Example:

draftpick
The pick(s) used to select the player in the VFL/AFL draft, if applicable. The format should be as follows: No. aa in the ; where aa stands for the draft pick, bbbb stands for the year of the draft (note: the rookie and pre-season drafts are described as occurring for the next season e.g. the 2005 rookie draft occurred in 2004.), ccccccc stands for the type of draft (national, rookie, pre-season, mid-season, pre-draft selection). Players drafted more than once should be listed more than once. Players selected under zoning should be described as a zone selection. Example:

height
The player's height in centimetres (cm). Example:

weight
The player's weight in kilograms (kg). Example:

position
The position(s) the player played during their career. More specific roles (full-forward, rover) are preferable to general terms (midfielder, defender). Wikified is also preferable. "Interchange" or "substitute" should not be listed as a position. Example:

currentclub
The current club the player is playing with. If more than one, select the highest level of playing e.g. Darren Glass is listed both at Perth and at West Coast. West Coast plays in a higher competition, so use West Coast. Example:

guernsey
The current guernsey number of the player. Example:


**Umpires**
The following additional parameters are available for AFL umpires
umpireleague1   = 
umpirerole1     = 
umpireyears1    = 
umpiregames1    = 
umpireleague2   =
umpirerole2     = 
umpireyears2    =
umpiregames2    = 
umpireleague3   = 
umpirerole3     =
umpireyears3    = 
umpiregames3    = 

**Sources**
A link to either, or both, of  AustralianFootball.com and  AFLTables.com will be inserted into the infobox automatically if the article's wikidata item contains the respective IDs. The ID for Australian Football is the numbers at the end of the URL after "http://australianfootball.com/players/player/John+Smith/", normally in the form of 12345. The ID for AFL Tables is the URL segment after "http://afltables.com/afl/stats/players" in the form of J/John_Smith, without the .html.
If you want to override the automatically added links, then this can be done by using the source parameter. Example:


**Use as a child template**
The embed parameter is used when embedding this infobox into another.

**Examples**

**Player**

**Player, coach, umpire**

**TemplateData**
{
	"params": {
		"name": {
			"required": false,
			"label": "Name",
			"type": "string",
			"description": "Name of Player."
		},
		"image": {
			"required": false,
			"label": "Image",
			"type": "wiki-file-name",
			"description": "Image of the player"
		},
		"alt": {
			"required": false,
			"label": "Alternative text",
			"type": "string",
			"description": "Alternative text if image does not display for whatever reason "
		},
		"caption": {
			"required": false,
			"label": "Image Caption",
			"type": "string",
			"description": "Caption for the image"
		},
		"fullname": {
			"required": true,
			"label": "Full Name",
			"type": "string",
			"description": "Full name of the player."
		},
		"nickname": {
			"required": false,
			"label": "Nickname",
			"type": "string",
			"description": "Nickname of the player"
		},
		"birth_date": {
			"required": false,
			"label": "Birth Date",
			"type": "string",
			"description": "Player's Birthdate"
		},
		"birth_place": {
			"required": false,
			"label": "Birth Place",
			"type": "string",
			"description": "Player's place of birth"
		},
		"death_date": {
			"required": false,
			"label": "Death Date",
			"type": "line",
			"description": "Date of player's death"
		},
		"death_place": {
			"required": false,
			"label": "Death Place",
			"type": "line",
			"description": "Player's place of death"
		},
		"originalteam": {
			"required": false,
			"label": "Original Team",
			"type": "string",
			"description": "Team from which player was recruited(junior or country football club)"
		},
		"draftpick": {
			"required": false,
			"label": "Draft Pick",
			"type": "line",
			"description": "The pick(s) used to select the player in the VFL/AFL draft, if applicable"
		},
		"heightweight": {
			"required": false,
			"label": "Height Weight",
			"type": "line",
			"description": "Height(cm) and weight(kg) separated by a slash"
		},
		"position": {
			"required": false,
			"label": "Position",
			"type": "string",
			"description": "Position of the player during their career"
		},
		"currentclub": {
			"required": false,
			"label": "Current Club",
			"type": "string",
			"description": "The club that the player is currently playing with"
		},
		"guernsey": {
			"required": false,
			"label": "Guernsey",
			"type": "number",
			"description": "The current guernsey number of the player"
		},
		"years": {
			"required": false,
			"label": "Years",
			"type": "number",
			"description": "Number of years that the player played; deprecated in favor of years1–years10"
		},
		"clubs": {
			"required": false,
			"label": "Clubs",
			"type": "string",
			"description": "Clubs that the player played with; deprecated in favor of club1–club10"
		},
		"games(goals)": {
			"required": false,
			"label": "Games(Goals)",
			"type": "number",
			"description": "Games played by the player (with goals scored); deprecated in favor of games_goals1–games_goals10"
		},
		"sooyears": {
			"required": false,
			"label": "SOO Years",
			"type": "number",
			"description": "Total years played in State of Origin (SOO) games; deprecated in favor of sooyear1–sooyear10"
		},
		"sooteams": {
			"required": false,
			"label": "SOO Teams",
			"type": "string",
			"description": "Teams that player played for in SOO games; deprecated in favor of sooteam1–sooteam10"
		},
		"soogames(goals)": {
			"required": false,
			"label": "SOO Games(Goals)",
			"type": "line",
			"description": "SOO games played (with goals); deprecated in favor of soogames_goals1–soogames_goals10"
		},
		"nationalyears": {
			"required": false,
			"label": "National Years",
			"type": "number",
			"description": "Total Years played in national games; deprecated in favor of nationalyears1–nationalyears10"
		},
		"nationalteams": {
			"required": false,
			"label": "National Teams",
			"type": "string",
			"description": "Teams that player played for; deprecated in favor of nationalteam1–nationalteam10"
		},
		"nationalgames(goals)": {
			"required": false,
			"label": "National Games(Goals)",
			"type": "line",
			"description": "Total number of national games played(with goals); deprecated in favor of nationalgames_goals1–nationalgames_goals10"
		},
		"coachyears": {
			"required": false,
			"label": "Coach Years",
			"type": "number",
			"description": "Years spent as a coach; deprecated in favor of coachyears1–coachyears10"
		},
		"coachclubs": {
			"required": false,
			"label": "Coach Clubs",
			"type": "string",
			"description": "Clubs for which player was a coach for; deprecated in favor of coachclub1–coachclub10"
		},
		"coachgames(wins)": {
			"required": false,
			"label": "Coach Games(Wins)",
			"type": "line",
			"description": "Total games as a coach (with wins); deprecated in favor of coachgames_wins1–coachgames_wins10"
		},
		"statsend": {
			"required": false,
			"label": "Stats End",
			"type": "number",
			"description": "Year up to which the stats are correct"
		},
		"repstatsend": {
			"required": false,
			"label": "Representative Stats end",
			"type": "number",
			"description": "Year up to which the representative stats are correct"
		},
		"coachstatsend": {
			"required": false,
			"label": "Coach Stats end",
			"type": "number",
			"description": "The year up to which the coach stats are correct"
		},
		"careerhighlights": {
			"required": false,
			"label": "Career Highlights",
			"type": "string",
			"description": "Highlights from the player's career"
		},
		"source": {
			"required": false,
			"label": "Source",
			"type": "string",
			"description": "Use full URL and display text in single brackets, or leave blank for wikidata automation"
		},
		"image_upright": {
			"label": "Image upright",
			"description": "The scaling factor for the image.",
			"example": "0.5",
			"type": "number"
		},
		"image_size": {
			"label": "Image size",
			"description": "Fixed pixel size for the image to display as.",
			"example": "200px",
			"deprecated": "Use image_upright instead"
		}
	},
	"format": "block",
	"description": "An infobox for the Australian Football League.",
	"paramOrder": 
		"name",
		"image",
		"image_upright",
		"image_size",
		"alt",
		"caption",
		"fullname",
		"nickname",
		"birth_date",
		"birth_place",
		"death_date",
		"death_place",
		"originalteam",
		"draftpick",
		"heightweight",
		"position",
		"currentclub",
		"guernsey",
		"years",
		"clubs",
		"games(goals)",
		"sooyears",
		"sooteams",
		"soogames(goals)",
		"nationalyears",
		"nationalteams",
		"nationalgames(goals)",
		"coachyears",
		"coachclubs",
		"coachgames(wins)",
		"statsend",
		"repstatsend",
		"coachstatsend",
		"careerhighlights",
		"source"
	
}

**Microformat**

**หมวดหมู่ติดตาม**
 Pages using infobox AFL biography with unknown parameters- Infobox AFL biography articles missing expected parameters – e.g., years without clubs