Difference between revisions of "Template:Fb cm3 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}}}
 
+
<!--Date -->
Match -->|{{{m}}}<!--
+
| style="text-align:center;" |{{{d}}}
 
+
<!--Competition -->| style="text-align:center;" |{{#if:{{{cn|}}}|{{{cn}}}|{{Fb competition {{{s}}} {{{c}}} }} }}
Date -->|| style="text-align:center;" |{{{d}}}<!--
+
<!--Round -->|{{#if:{{{rn|}}}|{{#ifeq:{{{rn}}}|no|—|{{{rn}}}}}|{{#if:{{{r|}}}|{{Fb round2 {{{s}}} {{{c}}} {{{r}}}}}}}}}
 
+
<!--Ground -->|{{#switch:{{{g}}}
Competition -->|| style="text-align:center;" |{{#if:{{{cn|}}}|{{{cn}}}|{{Fb competition {{{s}}} {{{c}}} }} }}<!--
+
  |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:{{{o|}}}|{{fb team ground {{{o}}}|g={{{g}}}|tc={{{tc}}}}}[[Category:Pages using fb cm match with deprecated parameters|ag]]|{{#if:{{{a_flag|{{{away_venue|}}}}}}|{{{a_flag|{{{away_venue}}}}}}|{{#if:{{{ground|}}}|{{{ground}}}|A}}}}}}
Round -->||{{#if:{{{rn|}}}|{{#ifeq:{{{rn}}}|no|—|{{{rn}}}}}|{{#if:{{{r|}}}|{{Fb round2 {{{s}}} {{{c}}} {{{r}}}}}}}}}<!--
+
  |N={{#if:{{{gn|}}}|{{fb ground {{{gn}}}|g={{{g}}}|tc={{{tc}}}}}[[Category:Pages using fb cm match with deprecated parameters|ng]]|{{#if:{{{ground|}}}|{{{ground}}}|N}}}}
 
+
  |HC={{#if:{{{gn|}}}|{{fb ground {{{gn}}}|g=HR|tc={{{tc}}}}}[[Category:Pages using fb cm match with deprecated parameters|hc]]|{{#if:{{{ground|}}}|{{{ground}}}|H}}}}
Ground -->||{{#ifeq:{{{g}}}|H|{{fb team ground {{{t}}}|g={{{g}}}|tc={{{tc}}}}}|{{#ifeq:{{{g}}}|A|{{#if:{{{o|}}}|{{fb team ground {{{o}}}|g={{{g}}}|tc={{{tc}}}}}|{{#if:{{{a_flag|}}}|{{{a_flag}}}|A}}}}|{{#ifeq:{{{g}}}|N|{{#if:{{{gn|}}}|{{fb ground {{{gn}}}|g={{{g}}}|tc={{{tc}}}}}|N}}}}}}}}{{#ifeq:{{{g}}}|HC|{{#if:{{{gn|}}}|{{fb ground {{{gn}}}|g=HR|tc={{{tc}}}}}|H}}}}{{#ifeq:{{{g}}}|AC|{{#if:{{{gn|}}}|{{fb ground {{{gn}}}|g=AR|tc={{{tc}}}}}|A}}}}<!--
+
  |AC={{#if:{{{gn|}}}|{{fb ground {{{gn}}}|g=AR|tc={{{tc}}}}}[[Category:Pages using fb cm match with deprecated parameters|ac]]|{{#if:{{{ground|}}}|{{{ground}}}|A}}}}
 
+
  |#default={{{ground|}}}
Opponent -->|| style="text-align:center;" |{{#if:{{{o|}}}|{{fb team {{{o}}}|oc={{{tc}}}}}|{{{ol|}}}}}<!--
+
  }}
 
+
<!-- Opponent -->| style="text-align:center;" |{{#if:{{{o|}}}|{{fb team {{{o}}}|oc={{{tc}}}}} | {{{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>}}}}}}<!--
  
 
TV
 
TV

Revision as of 12:48, 2 May 2018

|- |{{{m}}} | style="text-align:center;" |{{{d}}} | style="text-align:center;" |{{Fb competition {{{s}}} {{{c}}} }} | | | style="text-align:center;" |

|||{{{rep}}}

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 competition (use when there is NOT article to be linked)
rn competition's round (use when there is no link)
ground ground (H=home or A=away or N=neutral or HC=home replacement or AC=away replacement) with link
ol opponent team wikilink
gf goals for
ga goals against
tv (optional)
pen penalty shoot-out score (if match decided this way)
sc scorers (use when enabled in Template: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
rep report (use any Fb_report template)

Tracking category

See also