Difference between revisions of "Template:Fb cm3 match"

From blackwiki
Jump to navigation Jump to search
imported>KSA13
imported>Frietjes
 
(17 intermediate revisions by 6 users not shown)
Line 1: Line 1:
|-{{#ifexpr: ({{{gf}}}>{{{ga}}})|bgcolor=#DDFFDD|{{#ifeq: {{{gf}}}|{{{ga}}}|bgcolor=#FFFFDD|bgcolor=#FFDDDD}} }}
+
|- {{#if:{{{m|}}}|{{#ifexpr:{{#expr:({{{m}}}+1) mod 2}}|{{fb bg}}}}}}
<!--
+
<!--Match -->| {{{m}}}
 
+
<!--Date -->| style="text-align:center;" | {{{d}}}
Match -->|{{{m}}}<!--
+
<!--Competition -->| style="text-align:center;" | {{#if:{{{cn<includeonly>|</includeonly>}}}|{{{cn}}}|[[{{{s}}} {{{c}}}|{{{c}}}]]}}
 
+
<!--Round -->| {{#if:{{{rn|}}}|{{#ifeq:{{{rn}}}|no|—|{{{rn}}}}}|{{#if:{{{r|}}}|[[{{{s}}} {{{c}}}#{{{r}}}|{{{r}}}]]}}}}
Date -->||align=center|{{{d}}}<!--
+
<!--Ground -->| {{#switch:{{{g}}}
 
+
  |H={{#if:{{{ground|}}}|{{{ground}}}|H}}
Competition -->||align=center|{{#if:{{{cn|}}}|{{{cn}}}|{{Fb competition {{{s}}} {{{c}}} }} }}<!--
+
  |A={{#if:{{{a_flag|{{{away_venue|}}}}}}|{{{a_flag|{{{away_venue}}}}}}|{{#if:{{{ground|}}}|{{{ground}}}|A}}}}
 
+
  |N={{#if:{{{ground|}}}|{{{ground}}}|N}}
Round -->||{{#if:{{{rn|}}}|{{#ifeq:{{{rn}}}|no|—|{{{rn}}}}}|{{#if:{{{r|}}}|{{Fb round2 {{{s}}} {{{c}}} {{{r}}}}}}}}}<!--
+
  |HC={{#if:{{{ground|}}}|{{{ground}}}|H}}
 
+
  |AC={{#if:{{{ground|}}}|{{{ground}}}|A}}
Ground -->||{{#ifeq:{{{g}}}|H|{{fb team ground {{{t}}}|g={{{g}}}|tc={{{tc}}}}}|{{#ifeq:{{{g}}}|A|{{fb team ground {{{o}}}|g={{{g}}}|tc={{{tc}}}}}|{{#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}}}}<!--
+
  |#default={{{ground|{{{g|}}}}}}
 
+
  }}
Opponent -->||align=center|{{#if:{{{o|}}}|{{fb team {{{o}}}|oc={{{tc}}}}}}}<!--
+
<!-- Opponent -->| style="text-align:center;" | {{#if:{{{o|}}}|{{{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>}}}}}}<!--
 
  
 
TV
 
TV
-->{{#if:{{{tv|}}}|{{!}}{{!}}{{{tv}}} }}<!--
+
-->{{#if:{{{tv|}}}|{{!!}} {{{tv}}} }}
 
+
<!--Report-->| {{{rep}}}{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using fb cm match with unknown parameters|_VALUE_{{PAGENAME}}]]|preview=Page using [[Template:Fb cm3 match]] with unknown parameter "_VALUE_"|ignoreblank=y| tc | m | d | cn | rn | ground | a_flag | away_venue | ol | gf | ga | pen | mx | ml | tv | rep }}<noinclude>{{documentation}}</noinclude>
Report
 
-->||{{{rep}}}<!--
 
 
 
||{{#if:{{{gf|}}}|{{#ifeq:{{{ma}}}|{{non existing|ma}}|<div class="NavFrame" style="border:none; padding: 0;">
 
<div class="NavHead" align="center" style="width:90%; background:#f9f9f9;"></div>
 
<div class="NavContent" style="text-align:center;display:none;">
 
{{Fb report |{{#if:{{{ml|}}}|rep={{{ml}}}}} |{{#if:{{{ko|}}}|ko={{{ko}}}}} |{{#if:{{{att|}}}|att={{{att}}}}} |{{#if:{{{ref|}}}|ref={{{ref}}}}} |{{#if:{{{motm|}}}|motm={{{motm}}}}} |{{#if:{{{f1|}}}|f1={{{f1}}}}} |{{#if:{{{f2|}}}|f2={{{f2}}}}}  |{{#if:{{{f3|}}}|f3={{{f3}}}}} |{{#if:{{{f4|}}}|f4={{{f4}}}}} |{{#if:{{{f5|}}}|f5={{{f5}}}}} |{{#if:{{{f6|}}}|f6={{{f6}}}}} |{{#if:{{{f7|}}}|f7={{{f7}}}}} |{{#if:{{{f8|}}}|f8={{{f8}}}}} |{{#if:{{{f9|}}}|f9={{{f9}}}}} |{{#if:{{{f10|}}}|f10={{{f10}}}}} }}
 
</div>|{{#if:{{{ma|}}}|[[{{{ma}}}|<small>(Report)</small>]]}}}}}}<!--
 
 
 
Goal difference
 
|{{#if:{{{gf|}}}|{{#ifeq:{{#expr:{{{gf}}}>={{{ga}}}}}|1|{{#expr:{{{gf}}}-{{{ga}}}}}|{{Unicode|-}}{{#expr:{{{ga}}}-{{{gf}}}}}}}}}
 
 
 
--><noinclude>{{template doc}}</noinclude>
 

Latest revision as of 15:57, 25 May 2018

|- | {{{m}}} | style="text-align:center;" | {{{d}}} | style="text-align:center;" | {{{cn}}} | | | 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