Jump to content

Template:AFL Tables umpire/doc

From Wikipedia, the free encyclopedia

Template:AFL Tables umpire displays a uniformly formatted external link to a Victorian Football League/Australian Football League (VFL/AFL) umpire's profile page on the AFL Tables website. It is intended for use in the external links section of an article.

Usage

[edit]

Unnamed parameters:

{{AFL Tables umpire | ID }}
{{AFL Tables umpire | ID | NAME }}

Named parameters (id, name):

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

Named parameters (ref, alt):

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

Using Wikidata property P4888:

{{AFL Tables umpire}}
{{AFL Tables umpire | name= NAME }}
{{AFL Tables umpire | alt= NAME }}

Parameters

[edit]

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 FirstName_LastName, such as Shane_McInerney for http://afltables.com/afl/stats/umpires/Shane_McInerney.html. Where two or more umpires have the same name, the usual system is to add a number, such as Jack_McMurray0 and Jack_McMurray1.


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

Examples

[edit]

Unnamed parameters

[edit]

URL:

http://afltables.com/afl/stats/umpires/Shane_McInerney.html

Usage:

{{AFL Tables umpire | Shane_McInerney | Shane McInerney }}

Result:

Shane McInerney's umpiring statistics from AFL Tables

Named parameters: id, name

[edit]

URL:

http://afltables.com/afl/stats/umpires/Jack_McMurray0.html

Usage:

{{AFL Tables umpire | id= Jack_McMurray0 | name= Jack McMurray Sr. }}

Result:

Jack McMurray Sr.'s umpiring statistics from AFL Tables

Named parameters: alt, ref

[edit]

URL:

http://afltables.com/afl/stats/umpires/Jack_McMurray1.html

Usage:

{{AFL Tables umpire | ref= Jack_McMurray1 | alt= Jack McMurray Jr. }}

Result:

Jack McMurray Jr.'s umpiring statistics from AFL Tables

No parameters and Wikidata property not defined

[edit]

Usage:

{{AFL Tables umpire}}

Output:

{{AFL Tables umpire}} template missing ID and not present in Wikidata.

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:AFL Tables umpire in articles based on its TemplateData.

TemplateData for AFL Tables umpire

This template displays a uniformly formatted external link to a Victorian Football League/Australian Football League (VFL/AFL) umpire's profile page on the AFL Tables website. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
idid ref 1

This parameter should contain the ID portion of the URL. Example: Shane_McInerney is the ID portion of http://afltables.com/afl/stats/umpires/Shane_McInerney.html. It is optional if Wikidata property P4888 exists, but required if not.

Default
Wikidata property P4888
Stringoptional
namename alt 2

This parameter may be used to specify the link text, which should be the name of the umpire. It is optional and defaults to the Wikipedia article name, without any disambiguation such as "(umpire)".

Default
{{PAGENAMEBASE}}
Stringoptional

See also

[edit]