Template:Football box/doc

From RabastorWiki
< Template:Football box
Revision as of 08:38, 22 February 2017 by Admin (talk | contribs) (Created page with "<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> == Usage == All attributes are optional. <pre style="overflow:auto"> {{Football box |id =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

All attributes are optional.

{{Football box
|id           =
|date         = <!-- {{Start date|YYYY|MM|DD|df=y}} -->
|time         =
|event        =
|round        =
|team1        =
|score        =
|aet          =
|report       =
|team2        =
|goals1       =
|goals2       =
|stadium      =
|attendance   =
|referee      =
|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

{{Football box
|id           = Italy v France
|date         = {{Start date|2006|07|09|df=y}}
|time         = 20:00 [[Central European Summer Time|CEST]]
|event        = [[2006 FIFA World Cup]]
|round        = [[2006 FIFA World Cup Final|Final]]
|team1        = {{fb-rt|ITA}}
|score        = 1–1
|aet          = yes
|report       = http://www.fifa.com/worldcup/matches/round=97410600/match=97410064/index.html
|team2        = {{fb|FRA}}
|goals1       = [[Marco Materazzi|Materazzi]] {{goal|19}}
|goals2       = [[Zinedine Zidane|Zidane]] {{goal|7|pen.}}
|stadium      = [[Olympiastadion (Berlin)|Olympiastadion]], [[Berlin]]
|attendance   = 69,000
|referee      = [[Horacio Elizondo]] ({{nfa|ARG}})
|penaltyscore = 5–3
|penalties1   = 
* [[Andrea Pirlo|Pirlo]] {{pengoal}}
* [[Marco Materazzi|Materazzi]] {{pengoal}}
* [[Daniele De Rossi|De Rossi]] {{pengoal}}
* [[Alessandro Del Piero|Del Piero]] {{pengoal}}
* [[Fabio Grosso|Grosso]] {{pengoal}}
|penalties2   = 
* {{pengoal}} [[Sylvain Wiltord|Wiltord]]
* {{penmiss}} [[David Trezeguet|Trezeguet]]
* {{pengoal}} [[Éric Abidal|Abidal]]
* {{pengoal}} [[Willy Sagnol|Sagnol]]
}}

Note there is an optional "adg" variable which can be used like the "aet" variable, to specify whether a shootout under Attacker-Defender-Goalkeeper rules was used rather than the traditional penalty shootout.