Difference between revisions of "Template:ANZ Championship ladder/doc"
blackwiki>Liveste (Updated documentation) |
blackwiki>Liveste (Updated documentation) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
| + | {| align=right | ||
| + | | __TOC__ | ||
| + | |} | ||
This series of templates is used to make competition ladders for each season of the [[ANZ Championship]]. They include: | This series of templates is used to make competition ladders for each season of the [[ANZ Championship]]. They include: | ||
* {{tl|ANZ Championship ladder}} | * {{tl|ANZ Championship ladder}} | ||
* {{tl|ANZC-LD}}. | * {{tl|ANZC-LD}}. | ||
| − | {{tl|ANZ Championship ladder}} is the primary template used. | + | {{tl|ANZ Championship ladder}} is the primary template used. Using this parent template allows a season ladder to be used on both the main season article (e.g., [[2010 ANZ Championship season]]) and on a team's season article (e.g., [[2010 Queensland Firebirds season]]), while also displaying differently in the two articles depending on what needs to be highlighted. Each season ladder also relies on a second template, {{tl|ANZC-LD}}: using this template makes filling in table data easier<!--until I can think of something less cumbersome-->. |
=== 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 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]]): | ||
<pre> | <pre> | ||
| − | {{ANZ Championship ladder |year= | + | {{ANZ Championship ladder |year= |team={{#if:{{{team|}}}|{{{team|}}}|}} |
|update= |round= |game= | |update= |round= |game= | ||
| Line 43: | Line 46: | ||
|Team10= | |Team10= | ||
|Info10={{ANZC-LD | Pld= | W= | L= | B= | GF= | GA= | Diff= | G%= | Pts=}} | |Info10={{ANZC-LD | Pld= | W= | L= | B= | GF= | GA= | Diff= | G%= | Pts=}} | ||
| − | }}</pre> | + | }}<noinclude> |
| − | Initially, only the <code>year=</code> parameter | + | [[Category:ANZ Championship templates|{{{PAGENAME}}}]]</noinclude></pre> |
| + | |||
| + | Initially, only the <code>year=</code> and <code>team=</code> parameters are mandatory: fill in the appropriate year, but leave the <code>team=</code> parameter as written. During the season, the <code>Team#</code>, <code>Pld</code>, <code>W</code>, <code>L</code>, <code>B</code>, <code>GF</code>, <code>GA</code>, <code>Diff</code>, <code>G%</code> and <code>Pts</code> parameters should be filled in, in accordance with competition results. The <code>Team#</code> parameters should be filled in using full, unlinked team names (e.g., <code>West Coast Fever</code>). | ||
===Adding a ladder to an article=== | ===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 {{tl|2010 ANZ Championship ladder}} into [[2010 ANZ Championship season]]. No further amendments are required. | |
| − | 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''': To add a season competition ladder to a team's season article, transclude the ladder template and also specify the <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]]. | |
| − | To add a season competition ladder to a team's season article, transclude the ladder template | ||
===Example=== | ===Example=== | ||
| − | The 2010 ANZ Championship ladder is created using the following code: | + | The 2010 ANZ Championship ladder (as of 28 March 2010) is created using the following code: |
<pre align=left> | <pre align=left> | ||
| − | {{ANZ Championship ladder |year=2010 | + | {{ANZ Championship ladder |year=2010 |team={{#if:{{{team|}}}|{{{team|}}}|}} |
| − | |update= | + | |update=28 March 2010 |round=2 |game=3 |
| − | |Team1= | + | |Team1= Melbourne Vixens |
| − | |Info1= {{ANZC-LD | Pld=2 | W=2 | L=0 | B=0 | GF= | + | |Info1= {{ANZC-LD | Pld=2 | W=2 | L=0 | B=0 | GF=101 | GA=86 | Diff=+15 | G%=117.44 | Pts=4}} |
| − | |Team2= | + | |Team2= Northern Mystics |
| − | |Info2= {{ANZC-LD | Pld= | + | |Info2= {{ANZC-LD | Pld=2 | W=2 | L=0 | B=0 | GF=116 | GA=102 | Diff=+14 | G%=113.73 | Pts=4}} |
| − | |Team3= | + | |Team3= New South Wales Swifts |
| − | |Info3= {{ANZC-LD | Pld= | + | |Info3= {{ANZC-LD | Pld=2 | W=2 | L=0 | B=0 | GF=95 | GA=85 | Diff=+10 | G%=111.76 | Pts=4}} |
| − | |Team4= | + | |Team4= Canterbury Tactix |
| − | |Info4= {{ANZC-LD | Pld=1 | W=1 | L=0 | B=0 | GF= | + | |Info4= {{ANZC-LD | Pld=1 | W=1 | L=0 | B=0 | GF=54 | GA=48 | Diff=+6 | G%=112.50 | Pts=2}} |
|Team5= Southern Steel | |Team5= Southern Steel | ||
| Line 78: | Line 81: | ||
|Info6= {{ANZC-LD | Pld=1 | W=0 | L=1 | B=0 | GF=44 | GA=46 | Diff=-2 | G%=95.65 | Pts=0}} | |Info6= {{ANZC-LD | Pld=1 | W=0 | L=1 | B=0 | GF=44 | GA=46 | Diff=-2 | G%=95.65 | Pts=0}} | ||
| − | |Team7= | + | |Team7= Queensland Firebirds |
| − | |Info7= {{ANZC-LD | Pld= | + | |Info7= {{ANZC-LD | Pld=2 | W=0 | L=2 | B=0 | GF=93 | GA=103 | Diff=-10 | G%=90.29 | Pts=0}} |
| − | |Team8= | + | |Team8= Adelaide Thunderbirds |
| − | |Info8= {{ANZC-LD | Pld= | + | |Info8= {{ANZC-LD | Pld=2 | W=0 | L=2 | B=0 | GF=90 | GA=100 | Diff=-10 | G%=90.00 | Pts=0}} |
|Team9= Central Pulse | |Team9= Central Pulse | ||
| Line 92: | Line 95: | ||
</pre> | </pre> | ||
The code is copypasted into [[Template:2010 ANZ Championship ladder]], which produces the following table. | The code is copypasted into [[Template:2010 ANZ Championship ladder]], which produces the following table. | ||
| − | {{ANZ Championship ladder |year=2010 | + | {{ANZ Championship ladder |year=2010 |team={{#if:{{{team|}}}|{{{team|}}}|}} |
| − | |update= | + | |update=28 March 2010 |round=2 |game=3 |
| − | |Team1= | + | |Team1= Melbourne Vixens |
| − | |Info1= {{ANZC-LD | Pld=2 | W=2 | L=0 | B=0 | GF= | + | |Info1= {{ANZC-LD | Pld=2 | W=2 | L=0 | B=0 | GF=101 | GA=86 | Diff=+15 | G%=117.44 | Pts=4}} |
| − | |Team2= | + | |Team2= Northern Mystics |
| − | |Info2= {{ANZC-LD | Pld= | + | |Info2= {{ANZC-LD | Pld=2 | W=2 | L=0 | B=0 | GF=116 | GA=102 | Diff=+14 | G%=113.73 | Pts=4}} |
| − | |Team3= | + | |Team3= New South Wales Swifts |
| − | |Info3= {{ANZC-LD | Pld= | + | |Info3= {{ANZC-LD | Pld=2 | W=2 | L=0 | B=0 | GF=95 | GA=85 | Diff=+10 | G%=111.76 | Pts=4}} |
| − | |Team4= | + | |Team4= Canterbury Tactix |
| − | |Info4= {{ANZC-LD | Pld=1 | W=1 | L=0 | B=0 | GF= | + | |Info4= {{ANZC-LD | Pld=1 | W=1 | L=0 | B=0 | GF=54 | GA=48 | Diff=+6 | G%=112.50 | Pts=2}} |
|Team5= Southern Steel | |Team5= Southern Steel | ||
| Line 114: | Line 117: | ||
|Info6= {{ANZC-LD | Pld=1 | W=0 | L=1 | B=0 | GF=44 | GA=46 | Diff=-2 | G%=95.65 | Pts=0}} | |Info6= {{ANZC-LD | Pld=1 | W=0 | L=1 | B=0 | GF=44 | GA=46 | Diff=-2 | G%=95.65 | Pts=0}} | ||
| − | |Team7= | + | |Team7= Queensland Firebirds |
| − | |Info7= {{ANZC-LD | Pld= | + | |Info7= {{ANZC-LD | Pld=2 | W=0 | L=2 | B=0 | GF=93 | GA=103 | Diff=-10 | G%=90.29 | Pts=0}} |
| − | |Team8= | + | |Team8= Adelaide Thunderbirds |
| − | |Info8= {{ANZC-LD | Pld= | + | |Info8= {{ANZC-LD | Pld=2 | W=0 | L=2 | B=0 | GF=90 | GA=100 | Diff=-10 | G%=90.00 | Pts=0}} |
|Team9= Central Pulse | |Team9= Central Pulse | ||
| Line 126: | Line 129: | ||
|Info10={{ANZC-LD | Pld=1 | W=0 | L=1 | B=0 | GF=40 | GA=48 | Diff=-8 | G%=83.33 | Pts=0}} | |Info10={{ANZC-LD | Pld=1 | W=0 | L=1 | B=0 | GF=40 | GA=48 | Diff=-8 | G%=83.33 | Pts=0}} | ||
}} | }} | ||
| − | |||
| − | The same table is added to the [[2010 Canterbury Tactix season]] article by transcluding <code><nowiki>{{2010 ANZ Championship ladder|team=Canterbury Tactix}}</nowiki></code>, which produces the same table but with a slightly different appearance: | + | * The above table is added to the [[2010 ANZ Championship season]] article by transcluding <code><nowiki>{{2010 ANZ Championship ladder}}</nowiki></code>. |
| + | * The same table is added to the [[2010 Canterbury Tactix season]] article by transcluding <code><nowiki>{{2010 ANZ Championship ladder|team=Canterbury Tactix}}</nowiki></code>, which produces the same table but with a slightly different appearance: | ||
{{ANZ Championship ladder |year=2010 |team=Canterbury Tactix | {{ANZ Championship ladder |year=2010 |team=Canterbury Tactix | ||
| − | |update= | + | |update=28 March 2010 |round=2 |game=3 |
| − | |Team1= | + | |Team1= Melbourne Vixens |
| − | |Info1= {{ANZC-LD | Pld=2 | W=2 | L=0 | B=0 | GF= | + | |Info1= {{ANZC-LD | Pld=2 | W=2 | L=0 | B=0 | GF=101 | GA=86 | Diff=+15 | G%=117.44 | Pts=4}} |
| − | |Team2= | + | |Team2= Northern Mystics |
| − | |Info2= {{ANZC-LD | Pld= | + | |Info2= {{ANZC-LD | Pld=2 | W=2 | L=0 | B=0 | GF=116 | GA=102 | Diff=+14 | G%=113.73 | Pts=4}} |
| − | |Team3= | + | |Team3= New South Wales Swifts |
| − | |Info3= {{ANZC-LD | Pld= | + | |Info3= {{ANZC-LD | Pld=2 | W=2 | L=0 | B=0 | GF=95 | GA=85 | Diff=+10 | G%=111.76 | Pts=4}} |
| − | |Team4= | + | |Team4= Canterbury Tactix |
| − | |Info4= {{ANZC-LD | Pld=1 | W=1 | L=0 | B=0 | GF= | + | |Info4= {{ANZC-LD | Pld=1 | W=1 | L=0 | B=0 | GF=54 | GA=48 | Diff=+6 | G%=112.50 | Pts=2}} |
|Team5= Southern Steel | |Team5= Southern Steel | ||
| Line 151: | Line 154: | ||
|Info6= {{ANZC-LD | Pld=1 | W=0 | L=1 | B=0 | GF=44 | GA=46 | Diff=-2 | G%=95.65 | Pts=0}} | |Info6= {{ANZC-LD | Pld=1 | W=0 | L=1 | B=0 | GF=44 | GA=46 | Diff=-2 | G%=95.65 | Pts=0}} | ||
| − | |Team7= | + | |Team7= Queensland Firebirds |
| − | |Info7= {{ANZC-LD | Pld= | + | |Info7= {{ANZC-LD | Pld=2 | W=0 | L=2 | B=0 | GF=93 | GA=103 | Diff=-10 | G%=90.29 | Pts=0}} |
| − | |Team8= | + | |Team8= Adelaide Thunderbirds |
| − | |Info8= {{ANZC-LD | Pld= | + | |Info8= {{ANZC-LD | Pld=2 | W=0 | L=2 | B=0 | GF=90 | GA=100 | Diff=-10 | G%=90.00 | Pts=0}} |
|Team9= Central Pulse | |Team9= Central Pulse | ||
| Line 163: | Line 166: | ||
|Info10={{ANZC-LD | Pld=1 | W=0 | L=1 | B=0 | GF=40 | GA=48 | Diff=-8 | G%=83.33 | Pts=0}} | |Info10={{ANZC-LD | Pld=1 | W=0 | L=1 | B=0 | GF=40 | GA=48 | Diff=-8 | G%=83.33 | Pts=0}} | ||
}} | }} | ||
| + | |||
Changes to [[Template:2010 ANZ Championship ladder]] will automatically appear in the tables of both articles. | Changes to [[Template:2010 ANZ Championship ladder]] will automatically appear in the tables of both articles. | ||
<includeonly> | <includeonly> | ||
Revision as of 13:50, 28 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. Using this parent template allows a season ladder to be used on both the main season article (e.g., 2010 ANZ Championship season) and on a team's season article (e.g., 2010 Queensland Firebirds season), while also displaying differently in the two articles depending on what needs to be highlighted. Each season ladder also relies on a second template, {{ANZC-LD}}: using this template makes filling in table data easier.
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= |team={{#if:{{{team|}}}|{{{team|}}}|}}
|update= |round= |game=
|Team1=
|Info1= {{ANZC-LD | Pld= | W= | L= | B= | GF= | GA= | Diff= | G%= | Pts=}}
|Team2=
|Info2= {{ANZC-LD | Pld= | W= | L= | B= | GF= | GA= | Diff= | G%= | Pts=}}
|Team3=
|Info3= {{ANZC-LD | Pld= | W= | L= | B= | GF= | GA= | Diff= | G%= | Pts=}}
|Team4=
|Info4= {{ANZC-LD | Pld= | W= | L= | B= | GF= | GA= | Diff= | G%= | Pts=}}
|Team5=
|Info5= {{ANZC-LD | Pld= | W= | L= | B= | GF= | GA= | Diff= | G%= | Pts=}}
|Team6=
|Info6= {{ANZC-LD | Pld= | W= | L= | B= | GF= | GA= | Diff= | G%= | Pts=}}
|Team7=
|Info7= {{ANZC-LD | Pld= | W= | L= | B= | GF= | GA= | Diff= | G%= | Pts=}}
|Team8=
|Info8= {{ANZC-LD | Pld= | W= | L= | B= | GF= | GA= | Diff= | G%= | Pts=}}
|Team9=
|Info9= {{ANZC-LD | Pld= | W= | L= | B= | GF= | GA= | Diff= | G%= | Pts=}}
|Team10=
|Info10={{ANZC-LD | Pld= | W= | L= | B= | GF= | GA= | Diff= | G%= | Pts=}}
}}<noinclude>
[[Category:ANZ Championship templates|{{{PAGENAME}}}]]</noinclude>
Initially, only the year= and team= parameters are mandatory: fill in the appropriate year, but leave the team= parameter as written. During the season, the Team#, Pld, W, L, B, GF, GA, Diff, G% and Pts parameters should be filled in, in accordance with competition results. The Team# parameters should be filled in using full, unlinked team names (e.g., West Coast Fever).
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 the
team=parameter (small "t" with no numbers): e.g., add{{2010 ANZ Championship ladder|team=Central Pulse}}to 2010 Central Pulse seaon.
Example
The 2010 ANZ Championship ladder (as of 28 March 2010) is created using the following code:
{{ANZ Championship ladder |year=2010 |team={{#if:{{{team|}}}|{{{team|}}}|}}
|update=28 March 2010 |round=2 |game=3
|Team1= Melbourne Vixens
|Info1= {{ANZC-LD | Pld=2 | W=2 | L=0 | B=0 | GF=101 | GA=86 | Diff=+15 | G%=117.44 | Pts=4}}
|Team2= Northern Mystics
|Info2= {{ANZC-LD | Pld=2 | W=2 | L=0 | B=0 | GF=116 | GA=102 | Diff=+14 | G%=113.73 | Pts=4}}
|Team3= New South Wales Swifts
|Info3= {{ANZC-LD | Pld=2 | W=2 | L=0 | B=0 | GF=95 | GA=85 | Diff=+10 | G%=111.76 | Pts=4}}
|Team4= Canterbury Tactix
|Info4= {{ANZC-LD | Pld=1 | W=1 | L=0 | B=0 | GF=54 | GA=48 | Diff=+6 | G%=112.50 | Pts=2}}
|Team5= Southern Steel
|Info5= {{ANZC-LD | Pld=1 | W=1 | L=0 | B=0 | GF=46 | GA=44 | Diff=+2 | G%=104.55 | Pts=2}}
|Team6= West Coast Fever
|Info6= {{ANZC-LD | Pld=1 | W=0 | L=1 | B=0 | GF=44 | GA=46 | Diff=-2 | G%=95.65 | Pts=0}}
|Team7= Queensland Firebirds
|Info7= {{ANZC-LD | Pld=2 | W=0 | L=2 | B=0 | GF=93 | GA=103 | Diff=-10 | G%=90.29 | Pts=0}}
|Team8= Adelaide Thunderbirds
|Info8= {{ANZC-LD | Pld=2 | W=0 | L=2 | B=0 | GF=90 | GA=100 | Diff=-10 | G%=90.00 | Pts=0}}
|Team9= Central Pulse
|Info9= {{ANZC-LD | Pld=2 | W=0 | L=2 | B=0 | GF=98 | GA=115 | Diff=-17 | G%=85.22 | Pts=0}}
|Team10=Waikato Bay of Plenty Magic
|Info10={{ANZC-LD | Pld=1 | W=0 | L=1 | B=0 | GF=40 | GA=48 | Diff=-8 | G%=83.33 | Pts=0}}
}}
The code is copypasted into Template:2010 ANZ Championship ladder, which produces the following table.
2010 ANZ Championship ladder
| ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Pos | Team | Pld | W | L | B | GF | GA | Diff | G% | Pts |
| 1 | 2 | 2 | 0 | 0 | 101 | 86 | +15 | 117.44 | 4 | |
| 2 | 2 | 2 | 0 | 0 | 116 | 102 | +14 | 113.73 | 4 | |
| 3 | 2 | 2 | 0 | 0 | 95 | 85 | +10 | 111.76 | 4 | |
| 4 | 1 | 1 | 0 | 0 | 54 | 48 | +6 | 112.50 | 2 | |
| 5 | 1 | 1 | 0 | 0 | 46 | 44 | +2 | 104.55 | 2 | |
| 6 | 1 | 0 | 1 | 0 | 44 | 46 | -2 | 95.65 | 0 | |
| 7 | 2 | 0 | 2 | 0 | 93 | 103 | -10 | 90.29 | 0 | |
| 8 | 2 | 0 | 2 | 0 | 90 | 100 | -10 | 90.00 | 0 | |
| 9 | 2 | 0 | 2 | 0 | 98 | 115 | -17 | 85.22 | 0 | |
| 10 | 1 | 0 | 1 | 0 | 40 | 48 | -8 | 83.33 | 0 | |
| Updated on 28 March 2010 (Round 2, Game 3) | ||||||||||
| Table legend |
|---|
|
- The above table is added to the 2010 ANZ Championship season article by transcluding
{{2010 ANZ Championship ladder}}. - The same table is added to the 2010 Canterbury Tactix season article by transcluding
{{2010 ANZ Championship ladder|team=Canterbury Tactix}}, which produces the same table but with a slightly different appearance:
2010 ANZ Championship ladder
| ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Pos | Team | Pld | W | L | B | GF | GA | Diff | G% | Pts |
| 1 | 2 | 2 | 0 | 0 | 101 | 86 | +15 | 117.44 | 4 | |
| 2 | 2 | 2 | 0 | 0 | 116 | 102 | +14 | 113.73 | 4 | |
| 3 | 2 | 2 | 0 | 0 | 95 | 85 | +10 | 111.76 | 4 | |
| 4 | 1 | 1 | 0 | 0 | 54 | 48 | +6 | 112.50 | 2 | |
| 5 | 1 | 1 | 0 | 0 | 46 | 44 | +2 | 104.55 | 2 | |
| 6 | 1 | 0 | 1 | 0 | 44 | 46 | -2 | 95.65 | 0 | |
| 7 | 2 | 0 | 2 | 0 | 93 | 103 | -10 | 90.29 | 0 | |
| 8 | 2 | 0 | 2 | 0 | 90 | 100 | -10 | 90.00 | 0 | |
| 9 | 2 | 0 | 2 | 0 | 98 | 115 | -17 | 85.22 | 0 | |
| 10 | 1 | 0 | 1 | 0 | 40 | 48 | -8 | 83.33 | 0 | |
| Updated on 28 March 2010 (Round 2, Game 3) | ||||||||||
| Table legend |
|---|
|
Changes to Template:2010 ANZ Championship ladder will automatically appear in the tables of both articles.