Template:Football box: Difference between revisions

From TSP Encyclopedia
Jump to navigation Jump to search
>Anserisa
(Created page with "{{#invoke:football box|main}}<noinclude>{{Documentation}}</noinclude>")
 
>Anserisa
No edit summary
Line 1: Line 1:
{{#invoke:football box|main}}<noinclude>{{Documentation}}</noinclude>
{{#invoke:football box|main}}<noinclude>{{Documentation}}<templatedata> { "params": { "id": { "label": "ID", "description": "Unique anchor to the match.", "example": "Italy v France", "type": "string", "suggested": true }, "team1": { "label": "Team 1", "description": "First team displayed, usually home team.", "example": "Italy", "type": "string", "required": true }, "team2": { "label": "Team 2", "description": "Second team displayed, usually guest team.", "example": "France", "type": "string", "required": true }, "class": { "label": "Class", "description": "Used to uncollapse the box.", "example": "uncollapsed, collapsible, collapsible collapsed", "type": "string" }, "nobars": { "label": "No Bars", "description": "Set to 1 to hide bars.", "example": "1", "type": "number" }, "size": { "label": "Size", "description": "Width of the box.", "example": "80%", "type": "number", "default": "100%" }, "result": { "label": "Result", "description": "Changes the color of the box based on result.", "example": "W, D, L", "type": "string" }, "bg": { "label": "Background", "description": "Background color.", "example": "red", "type": "string" }, "format": { "label": "Format", "description": "Set to 1 to leave more space for round/date and location.", "example": "1", "type": "number" }, "date": { "label": "Date", "description": "Displays the date the match took place.", "example": "9 July 2006", "type": "date" }, "round": { "label": "Round", "description": "The competition round the match belongs to.", "example": "2006 FIFA World Cup Final", "type": "string", "suggested": true }, "score": { "label": "Score", "description": "The match score.", "example": "1–1", "type": "string", "suggested": true }, "scorenote": { "description": "An optional note clarifying the final score", "example": "Decided by a coin flip", "type": "string", "default": "no", "autovalue": "" }, "aet": { "label": "AET", "description": "Set to \"yes\" if the match went into extra time.", "example": "yes", "type": "boolean", "default": "no", "autovalue": "" }, "aggregatescore": { "label": "Aggregate Score", "description": "The aggregate score for matches played over two legs.", "type": "string" }, "penaltyscore": { "label": "Penalty Score", "description": "The score in the penalty shoot-out.", "example": "5–3", "type": "string" }, "shootoutscore": { "label": "Shootout Score", "description": "The score in the penalty shoot-out (alternative to penaltyscore).", "example": "5–3", "type": "string" }, "location": { "label": "Location", "description": "The city the match took place in.", "example": "Berlin, Germany", "type": "string", "suggested": true }, "stadium": { "label": "Stadium", "description": "The name of the stadium that was played in.", "example": "Olympiastadion", "type": "string", "suggested": true }, "time": { "label": "Time", "description": "Time the match took place.", "example": "20:00 CEST (UTC+02:00)", "type": "string" }, "goals1": { "label": "Goals 1", "description": "The goals (and cards) for the home team.", "example": "Materazzi Template:Goal", "type": "string", "suggested": true }, "report": { "label": "Report", "description": "The URL of a match report.", "example": "https://www.fifa.com/worldcup/matches/round=97410600/match=97410064/index.html#nosticky", "type": "url", "required": true }, "goals2": { "label": "Goals 2", "description": "The goals (and cards) for the guest team.", "example": "Zidane Template:Goal, Template:Sent off", "type": "string", "suggested": true }, "attendance": { "label": "Attendance", "description": "The number of people attending the match.", "example": "69,000", "type": "number" }, "referee": { "label": "Referee", "description": "The referee for the match.", "example": "Horacio Elizondo (Argentina)" }, "assistantreferees": { "label": "Assistant Referees", "description": "The assistant referees for the match.", "example": "Dario García (Argentina)", "type": "string" }, "assistantreferee2": { "label": "Assistant Referee 2", "description": "Second assistant referee; rarely used as usually both assistants go in the \"assistantreferees\" field", "example": "Rodolfo Otero (Argentina)" }, "fourthofficial": { "label": "Fourth Official", "description": "The fourth official for the match.", "example": "Luis Medina Cantalejo (Spain)", "type": "string" }, "fifthofficial": { "label": "Fifth Official", "description": "The fifth official for the match.", "example": "Victoriano Giraldez Carrasco (Spain)", "type": "string" }, "goallineassistants": { "label": "Goal Line Assistants", "description": "The goal line assistants for the match.", "type": "string" }, "goallineassistant2": { "label": "Goal Line Assistant 2", "description": "Second goal line assistant; rarely used as usually both assistants go in the \"goallineassistants\" field", "type": "string" }, "motm": { "label": "Man of the Match", "description": "The Man of the Match.", "example": "Andrea Pirlo", "type": "string" }, "mvp": { "label": "MVP", "description": "The Most Valuable Player", "type": "string" }, "penalties1": { "label": "Penalties 1", "description": "The penalties for the home team.", "example": "Pirlo Template:Pengoal", "type": "string" }, "penalties2": { "label": "Penalties 2", "description": "The penalties for the guest team.", "example": "Template:Pengoal Wiltord", "type": "string" }, "shootout1": { "label": "Shootout 1", "description": "The shootout goal attempts for the home team.", "example": "Pirlo Template:Pengoal", "type": "string" }, "shootout2": { "label": "Shootout 2", "description": "The shootout goal attempts for the guest team.", "example": "Template:Pengoal Wiltord", "type": "string" }, "note": { "label": "Note", "description": "Space for any notes regarding the match.", "type": "string" } }, "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. It is collapsible.", "paramOrder": [ "id", "date", "time", "round", "score", "report", "team1", "goals1", "team2", "goals2", "scorenote", "stadium", "aet", "location", "attendance", "referee", "assistantreferees", "assistantreferee2", "fourthofficial", "fifthofficial", "goallineassistants", "goallineassistant2", "aggregatescore", "motm", "mvp", "note", "penalties1", "penaltyscore", "penalties2", "shootout1", "shootoutscore", "shootout2", "format", "size", "result", "bg", "nobars", "class" ] } </templatedata></noinclude>

Revision as of 00:01, 19 July 2020

{{{team1}}}v{{{team2}}}

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. It is collapsible.

Template parameters

ParameterDescriptionTypeStatus
IDid

Unique anchor to the match.

Example
Italy v France
Stringsuggested
Datedate

Displays the date the match took place.

Example
9 July 2006
Dateoptional
Timetime

Time the match took place.

Example
20:00 CEST (UTC+02:00)
Stringoptional
Roundround

The competition round the match belongs to.

Example
2006 FIFA World Cup Final
Stringsuggested
Scorescore

The match score.

Example
1–1
Stringsuggested
Reportreport

The URL of a match report.

Example
https://www.fifa.com/worldcup/matches/round=97410600/match=97410064/index.html#nosticky
URLrequired
Team 1team1

First team displayed, usually home team.

Example
Italy
Stringrequired
Goals 1goals1

The goals (and cards) for the home team.

Example
Materazzi Template:Goal
Stringsuggested
Team 2team2

Second team displayed, usually guest team.

Example
France
Stringrequired
Goals 2goals2

The goals (and cards) for the guest team.

Example
Zidane Template:Goal, Template:Sent off
Stringsuggested
scorenotescorenote

An optional note clarifying the final score

Default
no
Example
Decided by a coin flip
Auto value
Stringoptional
Stadiumstadium

The name of the stadium that was played in.

Example
Olympiastadion
Stringsuggested
AETaet

Set to "yes" if the match went into extra time.

Default
no
Example
yes
Auto value
Booleanoptional
Locationlocation

The city the match took place in.

Example
Berlin, Germany
Stringsuggested
Attendanceattendance

The number of people attending the match.

Example
69,000
Numberoptional
Refereereferee

The referee for the match.

Example
Horacio Elizondo (Argentina)
Unknownoptional
Assistant Refereesassistantreferees

The assistant referees for the match.

Example
Dario García (Argentina)
Stringoptional
Assistant Referee 2assistantreferee2

Second assistant referee; rarely used as usually both assistants go in the "assistantreferees" field

Example
Rodolfo Otero (Argentina)
Unknownoptional
Fourth Officialfourthofficial

The fourth official for the match.

Example
Luis Medina Cantalejo (Spain)
Stringoptional
Fifth Officialfifthofficial

The fifth official for the match.

Example
Victoriano Giraldez Carrasco (Spain)
Stringoptional
Goal Line Assistantsgoallineassistants

The goal line assistants for the match.

Stringoptional
Goal Line Assistant 2goallineassistant2

Second goal line assistant; rarely used as usually both assistants go in the "goallineassistants" field

Stringoptional
Aggregate Scoreaggregatescore

The aggregate score for matches played over two legs.

Stringoptional
Man of the Matchmotm

The Man of the Match.

Example
Andrea Pirlo
Stringoptional
MVPmvp

The Most Valuable Player

Stringoptional
Notenote

Space for any notes regarding the match.

Stringoptional
Penalties 1penalties1

The penalties for the home team.

Example
Pirlo Template:Pengoal
Stringoptional
Penalty Scorepenaltyscore

The score in the penalty shoot-out.

Example
5–3
Stringoptional
Penalties 2penalties2

The penalties for the guest team.

Example
Template:Pengoal Wiltord
Stringoptional
Shootout 1shootout1

The shootout goal attempts for the home team.

Example
Pirlo Template:Pengoal
Stringoptional
Shootout Scoreshootoutscore

The score in the penalty shoot-out (alternative to penaltyscore).

Example
5–3
Stringoptional
Shootout 2shootout2

The shootout goal attempts for the guest team.

Example
Template:Pengoal Wiltord
Stringoptional
Formatformat

Set to 1 to leave more space for round/date and location.

Example
1
Numberoptional
Sizesize

Width of the box.

Default
100%
Example
80%
Numberoptional
Resultresult

Changes the color of the box based on result.

Example
W, D, L
Stringoptional
Backgroundbg

Background color.

Example
red
Stringoptional
No Barsnobars

Set to 1 to hide bars.

Example
1
Numberoptional
Classclass

Used to uncollapse the box.

Example
uncollapsed, collapsible, collapsible collapsed
Stringoptional