Template:Footballbox: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 23: | Line 23: | ||
{{!}} style="text-align:right" {{!}} {{#ifeq:{{str_sub|{{{penalties1}}}|0|1}}|* |{{plainlist|{{{penalties1}}}}} |{{{penalties1|}}}}} | {{!}} style="text-align:right" {{!}} {{#ifeq:{{str_sub|{{{penalties1}}}|0|1}}|* |{{plainlist|{{{penalties1}}}}} |{{{penalties1|}}}}} | ||
! style="text-align:center" {{!}} {{{penaltyscore}}} | ! style="text-align:center" {{!}} {{{penaltyscore}}} | ||
{{!}} style="text-align:left" {{!}} {{#ifeq:{{str_sub|{{{penalties2}}}|0|1}}|* |{{plainlist|{{{penalties2}}}}} |{{{penalties2|}}}}} | {{!}} style="text-align:left" {{!}} {{#ifeq:{{str_sub|{{{penalties2}}}|0|1}}|* |{{plainlist|{{{penalties2}}}}} |{{{penalties2|}}}}} }} | ||
}} | |||
|} | |} | ||
{| style="float:left; width:24%; table-layout:fixed" | {| style="float:left; width:24%; table-layout:fixed" |
Revision as of 19:52, 22 September 2017
{{{date}}}
|
{{{team1}}} | v | {{{team2}}} |
---|---|---|
[edit] [ ]
Template documentation

Usage
All attributes are optional.
{{Football box |id = |amorian = <!-- if enabled, uses Americanisms like "vs." and "F/OT" --> |date = <!-- {{Start date|YYYY|MM|DD|df=y}} --> |time = |event = |round = |team1 = |score = |aet = |report = |team2 = |goals1 = |goals2 = |stadium = |attendance = |referee = |referees = <!-- If there are multiple referees --> |penalties1 = |penaltyscore = |penalties2 = |size = <!-- changes the width; use a percentage; include "%" after the percentage; default is "100%" --> |bg = <!-- changes the background color; use a hex color code; include "#" before the hex color code; default is "transparent" --> }}
Example
{{footballbox |date = 13 August 2017 |team1 = Senya [[File:Senya flag.png|25px|border|Senya]] |score =1 – 2 |team2 = [[File:Tellia flag.png|25px|border|Tellia]] Tellia |goals1 = [[Alesandrœ Danetskë|Danetskë]] {{goal|36}} |goals2 = [[Sezer Özker|Özker]] {{goal|2}}<br>[[Marko Zajc|Zajc]] {{goal|42}} |stadium = [[The Snakepit]], [[Svorgas]] }}
produces:
The above documentation is transcluded from Template:Footballbox/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |