Difference between revisions of "Template:Fb lo match"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Frietjes
 
(3 intermediate revisions by the same user not shown)
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}}}{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using fb lo match with unknown parameters|_VALUE_{{PAGENAME}}]]|preview=Page using [[Template:Fb lo match]] with unknown parameter "_VALUE_"|ignoreblank=y| tc | rn | d | ground | ol | mx | ml | gf | ga | pen | pos | pts | gd | 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 ==
 +
{{aligned table|class=wikitable|row1header=y|col1header=y|col1style=font-weight:normal
 +
| Parameter | Description
 +
| rn | round name
 +
| d | date
 +
| ground | ground (H {{=}} home, A {{=}} away, N {{=}} neutral) wikilinked
 +
| ol | opponent wikilinked
 +
| mx | link score to match report
 +
| ml | url for match report
 +
| gf | goals for
 +
| ga | goals against
 +
| pen | penalty kicks
 +
| pos | position
 +
| pts | points
 +
| gd  | goal differential
 +
| rep | match report using any of the fb match templates
 +
}}
 +
== Tracking category ==
 +
* {{clc|Pages using fb lo match with unknown parameters}}
 +
== 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>

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

Script error: No such module "aligned table".

Tracking category

See also