Difference between revisions of "Template:A-LeagueDiscipline"
Jump to navigation
Jump to search
blackwiki>Timsdad (Fix) |
blackwiki>Squilibob (update - you can now have a table of between 8 and 12 teams) |
||
| Line 30: | Line 30: | ||
|- {{ #if:{{{T10|}}} | | style="display:none;"}} | |- {{ #if:{{{T10|}}} | | style="display:none;"}} | ||
|style="text-align:center;"|{{ALeague {{{T10|WP}}}}} || {{{T10Y|0}}} || {{{T10YYR|0}}} || {{{T10R|0}}} || {{#expr:{{{T10Y|0}}} + 2 * {{{T10YYR|0}}} + 3 * {{{T10R|0}}} }} | |style="text-align:center;"|{{ALeague {{{T10|WP}}}}} || {{{T10Y|0}}} || {{{T10YYR|0}}} || {{{T10R|0}}} || {{#expr:{{{T10Y|0}}} + 2 * {{{T10YYR|0}}} + 3 * {{{T10R|0}}} }} | ||
| + | |- {{ #if:{{{T11|}}} | | style="display:none;"}} | ||
| + | |style="text-align:center;"|{{ALeague {{{T11|MH}}}}} || {{{T11Y|0}}} || {{{T11YYR|0}}} || {{{T11R|0}}} || {{#expr:{{{T11Y|0}}} + 2 * {{{T11YYR|0}}} + 3 * {{{T11R|0}}} }} | ||
| + | |- {{ #if:{{{T12|}}} | | style="display:none;"}} | ||
| + | |style="text-align:center;"|{{ALeague {{{T12|SR}}}}} || {{{T12Y|0}}} || {{{T12YYR|0}}} || {{{T12R|0}}} || {{#expr:{{{T12Y|0}}} + 2 * {{{T12YYR|0}}} + 3 * {{{T12R|0}}} }} | ||
|- class="sortbottom" style="background:#eeeeee;" | |- class="sortbottom" style="background:#eeeeee;" | ||
| − | |style="text-align:center;"|'''Totals''' || '''{{#expr:{{{T1Y|0}}} + {{{T2Y|0}}} + {{{T3Y|0}}} + {{{T4Y|0}}} + {{{T5Y|0}}} + {{{T6Y|0}}} + {{{T7Y|0}}} + {{{T8Y|0}}} + {{{T9Y|0}}} + {{{T10Y|0}}}}}''' || '''{{#expr:{{{T1YYR|0}}} + {{{T2YYR|0}}} + {{{T3YYR|0}}} + {{{T4YYR|0}}} + {{{T5YYR|0}}} + {{{T6YYR|0}}} + {{{T7YYR|0}}} + {{{T8YYR|0}}} + {{{T9YYR|0}}} + {{{T10YYR|0}}}}}''' || '''{{#expr:{{{T1R|0}}} + {{{T2R|0}}} + {{{T3R|0}}} + {{{T4R|0}}} + {{{T5R|0}}} + {{{T6R|0}}} + {{{T7R|0}}} + {{{T8R|0}}} + {{{T9R|0}}} + {{{T10R|0}}}}}''' || | + | |style="text-align:center;"|'''Totals''' || '''{{#expr:{{{T1Y|0}}} + {{{T2Y|0}}} + {{{T3Y|0}}} + {{{T4Y|0}}} + {{{T5Y|0}}} + {{{T6Y|0}}} + {{{T7Y|0}}} + {{{T8Y|0}}} + {{{T9Y|0}}} + {{{T10Y|0}}}+ {{{T11Y|0}}}+ {{{T12Y|0}}}}}''' || '''{{#expr:{{{T1YYR|0}}} + {{{T2YYR|0}}} + {{{T3YYR|0}}} + {{{T4YYR|0}}} + {{{T5YYR|0}}} + {{{T6YYR|0}}} + {{{T7YYR|0}}} + {{{T8YYR|0}}} + {{{T9YYR|0}}} + {{{T10YYR|0}}} + {{{T11YYR|0}}} + {{{T12YYR|0}}}}}''' || '''{{#expr:{{{T1R|0}}} + {{{T2R|0}}} + {{{T3R|0}}} + {{{T4R|0}}} + {{{T5R|0}}} + {{{T6R|0}}} + {{{T7R|0}}} + {{{T8R|0}}} + {{{T9R|0}}} + {{{T10R|0}}} + {{{T11R|0}}} + {{{T12R|0}}}}}''' || |
|}<noinclude> | |}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 00:43, 6 February 2010
| 1 point | Yellow Card | |
| 2 points | Second Caution Red Card | |
| 3 points | Direct Red Card |
| Team | Points | |||
|---|---|---|---|---|
| Template:ALeague AU | 0 | 0 | 0 | 0 |
| Template:ALeague BR | 0 | 0 | 0 | 0 |
| Template:ALeague CCM | 0 | 0 | 0 | 0 |
| Template:ALeague GCU | 0 | 0 | 0 | 0 |
| Template:ALeague MV | 0 | 0 | 0 | 0 |
| Template:ALeague NUJ | 0 | 0 | 0 | 0 |
| Template:ALeague NQF | 0 | 0 | 0 | 0 |
| Template:ALeague PG | 0 | 0 | 0 | 0 |
| Totals | 0 | 0 | 0 |
Usage
Automates the Fair Play award calculation on A-League articles.
Example:
{{A-LeagueDiscipline|
T1=NUJ | T1Y = 44 | T1YYR = 0 | T1R = 0 |
T2=PG | T2Y = 34 | T2YYR = 1 | T2R = 3 |
T3=SFC | T3Y = 42 | T3YYR = 1 | T3R = 2 |
T4=BR | T4Y = 45 | T4YYR = 3 | T4R = 0 |
T5=WP | T5Y = 46 | T5YYR = 1 | T5R = 2 |
T6=AU | T6Y = 45 | T6YYR = 3 | T6R = 1 |
T7=MV | T7Y = 43 | T7YYR = 1 | T7R = 3 |
T8=CCM | T8Y = 44 | T8YYR = 3 | T8R = 4 |
T9=NQF | T9Y = 47 | T9YYR = 1 | T9R = 3 |
T10=GCU| T10Y= 52 | T10YYR= 3 | T10R= 4 |
}}
| The above documentation is transcluded from Template:A-LeagueDiscipline/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |