Difference between revisions of "Template:Fb cm match"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Frietjes
Line 1: Line 1:
 
|- {{#if:{{{m|}}}|{{#ifexpr:{{#expr:({{{m}}}+1) mod 2}}|{{fb bg}}}}}}
 
|- {{#if:{{{m|}}}|{{#ifexpr:{{#expr:({{{m}}}+1) mod 2}}|{{fb bg}}}}}}
<!--Match -->|{{{m}}}
+
<!--Match -->| {{{m}}}
<!--Date -->|{{{d}}}
+
<!--Date -->| {{{d}}}
<!--Competition -->|{{#if:{{{cn|}}}|{{{cn}}}|{{Fb competition {{{s}}} {{{c}}}}}[[Category:Pages using fb cm match with deprecated parameters|c]]}}
+
<!--Competition -->| {{#if:{{{cn|}}}|{{{cn}}}|{{Fb competition {{{s}}} {{{c}}}}}[[Category:Pages using fb cm match with deprecated parameters|c]]}}
<!--Round -->|{{#if:{{{rn|}}}|{{#ifeq:{{{rn}}}|no|—|{{{rn}}}}}|{{#if:{{{r|}}}|{{Fb round {{{s}}} {{{c}}} {{{r}}}}}[[Category:Pages using fb cm match with deprecated parameters|r]]}}}}
+
<!--Round -->| {{#if:{{{rn|}}}|{{#ifeq:{{{rn}}}|no|—|{{{rn}}}}}|{{#if:{{{r|}}}|{{Fb round {{{s}}} {{{c}}} {{{r}}}}}[[Category:Pages using fb cm match with deprecated parameters|r]]}}}}
<!--Ground -->|{{#switch:{{{g}}}
+
<!--Ground -->| {{#switch:{{{g}}}
 
   |H={{#if:{{{t|}}}
 
   |H={{#if:{{{t|}}}
 
       |{{fb team ground {{{t}}}|g={{{g}}}|tc={{{tc}}}}}[[Category:Pages using fb cm match with deprecated parameters|hg]]
 
       |{{fb team ground {{{t}}}|g={{{g}}}|tc={{{tc}}}}}[[Category:Pages using fb cm match with deprecated parameters|hg]]
Line 22: Line 22:
 
   |#default ={{{ground|}}}
 
   |#default ={{{ground|}}}
 
}}
 
}}
<!--Opponent -->|{{#if:{{{o|}}}|{{fb team {{{o}}}|oc={{{tc}}}}}[[Category:Pages using fb cm match with deprecated parameters|o]]| {{{ol|}}} }}
+
<!--Opponent -->| {{#if:{{{o|}}}|{{fb team {{{o}}}|oc={{{tc}}}}}[[Category:Pages using fb cm match with deprecated parameters|o]]| {{{ol|}}} }}
<!--Score -->|{{#if:{{{gf|}}}|{{#if:{{{mx|}}}|[{{{ml}}} {{{gf}}} - {{{ga}}} {{#if:{{{pen|}}}|<br /><small>({{{pen}}} pen.)</small>}}]|{{{gf}}} &ndash; {{{ga}}} {{#if:{{{pen|}}}|<br /><small>({{{pen}}} pen.)</small>}}}}}}
+
<!--Score -->| {{#if:{{{gf|}}}|{{#if:{{{mx|}}}|[{{{ml}}} {{{gf}}} - {{{ga}}} {{#if:{{{pen|}}}|<br /><small>({{{pen}}} pen.)</small>}}]|{{{gf}}} &ndash; {{{ga}}} {{#if:{{{pen|}}}|<br /><small>({{{pen}}} pen.)</small>}}}}}}
<!--Report -->|{{#if:{{{gf|}}}|{{#ifeq:{{{ma}}}|{{non existing|ma}}|<div class="NavFrame" style="border:none; padding: 0;">
+
<!--Report -->| {{#if:{{{gf|}}}|{{#ifeq:{{{ma}}}|{{non existing|ma}}|<div class="NavFrame" style="border:none; padding: 0;">
 
<div class="NavHead" style="text-align:left;width:90%; background:#f9f9f9;"></div>
 
<div class="NavHead" style="text-align:left;width:90%; background:#f9f9f9;"></div>
 
<div class="NavContent" style="text-align:left;display:none;">
 
<div class="NavContent" style="text-align:left;display:none;">
Line 42: Line 42:
 
-->{{#if:{{{f9|}}}|{{{f9}}}<br />}}<!--
 
-->{{#if:{{{f9|}}}|{{{f9}}}<br />}}<!--
 
-->{{#if:{{{f10|}}}|{{{f10}}}<br />}}
 
-->{{#if:{{{f10|}}}|{{{f10}}}<br />}}
</div></div>|{{#if:{{{ma|}}}|[[{{{ma}}}|<small>(Report)</small>]]}}}}}}<!--
+
</div></div>| {{#if:{{{ma|}}}|[[{{{ma}}}|<small>(Report)</small>]]}}}}}}<!--
  
 
Goal difference
 
Goal difference
|{{#if:{{both|{{{gf|}}}|{{{ga|}}}}}|{{#ifeq:{{#expr:{{{gf}}}>={{{ga}}}}}|1|{{#expr:{{{gf}}}-{{{ga}}}}}|-{{#expr:{{{ga}}}-{{{gf}}}}}}}}}
+
| {{#if:{{both|{{{gf|}}}|{{{ga|}}}}}|{{#ifeq:{{#expr:{{{gf}}}>={{{ga}}}}}|1|{{#expr:{{{gf}}}-{{{ga}}}}}|-{{#expr:{{{ga}}}-{{{gf}}}}}}}}}
  
 
--><noinclude>{{documentation}}</noinclude>
 
--><noinclude>{{documentation}}</noinclude>

Revision as of 15:49, 2 May 2018

|- | {{{m}}} | {{{d}}} | {{Fb competition {{{s}}} {{{c}}}}} | | | |

|

50px Template documentation[view] [edit] [history] [purge]

Template:fb cm match (Football - competitive match - match)

Parameters
Parameter Description
tc country of the team
m match sequence number
d match's date
cn match's competition
rn competition's round (linked if appropriate)
ground ground (H=home or A=away or N=neutral) with link
ol opponent team wikilink
gf goals for
ga goals against
pen penalty shoot-out score (if match decided this way)
sc scorers (use when enabled in {{Fb cm header}}; when using, if there is no scorers leave empty "sc=")
ml match link (if exist)
ko kick-off time
att attendance
ref referee
motm team's man of the match
f1..f10 fact 1 to 10

Tracking category

See also