Difference between revisions of "Template:Fb lo match"

From blackwiki
Jump to navigation Jump to search
imported>Renamed user mou89p43twvqcvm8ut9w3
(remove unicode)
imported>Frietjes
 
(6 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}}}}
-->|-{{#ifexpr: ({{{gf}}}>{{{ga}}})|bgcolor=#DDFFDD|{{#ifeq: {{{gf}}}|{{{ga}}}|bgcolor=#FFFFDD|bgcolor=#FFDDDD}} }}
+
<!-- Round -->| {{{rn}}}
<!--
+
<!-- Date -->| {{{d}}}
 +
<!-- Ground -->| {{#switch:{{{g}}}
 +
|H={{#if:{{{ground|}}}|{{{ground}}}|H}}
 +
|A={{#if:{{{ground|}}}|{{{ground}}}|A}}
 +
|N={{#if:{{{ground|}}}|{{{ground}}}|N}}
 +
|HC={{#if:{{{ground|}}}|{{{ground}}}|H}}
 +
|AC={{#if:{{{ground|}}}|{{{ground}}}|A}}
 +
|HA={{#if:{{{ground|}}}|{{{ground}}}|H}}
 +
|AA={{#if:{{{ground|}}}|{{{ground}}}|A}}
 +
|#default = {{{ground|{{{g|}}}}}}
 +
}}
 +
<!--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>}}}}}}
 +
<!--Position-->| {{{pos}}}
 +
<!--Points-->| {{{pts}}}
 +
<!--Goal difference-->| {{{gd}}}
 +
<!--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>
 +
{{documentation|content=
 +
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.
 +
== 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}}
  
Round -->|{{{rn}}}<!--
+
[[Category:Fb templates|Lo match]]
 
+
}}</noinclude>
Date -->||{{{d}}}<!--
 
 
 
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}}}}<!--
 
 
 
Opponent -->||{{#if:{{{o|}}}|{{fb team {{{o}}}|oc={{{tc}}}}}}}<!--
 
 
 
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
 
-->||{{{pts}}}<!--
 
 
 
Goal difference
 
-->||{{{gd}}}<!--
 
 
 
Report
 
-->||{{{rep}}}<!--
 
 
 
Goal difference
 
|{{#if:{{{gf|}}}|{{#ifeq:{{#expr:{{{gf}}}>={{{ga}}}}}|1|{{#expr:{{{gf}}}-{{{ga}}}}}|-{{#expr:{{{ga}}}-{{{gf}}}}}}}}}
 
 
 
 
 
--><noinclude>[[Category:Fb templates]]</noinclude>
 

Latest revision as of 15:58, 25 May 2018

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

50px Template documentation

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