Template:Football box/doc

From HasanistanPedia
Jump to navigation Jump to search

Usage

All attributes are optional.

<syntaxhighlight lang="wikitext" style="overflow:auto">

v

</syntaxhighlight>

Example

<syntaxhighlight lang="wikitext" style="overflow:auto">

Italy 1–1 (a.e.t.) France
Materazzi 19' Report Zidane 7' (pen.)
Penalties
5–3
Attendance: 69,000

</syntaxhighlight>

produces:

See also

Tracking categories

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 for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Football box in articles based on its TemplateData.

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": "2006 FIFA World Cup", "type": "string", "required": true }, "team1": { "description": "The team that is or is treated as a home team", "example": "Italy", "type": "string", "required": true }, "team2": { "description": "The team that is or is treated as the away team", "example": "France", "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": "Final", "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": "1", "default": "0", "type": "number", "required": true }, "score": { "description": "The final score i.e. outcome of the match; fallback for score1 and score2", "example": "1-1", "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": "Materazzi 19'", "required": true, "type": "string" }, "report": { "description": "Links to the official report page of the match", "example": "https://www.fifa.com/worldcup/matches/round=97410600/match=97410064/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": "Zidane 7 (pen.)'", "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": "Pirlo football with check mark", "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": "Trezeguet football with red X", "type": "string", "suggested": true }, "stadium": { "description": "The stadium in which the match took place", "example": "Olympiastadion", "type": "string", "required": true }, "location": { "description": "The address or location of the stadium", "example": "Berlin", "type": "string", "suggested": true }, "attendance": { "description": "The number of people in the stadium of the match", "example": "69,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 }, "aet": { "description": "Included when match is decided in extra-time or penalty-shoot", "type": "string", "suggested": true } }, "format": "block" } </templatedata>