Difference between revisions of "Template:Fb lo match"

From blackwiki
Jump to navigation Jump to search
imported>Renamed user mou89p43twvqcvm8ut9w3
(remove unicode)
imported>Frietjes
(simplify; add alternative syntax)
Line 1: Line 1:
 
<!-- This template is supposed to be used in conjunction with the lo header and lo footer template. It should be used to create a table, concerned only with league matches, in contrast to the cm-templates, which are useful for a table, concerned with all of club's matches in a season. This is still work in progress  
 
<!-- This template is supposed to be used in conjunction with the lo header and lo footer template. It should be used to create a table, concerned only with league matches, in contrast to the cm-templates, which are useful for a table, concerned with all of club's matches in a season. This is still work in progress  
-->|-{{#ifexpr: ({{{gf}}}>{{{ga}}})|bgcolor=#DDFFDD|{{#ifeq: {{{gf}}}|{{{ga}}}|bgcolor=#FFFFDD|bgcolor=#FFDDDD}} }}
+
-->|- style="background:#{{#ifexpr: ({{{gf<noinclude>|1</noinclude>}}}>{{{ga|<noinclude>0</noinclude>}}})|DDFFDD|{{#ifeq: {{{gf}}}|{{{ga}}}|FFFFDD|FFDDDD}}}}
<!--
+
<!-- Round -->| {{{rn}}}
 
+
<!-- Date -->| {{{d}}}
Round -->|{{{rn}}}<!--
+
<!-- Ground -->| {{#switch:{{{g}}}
 
+
|H={{#if:{{{t|}}}|{{fb team ground {{{t}}}|g={{{g}}}|tc={{{tc}}}}}|{{#if:{{{ground|}}}|{{{ground}}}|H}}}}
Date -->||{{{d}}}<!--
+
|A={{#if:{{{o|}}}|{{fb team ground {{{o}}}|g={{{g}}}|tc={{{tc}}}}}|{{#if:{{{ground|}}}|{{{ground}}}|A}}}}
 
+
|N={{#if:{{{gn|}}}|{{fb ground {{{gn}}}|g={{{g}}}|tc={{{tc}}}}}|{{#if:{{{ground|}}}|{{{ground}}}|N}}}}
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}}}}{{#ifeq:{{{g}}}|HA|{{#if:{{{gn|}}}|{{fb ground {{{gn}}}|g=H|tc={{{tc}}}}}|H}}}}{{#ifeq:{{{g}}}|AA|{{#if:{{{gn|}}}|{{fb ground {{{gn}}}|g=A|tc={{{tc}}}}}|A}}}}<!--
+
|HC={{#if:{{{gn|}}}|{{fb ground {{{gn}}}|g=HR|tc={{{tc}}}}}|{{#if:{{{ground|}}}|{{{ground}}}|H}}}}
 
+
|AC={{#if:{{{gn|}}}|{{fb ground {{{gn}}}|g=AR|tc={{{tc}}}}}|{{#if:{{{ground|}}}|{{{ground}}}|A}}}}
Opponent -->||{{#if:{{{o|}}}|{{fb team {{{o}}}|oc={{{tc}}}}}}}<!--
+
|HA={{#if:{{{gn|}}}|{{fb ground {{{gn}}}|g=H|tc={{{tc}}}}}|{{#if:{{{ground|}}}|{{{ground}}}|H}}}}
 
+
|AA={{#if:{{{gn|}}}|{{fb ground {{{gn}}}|g=A|tc={{{tc}}}}}|{{#if:{{{ground|}}}|{{{ground}}}|A}}}}
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>}}}}}}<!--
+
|#default = {{{ground|}}}
 
+
}}
Position
+
<!--Opponent -->| {{#if:{{{o|}}}|{{fb team {{{o}}}|oc={{{tc}}}}}|{{{ol|}}}}}
-->||{{{pos}}}<!--
+
<!--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>}}}}}}
 
+
<!--Position-->| {{{pos}}}
Points
+
<!--Points-->| {{{pts}}}
-->||{{{pts}}}<!--
+
<!--Goal difference-->| {{{gd}}}
 
+
<!--Report-->| {{{rep}}}
Goal difference
+
<!-- Goal difference
-->||{{{gd}}}<!--
+
| {{#if:{{{gf|}}}|{{#ifeq:{{#expr:{{{gf}}}>={{{ga}}}}}|1|{{#expr:{{{gf}}}-{{{ga}}}}}|-{{#expr:{{{ga}}}-{{{gf}}}}}}}}}
 
 
Report
 
-->||{{{rep}}}<!--
 
 
 
Goal difference
 
|{{#if:{{{gf|}}}|{{#ifeq:{{#expr:{{{gf}}}>={{{ga}}}}}|1|{{#expr:{{{gf}}}-{{{ga}}}}}|-{{#expr:{{{ga}}}-{{{gf}}}}}}}}}
 
 
 
 
 
 
--><noinclude>[[Category:Fb templates]]</noinclude>
 
--><noinclude>[[Category:Fb templates]]</noinclude>

Revision as of 22:18, 2 May 2018

|- style="background:#DDFFDD | {{{rn}}} | {{{d}}} | | | | {{{pos}}} | {{{pts}}} | {{{gd}}} | {{{rep}}}