Difference between revisions of "Template:Fb cl3 region"
Jump to navigation
Jump to search
Fractalzoom (talk | contribs) (Created page with "|- style="{{#if:{{{bc|}}}|background-color:{{{bc}}};}} {{#if:{{{border|}}}|border-bottom:3px solid {{{border}}};}}" {{#if:{{{p|}}}|{{!}}{{#if:{{{rows|}}}|rowspan={{{rows}}}{{!...") |
Fractalzoom (talk | contribs) m (→Usage) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
| 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|{{#expr:({{#expr:({{#expr:{{#if:{{{wpts|}}}|{{{wpts}}}|3}}*{{{w}}}+{{{d}}}{{#if:{{{dp|}}}|-{{{dp}}}}}{{#if:{{{bp|}}}|+{{{bp}}}}}}})/{{#if:{{{w|}}}|({{#expr:{{{w}}}+{{{d}}}+{{{l}}}}})}}}})round2}}|2}}}}{{#if:{{{aptsb|}}}|'''}}||{{#if:{{{aptstb|}}}|'''}}{{#if:{{{t|}}}|{{Decimals|{{#expr:({{#expr:({{#expr:{{#if:{{{wpts|}}}|{{{wpts}}}|3}}*{{{w}}}+{{{d}}}{{#if:{{{dp|}}}|-{{{dp}}}}}{{#if:{{{bp|}}}|+{{{bp}}}}}}})/{{#if:{{{t|}}}|{{{t}}}}}}})round2}}|2}}}}{{#if:{{{aptstb|}}}|'''}}<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|}}}|{{Decimals|{{#expr:({{#expr:({{#expr:{{#if:{{{wpts|}}}|{{{wpts}}}|3}}*{{{w}}}+{{{d}}}{{#if:{{{dp|}}}|-{{{dp}}}}}{{#if:{{{bp|}}}|+{{{bp}}}}}}})/{{#if:{{{w|}}}|({{#expr:{{{w}}}+{{{d}}}+{{{l}}}}})}}}})round2}}|2}}}}{{#if:{{{aptsb|}}}|'''}}||{{#if:{{{aptstb|}}}|'''}}{{#if:{{{t|}}}|{{Decimals|{{#expr:({{#expr:({{#expr:{{#if:{{{wpts|}}}|{{{wpts}}}|3}}*{{{w}}}+{{{d}}}{{#if:{{{dp|}}}|-{{{dp}}}}}{{#if:{{{bp|}}}|+{{{bp}}}}}}})/{{#if:{{{t|}}}|{{{t}}}}}}})round2}}|2}}}}{{#if:{{{aptstb|}}}|'''}}<noinclude> | ||
==Usage== | |||
:''See also: [[Template:Fb cl3 team]]'' | :''See also: [[Template:Fb cl3 team]]'' | ||
Template:Fb cl team (Football - classification - region)<br /><br /> | Template:Fb cl team (Football - classification - region)<br /><br /> | ||
This template is best for use with the regional versions of the [[Template:Fb cl3 header navbar|Fb cl3 header navbar]] and [[Template:Fb cl3 footer|Fb cl3 footer]] templates on statistics pages for intercontinental, international or inter-regional tournaments, e.g. [[ | This template is best for use with the regional versions of the [[Template:Fb cl3 header navbar|Fb cl3 header navbar]] and [[Template:Fb cl3 footer|Fb cl3 footer]] templates on statistics pages for intercontinental, international or inter-regional tournaments, e.g. [[2013 4chan Summer Cup statistics]].<br /><br /> | ||
<code><nowiki>{{Fb cl3 region|r= |t= |w= |d= |l= }}</nowiki></code><br /><br /> | <code><nowiki>{{Fb cl3 region|r= |t= |w= |d= |l= }}</nowiki></code><br /><br /> | ||
Line 83: | Line 81: | ||
|} | |} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 17:22, 4 December 2013
|- style=" "
| style="text-align: left" | ||||||||||||||||
Usage
- See also: Template:Fb cl3 team
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. 2013 4chan Summer Cup statistics.
{{Fb cl3 region|r= |t= |w= |d= |l= }}
Parameters
Par. | 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.
Par. | 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 average points per team in bold |