Template:Football box/doc

< Template:Football box
Revision as of 20:59, 29 October 2018 by Ayzek (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Lua error: Internal error: The interpreter exited with status 127. Lua error: Internal error: The interpreter exited with status 127.

Usage

All attributes are optional.

{{Football box
|id           =
|date         = <!-- {{Start date|YYYY|MM|DD|df=y}} -->
|time         =
|event        =
|round        =
|team1        =
|score1       =
|team2        =
|score2       =
|aet          =
|report       =
|goals1       =
|goals2       =
|stadium      =
|location     =
|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}}
|score1       = 1
|team2        = {{fb|FRA}}
|score2       = 1
|aet          = yes
|report       = https://www.fifa.com/worldcup/matches/round=97410600/match=97410064/index.html
|goals1       = [[Marco Materazzi|Materazzi]] {{goal|19}}
|goals2       = [[Zinedine Zidane|Zidane]] {{goal|7|pen.}}
|stadium      = [[Olympiastadion (Berlin)|Olympiastadion]]
|location     = [[Berlin]]
|attendance   = 69,000
|referee      = [[Horacio Elizondo]] ([[Argentine Football Association|Argentina]])
|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]]
}}

produces:

Lua error: Internal error: The interpreter exited with status 127.

See also

Goal {{goal}}
Yellow card {{yel}} Red card {{sent off}} Yellow cardRed card {{sent off|1}} Yellow cardYellow cardRed card {{sent off|2}}
Substituted in {{subon}} Substituted off {{suboff}}
Penalty scored {{pengoal}} Penalty missed {{penmiss}}
Golden goal {{golden goal}} Silver goal {{silver goal}}

Microdata

This template outputs structured data, in microdata format, as a schema.org SportsEvent. To verify the data, you can use Google's structured data testing tool on pages that transclude this template.

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly error report for this template.

TemplateData for Football box

<templatedata> { "description": "This template displays the summary of a football (soccer) match. The summary include date and time, stadium, competing teams, goal scorers and the minute of goal, a link to the official match report and attendance of the stadium. It also includes whether or not the match went to extra-time or penalty-shoots and displays respective results.", "params": { "date": { "description": "The date on which the match took place or will be taking place", "example": "9 July 2006 (2006-07-09)", "type": "date", "required": true }, "event": { "description": "The name of the competition of the match", "example": "2014-15 UEFA Champions League", "type": "string", "required": true }, "team1": { "description": "The team that is or is treated as a home team", "example": "Barcelona (if venue is Camp Nou)", "type": "string", "required": true }, "team2": { "description": "The team that is or is treated as the away team", "example": "Manchester City (If venue is other than Etihad stadium)", "type": "string", "required": true }, "time": { "description": "The time at which match starts and the time zone is mentioned beside the timings", "example": "20:00 CEST (UTC+02:00)", "type": "number", "required": true }, "round": { "description": "This shows at which level is the match being played", "example": "Round of 16", "type": "string", "required": true }, "score1": { "description": "The final score of the home team", "example": "1", "default": "0", "type": "number", "required": true }, "score2": { "description": "The final score of the away team", "example": "0", "default": "0", "type": "number", "required": true }, "score": { "description": "The final score i.e. outcome of the match; fallback for score1 and score2", "example": "1-0", "type": "string", "deprecated": true }, "goals1": { "description": "Goals scored by the home team, including name of the scorer and minute of the goal", "example": "Ramos 90+3'", "required": true, "type": "string" }, "report": { "description": "Links to the official report page of the match", "example": "https://www.fifa.com/worldcup/archive/germany2006/index.html", "type": "url", "required": true }, "goals2": { "description": "Goals scored by the away team, including name of the scorer and the minute of goal", "example": "Neymar 58'", "required": true, "type": "string" }, "penaltyscore": { "description": "The final score after penalty shoot-out", "example": "5-3", "type": "number", "suggested": true }, "penalties1": { "description": "Penalties scored by the home team, including name of penalty-taker and whether or not it was scored", "example": "Sánchez Penalty scored", "type": "string", "suggested": true }, "penalties2": { "description": "Penalties scored by the away team, including name of penalty-taker and whether or not it was scored.", "example": "Higuaín Penalty missed", "type": "string", "suggested": true }, "stadium": { "description": "The stadium in which the match took place", "example": "Camp Nou", "type": "string", "required": true }, "location": { "description": "The address or location of the stadium", "example": "Barcelona", "type": "string", "suggested": true }, "attendance": { "description": "The number of people in the stadium of the match", "example": "71,000", "type": "number", "required": true }, "referee": { "description": "The official referee of the match and their country in braces", "example": "Horacio Elizondo (Argentina)", "type": "string", "required": true }, "motm": { "description": "The elected man of the match and their their country in braces or country flag", "example": "Neymar (Brazil)", "type": "string", "required": false }, "aet": { "description": "Included when match is decided in extra-time or penalty-shoot", "type": "string", "suggested": true } }, "format": "block" } </templatedata>