Template:Welsh football updater
Usage
The {{Welsh football updater}} is a switch-based template used to dynamically display information about Welsh football clubs in various leagues, their tiers, and their performance in the previous season. The template provides specific outputs depending on the parameter passed to it.
Parameters
This template uses positional parameters to determine the output.
1
- The unique identifier for the football club. This must match one of the keys defined in the template (e.g.,Aberyst
,BalaTow
, etc.).- Adding "2" to the identifier outputs a link to the previous season's performance.
- Adding "3" to the identifier outputs the last season's league and placement summary.
Output
For a given club identifier, the template outputs:
- The league in which the club currently plays when
{{Welsh football updater|ClubID}}
is used. - A link to the club's performance in the previous season when
{{Welsh football updater|ClubID2}}
is used. - A brief summary of the club's position in their league for the previous season when
{{Welsh football updater|ClubID3}}
is used.
Example
To display information for Aberystwyth Town FC:
{{Welsh football updater|Aberyst}} {{Welsh football updater|Aberyst2}} {{Welsh football updater|Aberyst3}}
This will output:
- League: Cymru Premier (current league)
- Season: 2023–24 (last season's performance link)
- Position: Cymru Premier, 10th of 12 (position summary for last season)
Usage in Infoboxes
The `{{Welsh football updater}}` template is particularly useful in infoboxes for dynamically displaying club information. For example:
{{Infobox football club | clubname = Treharris Athletic Western FC | image = Treharris_Athletic_Western_FC_logo.png | fullname = Treharris Athletic Western Football Club | nickname = The Lillywhites | founded = 1889 | ground = Parc Taf Bargoed, [[Trelewis]] | capacity = | chairman = | manager = | league = {{Welsh football updater|TreAthW}} | season = {{Welsh football updater|TreAthW2}} | position = {{Welsh football updater|TreAthW3}} }}
This configuration dynamically pulls the following details for the club with the identifier `TreAthW`:
- League: The current league the club plays in.
- Season: A link to the previous season’s performance.
- Position: A summary of the club’s position in the previous season.
Supported Clubs
The template currently supports clubs across multiple tiers of Welsh football, including:
- Tier 1: Cymru Premier
- Tier 2: Cymru North, Cymru South
- Tier 3: Ardal Leagues
- Tier 4 and below: Various regional leagues
For a full list of supported clubs and their corresponding identifiers, refer to the template code.
Adding New Clubs
If a club is not supported and needs to be added:
- Edit the template and locate the appropriate section (e.g., Tier 1, Tier 2, etc.).
- Add a new line following the format:
| ClubID = [[League Name]] | ClubID2 = [[Last Season Link]] | ClubID3 = [[League Name]], Position of Total (summary)
- Save the changes.
Template Maintenance
This template relies on accurate and up-to-date information for each club. Ensure the following:
- League names and links are correct.
- Previous season performance links are accurate.
- Position summaries reflect the official standings.