Difference between revisions of "Template:Football box/doc"

From blackwiki
Jump to navigation Jump to search
imported>Izno
(direct dependencies)
 
(60 intermediate revisions by 23 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
{{High-use| 18910 }}
 +
{{Lua|Module:Football box}}
 +
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
  
 
== Usage ==
 
== Usage ==
Line 8: Line 10:
 
<pre style="overflow:auto">
 
<pre style="overflow:auto">
 
{{Football box
 
{{Football box
| date        = <!-- {{Start date|YYYY|MM|DD|df=y}} or mf=y -->  
+
|id          =
| event        =  
+
|date        = <!-- {{Start date|YYYY|MM|DD|df=y}} -->
| round        =  
+
|time        =
| time        =  
+
|event        =
| team1        =  
+
|round        =
| team2        =  
+
|team1        =
| score        =  
+
|score1      =
| aet          =  
+
|team2        =
| goals1      =  
+
|score2      =
| goals2      =  
+
|scorenote    =  
| stadium      =  
+
|aet          =
| attendance  =  
+
|report      =
| referee      =
+
|goals1      =
| report      =  
+
|goals2      =
| penalties1  =  
+
|stadium      =
| penaltyscore =  
+
|location    =
| penalties2  =  
+
|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" -->
 
}}
 
}}
 
</pre>
 
</pre>
  
 
== Example ==
 
== Example ==
 
 
<pre style="overflow:auto">
 
<pre style="overflow:auto">
 
{{Football box
 
{{Football box
| date       = {{Start date|2006|07|09|df=y}}
+
|id          = Italy v France
| event     = [[2006 FIFA World Cup]]
+
|date         = {{Start date|2006|07|09|df=y}}
| round     = Final
+
|time        = 20:00 [[Central European Summer Time|CEST]]
| time      = 20:00 ([[Central European Summer Time|CEST]])
+
|event       = [[2006 FIFA World Cup]]
| team1     = {{fb-rt|ITA}}
+
|round       = [[2006 FIFA World Cup Final|Final]]
| team2     = {{fb|FRA}}
+
|team1       = {{fb-rt|ITA}}
| score      = 1 – 1
+
|score1      = 1
| aet       = yes
+
|team2       = {{fb|FRA}}
| goals1     = [[Marco Materazzi|Materazzi]] {{goal|19}}
+
|score2      = 1
| goals2     = [[Zinedine Zidane|Zidane]] {{goal|7|pen.}}
+
|aet         = yes
| stadium   = [[Olympic Stadium (Berlin)|Olympiastadion]], [[Berlin]]
+
|report      = https://www.fifa.com/worldcup/matches/round=97410600/match=97410064/index.html
| attendance = 69,000
+
|goals1       = [[Marco Materazzi|Materazzi]] {{goal|19}}
| referee   = [[Horacio Elizondo]] ([[Argentine Football Association|Argentina]])
+
|goals2       = [[Zinedine Zidane|Zidane]] {{goal|7|pen.}}
| report    = [http://www.fifa.com/worldcup/archive/germany2006/results/matches/match=97410064/report.html Report]
+
|stadium     = [[Olympiastadion (Berlin)|Olympiastadion]]
| penalties1 = [[Andrea Pirlo|Pirlo]] {{pengoal}}<br />[[Marco Materazzi|Materazzi]] {{pengoal}}<br />[[Daniele De Rossi|De Rossi]] {{pengoal}}<br />[[Alessandro Del Piero|Del Piero]] {{pengoal}}<br />[[Fabio Grosso|Grosso]] {{pengoal|scored}}
+
|location    = [[Berlin]]
| penaltyscore = 5 – 3
+
|attendance   = 69,000
| penalties2 = {{pengoal}} [[Sylvain Wiltord|Wiltord]]<br />{{penmiss|hit crossbar}} [[David Trezeguet|Trezeguet]]<br />{{pengoal}} [[Éric Abidal|Abidal]]<br />{{pengoal}} [[Willy Sagnol|Sagnol]]
+
|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]]
 
}}
 
}}
 
</pre>
 
