Difference between revisions of "Template:Fb cl3 team"
Jump to navigation
Jump to search
imported>Jackmcbarn (Undid revision 616398923 by Davykamanzi (talk): Don't make the whole template into an unreadable mess to fix a "glitch") |
imported>Jackmcbarn m (fix the glitch the right way) |
||
| Line 9: | Line 9: | ||
| {{#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:{{{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|}}}|'''}} | ||
{{#ifeq:{{Yesno|{{{no-extras|no}}}}}|yes||{{!}} {{#if:{{{aptsb|}}}|'''}}{{#if:{{{w|}}}|{{#ifexpr:{{{w}}}+{{{d}}}+{{{l}}}|{{Decimals|({{#if:{{{wpts|}}}|{{{wpts}}}|3}}*{{{w}}}+{{{d}}}{{#if:{{{dp|}}}|-{{{dp}}}}}{{#if:{{{bp|}}}|+{{{bp}}}}})/{{#if:{{{w|}}}|({{{w}}}+{{{d}}}+{{{l}}})}}|2}}|0.00}}}}{{#if:{{{aptsb|}}}|'''}}}} | {{#ifeq:{{Yesno|{{{no-extras|no}}}}}|yes||{{!}} {{#if:{{{aptsb|}}}|'''}}{{#if:{{{w|}}}|{{#ifexpr:{{{w}}}+{{{d}}}+{{{l}}}|{{Decimals|({{#if:{{{wpts|}}}|{{{wpts}}}|3}}*{{{w}}}+{{{d}}}{{#if:{{{dp|}}}|-{{{dp}}}}}{{#if:{{{bp|}}}|+{{{bp}}}}})/{{#if:{{{w|}}}|({{{w}}}+{{{d}}}+{{{l}}})}}|2}}|0.00}}}}{{#if:{{{aptsb|}}}|'''}}}} | ||
| − | | {{#if:{{{gfb|}}}|'''}}{{{gf|}}}{{#if:{{{gfb|}}}|'''}} | + | | {{#if:{{{gfb|}}}|'''}}{{{gf|}}}{{#if:{{{gfb|}}}|'''}}{{#ifeq:{{Yesno|{{{no-extras|no}}}}}|yes||{{!}} {{#if:{{{agfb|}}}|'''}}{{#if:{{{gf|}}}|{{#ifexpr:{{{w}}}+{{{d}}}+{{{l}}}|{{Decimals|{{{gf}}}/({{{w}}}+{{{d}}}+{{{l}}})|2}}|0.00}}}}{{#if:{{{agfb|}}}|'''}}}} |
| − | {{#ifeq:{{Yesno|{{{no-extras|no}}}}}|yes||{{!}} {{#if:{{{agfb|}}}|'''}}{{#if:{{{gf|}}}|{{#ifexpr:{{{w}}}+{{{d}}}+{{{l}}}|{{Decimals|{{{gf}}}/({{{w}}}+{{{d}}}+{{{l}}})|2}}|0.00}}}}{{#if:{{{agfb|}}}|'''}}}} | + | | {{#if:{{{gab|}}}|'''}}{{{ga|}}}{{#if:{{{gab|}}}|'''}}{{#ifeq:{{Yesno|{{{no-extras|no}}}}}|yes||{{!}} {{#if:{{{agab|}}}|'''}}{{#if:{{{ga|}}}|{{#ifexpr:{{{w}}}+{{{d}}}+{{{l}}}|{{Decimals|{{{ga}}}/({{{w}}}+{{{d}}}+{{{l}}})|2}}|0.00}}}}{{#if:{{{agab|}}}|'''}}}} |
| − | | {{#if:{{{gab|}}}|'''}}{{{ga|}}}{{#if:{{{gab|}}}|'''}} | + | | {{#if:{{{gdb|}}}|'''}}{{#if:{{{gf|}}}{{{ga|}}}|{{#ifexpr:{{{gf}}}-{{{ga}}}>0|+}}{{#expr:{{{gf}}}-{{{ga}}}}}}}{{#if:{{{gdb|}}}|'''}}{{#ifeq:{{Yesno|{{{no-extras|no}}}}}|yes||{{!}} {{#if:{{{agdb|}}}|'''}}{{#if:{{{gf|}}}{{{ga|}}}|{{#ifexpr:{{{w}}}+{{{d}}}+{{{l}}}|{{Decimals|({{{gf}}}-{{{ga}}})/({{{w}}}+{{{d}}}+{{{l}}})|2}}|0.00}}}}{{#if:{{{agdb|}}}|'''}} |
| − | {{#ifeq:{{Yesno|{{{no-extras|no}}}}}|yes||{{!}} {{#if:{{{agab|}}}|'''}}{{#if:{{{ga|}}}|{{#ifexpr:{{{w}}}+{{{d}}}+{{{l}}}|{{Decimals|{{{ga}}}/({{{w}}}+{{{d}}}+{{{l}}})|2}}|0.00}}}}{{#if:{{{agab|}}}|'''}}}} | ||
| − | | {{#if:{{{gdb|}}}|'''}}{{#if:{{{gf|}}}{{{ga|}}}|{{#ifexpr:{{{gf}}}-{{{ga}}}>0|+}}{{#expr:{{{gf}}}-{{{ga}}}}}}}{{#if:{{{gdb|}}}|'''}} | ||
| − | {{#ifeq:{{Yesno|{{{no-extras|no}}}}}|yes||{{!}} {{#if:{{{agdb|}}}|'''}}{{#if:{{{gf|}}}{{{ga|}}}|{{#ifexpr:{{{w}}}+{{{d}}}+{{{l}}}|{{Decimals|({{{gf}}}-{{{ga}}})/({{{w}}}+{{{d}}}+{{{l}}})|2}}|0.00}}}}{{#if:{{{agdb|}}}|'''}} | ||
{{!}} {{#if:{{{csb|}}}|'''}}{{{cs|}}}{{#if:{{{csb|}}}|'''}} | {{!}} {{#if:{{{csb|}}}|'''}}{{{cs|}}}{{#if:{{{csb|}}}|'''}} | ||
{{!}} {{#if:{{{acsb|}}}|'''}}{{#if:{{{cs|}}}|{{#ifexpr:{{{w}}}+{{{d}}}+{{{l}}}|{{Decimals|{{{cs}}}/({{{w}}}+{{{d}}}+{{{l}}})|2}}|0.00}}}}{{#if:{{{acsb|}}}|'''}} | {{!}} {{#if:{{{acsb|}}}|'''}}{{#if:{{{cs|}}}|{{#ifexpr:{{{w}}}+{{{d}}}+{{{l}}}|{{Decimals|{{{cs}}}/({{{w}}}+{{{d}}}+{{{l}}})|2}}|0.00}}}}{{#if:{{{acsb|}}}|'''}} | ||
Revision as of 16:46, 10 July 2014
|- style=" "
| style="text-align: left" |
| | | | | | | | | | | | | | | | |
|
Template:Fb cl team (Football - classification - team)
This template is best for use with the Fb cl3 header navbar and Fb cl3 footer templates on statistics pages, e.g. 2010 FIFA World Cup statistics.
{{Fb cl3 team|p= |gr= |h= |t= |w= |d= |l= |gf= |ga= |cs= |yc= |rc= }}
Parameters:
| Parameter | Explanation |
|---|---|
| bc | background color for the template |
| border | border color for the template (border appears at the bottom) |
| p | ranking of team; "p" must also be active in Fb cl3 header navbar and Fb cl3 footer |
| confed | team's confederation; "confed" must also be active in Fb cl3 header navbar and Fb cl3 footer |
| gr | team's group; "group" must also be active in Fb cl3 header navbar and Fb cl3 footer |
| rows | spans the "p" value by the given number of rows |
| t | name of team |
| h | when active, "t" is rendered in italics to denote the host nation(s) |
| w | total games won |
| d | total games drawn (tied) |
| l | total games lost |
| gf | total goals scored (goals for) |
| ga | total goals conceded (goals against) |
| cs | clean sheets |
| yc | yellow cards |
| rc | red and/or yellow-red cards |
| no-extras | when "yes" is typed in, the "cs", "yc" and "rc" values are removed; "no-extras" must also be active in Fb cl3 header navbar and Fb cl3 footer |
The following parameters enable the editor to render values in bold and are all optional.
| Parameter | Possible values | Explanation |
|---|---|---|
| pldb | y = yes; blank = no | 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 | |
| gfb | renders the "gf" value in bold | |
| agfb | renders the average goals scored in bold | |
| gab | renders the "ga" value in bold | |
| agab | renders the average goals conceded in bold | |
| gdb | renders the goal difference in bold | |
| agdb | renders the average goal difference in bold | |
| csb | renders the "cs" value in bold | |
| acsb | renders the average clean sheets in bold | |
| ycb | renders the "yc" value in bold | |
| aycb | renders the average yellow cards in bold | |
| rcb | renders the "rc" value in bold | |
| arcb | renders the average red cards in bold |
| The above documentation is transcluded from Template:Fb cl3 team/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |