Difference between revisions of "Template:Fb cl3 team"
Jump to navigation
Jump to search
imported>Davykamanzi (Adding champion parameter (c)) |
imported>Jdaloner m ("{{Decimals" --> "{{Round") |
||
| Line 8: | Line 8: | ||
| {{#if:{{{lb|}}}|'''}}{{{l|}}}{{#if:{{{lb|}}}|'''}} | | {{#if:{{{lb|}}}|'''}}{{{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:{{{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}}}|{{ | + | {{#ifeq:{{Yesno|{{{no-extras|no}}}}}|yes||{{!}} {{#if:{{{aptsb|}}}|'''}}{{#if:{{{w|}}}|{{#ifexpr:{{{w}}}+{{{d}}}+{{{l}}}|{{Round|({{#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|}}}|'''}} {{#ifeq:{{Yesno|{{{no-extras|no}}}}}|yes||{{!!}} {{#if:{{{agfb|}}}|'''}}{{#if:{{{gf|}}}|{{#ifexpr:{{{w}}}+{{{d}}}+{{{l}}}|{{ | + | | {{#if:{{{gfb|}}}|'''}}{{{gf|}}}{{#if:{{{gfb|}}}|'''}} {{#ifeq:{{Yesno|{{{no-extras|no}}}}}|yes||{{!!}} {{#if:{{{agfb|}}}|'''}}{{#if:{{{gf|}}}|{{#ifexpr:{{{w}}}+{{{d}}}+{{{l}}}|{{Round|{{{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}}}|{{ | + | | {{#if:{{{gab|}}}|'''}}{{{ga|}}}{{#if:{{{gab|}}}|'''}}{{#ifeq:{{Yesno|{{{no-extras|no}}}}}|yes||{{!!}} {{#if:{{{agab|}}}|'''}}{{#if:{{{ga|}}}|{{#ifexpr:{{{w}}}+{{{d}}}+{{{l}}}|{{Round|{{{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}}}|{{ | + | | {{#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}}}|{{Round|({{{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}}}|{{ | + | {{!}} {{#if:{{{acsb|}}}|'''}}{{#if:{{{cs|}}}|{{#ifexpr:{{{w}}}+{{{d}}}+{{{l}}}|{{Round|{{{cs}}}/({{{w}}}+{{{d}}}+{{{l}}})|2}}|0.00}}}}{{#if:{{{acsb|}}}|'''}} |
{{!}} {{#if:{{{ycb|}}}|'''}}{{{yc|}}}{{#if:{{{ycb|}}}|'''}} | {{!}} {{#if:{{{ycb|}}}|'''}}{{{yc|}}}{{#if:{{{ycb|}}}|'''}} | ||
| − | {{!}} {{#if:{{{aycb|}}}|'''}}{{#if:{{{yc|}}}|{{#ifexpr:{{{w}}}+{{{d}}}+{{{l}}}|{{ | + | {{!}} {{#if:{{{aycb|}}}|'''}}{{#if:{{{yc|}}}|{{#ifexpr:{{{w}}}+{{{d}}}+{{{l}}}|{{Round|{{{yc}}}/({{{w}}}+{{{d}}}+{{{l}}})|2}}|0.00}}}}{{#if:{{{aycb|}}}|'''}} |
{{!}} {{#if:{{{rcb|}}}|'''}}{{{rc|}}}{{#if:{{{rcb|}}}|'''}} | {{!}} {{#if:{{{rcb|}}}|'''}}{{{rc|}}}{{#if:{{{rcb|}}}|'''}} | ||
| − | {{!}} {{#if:{{{arcb|}}}|'''}}{{#if:{{{rc|}}}|{{#ifexpr:{{{w}}}+{{{d}}}+{{{l}}}|{{ | + | {{!}} {{#if:{{{arcb|}}}|'''}}{{#if:{{{rc|}}}|{{#ifexpr:{{{w}}}+{{{d}}}+{{{l}}}|{{Round|{{{rc}}}/({{{w}}}+{{{d}}}+{{{l}}})|2}}|0.00}}}}{{#if:{{{arcb|}}}|'''}} }}<noinclude>{{documentation}}</noinclude> |
Latest revision as of 17:16, 11 September 2020
|- 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. |