Difference between revisions of "Template:Fb rs"

From blackwiki
Jump to navigation Jump to search
(Screen potential parser function errors due to missing parameters)
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)))
 
(32 intermediate revisions by 9 users not shown)
Line 5: Line 5:
  
 
|-
 
|-
!width=28|{{Tooltip|Pld|Played}}!!width=28|{{Tooltip|W|Wins}}!!width=28|{{Tooltip|D|Draws}}!!width=28|{{Tooltip|L|Losses}}!!width=28|{{Tooltip|GF|Goals for}}!!width=28|{{Tooltip|GA|Goals against}}!!width=28|{{Tooltip|GD|Goal difference}}!!width=28 style="border-right:3px solid grey;"|{{Tooltip|Pts|Points}}!!width=28|{{Tooltip|W|Wins}}!!width=28|{{Tooltip|D|Draws}}!!width=28|{{Tooltip|L|Losses}}!!width=28|{{Tooltip|GF|Goals for}}!!width=28|{{Tooltip|GA|Goals against}}!!width=28 style="border-right:3px solid grey;"|{{Tooltip|GD|Goal difference}}!!width=28|{{Tooltip|W|Wins}}!!width=28|{{Tooltip|D|Draws}}!!width=28|{{Tooltip|L|Losses}}!!width=28|{{Tooltip|GF|Goals for}}!!width=28|{{Tooltip|GA|Goals against}}!!width=28|{{Tooltip|GD|Goal difference}}
+
!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>
  
 
|-
 
|-
Line 16: Line 16:
 
|<includeonly>{{#expr:</includeonly>{{{hga}}}+{{{aga}}}<includeonly>}}</includeonly>
 
|<includeonly>{{#expr:</includeonly>{{{hga}}}+{{{aga}}}<includeonly>}}</includeonly>
 
|<includeonly>{{Fb gd|{{#expr:{{{hgf}}}+{{{agf}}}}}|{{#expr:{{{hga}}}+{{{aga}}}}}}}</includeonly>
 
|<includeonly>{{Fb gd|{{#expr:{{{hgf}}}+{{{agf}}}}}|{{#expr:{{{hga}}}+{{{aga}}}}}}}</includeonly>
|width=30 style="border-right:3px solid grey;" | <includeonly>{{#expr:3*({{{hw}}}+{{{aw}}})+{{{hd}}}+{{{ad}}}{{#if:{{{dp|}}}|-{{{dp}}}}}{{#if:{{{bp|}}}|+{{{bp}}}}}}}{{#if:{{{pn|}}}|<sup>{{{pn}}}</sup>}}</includeonly>
+
|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 35: Line 35:
 
{{documentation}}
 
{{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:თარგი:ფეხბურთის მოკლე შედეგი

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Fb rs

Football result summary

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Home winshw

Number of wins at home

Numberrequired
Home drawshd

Number of draws at home

Numberrequired
Home losseshl

Number of losses at home

Numberrequired
Home goals forhgf

Goals scored for at home

Numberrequired
Home goals againsthga

Goals scored against at home

Numberrequired
Away winsaw

Number of wins playing away

Numberrequired
Away drawsad

Number of draws playing away

Numberrequired
Away lossesal

Number of losses playing away

Numberrequired
Away goals foragf

Goals scored for playing away

Numberrequired
Away goals againstaga

Goals scored against playing away

Numberrequired
Deducted pointsdp

Points deducted, leave blank if no deductions

Numbersuggested
Point notepn

A note to put by points

Example
See below
Stringoptional