Permanently protected template

Template:Football box

From Wikipedia, the free encyclopedia
  (Redirected from Template:Footballbox)
Jump to: navigation, search

{{{date}}}
{{{team1}}} v {{{team2}}}
Template documentation[view] [edit] [history] [purge]

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]]
}}

produces:

9 July 2006 (2006-07-09)
20:00 CEST
Final
Italy  1–1 (a.e.t.)  France
Materazzi Goal 19' Report Zidane Goal 7' (pen.)
  Penalties  
5–3
Olympiastadion, Berlin
Attendance: 69,000
Referee: Horacio Elizondo (Argentina)

See also

Goal {{goal}}
YC {{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}}

Microformats

The HTML markup produced by this template includes an hCard microformat, which makes the person's or organisation's name parsable by computers, either acting automatically to catalogue articles across Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book. For more information about the use of microformats on Wikipedia, please see the microformat project.

The hCard in this template uses at least some of these HTML classes:

  • fn (required)
  • nickname
  • org
  • vcard

Please do not rename or remove these classes nor collapse nested elements which use them.

The HTML mark-up produced by this template includes an hCalendar microformat that makes event details readily parsable by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases. For more information about the use of microformats on Wikipedia, please visit the Microformat WikiProject.
Classes used

The HTML classes this microformat uses include:

  • attendee
  • contact
  • description
  • dtend
  • dtstart
  • location
  • organiser
  • summary
  • url
  • vevent
Please do not rename or remove these classes
nor collapse nested elements which use them.

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

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.

Template parameters

This template has custom formatting.

Parameter Description Type Status
Date date

The date on which the match took place or will be taking place

Default
empty
Example
{{Start date|2006|07|09|df=y}}
Auto value
empty
Date required
Event event

The name of the competition of the match

Default
empty
Example
2014-15 UEFA Champions League
Auto value
empty
String required
Team1 team1

The team that is or is treated as a home team

Default
empty
Example
Barcelona (if venue is Camp Nou)
Auto value
empty
String required
Team2 team2

The team that is or is treated as the away team

Default
empty
Example
Manchester City (If venue is other than Etihad stadium)
Auto value
empty
String required
Time time

The time at which match starts and the time zone is mentioned beside the timings

Default
empty
Example
20:00 [[Central European Summer Time|CEST]] ([[UTC+02:00]])
Auto value
empty
Number required
Round round

This shows at which level is the match being played

Default
empty
Example
Round of 16
Auto value
empty
String required
Score score

The final score i.e. outcome of the match

Default
empty
Example
1-0
Auto value
empty
Number required
Goals1 goals1

Goals scored by the home team, including name of the scorer and minute of the goal

Default
empty
Example
Ramos 90+3'
Auto value
empty
String required
Report report

Links to the official report page of the match

Default
empty
Example
http://www.fifa.com/worldcup/archive/germany2006/index.html
Auto value
empty
URL required
Goals2 goals2

Goals scored by the away team, including name of the scorer and the minute of goal

Default
empty
Example
Neymar 58'
Auto value
empty
String required
Penaltyscore penaltyscore

The final score after penalty shoot-out

Default
empty
Example
5-3
Auto value
empty
Number suggested
Penalties1 penalties1

Penalties scored by the home team, including name of penalty-taker and whether or not it was scored

Default
empty
Example
Sánchez {{pengoal}}
Auto value
empty
String suggested
Penalties2 penalties2

Penalties scored by the away team, including name of penalty-taker and whether or not it was scored.

Default
empty
Example
Higuaín {{penmiss}}
Auto value
empty
String suggested
Stadium stadium

The stadium in which the match took place

Default
empty
Example
Camp Nou
Auto value
empty
String required
Attendance attendance

The number of people in the stadium of the match

Default
empty
Example
71,000
Auto value
empty
Number required
Referee referee

The official referee of the match and their country in braces

Default
empty
Example
Horacio Elizondo (Argentina)
Auto value
empty
String required
Aet aet

Included when match is decided in extra-time or penalty-shoot

Default
empty
Example
empty
Auto value
empty
URL suggested