User:Bagumba/sandbox template
This is a Wikipedia user page. This is not an encyclopedia article or the talk page for an encyclopedia article. If you find this page on any site other than Wikipedia, you are viewing a mirror site. Be aware that the page may be outdated and that the user in whose space this page is located may have no personal affiliation with any site other than Wikipedia. The original page is located at https://en.wikipedia.org/wiki/User:Bagumba/sandbox_template. |
This template is used on approximately 14,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Field list
[edit]{{Infobox NFL player | name = | image = <!-- Only free-content images are allowed for depicting living people -- see [[WP:NONFREE]]. --> | image_size = | alt = | caption = | currentteam = | number = | position = | birth_date = | birth_place = | death_date = | death_place = | height_ft = | height_in = | weight_lbs = | highschool = | college = | cis = | draftyear = | draftround = | draftpick = | suppdraftyear = | suppdraftround = | cfldraftyear = | cfldraftround = | cfldraftpick = | afldraftyear = | afldraftround = | afldraftpick = | undraftedyear = | expansiondraftyear = | expansiondraftround = | expansiondraftpick = | debutyear = | debutteam = | finalyear = | finalteam = | coachdebutyear = | coachdebutteam = | coachfinalyear = | coachfinalteam = | pastteams = | pastcoaching = | pastexecutive = | pastadmin = | status = | cflstatus = | highlights = | statleague = | statseason = | statweek = | statlabel1 = | statvalue1 = | statlabel2 = | statvalue2 = | statlabel3 = | statvalue3 = | statlabel4 = | statvalue4 = | statlabel5 = | statvalue5 = | statlabel6 = | statvalue6 = | nfl = | nflnew = | coachregrecord = | coachplayoffrecord = | coachrecord = | coachSB = | coachAB = | coachchamps = | pfr = | pfrcoach = | dbf = | cfl = | afl = | HOF = | CollegeHOF = | CFHOF = }}
Parameters and instructions
[edit]- name - defaults to the variable {{PAGENAME}}, however it is advised that the name field is always entered to preserve the subject player's name in the infobox should the article be disambiguated at a later date. When specifying the player's name, do not wikilink the information.
- image / image_size / alt / caption - used in conjunction to display images. All are independent and thus can be included or left out on an individual basis. Width defaults to 200 pixels, so there is no need to use it unless this value needs to be changed. If an image is used, alt should describe the visual appearance of the image for visually impaired readers; see WP:ALT. The caption field automatically displays small text, so there is no need to specify font size in the field. When specifying an image, do not wikilink the information.
- currentteam - used to display the team that currently employs the subject player. This field also automatically determines the team colors used in the infobox for active players. If player is unemployed, complete this field as "Free agent"; if the player is retired, remove this field. When specifying the player's current team, do not wikilink the information.
- number - used to display the player's current jersey number or past NFL jersey numbers. If the player's number is not currently known, fill the field with two dashes (--). When specifying the player's number, do not wikilink the information.
- position - used to display the player's most frequently played position. Positions must be listed as they are at Category:American football positions. For a player who regularly plays multiple positions (e.g., Cornerback / Safety), or a player who plays a position with an article located at a disambiguated page (e.g., Guard (American football), Fullback (gridiron football), etc.), the link should be pipelinked to display only the position name (e.g, "Guard" or "Fullback"), and not the Wikipedia parenthetical disambiguation (e.g., "(American football)" or "(gridiron football)"). Do not specify positions beyond the basics. For example, use only "Safety" rather than "Free safety" or "Strong safety," or "Linebacker" rather than "Outside linebacker" or "Middle linebacker," as these positions are susceptible to change and therefore may cause inaccuracies in the infobox.
- birth_date - used to display the player's date of birth. Recommended format relies on the {{Birth date and age}} template.
- birth_place - used to display the player's place of birth. Do not use flag icons to represent the place of birth, per Wikipedia:Manual of style (flags).
- death_date - used to display the player's date of death. Recommended format relies on the {{Death date and age}} template. If adding a date of death, make sure that the birth date field does not use the {{Birth date and age}} template, but uses the {{Birth date}} template instead.
- death_place - used to display the player's place of death which may be wiki linked. Do not use flag icons to represent the place of death, per Wikipedia:Manual of style (flags).
- height_ft / height_in / weight_lbs - used to display the player's physical dimensions as listed on the player's NFL.com player profile. (Preferred source is NFL.com). Use the heightft and heightin fields. Weight should be the player's weight in pounds per standard American usage. Only enter the numerical value. When specifying, do not wikilink the information.
- highschool - used to display the player's high school, can be wikilinked. As for colleges, things like "high school" or "prep school" should be dropped. However, city and state should be mentioned (unless city and high school are eponymous). For example: Breckenridge (TX), or Long Beach (CA) Poly.
- college - used to display the university or college institution that the player attended prior to joining the NFL. If a player attended multiple colleges, only the most recent is displayed (usually the one listed on NFL.com). Wikilinks are acceptable.
- Links should be as specific as possible. For example, USC should be linked to USC Trojans football, rather than the main university article, in this field. If a college football article does not exist, create a redirect to the school's sports article (per WP:NOPIPE).
- University and college names displayed should be consistent with their common name used in sports, meaning words like "University," "University of" or "College" are typically dropped and only the unique name elements are used. For example, the University of Pittsburgh would only be displayed as "Pittsburgh," the University of Georgia as "Georgia," and so on. Schools with ambiguous names should be listed as they are on NFL.com, such as "Miami (Fla.)" for the University of Miami and "Miami (Oh.)" for Miami University.
- cis - used to display the CIS football university name.
- draftyear / draftround / draftpick - used to display the player's NFL Draft information. May also be used for cfl and afl. When specifying, do not wikilink the information. Null fields can be removed from the box.
- undraftedyear - can be used in favor of draftyear if player went undrafted. The year should correspond to the first year a player was eligible for the draft, regardless of when they first signed with an NFL team or played in the league.
- debutyear / debutteam - used to display the relevant information for when the player first appeared in a regular season or postseason National Football League game. (Preseason games do not count.) Also, note that being on an active roster does not constitute a debut, nor does dressing for a regular season game. For the purposes of this template, debuts are only actual playing time in a regular season or postseason game. When specifying, do not wikilink the information.
- finalyear / finalteam - used to display the relevant information for when the player last appeared in a regular season or postseason National Football League game. (Preseason games do not count.) When specifying, do not wikilink the information.
- coachdebutyear / coachdebutteam - used to display the relevant information for when the coach first coached a regular season or postseason National Football League game. (Preseason games do not count.) This may apply to head coaches, assistant coaches, or executives. When specifying, do not wikilink the information.
- pastteams - used to display the teams which the players has played for and his current team. A timeline effect is preferred to keep all things in chronological order, meaning different stints with one team are listed separately. (However, all teams are only linked in the first reference.) The generally accepted bullet point is *. Note that the year is piped to that NFL season year, in the form [[20xx NFL season|20xx]]. The template {{NFL Year|20xx}} (alternate form {{nfly|20xx}}) can also be used here. Teams from other professional leagues (Canadian Football League, Arena Football League, etc.) are acceptable.
- Additionally, practice squad and offseason stints are also preferred to be represented, however they should be denoted with an asterisk following the year(s). When at least one practice squad or offseason stint is present in an infobox, the following wikicode should be placed after the last team in the list: ":{{small|*Offseason and/or practice squad member only}}"
- An example of a player's full list of teams is:
- Denver Broncos (1991–1992)
- Los Angeles Raiders (1993)*
- Green Bay Packers (1993)
- Kansas City Chiefs (1993–1996)
- Denver Broncos (1997–2000)
- Chicago Bears (2001–2003)
- New England Patriots (2004)
- Miami Dolphins (2005–present)
- *Offseason and/or practice squad member only
- status - used to describe whether a player is on the active roster, practice squad, or a reserve list. Appropriate entries to this field should be Active, Practice Squad, Suspended, Injured Reserve, or any other reserve list.
- highlights - used to display career awards and highlights for the player. Wikilinks are acceptable. The generally accepted bullet point is an asterisk (*). If a player does not have any notable achievements, leave the field blank so that the field remains in the event of future accomplishments.
- The standard for writing an achievement is to display the achievement, followed by the year earned in parentheses. Achievements go in reverse chronological order, from most recent to earliest. Examples of how certain achievements would be written:
- 3× Super Bowl champion (XXXVI, XXXVIII, XXXIX)
- First-team All-Pro (2007)
- Second-team All-Pro (2006)
- 2× Pro Bowl (2006, 2007)
- Heisman Trophy (2002)
- First-team All-American (2001, 2002)
- First-team All-ACC (2000, 2001, 2002)
- Additionally, Pro Bowl and All-Pro selections are to be linked to the appropriate year. Note that Pro Bowl links are piped to the corresponding regular season year. For example, a Pro Bowl selection during the 2007 season should be written as "[[Pro Bowl]] ([[2008 Pro Bowl|2007]]" so that it creates "Pro Bowl (2007)," whereas an All-Pro selection is written as "First-team [[All-Pro]] ([[2007 All-Pro Team|2007]])" and it creates "First-team All-Pro (2007)."
- statleague - used in the heading for the statistics section to display the league where the statistics were accumulated. Default is NFL. Do not wikilink entries in this field.
- statseason - used in the heading for the statistics section to describe how current the statistics are. Only to be used for active NFL players, where statistics are subject to future change. Do not wikilink entries in this field.
- statlabel# - used to describe the statistic being entered, such as Touchdowns, Receiving yards, Games played, etc. Wikilink and pipe when appropriate. Up to six statistics can be entered by changing the number to 1 through 6, with each corresponding to the appropriate statvalue# entry.
- statvalue# - used for the number a player has in a given statistic. Up to six statistics can be entered by changing the number to 1 through 6, with each corresponding to the appropriate statlabel# entry.
- coachregrecord - used to display the career regular season record for a head coach in the "wins−losses" format (i.e. 10−2).
- coachplayoffrecord - used to display the career postseason and/or playoff record for a head coach in the "wins−losses" format (i.e. 1−2).
- coachrecord - used to display the total career record for a head coach, including regular season and postseason games, in the "wins−losses" format (i.e. 11−4).
- coachSB - used to display the career Super Bowl wins as a head coach (i.e. "Super Bowl I, Super Bowl II").
- coachAB - used to display the career ArenaBowl wins as a head coach (i.e. "ArenaBowl I, ArenaBowl II").
- coachchamps - used to display the total number of championships won as a head coach (i.e. 4).
- nfl / nflnew / pfr / dbf / cfl / afl - used to link to an external link for the player's statics. NFL.com links are preferred and should be listed first. More than one site can be used at a time. Null fields can be removed from the box.
- "nfl" links to the players' profile on nfl.com (the older URL format using profile codes) or
- "nflnew" links to the players' profile on nfl.com using the newer URL format (playername/profilenumber) or
- "pfr" links to the players' profile on pro-football-reference.com or
- "pfrcoach" links to the coaches' profile on pro-football-reference.com or
- "dbf" links to the players' profile on databasefootball.com or
- "cfl" links to the players' profile on cfl.ca or
- "afl" links to the players' profile on arenafan.com or
- HOF / CollegeHOF / CFHOF - used for respective Hall of Fame entries.
Microformat
[edit]The HTML markup produced by this template includes an hCard microformat, which makes the person's details 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 or database. For more information about the use of microformats on Wikipedia, please see the microformat project.
Sub-templates
[edit]Date-of-birth ("bday") information will only be included in the microformat if {{birth date}}, or {{birth date and age}} are used in the infobox. (Do not use these if the date is before 1583). Be cautious about using these if the person is still living, per WP:DOB.
To include a URL, use {{URL}}.
Please do not remove instances of these sub-templates.
Classes
[edit]hCard uses HTML classes including:
- adr
- agent
- bday
- birthplace
- category
- country-name
- deathdate
- deathplace
- extended-address
- family-name
- fn (required)
- given-name
- honorific-prefix
- honorific-suffix
- label
- locality
- n
- nickname
- note
- org
- role
- url
- vcard
Please do not rename or remove these classes nor collapse nested elements which use them.