</pre>
Line 55: Line 74:
  
 
{{Football box
 
{{Football box
| date       = {{Start date|2006|07|09|df=y}}
+
|id          = Italy v France
| event     = [[2006 FIFA World Cup]]
+
|date         = {{Start date|2006|07|09|df=y}}
| round     = Final
+
|time        = 20:00 [[Central European Summer Time|CEST]]
| time      = 20:00 ([[Central European Summer Time|CEST]])
+
|event       = [[2006 FIFA World Cup]]
| team1     = {{fb-rt|ITA}}
+
|round       = [[2006 FIFA World Cup Final|Final]]
| team2     = {{fb|FRA}}
+
|team1       = {{fb-rt|ITA}}
| score      = 1 – 1
+
|score1      = 1
| aet       = yes
+
|team2       = {{fb|FRA}}
| goals1     = [[Marco Materazzi|Materazzi]] {{goal|19}}
+
|score2      = 1
| goals2     = [[Zinedine Zidane|Zidane]] {{goal|7|pen.}}
+
|aet         = yes
| stadium   = [[Olympic Stadium (Berlin)|Olympiastadion]], [[Berlin]]
+
|report      = https://www.fifa.com/worldcup/matches/round=97410600/match=97410064/index.html
| attendance = 69,000
+
|goals1       = [[Marco Materazzi|Materazzi]] {{goal|19}}
| referee   = [[Horacio Elizondo]] ([[Argentine Football Association|Argentina]])
+
|goals2       = [[Zinedine Zidane|Zidane]] {{goal|7|pen.}}
| report    = [http://www.fifa.com/worldcup/archive/germany2006/results/matches/match=97410064/report.html Report]
+
|stadium     = [[Olympiastadion (Berlin)|Olympiastadion]]
| penalties1 = [[Andrea Pirlo|Pirlo]] {{pengoal}}<br />[[Marco Materazzi|Materazzi]] {{pengoal}}<br />[[Daniele De Rossi|De Rossi]] {{pengoal}}<br />[[Alessandro Del Piero|Del Piero]] {{pengoal}}<br />[[Fabio Grosso|Grosso]] {{pengoal|scored}}
+
|location    = [[Berlin]]
| penaltyscore = 5 – 3
+
|attendance   = 69,000
| penalties2 = {{pengoal}} [[Sylvain Wiltord|Wiltord]]<br />{{penmiss|hit crossbar}} [[David Trezeguet|Trezeguet]]<br />{{pengoal}} [[Éric Abidal|Abidal]]<br />{{pengoal}} [[Willy Sagnol|Sagnol]]
+
|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]]
 
}}
 
}}
 
In the goals area, you can add:
 
 
*<code><nowiki>{{penmiss}}</nowiki> -> </code>{{penmiss}}
 
*<code><nowiki>{{penmiss|goalkeeper saved}}</nowiki> -> </code>{{penmiss|goalkeeper saved}}
 
 
  
 
==See also==
 
==See also==
* {{Tl|Football box header}}
+
{{Football match report templates}}
{{Match report templates}}
+
==Tracking category==
* {{Tl|TeamMatchbox}}
+
* {{clc|Pages using football box with unknown parameters}}
* {{Tl|Football box collapsible}}
+
'''All tracking'''
 +
{{plainlist|{{:Special:PrefixIndex/Category:Pages using football box}}}}
  
==Microformats==
+
==Microdata==
{{UF-hcard-short}}
+
This template outputs structured data, in microdata format, as a [http://schema.org/SportsEvent schema.org SportsEvent]. To verify the data, you can use [https://search.google.com/structured-data/testing-tool Google's structured data testing tool] on pages that transclude this template.
{{UF-hcal}}
 
  
<includeonly>
+
==TemplateData==
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
{{TemplateData header}}
 +
<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": "{{Start date|2006|07|09|df=y}}",
 +
"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 [[Central European Summer Time|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
 +
},
 +
"scorenote": {
 +
"description": "An optional note clarifying the final score",
 +
"example": "Decided by a coin flip",
 +
"type": "string"
 +
},
 +
"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 {{pengoal}}",
 +
"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 {{penmiss}}",
 +
"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 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>
  
 +
<includeonly>{{Sandbox other||
 +
<!-- CATEGORIES HERE, THANKS -->
 
[[Category:Sports match box templates|Football]]
 
[[Category:Sports match box templates|Football]]
 
[[Category:Association football templates]]
 
[[Category:Association football templates]]
 
+
}}</includeonly>
[[ar:قالب:Footballbox]]
 
[[ca:Plantilla:Futbol box]]
 
