Difference between revisions of "Template:Fb cl3 team"
Jump to navigation
Jump to search
imported>Davykamanzi m (Actually that doesn't change anything; final edit) |
|||
| 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}}}{{!}}}}{{{p}}}|}} | {{#if:{{{p|}}}|{{!}}{{#if:{{{rows|}}}|rowspan={{{rows}}}{{!}}}}{{{p}}}|}} | ||
| − | | style="text-align: left" | {{#if:{{{nat|}}}|{{flagicon|{{{nat|}}}|{{{var|}}}}}}} {{#if:{{{ | + | | style="text-align: left" | {{#if:{{{nat|}}}|{{flagicon|{{{nat|}}}|{{{var|}}}}}}} {{#if:{{{t|}}}|{{{t|}}}}}{{#if:{{{relegated|}}}| '''(R)'''}}{{#if:{{{champion|}}}| '''(C)'''}}{{#if:{{{playoffwinner|}}}| '''(O)'''}}{{#if:{{{promoted|}}}| '''(P)'''}}{{#if:{{{qualified|}}}| '''(Q)'''}}{{#if:{{{tournamentqualified|}}}| '''(TQ)'''}}{{#if:{{{advances|}}}| '''(A)'''}}{{#if:{{{disqualified|}}}| '''(DQ)'''}}{{#if:{{{eliminated|}}}| '''(E)'''}} |
| − | {{#if:{{{ | + | |{{#if:{{{w|}}}|{{#expr:{{{w|}}}+{{{d|}}}+{{{l|}}}}}}} |
| − | + | |{{#if:{{{w|}}}|{{{w|}}}}} | |
| − | + | |{{#if:{{{d|}}}|{{{d|}}}}} | |
| − | + | |{{#if:{{{l|}}}|{{{l|}}}}} | |
| − | + | |{{#if:{{{gf|}}}|{{{gf|}}}}} | |
| − | + | |{{#if:{{{ga|}}}|{{{ga|}}}}}||{{#if:{{{gf|}}}{{{ga|}}}|{{#ifexpr:{{{gf|}}}-{{{ga|}}}>0|+{{#expr:{{{gf|}}}-{{{ga|}}}}}|{{#ifexpr:{{{gf|}}}-{{{ga}}}=0|0|−{{#expr:{{{ga|}}}-{{{gf|}}}}}}}}}}} | |
| − | + | |{{#if:{{{pn|}}}|{{0}}}}{{#if:{{{w|}}}|'''{{#expr:{{#if:{{{wpts|}}}|{{{wpts|}}}|3}}*{{{w|}}}+{{{d|}}}{{#if:{{{dp|}}}|−{{{dp|}}}}}{{#if:{{{bp|}}}|+{{{bp|}}}}}}}'''}}{{#if:{{{pn|}}}|<sup>'''{{{pn}}}'''</sup>}}<noinclude>{{documentation}}</noinclude> | |
| − | | {{#if:{{{ | ||
| − | | {{#if:{{{ | ||
| − | | | ||
| − | {{ | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Revision as of 02:42, 14 August 2015
|- 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. |