Template:WAFL FootyFacts
{{{name}}}'s WAFL playing statistics at WAFLFootyFacts.net
![]() | This template uses Lua: |
Template:WAFL FootyFacts displays a uniformly formatted external link to a West Australian Football League (WAFL) player's profile page on the WAFL FootyFacts website. It is intended for use in the external links section of an article.
Usage
It is preferable in most cases, to ensure that the Wikidata property exists, and use this template without any parameters.
- Using Wikidata property
{{WAFL FootyFacts}}
{{WAFL FootyFacts | name= NAME }}
{{WAFL FootyFacts | alt= NAME }}
- Unnamed parameters
{{WAFL FootyFacts | ID }}
{{WAFL FootyFacts | ID | NAME }}
- Named parameters (id, name)
{{WAFL FootyFacts | id= ID }}
{{WAFL FootyFacts | id= ID | name= NAME }}
- Named parameters (ref, alt)
{{WAFL FootyFacts | ref= ID }}
{{WAFL FootyFacts | ref= ID | alt= NAME }}
Parameters
The first parameter ("id" or "ref") is the exact unique identification number used in the URL at the WAFL FootyFacts website.
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, such as if it is used on team or season pages.
Examples
It is preferable in most cases, to ensure that the Wikidata parameter exists, and use this template without any parameters.
Unnamed parameters
- Usage
{{WAFL FootyFacts | 1004 | Noel Carter}}
- Output
- Noel Carter's WAFL playing statistics at WAFLFootyFacts.net
Named parameters id, name
- Usage
{{WAFL FootyFacts | id= 1004 | name= Noel Carter }}
- Output
- Noel Carter's WAFL playing statistics at WAFLFootyFacts.net
Named parameters alt, ref
- URL
https://waflfootyfacts.net/player/stats.php?PlayerID=1004
- Usage
{{WAFL FootyFacts | ref= 1004 | alt= Noel Carter }}
- Output
- Noel Carter's WAFL playing statistics at WAFLFootyFacts.net
No parameters and Wikidata property not defined
- Usage
{{WAFL FootyFacts}}
- Output
- {{WAFL FootyFacts}} template missing ID and not present in Wikidata.
TemplateData
TemplateData for WAFL FootyFacts
This template displays a uniformly formatted external link to a West Australian Football League (WAFL) player's profile page on the WAFL Footyfacts website. It is intended for use in the external links section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
id | id ref 1 | The ID number in the URL, such as 1004 in https://waflfootyfacts.net/player/stats.php?PlayerID=1004. It is optional if Wikidata property P4615 exists, but required if not.
| String | optional |
name | name alt 2 | The link text, which should be the name of the player. It is optional and defaults to the Wikipedia article name, without any disambiguation such as "(footballer)".
| String | optional |
See also
- {{AFL Tables}}
- {{AustralianFootball}}