Template:AFL Tables/doc

From blackwiki
< Template:AFL Tables
Revision as of 21:36, 30 January 2017 by blackwiki>Pigsonthewing (→‎top: p)
Jump to navigation Jump to search

Template:Wikidata property

Template:AFL Tables displays a uniformly formatted external link to an Australian Football League (AFL) player's profile page on the AFL Tables website.

Usage

Unnamed parameters:

  • {{AFL Tables | ID }}
  • {{AFL Tables | ID | NAME }}

Named parameters (id, name):

  • {{AFL Tables | id= ID }}
  • {{AFL Tables | id= ID | name= NAME }}

Named parameters (ref, alt):

  • {{AFL Tables | ref= ID }}
  • {{AFL Tables | ref= ID | alt= NAME }}

The first parameter ("id" or "ref") is the exact folder and page name used in the URL at the AFL Tables website. This is in the form of FirstInitial/FirstName_LastName, such as B/Brendan_Fevola for http://afltables.com/afl/stats/players/B/Brendan_Fevola.html. Where multiple players have the same name, the usual system is to add a number, such as N/Nathan_Brown0, N/Nathan_Brown1, or N/Nathan_Brown2.

The second parameter ("name" or "alt") is an optional alternative parameter to specify a player's name. If not given it defaults to the Wikipedia article name, without any disambiguation such as (footballer). This parameter is only needed if you want to display text other than the article name.

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for AFL Tables

This template displays a uniformly formatted external link to an Australian Football League (AFL) player's profile page on the AFL Tables website (afltables.com).

Template parameters

ParameterDescriptionTypeStatus
ID1 id ref

Player ID portion of the URL. Example: B/Brendan_Fevola is the ID in http://afltables.com/afl/stats/players/B/Brendan_Fevola.html

Default
Stringrequired
Name2 name alt

Name of player. If not given it defaults to the Wikipedia article name, without any disambiguation such as (footballer).

Default
{{PAGENAME}}
Stringoptional

Examples

Unnamed parameters

URL:

http://afltables.com/afl/stats/players/B/Brendan_Fevola.html

Usage:

{{AFL Tables | B/Brendan_Fevola | Brendan Fevola }}

Result:

Brendan Fevola's playing statistics from AFL TablesScript error: No such module "EditAtWikidata".

Named parameters: id, name

URL:

http://afltables.com/afl/stats/players/N/Nathan_Brown0.html

Usage:

{{AFL Tables | id= N/Nathan_Brown0 | name= Nathan D. Brown }}

Result:

Nathan D. Brown's playing statistics from AFL TablesScript error: No such module "EditAtWikidata".

Named parameters: alt, ref

URL:

http://afltables.com/afl/stats/players/N/Nathan_Brown1.html

Usage:

{{AFL Tables | ref= N/Nathan_Brown1 | alt= Nathan G. Brown }}

Result:

Nathan G. Brown's playing statistics from AFL TablesScript error: No such module "EditAtWikidata".