Difference between revisions of "Template:Fb rs"
imported>Digirami |
imported>Primefac m (Changed protection level for "Template:Fb rs": high-risk template with 2000+ transclusions ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))) |
||
| (34 intermediate revisions by 11 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {| class="wikitable" style="text-align: center;" | + | <noinclude><div style="overflow: auto"> |
| + | </noinclude>{| class="wikitable" style="text-align: center;" | ||
!colspan=8 style="border-right:3px solid grey;"|Overall!!colspan=6 style="border-right:3px solid grey;"|Home!!colspan=6|Away | !colspan=8 style="border-right:3px solid grey;"|Overall!!colspan=6 style="border-right:3px solid grey;"|Home!!colspan=6|Away | ||
|- | |- | ||
| − | !width= | + | !width=28|<abbr title="Played">Pld</abbr>!!width=28|<abbr title="Wins">W</abbr>!!width=28|<abbr title="Draws">D</abbr>!!width=28|<abbr title="Losses">L</abbr>!!width=28|<abbr title="Goals for">GF</abbr>!!width=28|<abbr title="Goals against">GA</abbr>!!width=28|<abbr title="Goal difference">GD</abbr>!!width=28 style="border-right:3px solid grey;"|<abbr title="Points">Pts</abbr>!!width=28|<abbr title="Wins">W</abbr>!!width=28|<abbr title="Draws">D</abbr>!!width=28|<abbr title="Losses">L</abbr>!!width=28|<abbr title="Goals for">GF</abbr>!!width=28|<abbr title="Goals against">GA</abbr>!!width=28 style="border-right:3px solid grey;"|<abbr title="Goal difference">GD</abbr>!!width=28|<abbr title="Wins">W</abbr>!!width=28|<abbr title="Draws">D</abbr>!!width=28|<abbr title="Losses">L</abbr>!!width=28|<abbr title="Goals for">GF</abbr>!!width=28|<abbr title="Goals against">GA</abbr>!!width=28|<abbr title="Goal difference">GD</abbr> |
|- | |- | ||
| − | |{{#expr:{{{hw}}}+{{{aw}}}+{{{hd}}}+{{{ad}}}+{{{hl}}}+{{{al}}}}} | + | |<includeonly>{{#expr:</includeonly>{{{hw}}}+{{{aw}}}+{{{hd}}}+{{{ad}}}+{{{hl}}}+{{{al}}}<includeonly>}}</includeonly> |
| − | |{{#expr:{{{hw}}}+{{{aw}}}}} | + | |<includeonly>{{#expr:</includeonly>{{{hw}}}+{{{aw}}}<includeonly>}}</includeonly> |
| − | |{{#expr:{{{hd}}}+{{{ad}}}}} | + | |<includeonly>{{#expr:</includeonly>{{{hd}}}+{{{ad}}}<includeonly>}}</includeonly> |
| − | |{{#expr:{{{hl}}}+{{{al}}}}} | + | |<includeonly>{{#expr:</includeonly>{{{hl}}}+{{{al}}}<includeonly>}}</includeonly> |
| − | |{{#expr:{{{hgf}}}+{{{agf}}}}} | + | |<includeonly>{{#expr:</includeonly>{{{hgf}}}+{{{agf}}}<includeonly>}}</includeonly> |
| − | |{{#expr:{{{hga}}}+{{{aga}}}}} | + | |<includeonly>{{#expr:</includeonly>{{{hga}}}+{{{aga}}}<includeonly>}}</includeonly> |
| − | |{{ | + | |<includeonly>{{Fb gd|{{#expr:{{{hgf}}}+{{{agf}}}}}|{{#expr:{{{hga}}}+{{{aga}}}}}}}</includeonly> |
| − | |width=30 style="border-right:3px solid grey;" | {{#expr:3*({{{hw}}}+{{{aw}}})+{{{hd}}}+{{{ad}}}{{#if:{{{dp|}}}|-{{{dp}}}}}{{#if:{{{bp|}}}|+{{{bp}}}}}}}{{#if:{{{pn|}}}|<sup>{{{pn}}}</sup>}} | + | |width=30 style="border-right:3px solid grey;" | <includeonly>{{#expr:{{#if:{{{wp|}}}|{{{wp}}}|3}}*({{{hw}}}+{{{aw}}})+{{{hd}}}+{{{ad}}}{{#if:{{{dp|}}}|-{{{dp}}}}}{{#if:{{{bp|}}}|+{{{bp}}}}}}}{{#if:{{{pn|}}}|<sup>{{{pn}}}</sup>}}</includeonly> |
|{{{hw}}} | |{{{hw}}} | ||
|{{{hd}}} | |{{{hd}}} | ||
| Line 21: | Line 22: | ||
|{{{hgf}}} | |{{{hgf}}} | ||
|{{{hga}}} | |{{{hga}}} | ||
| − | |width=30 style="border-right:3px solid grey;"|{{Fb gd|{{{hgf}}}|{{{hga}}}}} | + | |width=30 style="border-right:3px solid grey;"|<includeonly>{{Fb gd|{{{hgf}}}|{{{hga}}}}}</includeonly> |
|{{{aw}}} | |{{{aw}}} | ||
|{{{ad}}} | |{{{ad}}} | ||
| Line 27: | Line 28: | ||
|{{{agf}}} | |{{{agf}}} | ||
|{{{aga}}} | |{{{aga}}} | ||
| − | |{{Fb gd|{{{agf}}}|{{{aga}}}}} | + | |<includeonly>{{Fb gd|{{{agf}}}|{{{aga}}}}}</includeonly> |
|}<!-- | |}<!-- | ||
--><noinclude> | --><noinclude> | ||
| − | {{ | + | </div> |
| + | {{documentation}} | ||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
| + | |||
| + | == TemplateData == | ||
| + | {{TemplateData header}} | ||
| + | <templatedata> | ||
| + | { | ||
| + | "description": "Football result summary", | ||
| + | "params": { | ||
| + | "hw": { | ||
| + | "label": "Home wins", | ||
| + | "type": "number", | ||
| + | "required": true, | ||
| + | "suggested": true, | ||
| + | "deprecated": false, | ||
| + | "description": "Number of wins at home" | ||
| + | }, | ||
| + | "hd": { | ||
| + | "label": "Home draws", | ||
| + | "type": "number", | ||
| + | "required": true, | ||
| + | "suggested": true, | ||
| + | "deprecated": false, | ||
| + | "description": "Number of draws at home" | ||
| + | }, | ||
| + | "hl": { | ||
| + | "label": "Home losses", | ||
| + | "type": "number", | ||
| + | "required": true, | ||
| + | "suggested": true, | ||
| + | "deprecated": false, | ||
| + | "description": "Number of losses at home" | ||
| + | }, | ||
| + | "hgf": { | ||
| + | "label": "Home goals for", | ||
| + | "type": "number", | ||
| + | "required": true, | ||
| + | "suggested": true, | ||
| + | "deprecated": false, | ||
| + | "description": "Goals scored for at home" | ||
| + | }, | ||
| + | "hga": { | ||
| + | "label": "Home goals against", | ||
| + | "type": "number", | ||
| + | "required": true, | ||
| + | "suggested": true, | ||
| + | "deprecated": false, | ||
| + | "description": "Goals scored against at home" | ||
| + | }, | ||
| + | "aw": { | ||
| + | "label": "Away wins", | ||
| + | "type": "number", | ||
| + | "required": true, | ||
| + | "suggested": true, | ||
| + | "deprecated": false, | ||
| + | "description": "Number of wins playing away" | ||
| + | }, | ||
| + | "ad": { | ||
| + | "label": "Away draws", | ||
| + | "type": "number", | ||
| + | "required": true, | ||
| + | "suggested": true, | ||
| + | "deprecated": false, | ||
| + | "description": "Number of draws playing away" | ||
| + | }, | ||
| + | "al": { | ||
| + | "label": "Away losses", | ||
| + | "type": "number", | ||
| + | "required": true, | ||
| + | "suggested": true, | ||
| + | "deprecated": false, | ||
| + | "description": "Number of losses playing away" | ||
| + | }, | ||
| + | "agf": { | ||
| + | "label": "Away goals for", | ||
| + | "type": "number", | ||
| + | "required": true, | ||
| + | "suggested": true, | ||
| + | "deprecated": false, | ||
| + | "description": "Goals scored for playing away" | ||
| + | }, | ||
| + | "aga": { | ||
| + | "label": "Away goals against", | ||
| + | "type": "number", | ||
| + | "required": true, | ||
| + | "suggested": true, | ||
| + | "deprecated": false, | ||
| + | "description": "Goals scored against playing away" | ||
| + | }, | ||
| + | "dp": { | ||
| + | "label": "Deducted points", | ||
| + | "type": "number", | ||
| + | "required": false, | ||
| + | "suggested": true, | ||
| + | "deprecated": false, | ||
| + | "description": "Points deducted, leave blank if no deductions" | ||
| + | }, | ||
| + | "pn": { | ||
| + | "label": "Point note", | ||
| + | "type": "string", | ||
| + | "required": false, | ||
| + | "suggested": false, | ||
| + | "deprecated": false, | ||
| + | "description": "A note to put by points", | ||
| + | "example": "See below" | ||
| + | } | ||
| + | }, | ||
| + | "format": "inline" | ||
| + | } | ||
| + | </templatedata> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 17:02, 23 February 2018
| Overall | Home | Away | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Pld | W | D | L | GF | GA | GD | Pts | W | D | L | GF | GA | GD | W | D | L | GF | GA | GD |
| {{{hw}}}+{{{aw}}}+{{{hd}}}+{{{ad}}}+{{{hl}}}+{{{al}}} | {{{hw}}}+{{{aw}}} | {{{hd}}}+{{{ad}}} | {{{hl}}}+{{{al}}} | {{{hgf}}}+{{{agf}}} | {{{hga}}}+{{{aga}}} | {{{hw}}} | {{{hd}}} | {{{hl}}} | {{{hgf}}} | {{{hga}}} | {{{aw}}} | {{{ad}}} | {{{al}}} | {{{agf}}} | {{{aga}}} | ||||
Template:Fb rs (Football - result summary)
Parameters:
hw : home win
hd : home draw
hl : home loss
hgf : home goals for
hga : home goals against
aw : away win
ad : away draw
al : away loss
agf : away goals for
aga : away goals against
dp : deducted points
pn : point note
fr:Modèle:Fb rs
ka:თარგი:ფეხბურთის მოკლე შედეგი
| The above documentation is transcluded from Template:Fb rs/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. |
TemplateData
TemplateData for Fb rs
Football result summary
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Home wins | hw | Number of wins at home | Number | required |
| Home draws | hd | Number of draws at home | Number | required |
| Home losses | hl | Number of losses at home | Number | required |
| Home goals for | hgf | Goals scored for at home | Number | required |
| Home goals against | hga | Goals scored against at home | Number | required |
| Away wins | aw | Number of wins playing away | Number | required |
| Away draws | ad | Number of draws playing away | Number | required |
| Away losses | al | Number of losses playing away | Number | required |
| Away goals for | agf | Goals scored for playing away | Number | required |
| Away goals against | aga | Goals scored against playing away | Number | required |
| Deducted points | dp | Points deducted, leave blank if no deductions | Number | suggested |
| Point note | pn | A note to put by points
| String | optional |