Difference between revisions of "Template:ISFL standings header"

From Sim Football Wiki
Jump to navigation Jump to search
m
m (fixed column widths for double digit W-L values)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{| class="wikitable" style="font-size:95%; text-align:center;"
 
{| class="wikitable" style="font-size:95%; text-align:center;"
 
|-
 
|-
! colspan="12" style="background-color:#fcc; text-align:center; vertical-align:middle"| [[{{{2}}}]]
+
! colspan="12" style="{{TeamPrimaryStyle|{{{2}}}}}; text-align:center; vertical-align:middle"| {{isfly|{{{1|}}}|nolink|s=yes}} {{{2|}}} standings
 
|-
 
|-
!width="150"| {{navbar|{{{1|}}} {{{2|}}} standings|plain=1}}
+
!width="200"| {{navbar|{{isfly|{{{1|}}}|nolink}} {{{2|}}} standings|plain=1}}
!width="25"| {{Abbr|W|Wins}}
+
!width="30"| {{Abbr|W|Wins}}
!width="25"| {{Abbr|L|Losses}}
+
!width="30"| {{Abbr|L|Losses}}
!width="25"| {{Abbr|T|Ties}}
+
!width="30"| {{Abbr|T|Ties}}
 
!width="30"| {{Abbr|PCT|Winning percentage}}
 
!width="30"| {{Abbr|PCT|Winning percentage}}
 
!width="30"| {{Abbr|PF|Points for (total points scored)}}
 
!width="30"| {{Abbr|PF|Points for (total points scored)}}
 
!width="30"| {{Abbr|PA|Points against (total points allowed)}}
 
!width="30"| {{Abbr|PA|Points against (total points allowed)}}
!width="35"| {{Abbr|Home|Win–loss record in home games}}
+
!width="40"| {{Abbr|Home|Win–loss record in home games}}
!width="35"| {{Abbr|Road|Win–loss record in road games}}
+
!width="40"| {{Abbr|Road|Win–loss record in road games}}
!width="30"| {{Abbr|Conf|Win–loss record within their conference}}
+
!width="40"| {{Abbr|Conf|Win–loss record within their conference}}
!width="30"| {{Abbr|Div|Win–loss record within their division}}
+
!width="40"| {{Abbr|Div|Win–loss record within their division}}
!width="30"| {{Abbr|Str|Current winning or losing streak}}
+
!width="40"| {{Abbr|Str|Current winning or losing streak}}
 +
<noinclude>
 +
|}
 +
==How to use==
 +
Use this template to initialise a standings table, with league colours applied automatically.
 +
 
 +
The two parameters required are the season, and the conference/division respectively. i.e. <nowiki>{{ISFL standings header|1|NSFC}}</nowiki> would produce
 +
 
 +
{{ISFL standings header|1|NSFC}}
 +
|}
 +
 
 +
==Use with other templates==
 +
The template is designed for use with the <nowiki>{{ISFL standings row}}</nowiki> template.
 +
 
 +
For example:
 +
 
 +
<pre>
 +
<nowiki>{{ISFL standings header|1|NSFC}}</nowiki>
 +
<nowiki>{{ISFL standings row|1|COL| 8| 6| 0|250|253|5-2-0|3-4-0|6-2-0|6-2-0|W1|seed=1|color=ccffcc}}</nowiki>
 +
<nowiki>{{ISFL standings row|1|YKW| 8| 6| 0|256|225|6-1-0|2-5-0|4-4-0|4-4-0|L1}}</nowiki>
 +
<nowiki>{{ISFL standings row|1|BAL| 4|10| 0|254|330|2-5-0|3-4-0|2-6-0|2-6-0|L5}}</nowiki>
 +
<nowiki>{{ISFL standings footer}}</nowiki>
 +
</pre>
 +
 
 +
The above wiki code would produce the table below
 +
 
 +
{{ISFL standings header|1|NSFC}}
 +
{{ISFL standings row|1|COL| 8| 6| 0|250|253|5-2-0|3-4-0|6-2-0|6-2-0|W1|seed=1|color=ccffcc}}
 +
{{ISFL standings row|1|YKW| 8| 6| 0|256|225|6-1-0|2-5-0|4-4-0|4-4-0|L1}}
 +
{{ISFL standings row|1|BAL| 4|10| 0|254|330|2-5-0|3-4-0|2-6-0|2-6-0|L5}}
 +
{{ISFL standings footer}}
 +
 
 +
</noinclude>

Latest revision as of 10:00, 9 February 2023

2016 (S) standings
W L T PCT PF PA Home Road Conf Div Str

How to use

Use this template to initialise a standings table, with league colours applied automatically.

The two parameters required are the season, and the conference/division respectively. i.e. {{ISFL standings header|1|NSFC}} would produce

2016 (S1) NSFC standings
W L T PCT PF PA Home Road Conf Div Str

Use with other templates

The template is designed for use with the {{ISFL standings row}} template.

For example:

{{ISFL standings header|1|NSFC}}
{{ISFL standings row|1|COL| 8| 6| 0|250|253|5-2-0|3-4-0|6-2-0|6-2-0|W1|seed=1|color=ccffcc}}
{{ISFL standings row|1|YKW| 8| 6| 0|256|225|6-1-0|2-5-0|4-4-0|4-4-0|L1}}
{{ISFL standings row|1|BAL| 4|10| 0|254|330|2-5-0|3-4-0|2-6-0|2-6-0|L5}}
{{ISFL standings footer}}

The above wiki code would produce the table below

2016 (S1) NSFC standings
W L T PCT PF PA Home Road Conf Div Str
(1) Colorado Yeti 8 6 0 .571 250 253 5-2-0 3-4-0 6-2-0 6-2-0 W1
Yellowknife Wraiths 8 6 0 .571 256 225 6-1-0 2-5-0 4-4-0 4-4-0 L1
Baltimore Hawks 4 10 0 .286 254 330 2-5-0 3-4-0 2-6-0 2-6-0 L5