Template:Football box: Difference between revisions
>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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id | Unique anchor to the match.
| String | suggested |
Date | date | Displays the date the match took place.
| Date | optional |
Time | time | Time the match took place.
| String | optional |
Round | round | The competition round the match belongs to.
| String | suggested |
Score | score | The match score.
| String | suggested |
Report | report | The URL of a match report.
| URL | required |
Team 1 | team1 | First team displayed, usually home team.
| String | required |
Goals 1 | goals1 | The goals (and cards) for the home team.
| String | suggested |
Team 2 | team2 | Second team displayed, usually guest team.
| String | required |
Goals 2 | goals2 | The goals (and cards) for the guest team.
| String | suggested |
scorenote | scorenote | An optional note clarifying the final score
| String | optional |
Stadium | stadium | The name of the stadium that was played in.
| String | suggested |
AET | aet | Set to "yes" if the match went into extra time.
| Boolean | optional |
Location | location | The city the match took place in.
| String | suggested |
Attendance | attendance | The number of people attending the match.
| Number | optional |
Referee | referee | The referee for the match.
| Unknown | optional |
Assistant Referees | assistantreferees | The assistant referees for the match.
| String | optional |
Assistant Referee 2 | assistantreferee2 | Second assistant referee; rarely used as usually both assistants go in the "assistantreferees" field
| Unknown | optional |
Fourth Official | fourthofficial | The fourth official for the match.
| String | optional |
Fifth Official | fifthofficial | The fifth official for the match.
| String | optional |
Goal Line Assistants | goallineassistants | The goal line assistants for the match. | String | optional |
Goal Line Assistant 2 | goallineassistant2 | Second goal line assistant; rarely used as usually both assistants go in the "goallineassistants" field | String | optional |
Aggregate Score | aggregatescore | The aggregate score for matches played over two legs. | String | optional |
Man of the Match | motm | The Man of the Match.
| String | optional |
MVP | mvp | The Most Valuable Player | String | optional |
Note | note | Space for any notes regarding the match. | String | optional |
Penalties 1 | penalties1 | The penalties for the home team.
| String | optional |
Penalty Score | penaltyscore | The score in the penalty shoot-out.
| String | optional |
Penalties 2 | penalties2 | The penalties for the guest team.
| String | optional |
Shootout 1 | shootout1 | The shootout goal attempts for the home team.
| String | optional |
Shootout Score | shootoutscore | The score in the penalty shoot-out (alternative to penaltyscore).
| String | optional |
Shootout 2 | shootout2 | The shootout goal attempts for the guest team.
| String | optional |
Format | format | Set to 1 to leave more space for round/date and location.
| Number | optional |
Size | size | Width of the box.
| Number | optional |
Result | result | Changes the color of the box based on result.
| String | optional |
Background | bg | Background color.
| String | optional |
No Bars | nobars | Set to 1 to hide bars.
| Number | optional |
Class | class | Used to uncollapse the box.
| String | optional |