Difference between revisions of "Template:ANZ Championship ladder/doc"
blackwiki>Liveste (New template documentation) |
blackwiki>Liveste (Added example; removed "team" parameter from blank code) |
||
| Line 8: | Line 8: | ||
=== Creating a ladder === | === Creating a ladder === | ||
| − | To create a season competition ladder, copy the following code and paste it into the appropriate template page (e.g., [[Template:2010 ANZ Championship]]): | + | To create a season competition ladder, copy the following code and paste it into the appropriate template page (e.g., [[Template:2010 ANZ Championship ladder]]): |
<pre> | <pre> | ||
| − | {{ANZ Championship ladder |year= | + | {{ANZ Championship ladder |year= |
|update= |round= |game= | |update= |round= |game= | ||
| Line 44: | Line 44: | ||
|Info10={{ANZC-LD | Pld= | W= | D= | L= | GF= | GA= | G%= | Pts=}} | |Info10={{ANZC-LD | Pld= | W= | D= | L= | GF= | GA= | G%= | Pts=}} | ||
}}</pre> | }}</pre> | ||
| − | Initially, only the <code>year=</code> parameter is mandatory | + | Initially, only the <code>year=</code> parameter is mandatory. During the season, the <code>Team#</code>, <code>Pld</code>, <code>W</code>, <code>D</code>, <code>L</code>, <code>GF</code>, <code>GA</code>, <code>G%</code> and <code>Pts</code> parameters should be filled in, in accordance with competition results. The <code>Team#</code> parameters require either a long (e.g., <code>West Coast Fever</code>) or short (e.g., <code>Fever</code>) ''unlinked'' team name. Whichever name form is chosen, that same form must be used consistently throughout the ladder. |
===Adding a ladder to an article=== | ===Adding a ladder to an article=== | ||
====Main season article==== | ====Main season article==== | ||
| − | To add a season competition ladder to a main season article, simply | + | To add a season competition ladder to a main season article, simply transclude the ladder template into the article: e.g., copypaste {{tl|2010 ANZ Championship ladder}} into [[2010 ANZ Championship season]]. No further amendments are required. |
====Team season article==== | ====Team season article==== | ||
| − | To add a season competition ladder to a team's season article, | + | To add a season competition ladder to a team's season article, transclude the ladder template, and also specify an <code>team=</code> parameter (small "t" with no numbers): e.g., add <code><nowiki>{{</nowiki>2010 ANZ Championship ladder|team=Central Pulse}}</code> to [[2010 Central Pulse seaon]]. Whichever form of team name (long or short) is used in the ladder, the same form must be used when specifying the team in the team's season article: i.e., if short team names such as "Mystics" are used in [[Template:2011 ANZ Championship ladder]], then add <code><nowiki>{{</nowiki>2011 ANZ Championship ladder|team=Mystics}}</code> to the [[2011 Northern Mystics season]] article. |
| + | |||
| + | ===Example=== | ||
| + | The 2009 ANZ Championship ladder is created using the following code: | ||
| + | <pre align=left> | ||
| + | {{ANZ Championship ladder |year=2009 | ||
| + | |||
| + | |update=7 July 2009 |round=14 |game=5 | ||
| + | |||
| + | |Team1= Melbourne Vixens | ||
| + | |Info1= {{ANZC-LD | Pld=13 | W=12 | D=0 | L=1 | GF=769 | GA=614 | G%=125.24 | Pts=24}} | ||
| + | |||
| + | |Team2= Waikato Bay of Plenty Magic | ||
| + | |Info2= {{ANZC-LD | Pld=13 | W=11 | D=0 | L=2 | GF=673 | GA=562 | G%=119.75 | Pts=22}} | ||
| + | |||
| + | |Team3= Adelaide Thunderbirds | ||
| + | |Info3= {{ANZC-LD | Pld=13 | W=10 | D=0 | L=3 | GF=698 | GA=579 | G%=120.55 | Pts=20}} | ||
| + | |||
| + | |Team4= Southern Steel | ||
| + | |Info4= {{ANZC-LD | Pld=13 | W=8 | D=0 | L=5 | GF=662 | GA=645 | G%=102.64 | Pts=16}} | ||
| + | |||
| + | |Team5= Queensland Firebirds | ||
| + | |Info5= {{ANZC-LD | Pld=13 | W=8 | D=0 | L=5 | GF=700 | GA=690 | G%=101.45 | Pts=16}} | ||
| + | |||
| + | |Team6= Canterbury Tactix | ||
| + | |Info6= {{ANZC-LD | Pld=13 | W=5 | D=0 | L=8 | GF=639 | GA=662 | G%=96.53 | Pts=10}} | ||
| + | |||
| + | |Team7= West Coast Fever | ||
| + | |Info7= {{ANZC-LD | Pld=13 | W=5 | D=0 | L=8 | GF=666 | GA=735 | G%=90.61 | Pts=10}} | ||
| + | |||
| + | |Team8= Northern Mystics | ||
| + | |Info8= {{ANZC-LD | Pld=13 | W=3 | D=0 | L=10 | GF=642 | GA=727 | G%=88.31 | Pts=6}} | ||
| + | |||
| + | |Team9= New South Wales Swifts | ||
| + | |Info9= {{ANZC-LD | Pld=13 | W=2 | D=0 | L=11 | GF=709 | GA=748 | G%=94.79 | Pts=4}} | ||
| + | |||
| + | |Team10= Central Pulse | ||
| + | |Info10={{ANZC-LD | Pld=13 | W=1 | D=0 | L=12 | GF=594 | GA=790 | G%=75.19 | Pts=2}} | ||
| + | }} | ||
| + | </pre> | ||
| + | The code is copypasted into [[Template:2009 ANZ Championship ladder]], which produces the following table. | ||
| + | {{ANZ Championship ladder |year=2009 | ||
| + | |||
| + | |update=7 July 2009 |round=14 |game=5 | ||
| + | |||
| + | |Team1= Melbourne Vixens | ||
| + | |Info1= {{ANZC-LD | Pld=13 | W=12 | D=0 | L=1 | GF=769 | GA=614 | G%=125.24 | Pts=24}} | ||
| + | |||
| + | |Team2= Waikato Bay of Plenty Magic | ||
| + | |Info2= {{ANZC-LD | Pld=13 | W=11 | D=0 | L=2 | GF=673 | GA=562 | G%=119.75 | Pts=22}} | ||
| + | |||
| + | |Team3= Adelaide Thunderbirds | ||
| + | |Info3= {{ANZC-LD | Pld=13 | W=10 | D=0 | L=3 | GF=698 | GA=579 | G%=120.55 | Pts=20}} | ||
| + | |||
| + | |Team4= Southern Steel | ||
| + | |Info4= {{ANZC-LD | Pld=13 | W=8 | D=0 | L=5 | GF=662 | GA=645 | G%=102.64 | Pts=16}} | ||
| + | |||
| + | |Team5= Queensland Firebirds | ||
| + | |Info5= {{ANZC-LD | Pld=13 | W=8 | D=0 | L=5 | GF=700 | GA=690 | G%=101.45 | Pts=16}} | ||
| + | |||
| + | |Team6= Canterbury Tactix | ||
| + | |Info6= {{ANZC-LD | Pld=13 | W=5 | D=0 | L=8 | GF=639 | GA=662 | G%=96.53 | Pts=10}} | ||
| + | |||
| + | |Team7= West Coast Fever | ||
| + | |Info7= {{ANZC-LD | Pld=13 | W=5 | D=0 | L=8 | GF=666 | GA=735 | G%=90.61 | Pts=10}} | ||
| + | |||
| + | |Team8= Northern Mystics | ||
| + | |Info8= {{ANZC-LD | Pld=13 | W=3 | D=0 | L=10 | GF=642 | GA=727 | G%=88.31 | Pts=6}} | ||
| + | |||
| + | |Team9= New South Wales Swifts | ||
| + | |Info9= {{ANZC-LD | Pld=13 | W=2 | D=0 | L=11 | GF=709 | GA=748 | G%=94.79 | Pts=4}} | ||
| + | |||
| + | |Team10= Central Pulse | ||
| + | |Info10={{ANZC-LD | Pld=13 | W=1 | D=0 | L=12 | GF=594 | GA=790 | G%=75.19 | Pts=2}} | ||
| + | }} | ||
| + | |||
| + | The above table is added to the [[2009 ANZ Championship season]] article by transcluding <code><nowiki>{{2009 ANZ Championship ladder}}</nowiki></code>. | ||
| + | |||
| + | The same table is added to the [[2009 Canterbury Tactix season]] by transcluding <code><nowiki>{{2009 ANZ Championship ladder|team=Canterbury Tactix}}</nowiki></code>, which produces the same table but with a slightly different appearance: | ||
| + | {{ANZ Championship ladder |year=2009 |team=Canterbury Tactix | ||
| + | |||
| + | |update=7 July 2009 |round=14 |game=5 | ||
| + | |||
| + | |Team1= Melbourne Vixens | ||
| + | |Info1= {{ANZC-LD | Pld=13 | W=12 | D=0 | L=1 | GF=769 | GA=614 | G%=125.24 | Pts=24}} | ||
| + | |||
| + | |Team2= Waikato Bay of Plenty Magic | ||
| + | |Info2= {{ANZC-LD | Pld=13 | W=11 | D=0 | L=2 | GF=673 | GA=562 | G%=119.75 | Pts=22}} | ||
| + | |||
| + | |Team3= Adelaide Thunderbirds | ||
| + | |Info3= {{ANZC-LD | Pld=13 | W=10 | D=0 | L=3 | GF=698 | GA=579 | G%=120.55 | Pts=20}} | ||
| + | |||
| + | |Team4= Southern Steel | ||
| + | |Info4= {{ANZC-LD | Pld=13 | W=8 | D=0 | L=5 | GF=662 | GA=645 | G%=102.64 | Pts=16}} | ||
| + | |||
| + | |Team5= Queensland Firebirds | ||
| + | |Info5= {{ANZC-LD | Pld=13 | W=8 | D=0 | L=5 | GF=700 | GA=690 | G%=101.45 | Pts=16}} | ||
| + | |||
| + | |Team6= Canterbury Tactix | ||
| + | |Info6= {{ANZC-LD | Pld=13 | W=5 | D=0 | L=8 | GF=639 | GA=662 | G%=96.53 | Pts=10}} | ||
| + | |||
| + | |Team7= West Coast Fever | ||
| + | |Info7= {{ANZC-LD | Pld=13 | W=5 | D=0 | L=8 | GF=666 | GA=735 | G%=90.61 | Pts=10}} | ||
| + | |||
| + | |Team8= Northern Mystics | ||
| + | |Info8= {{ANZC-LD | Pld=13 | W=3 | D=0 | L=10 | GF=642 | GA=727 | G%=88.31 | Pts=6}} | ||
| + | |||
| + | |Team9= New South Wales Swifts | ||
| + | |Info9= {{ANZC-LD | Pld=13 | W=2 | D=0 | L=11 | GF=709 | GA=748 | G%=94.79 | Pts=4}} | ||
| + | |||
| + | |Team10= Central Pulse | ||
| + | |Info10={{ANZC-LD | Pld=13 | W=1 | D=0 | L=12 | GF=594 | GA=790 | G%=75.19 | Pts=2}} | ||
| + | }} | ||
| + | |||
| + | Changes to [[Template:2009 ANZ Championship ladder]] will automatically appear in the tables of both articles. | ||
<includeonly> | <includeonly> | ||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
[[Category:ANZ Championship templates]] | [[Category:ANZ Championship templates]] | ||
</includeonly> | </includeonly> | ||
Revision as of 12:16, 9 March 2010
| This is a documentation subpage for Template:ANZ Championship ladder. It contains usage information, categories and other content that is not part of the original template page. |
This series of templates is used to make competition ladders for each season of the ANZ Championship. They include:
- {{ANZ Championship ladder}}
- {{ANZC-LD}}.
{{ANZ Championship ladder}} is the primary template used. However, the table is reliant on the second template, {{ANZC-LD}}. Two templates are used so that each yearly competition ladder can be used on both the main season article (e.g., 2010 ANZ Championship season) and a team's season article (e.g., 2010 Queensland Firebirds season), but can also display differently in the different articles depending on what needs to be indicated.
Contents
Creating a ladder
To create a season competition ladder, copy the following code and paste it into the appropriate template page (e.g., Template:2010 ANZ Championship ladder):
{{ANZ Championship ladder |year=
|update= |round= |game=
|Team1=
|Info1= {{ANZC-LD | Pld= | W= | D= | L= | GF= | GA= | G%= | Pts=}}
|Team2=
|Info2= {{ANZC-LD | Pld= | W= | D= | L= | GF= | GA= | G%= | Pts=}}
|Team3=
|Info3= {{ANZC-LD | Pld= | W= | D= | L= | GF= | GA= | G%= | Pts=}}
|Team4=
|Info4= {{ANZC-LD | Pld= | W= | D= | L= | GF= | GA= | G%= | Pts=}}
|Team5=
|Info5= {{ANZC-LD | Pld= | W= | D= | L= | GF= | GA= | G%= | Pts=}}
|Team6=
|Info6= {{ANZC-LD | Pld= | W= | D= | L= | GF= | GA= | G%= | Pts=}}
|Team7=
|Info7= {{ANZC-LD | Pld= | W= | D= | L= | GF= | GA= | G%= | Pts=}}
|Team8=
|Info8= {{ANZC-LD | Pld= | W= | D= | L= | GF= | GA= | G%= | Pts=}}
|Team9=
|Info9= {{ANZC-LD | Pld= | W= | D= | L= | GF= | GA= | G%= | Pts=}}
|Team10=
|Info10={{ANZC-LD | Pld= | W= | D= | L= | GF= | GA= | G%= | Pts=}}
}}
Initially, only the year= parameter is mandatory. During the season, the Team#, Pld, W, D, L, GF, GA, G% and Pts parameters should be filled in, in accordance with competition results. The Team# parameters require either a long (e.g., West Coast Fever) or short (e.g., Fever) unlinked team name. Whichever name form is chosen, that same form must be used consistently throughout the ladder.
Adding a ladder to an article
Main season article
To add a season competition ladder to a main season article, simply transclude the ladder template into the article: e.g., copypaste {{2010 ANZ Championship ladder}} into 2010 ANZ Championship season. No further amendments are required.
Team season article
To add a season competition ladder to a team's season article, transclude the ladder template, and also specify an team= parameter (small "t" with no numbers): e.g., add {{2010 ANZ Championship ladder|team=Central Pulse}} to 2010 Central Pulse seaon. Whichever form of team name (long or short) is used in the ladder, the same form must be used when specifying the team in the team's season article: i.e., if short team names such as "Mystics" are used in Template:2011 ANZ Championship ladder, then add {{2011 ANZ Championship ladder|team=Mystics}} to the 2011 Northern Mystics season article.
Example
The 2009 ANZ Championship ladder is created using the following code:
{{ANZ Championship ladder |year=2009
|update=7 July 2009 |round=14 |game=5
|Team1= Melbourne Vixens
|Info1= {{ANZC-LD | Pld=13 | W=12 | D=0 | L=1 | GF=769 | GA=614 | G%=125.24 | Pts=24}}
|Team2= Waikato Bay of Plenty Magic
|Info2= {{ANZC-LD | Pld=13 | W=11 | D=0 | L=2 | GF=673 | GA=562 | G%=119.75 | Pts=22}}
|Team3= Adelaide Thunderbirds
|Info3= {{ANZC-LD | Pld=13 | W=10 | D=0 | L=3 | GF=698 | GA=579 | G%=120.55 | Pts=20}}
|Team4= Southern Steel
|Info4= {{ANZC-LD | Pld=13 | W=8 | D=0 | L=5 | GF=662 | GA=645 | G%=102.64 | Pts=16}}
|Team5= Queensland Firebirds
|Info5= {{ANZC-LD | Pld=13 | W=8 | D=0 | L=5 | GF=700 | GA=690 | G%=101.45 | Pts=16}}
|Team6= Canterbury Tactix
|Info6= {{ANZC-LD | Pld=13 | W=5 | D=0 | L=8 | GF=639 | GA=662 | G%=96.53 | Pts=10}}
|Team7= West Coast Fever
|Info7= {{ANZC-LD | Pld=13 | W=5 | D=0 | L=8 | GF=666 | GA=735 | G%=90.61 | Pts=10}}
|Team8= Northern Mystics
|Info8= {{ANZC-LD | Pld=13 | W=3 | D=0 | L=10 | GF=642 | GA=727 | G%=88.31 | Pts=6}}
|Team9= New South Wales Swifts
|Info9= {{ANZC-LD | Pld=13 | W=2 | D=0 | L=11 | GF=709 | GA=748 | G%=94.79 | Pts=4}}
|Team10= Central Pulse
|Info10={{ANZC-LD | Pld=13 | W=1 | D=0 | L=12 | GF=594 | GA=790 | G%=75.19 | Pts=2}}
}}
The code is copypasted into Template:2009 ANZ Championship ladder, which produces the following table.
2009 ANZ Championship ladder
| ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Pos | Team | Pld | W | L | B | GF | GA | Diff | G% | Pts |
| 1 | 13 | 12 | 1 | 769 | 614 | 125.24 | 24 | |||
| 2 | 13 | 11 | 2 | 673 | 562 | 119.75 | 22 | |||
| 3 | 13 | 10 | 3 | 698 | 579 | 120.55 | 20 | |||
| 4 | 13 | 8 | 5 | 662 | 645 | 102.64 | 16 | |||
| 5 | 13 | 8 | 5 | 700 | 690 | 101.45 | 16 | |||
| 6 | 13 | 5 | 8 | 639 | 662 | 96.53 | 10 | |||
| 7 | 13 | 5 | 8 | 666 | 735 | 90.61 | 10 | |||
| 8 | 13 | 3 | 10 | 642 | 727 | 88.31 | 6 | |||
| 9 | 13 | 2 | 11 | 709 | 748 | 94.79 | 4 | |||
| 10 | 13 | 1 | 12 | 594 | 790 | 75.19 | 2 | |||
| Updated on 7 July 2009 (Round 14, Game 5) | ||||||||||
| Table legend |
|---|
|
The above table is added to the 2009 ANZ Championship season article by transcluding {{2009 ANZ Championship ladder}}.
The same table is added to the 2009 Canterbury Tactix season by transcluding {{2009 ANZ Championship ladder|team=Canterbury Tactix}}, which produces the same table but with a slightly different appearance:
2009 ANZ Championship ladder
| ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Pos | Team | Pld | W | L | B | GF | GA | Diff | G% | Pts |
| 1 | 13 | 12 | 1 | 769 | 614 | 125.24 | 24 | |||
| 2 | 13 | 11 | 2 | 673 | 562 | 119.75 | 22 | |||
| 3 | 13 | 10 | 3 | 698 | 579 | 120.55 | 20 | |||
| 4 | 13 | 8 | 5 | 662 | 645 | 102.64 | 16 | |||
| 5 | 13 | 8 | 5 | 700 | 690 | 101.45 | 16 | |||
| 6 | 13 | 5 | 8 | 639 | 662 | 96.53 | 10 | |||
| 7 | 13 | 5 | 8 | 666 | 735 | 90.61 | 10 | |||
| 8 | 13 | 3 | 10 | 642 | 727 | 88.31 | 6 | |||
| 9 | 13 | 2 | 11 | 709 | 748 | 94.79 | 4 | |||
| 10 | 13 | 1 | 12 | 594 | 790 | 75.19 | 2 | |||
| Updated on 7 July 2009 (Round 14, Game 5) | ||||||||||
| Table legend |
|---|
|
Changes to Template:2009 ANZ Championship ladder will automatically appear in the tables of both articles.