Difference between revisions of "Template:Fb cl3 region"

From blackwiki
Jump to navigation Jump to search
imported>Johnuniq
(use new feature of Module:Decimals to suppress error; see Template talk:2018–19 NBA Northwest standings; this fixes a script error at 2018 FIFA World Cup statistics)
imported>Jdaloner
m ("{{Decimals" --> "{{Round")
 
Line 1: Line 1:
 
|- style="{{#if:{{{bc|}}}|background-color:{{{bc}}};}} {{#if:{{{border|}}}|border-bottom:3px solid {{{border}}};}}"
 
|- style="{{#if:{{{bc|}}}|background-color:{{{bc}}};}} {{#if:{{{border|}}}|border-bottom:3px solid {{{border}}};}}"
 
{{#if:{{{p|}}}|{{!}}{{#if:{{{rows|}}}|rowspan={{{rows}}}{{!}}}}{{#if:{{{p|}}}|{{{p}}}|}}}}
 
{{#if:{{{p|}}}|{{!}}{{#if:{{{rows|}}}|rowspan={{{rows}}}{{!}}}}{{#if:{{{p|}}}|{{{p}}}|}}}}
| style="text-align: left" | {{#if:{{{h|}}}|''|}}{{#if:{{{r|}}}|{{{r}}}}}{{#if:{{{h|}}}|''|}}||{{#if:{{{tb|}}}|'''}}{{#if:{{{t|}}}|{{{t}}}}}{{#if:{{{tb|}}}|'''}}||{{#if:{{{pldb|}}}|'''}}{{#if:{{{w|}}}|{{#expr:{{{w}}}+{{{d}}}+{{{l}}}}}}}{{#if:{{{pldb|}}}|'''}}||{{#if:{{{wb|}}}|'''}}{{#if:{{{w|}}}|{{{w}}}}}{{#if:{{{wb|}}}|'''}}||{{#if:{{{db|}}}|'''}}{{#if:{{{d|}}}|{{{d}}}}}{{#if:{{{db|}}}|'''}}||{{#if:{{{lb|}}}|'''}}{{#if:{{{l|}}}|{{{l}}}}}{{#if:{{{lb|}}}|'''}}||{{#if:{{{ptsb|}}}|'''}}{{#if:{{{pn|}}}|{{0}}}}{{#if:{{{w|}}}|{{#expr:{{#if:{{{wpts|}}}|{{{wpts}}}|3}}*{{{w}}}+{{{d}}}{{#if:{{{dp|}}}|-{{{dp}}}}}{{#if:{{{bp|}}}|+{{{bp}}}}}}}}}{{#if:{{{pn|}}}|<sup>'''{{{pn}}}'''</sup>}}{{#if:{{{ptsb|}}}|'''}}||{{#if:{{{aptsb|}}}|'''}}{{#if:{{{w|}}}|{{Decimals|(({{{wpts|3}}}*{{{w}}}+{{{d}}}-{{{dp|0}}}+{{{bp|0}}})/({{{w}}}+{{{d}}}+{{{l}}}))round2|2|error=0.00}}}}{{#if:{{{aptsb|}}}|'''}}||{{#if:{{{aptstb|}}}|'''}}{{#if:{{{t|}}}|{{Decimals|(({{{wpts|3}}}*{{{w}}}+{{{d}}}-{{{dp|0}}}+{{{bp|0}}})/{{{t|}}})round2|2|error=0.00}}}}{{#if:{{{aptstb|}}}|'''}}<noinclude>{{documentation}}</noinclude>
+
| style="text-align: left" | {{#if:{{{h|}}}|''|}}{{#if:{{{r|}}}|{{{r}}}}}{{#if:{{{h|}}}|''|}}||{{#if:{{{tb|}}}|'''}}{{#if:{{{t|}}}|{{{t}}}}}{{#if:{{{tb|}}}|'''}}||{{#if:{{{pldb|}}}|'''}}{{#if:{{{w|}}}|{{#expr:{{{w}}}+{{{d}}}+{{{l}}}}}}}{{#if:{{{pldb|}}}|'''}}||{{#if:{{{wb|}}}|'''}}{{#if:{{{w|}}}|{{{w}}}}}{{#if:{{{wb|}}}|'''}}||{{#if:{{{db|}}}|'''}}{{#if:{{{d|}}}|{{{d}}}}}{{#if:{{{db|}}}|'''}}||{{#if:{{{lb|}}}|'''}}{{#if:{{{l|}}}|{{{l}}}}}{{#if:{{{lb|}}}|'''}}||{{#if:{{{ptsb|}}}|'''}}{{#if:{{{pn|}}}|{{0}}}}{{#if:{{{w|}}}|{{#expr:{{#if:{{{wpts|}}}|{{{wpts}}}|3}}*{{{w}}}+{{{d}}}{{#if:{{{dp|}}}|-{{{dp}}}}}{{#if:{{{bp|}}}|+{{{bp}}}}}}}}}{{#if:{{{pn|}}}|<sup>'''{{{pn}}}'''</sup>}}{{#if:{{{ptsb|}}}|'''}}||{{#if:{{{aptsb|}}}|'''}}{{#if:{{{w|}}}|{{Round|(({{{wpts|3}}}*{{{w}}}+{{{d}}}-{{{dp|0}}}+{{{bp|0}}})/({{{w}}}+{{{d}}}+{{{l}}}))round2|2|error=0.00}}}}{{#if:{{{aptsb|}}}|'''}}||{{#if:{{{aptstb|}}}|'''}}{{#if:{{{t|}}}|{{Round|(({{{wpts|3}}}*{{{w}}}+{{{d}}}-{{{dp|0}}}+{{{bp|0}}})/{{{t|}}})round2|2|error=0.00}}}}{{#if:{{{aptstb|}}}|'''}}<noinclude>{{documentation}}</noinclude>

Latest revision as of 17:15, 11 September 2020

|- style=" "

| style="text-align: left" | ||||||||||||||||

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

Template:Fb cl team (Football - classification - region)

This template is best for use with the regional versions of the Fb cl3 header navbar and Fb cl3 footer templates on statistics pages for intercontinental, international or inter-regional tournaments, e.g. 2010 FIFA World Cup statistics.

{{Fb cl3 region|r= |t= |w= |d= |l= }}

Parameters:

Parameter Explanation
bc background color for the template
border border color for the template (border appears at the bottom)
p ranking of region; "p" must also be active in Fb cl3 header navbar and Fb cl3 footer
rows spans the "p" value by the given number of rows
r name of region
h when active, "r" is rendered in italics to denote the host region(s)
t number of teams from region
w total games won
d total games drawn (tied)
l total games lost

The following parameters enable the editor to render values in bold and are all optional.

Parameter Possible values Explanation
r y = yes; blank = no renders the "r" value in bold
t renders the "t" value in bold
pldb renders the "Pld" value in bold
wb renders the "w" value in bold
db renders the "d" value in bold
lb renders the "l" value in bold
ptsb renders the points accumulated in bold
aptsb renders the average points per game in bold
aptstb renders the points per team in bold