[[cs:Šablona:Fotbalbox]]
 
[[da:Skabelon:Fodboldkamp]]
 
[[eo:Ŝablono:Tabelo futbalo]]
 
[[es:Plantilla:Partidos]]
 
[[fa:الگو:جعبه فوتبال]]
 
[[fr:Modèle:Footballbox]]
 
[[gv:Template:Kishteybluckancoshey]]
 
[[hr:Predložak:Footballbox]]
 
[[hy:Կաղապար:Ֆուտբոլային հանդիպում]]
 
[[ko:틀:축구 경기 정보]]
 
[[it:Template:Footballbox]]
 
[[ka:თარგი:მატჩის შედეგები]]
 
[[lv:Veidne:Futbola spēle]]
 
[[nl:Sjabloon:Footballbox]]
 
[[ja:Template:Footballbox]]
 
[[pl:Szablon:Mecz piłkarski]]
 
[[pt:Predefinição:Footballbox]]
 
[[ru:Шаблон:Отчёт о матче]]
 
[[sv:Mall:Resultat]]
 
[[tr:Şablon:Footballbox]]
 
[[uk:Шаблон:Footballbox]]
 
[[zh:Template:Footballbox]]
 
</includeonly>
 

Latest revision as of 23:42, 2 January 2021

Usage

All attributes are optional.

{{Football box
|id           =
|date         = <!-- {{Start date|YYYY|MM|DD|df=y}} -->
|time         =
|event        =
|round        =
|team1        =
|score1       =
|team2        =
|score2       =
|scorenote    = 
|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:

Page Template:Football box/styles.css has no content.

See also

Goal {{goal}}
Template:Yel {{yel}} Template:Sent off {{sent off}} Template:Sent off {{sent off|1}} Template:Sent off {{sent off|2}}
Template:Subon {{subon}} Template:Suboff {{suboff}}
Template:Pengoal {{pengoal}} Template:Penmiss {{penmiss}}
Golden goal {{golden goal}} Template:Silver goal {{silver goal}}

Tracking categories

Category:Soccer template needing maintenance (0): for templates using an apostrophe at the end of a minute value (remove the apostrophe to fix the error)

Tracking category

All tracking

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 parameter usage 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 prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Datedate

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

Example
{{Start date|2006|07|09|df=y}}
Daterequired
Eventevent

The name of the competition of the match

Example
2014-15 UEFA Champions League
Stringrequired
Team1team1

The team that is or is treated as a home team

Example
Barcelona (if venue is Camp Nou)
Stringrequired
Team2team2

The team that is or is treated as the away team

Example
Manchester City (If venue is other than Etihad stadium)
Stringrequired
Timetime

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

Example
20:00 [[Central European Summer Time|CEST]] ([[UTC+02:00]])
Numberrequired
Roundround

This shows at which level is the match being played

Example
Round of 16
Stringrequired
Score1score1

The final score of the home team

Default
0
Example
1
Numberrequired
Score2score2

The final score of the away team

Default
0
Example
0
Numberrequired
Scorescore

The final score i.e. outcome of the match; fallback for score1 and score2

Example
1-0
Stringdeprecated
Scorenotescorenote

An optional note clarifying the final score

Example
Decided by a coin flip
Stringoptional
Goals1goals1

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

Example
Ramos 90+3'
Stringrequired
Reportreport

Links to the official report page of the match

Example
https://www.fifa.com/worldcup/archive/germany2006/index.html
URLrequired
Goals2goals2

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

Example
Neymar 58'
Stringrequired
Penaltyscorepenaltyscore

The final score after penalty shoot-out

Example
5-3
Numbersuggested
Penalties1penalties1

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

Example
Sánchez {{pengoal}}
Stringsuggested
Penalties2penalties2

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

Example
Higuaín {{penmiss}}
Stringsuggested
Stadiumstadium

The stadium in which the match took place

Example
Camp Nou
Stringrequired
Locationlocation

The address or location of the stadium

Example
Barcelona
Stringsuggested
Attendanceattendance

The number of people in the stadium of the match

Example
71,000
Numberrequired
Refereereferee

The official referee of the match and their country in braces

Example
Horacio Elizondo (Argentina)
Stringrequired
Motmmotm

The elected man of the match and their country in braces or country flag

Example
Neymar (Brazil)
Stringoptional
Aetaet

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

Stringsuggested