Template:AFL Tables coach/doc

From alpha
Jump to navigation Jump to search

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

Usage

Unnamed parameters:

{{AFL Tables coach | ID }}
{{AFL Tables coach | ID | NAME }}

Named parameters (id, name):

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

Named parameters (ref, alt):

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

Using Wikidata property P4885:

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

Parameters

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 Chris_Fagan for http://afltables.com/afl/stats/coaches/Chris_Fagan.html. Where a coach has the same name as another coach or player, the usual system is to add a number, such as Don_McKenzie1.


The second parameter ("name" or "alt") is an optional alternative parameter to specify a coach'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.

Examples

Unnamed parameters

URL
http://afltables.com/afl/stats/coaches/Template:Hilite.html
Usage
{{AFL Tables coach | Chris_Fagan | Chris Fagan }}
Result
Chris Fagan's coaching statistics from AFL Tables

Named parameters: id, name

URL
http://afltables.com/afl/stats/coaches/Template:Hilite.html
Usage
{{AFL Tables coach | id= Don_McKenzie1 | name= Don McKenzie }}
{{AFL Tables coach | id= Don_McKenzie1.html | name= Don McKenzie }}
Result
Don McKenzie's coaching statistics from AFL Tables
Don McKenzie's coaching statistics from AFL Tables (same as above)

Named parameters: alt, ref

URL
http://afltables.com/afl/stats/coaches/Template:Hilite.html
Usage
{{AFL Tables coach | ref= Mark_Williams2 | alt= Mark Williams }}
Result
Mark Williams's coaching statistics from AFL Tables

No parameters and Wikidata property not defined

Usage
{{AFL Tables coach}}
Output
{{AFL Tables coach}} template missing ID and not present in Wikidata.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for AFL Tables coach

This template displays a uniformly formatted external link to a Victorian Football League/Australian Football League (VFL/AFL) coach'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: Chris_Fagan is the ID portion of http://afltables.com/afl/stats/coaches/Chris_Fagan.html. It is optional if Wikidata property P4885 exists, but required if not.

Default
Wikidata property P4885
Stringoptional
namename alt 2

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

Default
{{PAGENAMEBASE}}
Stringoptional

See also