Difference between revisions of "Template:Fb fm match"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
(Adding unknown parameter tracking through Category:Pages using fb fm match with unknown parameters)
imported>Frietjes
Line 4: Line 4:
 
| {{#if:{{{c|}}}|{{{c}}}|—}}
 
| {{#if:{{{c|}}}|{{{c}}}|—}}
 
| {{#switch:{{{g}}}
 
| {{#switch:{{{g}}}
  |H={{#if:{{{t|}}}|[[Category:Pages using fb fm match with unknown parameters]]{{fb team ground {{{t}}}|g={{{g}}}|tc={{{tc}}}}}|{{#if:{{{ground|}}}|{{{ground}}}|H}}}}
+
  |H={{#if:{{{ground|}}}|{{{ground}}}|H}}
  |A={{#if:{{{o|}}}|[[Category:Pages using fb fm match with unknown parameters]]{{fb team ground {{{o}}}|g={{{g}}}|tc={{{tc}}}}}|{{#if:{{{away_link|}}}|{{{away_link}}}|{{#if:{{{ground|}}}|{{{ground}}}|A}}}}}}
+
  |A={{#if:{{{away_link|}}}|{{{away_link}}}|{{#if:{{{ground|}}}|{{{ground}}}|A}}}}
  |N={{#if:{{{gn|}}}|[[Category:Pages using fb fm match with unknown parameters]]{{fb ground {{{gn}}}|g={{{g}}}|tc={{{tc}}}}}|{{#if:{{{ground|}}}|{{{ground}}}|N}}}}
+
  |N={{#if:{{{ground|}}}|{{{ground}}}|N}}
  |HC={{#if:{{{gn|}}}|[[Category:Pages using fb fm match with unknown parameters]]{{fb ground {{{gn}}}|g=HR|tc={{{tc}}}}}|{{#if:{{{ground|}}}|{{{ground}}}|H}}}}
+
  |HC={{#if:{{{ground|}}}|{{{ground}}}|H}}
  |AC={{#if:{{{gn|}}}|[[Category:Pages using fb fm match with unknown parameters]]{{fb ground {{{gn}}}|g=AR|tc={{{tc}}}}}|{{#if:{{{ground|}}}|{{{ground}}}|A}}}}
+
  |AC={{#if:{{{ground|}}}|{{{ground}}}|A}}
 
  |#default={{{ground|}}}
 
  |#default={{{ground|}}}
 
  }}
 
  }}
| {{#if:{{{ol|}}}|{{{ol}}}|{{#if:{{{o|}}}|[[Category:Pages using fb fm match with unknown parameters]]{{fb team {{{o}}}|oc={{{tc}}}}}}}}}
+
| {{#if:{{{ol|}}}|{{{ol}}}| {{{o|}}} }}
 
| {{#if:{{{gf|}}}|{{#if:{{{ml|}}}|[{{{ml}}} {{{gf}}} - {{{ga}}} {{#if:{{{pen|}}}|<br />{{small|1=({{{pen}}} pen.)}}}}]|{{{gf}}} - {{{ga}}} {{#if:{{{pen|}}}|<br />({{{pen}}} pen.)}}}}
 
| {{#if:{{{gf|}}}|{{#if:{{{ml|}}}|[{{{ml}}} {{{gf}}} - {{{ga}}} {{#if:{{{pen|}}}|<br />{{small|1=({{{pen}}} pen.)}}}}]|{{{gf}}} - {{{ga}}} {{#if:{{{pen|}}}|<br />({{{pen}}} pen.)}}}}
 
}}{{#ifeq:{{{sc|Ø}}}|Ø| |{{!!}}align=left{{!}}{{#if:{{{sc|}}}|{{small|1={{{sc}}}}}}}}}
 
}}{{#ifeq:{{{sc|Ø}}}|Ø| |{{!!}}align=left{{!}}{{#if:{{{sc|}}}|{{small|1={{{sc}}}}}}}}}
 
| {{#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>
+
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using fb fm match with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Fb fm match]] with unknown parameter "_VALUE_"|ignoreblank=y| away_link | tc | c | d | ga | gf | ground | m | ml | nn | ol | pen | sc }}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 18:08, 3 May 2018

|- | {{{m}}} | {{{d}}} | — | | | |

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

Template:Fb fm match (Football - friendly match - match)

Parameters:
t : team that the table is about
m : match sequence number
ma : match article (if exist)
d : match's date c = match's competition
c : competition / tour
g : ground; H = home; A = away; N = neutral
gn : ground name (if g=N)
away_link : wikilink to away venue, use if g==A and ol is being used ol : direct wikilink to opponent team; use this or the "o" parameter
o : opponent team
gf : goals for
ga : goals against
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=")
nn : note number