Jump to content

Template:AFL Tables coach/doc

From Wikipedia, the free encyclopedia

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

[edit]
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
{{AFL Tables coach}}
{{AFL Tables coach | name= NAME }}
{{AFL Tables coach | 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 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

[edit]

Unnamed parameters

[edit]
URL
http://afltables.com/afl/stats/coaches/Chris_Fagan.html
Usage
{{AFL Tables coach | Chris_Fagan | Chris Fagan }}
Output
Chris Fagan's coaching statistics from AFL Tables

Named parameters id, name

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

Named parameters alt, ref

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

No parameters and Wikidata property not defined

[edit]
Usage
{{AFL Tables coach}}
Output
{{AFL Tables coach}} 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 coach in articles based on its 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

The ID portion of the URL, such as Chris_Fagan in 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

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

[edit]