Difference between revisions of "Template:Fb lo match"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Frietjes
(tracking complete, remove unused parameters)
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
+
|- style="background:#{{#ifexpr: ({{{gf<noinclude>|1</noinclude>}}}>{{{ga|<noinclude>0</noinclude>}}})|DDFFDD|{{#ifeq: {{{gf}}}|{{{ga}}}|FFFFDD|FFDDDD}}}}
-->|- style="background:#{{#ifexpr: ({{{gf<noinclude>|1</noinclude>}}}>{{{ga|<noinclude>0</noinclude>}}})|DDFFDD|{{#ifeq: {{{gf}}}|{{{ga}}}|FFFFDD|FFDDDD}}}}
 
 
<!-- Round -->| {{{rn}}}
 
<!-- Round -->| {{{rn}}}
 
<!-- Date -->| {{{d}}}
 
<!-- Date -->| {{{d}}}
 
<!-- Ground -->| {{#switch:{{{g}}}
 
<!-- Ground -->| {{#switch:{{{g}}}
  |H={{#if:{{{t|}}}|{{fb team ground {{{t}}}|g={{{g}}}|tc={{{tc}}}}}[[Category:Pages using fb cm match with deprecated parameters|g]]|{{#if:{{{ground|}}}|{{{ground}}}|H}}}}
+
  |H={{#if:{{{ground|}}}|{{{ground}}}|H}}
  |A={{#if:{{{o|}}}|{{fb team ground {{{o}}}|g={{{g}}}|tc={{{tc}}}}}[[Category:Pages using fb cm match with deprecated parameters|g]]|{{#if:{{{ground|}}}|{{{ground}}}|A}}}}
+
  |A={{#if:{{{ground|}}}|{{{ground}}}|A}}
  |N={{#if:{{{gn|}}}|{{fb ground {{{gn}}}|g={{{g}}}|tc={{{tc}}}}}[[Category:Pages using fb cm match with deprecated parameters|g]]|{{#if:{{{ground|}}}|{{{ground}}}|N}}}}
+
  |N={{#if:{{{ground|}}}|{{{ground}}}|N}}
  |HC={{#if:{{{gn|}}}|{{fb ground {{{gn}}}|g=HR|tc={{{tc}}}}}[[Category:Pages using fb cm match with deprecated parameters|g]]|{{#if:{{{ground|}}}|{{{ground}}}|H}}}}
+
  |HC={{#if:{{{ground|}}}|{{{ground}}}|H}}
  |AC={{#if:{{{gn|}}}|{{fb ground {{{gn}}}|g=AR|tc={{{tc}}}}}[[Category:Pages using fb cm match with deprecated parameters|g]]|{{#if:{{{ground|}}}|{{{ground}}}|A}}}}
+
  |AC={{#if:{{{ground|}}}|{{{ground}}}|A}}
  |HA={{#if:{{{gn|}}}|{{fb ground {{{gn}}}|g=H|tc={{{tc}}}}}[[Category:Pages using fb cm match with deprecated parameters|g]]|{{#if:{{{ground|}}}|{{{ground}}}|H}}}}
+
  |HA={{#if:{{{ground|}}}|{{{ground}}}|H}}
  |AA={{#if:{{{gn|}}}|{{fb ground {{{gn}}}|g=A|tc={{{tc}}}}}[[Category:Pages using fb cm match with deprecated parameters|g]]|{{#if:{{{ground|}}}|{{{ground}}}|A}}}}
+
  |AA={{#if:{{{ground|}}}|{{{ground}}}|A}}
|#default = {{{ground|}}}
+
|#default = {{{ground|{{{g|}}}}}}
 
  }}
 
  }}
<!--Opponent -->| {{#if:{{{o|}}}|{{fb team {{{o}}}|oc={{{tc}}}}}[[Category:Pages using fb cm match with deprecated parameters|o]]|{{{ol|}}}}}
+
<!--Opponent -->| {{#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>}}}}}}
 
<!--Position-->| {{{pos}}}
 
<!--Position-->| {{{pos}}}
 
<!--Points-->| {{{pts}}}
 
<!--Points-->| {{{pts}}}
 
<!--Goal difference-->| {{{gd}}}
 
<!--Goal difference-->| {{{gd}}}
<!--Report-->| {{{rep}}}
+
<!--Report-->| {{{rep}}}<noinclude>
<!-- Goal difference
+
{{documentation|content=
| {{#if:{{{gf|}}}|{{#ifeq:{{#expr:{{{gf}}}>={{{ga}}}}}|1|{{#expr:{{{gf}}}-{{{ga}}}}}|-{{#expr:{{{ga}}}-{{{gf}}}}}}}}}
+
This template is may be used in conjunction with the {{tl|fb lo header}} and {{tl|fb lo footer}} templates. 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.
--><noinclude>[[Category:Fb templates]]</noinclude>
+
== Usage ==
 +
== See also ==
 +
* {{tl|fb lo header}}
 +
* {{tl|fb lo footer}}
 +
* {{tl|fb cm match}}
 +
* {{tl|fb cm1 match}}
 +
* {{tl|fb cm3 match}}
 +
 
 +
[[Category:Fb templates|Lo match]]
 +
}}</noinclude>

Revision as of 13:30, 3 May 2018

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

This template is may be used in conjunction with the {{fb lo header}} and {{fb lo footer}} templates. 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.

Usage

See also