Difference between revisions of "Template:Fb cm match"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
(add optional |cn= to match |rn=)
imported>Frietjes
Line 6: Line 6:
 
Date -->||{{{d}}}<!--
 
Date -->||{{{d}}}<!--
  
Competition -->||{{#if:{{{cn|}}}|{{{cn}}}|{{Fb competition {{{s}}} {{{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}}}}}}}}}<!--
+
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 -->||{{#ifeq:{{{g}}}|H|{{fb team ground {{{t}}}|g={{{g}}}|tc={{{tc}}}}}|{{#ifeq:{{{g}}}|A|{{#if:{{{ol|}}}|{{#if:{{{a_flag|}}}|{{{a_flag}}}}}|{{fb team ground {{{o}}}|g={{{g}}}|tc={{{tc}}}}}}}|{{#ifeq:{{{g}}}|N|{{#if:{{{gn|}}}|{{fb ground {{{gn}}}|g={{{g}}}|tc={{{tc}}}}}|N}}}}}}}}<!--
+
Ground -->||{{#switch:{{{g}}}
 +
  |H={{#if:{{{t|}}}
 +
      |{{fb team ground {{{t}}}|g={{{g}}}|tc={{{tc}}}}}[[Category:Pages using fb cm match with deprecated parameters|hg]]
 +
      |{{#if:{{{ground|}}}|{{{ground}}}|H}}
 +
      }}
 +
  |A={{#if:{{{ol|}}}
 +
      |{{#if:{{{a_flag|}}}|{{{a_flag}}}|{{#if:{{{ground|}}}|{{{ground}}}|A}}}}
 +
      |{{#if:{{{o|}}}
 +
        |{{fb team ground {{{o}}}|g={{{g}}}|tc={{{tc}}}}}[[Category:Pages using fb cm match with deprecated parameters|og]]
 +
        |{{#if:{{{ground|}}}|{{{ground}}}|A}}
 +
        }}
 +
      }}
 +
  |N={{#if:{{{gn|}}}
 +
      |{{fb ground {{{gn}}}|g={{{g}}}|tc={{{tc}}}}}[[Category:Pages using fb cm match with deprecated parameters|gn]]
 +
      |{{#if:{{{ground|}}}|{{{ground}}}|N}}
 +
      }}
 +
  |#default ={{{ground|}}}
 +
}}<!--
  
Opponent -->||{{#if:{{{o|}}}|{{fb team {{{o}}}|oc={{{tc}}}}}| {{#if:{{{ol|}}}|{{{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>}}}}}}<!--

Revision as of 00:37, 2 May 2018

|-

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

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