Difference between revisions of "Template:Bs a footer"

From blackwiki
Jump to navigation Jump to search
imported>Vasconia
imported>Vasconia
 
Line 1: Line 1:
|-class="sortbottom" bgcolor=#ADD8E6
+
|-class="sortbottom" style="background-color:#ADD8E6; font-weight:bold;"
 
|
 
|
| style="text-align:left;" |'''League total'''
+
| style="text-align:left;" | League total  
|{{#if:{{{s|}}}|'''{{formatnum:{{{s}}}}}}}'''
+
| {{formatnum:{{{s|}}}}}
|{{#if:{{{h|}}}|'''{{formatnum:{{{h}}}}}}}'''
+
| {{formatnum:{{{h|}}}}}
|{{#if:{{{l|}}}|'''{{formatnum:{{{l}}}}}}}'''
+
| {{formatnum:{{{l|}}}}}
|{{#if:{{{a|}}}|'''{{formatnum:{{{a}}}}}'''}}
 
 
|{{#iferror:{{#expr:1/{{{pr|}}}}}
 
|{{#iferror:{{#expr:1/{{{pr|}}}}}
   | style="text-align:center" {{!}} '''n/a'''
+
   | {{!}} {{#if:{{{a|}}}|{{formatnum:{{{a}}}}}}}  
  |{{#ifexpr:({{{a}}}/{{{pr}}})>1|<span style="display:none">{{#expr:{{{a}}}/{{{pr}}}-1}}</span>'''+{{#expr:trunc(({{{a}}}/{{{pr}}}-1)*100)}}.{{#expr:(trunc(({{{a}}}/{{{pr}}}-1)*1000)-(trunc(({{{a}}}/{{{pr}}}-1)*100))*10)}}%'''|{{#ifexpr:{{{a}}}/{{{pr}}}=1|<span style="display:none">0</span>'''–'''|<span style="display:none">-{{#expr:--{{{a}}}/{{{pr}}}}}</span>'''&minus;{{#expr:trunc((1-{{{a}}}/{{{pr}}})*100)}}.{{#expr:(trunc((1-{{{a}}}/{{{pr}}})*1000)-(trunc((1-{{{a}}}/{{{pr}}})*100))*10)}}%'''}}}}
+
{{!}} style="text-align:center" {{!}} n/a
}}{{#if:{{{nt|}}}|<sup>{{{nt}}}</sup>|<span style="visibility:hidden;color: transparent"><sup>†</sup></span>}}
+
  | {{change|{{{pr|}}}|{{{a|}}}|disp=row2|pre2=<b>|suf2=</b>|dec=1}}
|}
+
  }}{{#if:{{{nt|}}}|<sup>{{{nt}}}</sup>|<span style="visibility:hidden;color: transparent"><sup>†</sup></span>}}
<small><!--
+
|}{{refbegin}}
-->{{#if:{{{u|}}}|Updated to games played on {{{u}}}<br />}}<!--
+
{{#if:{{{u|}}}|Updated to games played on {{{u}}}<br />
-->Source: {{#if:{{{source|}}}|{{{source}}}|{{Citation needed|date={{#time:F Y}}}}}}</small><br /><!--
+
}}Source: {{#if:{{{source|}}}|{{{source}}}|{{Citation needed|date={{#time:F Y}}}}
-->{{#if:{{{notes|}}}|<small>'''Notes:'''<br /><!--
+
}}{{#if:{{{notes|}}}|<br />'''Notes:'''<br />{{{notes}}} }}
-->{{{notes}}}</small>}}<noinclude>
+
{{refend}}<noinclude>
{{Documentation}}
+
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 08:31, 29 April 2018

|-class="sortbottom" style="background-color:#ADD8E6; font-weight:bold;" | | style="text-align:left;" | League total | | | || | style="text-align:center" | n/a

|}

Source:[citation needed]

50px Template documentation[view] [edit] [history] [purge]

Template:Bs a footer (Basketball - attendance - footer)

Parameters:
s : total season attendance (whole league)
h : highest season attendance (whole league)
l : lowest season attendance (whole league)
a : average season attendance (whole league)
pr : previous season average attendance (whole league), to calculate increment
nt : a note for the season average attendance increment

u : Update date for data
source: Source for the data – this parameter is mandatory in order to assure Wikipedia:Verifiability
notes : all notes for the increment column