Difference between revisions of "Template:Fb fm match"

From blackwiki
Jump to navigation Jump to search
imported>ClaudioMB
imported>Frietjes
 
(13 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<!--
+
|- {{#if:{{{m|}}}|{{#ifexpr:{{#expr:({{{m}}}+1) mod 2}}|{{fb bg}}}}}}
 
+
| {{{m}}}{{#if:{{{nn|}}}|<sup>{{{nn}}}</sup>}}
Template:Fb fm match (Football - friendly match - match)
+
| {{{d}}}
 
+
| {{#if:{{{c|}}}|{{{c}}}|—}}
Parameters:
+
| {{#switch:{{{g}}}
t  : team that the table is about
+
|H={{#if:{{{ground|}}}|{{{ground}}}|H}}
m  : match sequence number
+
|A={{#if:{{{away_link|}}}|{{{away_link}}}|{{#if:{{{ground|}}}|{{{ground}}}|A}}}}
ma  : match article (if exist)
+
|N={{#if:{{{ground|}}}|{{{ground}}}|N}}
d  : match's date c = match's competition
+
|HC={{#if:{{{ground|}}}|{{{ground}}}|H}}
c  : competition / tour
+
|AC={{#if:{{{ground|}}}|{{{ground}}}|A}}
g  : ground; H = home; A = away; N = neutral
+
|#default={{{ground|}}}
gn  : ground name (if g=N)
+
}}
o  : opponent team
+
| {{#if:{{{ol|}}}|{{{ol}}}| {{{o|}}} }}
gf  : goals for
+
| {{#if:{{{gf|}}}|{{#if:{{{ml|}}}|[{{{ml}}} {{{gf}}} - {{{ga}}} {{#if:{{{pen|}}}|<br />{{small|1=({{{pen}}} pen.)}}}}]|{{{gf}}} - {{{ga}}} {{#if:{{{pen|}}}|<br />({{{pen}}} pen.)}}}}
ga  : goals against
+
}}{{#ifeq:{{{sc}}}|Ø| |{{!!}}align=left{{!}}{{#if:{{{sc|}}}|{{small|1={{{sc}}}}}}}}}
pen : penalty shoot-out score (if match decided this way)
+
| {{#if:{{both|{{{gf|}}}|{{{ga|}}}}}|{{#ifeq:{{#expr:{{{gf}}}>={{{ga}}}}}|1|{{#expr:{{{gf}}}-{{{ga}}}}}|-{{#expr:{{{ga}}}-{{{gf}}}}}}}
sc  : scorers (use when enabled in Template:Fb cm header; when using, if there is no scorers leave empty "sc=")
+
}}{{#invoke:Check for unknown parameters|check|unknown=[[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>
nn  : note number
+
{{documentation}}
 
+
<!-- Add categories and interwikis to the /doc subpage, not here! -->
If TEAM shows as an unknown template, please create the template copying from this:
+
</noinclude>
{{fb team |t=EnterHereTheNameToBeShown |tan=EnterHereTheTeamArticlesTitle |tc=EnterHereThe3LettersCountryDefinedIn ISO_3166-1_alpha-3 Article |{{#if:{{{sf|}}}|sf={{{sf}}}}} |{{#if:{{{oc|}}}|oc={{{oc}}}}} }}
 
<noinclude>[[Category:Fb_team_templates]]</noinclude>
 
 
 
If GROUND is away (A):
 
If shows an unknown template, please create the template copying from this:
 
{{fb team ground |s=EnterHereTheGroundArticlesTitle |sc=EnterHereThe3LettersCountryDefinedIn ISO_3166-1_alpha-3 Article |g={{{g}}} |tc={{{tc}}} }}
 
<noinclude>[[Category:Fb_team_ground_templates]]</noinclude>
 
 
 
If GROUND is neutral (N):
 
If shows {{fb ground {{{gn}}}}}, please add the gn= parameter with the name of the ground or empty
 
If shows an unknown template, please create the template copying from this:
 
{{fb ground |s=EnterHereTheGroundArticlesTitle |sc=EnterHereThe3LettersCountryDefinedIn ISO_3166-1_alpha-3 Article |g={{{g}}} |tc={{{tc}}} }}
 
<noinclude>[[Category:Fb_ground_templates]]</noinclude>
 
 
 
-->|-{{#ifexpr:{{#expr:({{{m}}}+1) mod 2}}|{{fb bg}}}}
 
|{{{m}}}{{#if:{{{nn|}}}|<sup>{{{nn}}}</sup>}}
 
|{{{d}}}
 
|{{#if:{{{c|}}}|{{{c}}}|—}}
 
|{{#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}}}}}}}}
 
|{{#if:{{{o|}}}|{{fb team {{{o}}}|oc={{{tc}}}}}}}
 
|{{#if:{{{gf|}}}|{{#if:{{{ml|}}}|[{{{ml}}} {{{gf}}} - {{{ga}}} {{#if:{{{pen|}}}|<br /><small>({{{pen}}} pen.)</small>}}]|{{{gf}}} - {{{ga}}} {{#if:{{{pen|}}}|<br />({{{pen}}} pen.)}}}}}}<!--
 
-->{{#ifeq:{{{sc}}}|{{non existing|sc}}| |{{bar}}{{bar}}align=left{{bar}}<small>{{#if:{{{sc|}}}|{{{sc}}}}}</small>}}
 
|{{#if:{{{gf|}}}|{{#ifeq:{{#expr:{{{gf}}}>={{{ga}}}}}|1|{{#expr:{{{gf}}}-{{{ga}}}}}|{{Unicode|-}}{{#expr:{{{ga}}}-{{{gf}}}}}}}}}<!-- --><noinclude>[[Category:Fb_templates]]</noinclude>
 

Latest revision as of 15:59, 25 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