Difference between revisions of "Template:Football box/doc"
imported>Husn shujaat |
imported>Husn shujaat (Added details of parameters) |
||
| Line 154: | Line 154: | ||
"Home goals" | "Home goals" | ||
], | ], | ||
| − | "description": "Goals scored by the home team, | + | "description": "Goals scored by the home team, including name of the scorer and minute of the goal", |
"example": "Ramos 90+3'", | "example": "Ramos 90+3'", | ||
"required": true | "required": true | ||
| Line 163: | Line 163: | ||
"Away goals" | "Away goals" | ||
], | ], | ||
| − | "description": "Goals scored by the away team, | + | "description": "Goals scored by the away team, including name of the scorer and the minute of goal", |
"example": "Neymar 58'", | "example": "Neymar 58'", | ||
"required": true | "required": true | ||
| Line 174: | Line 174: | ||
}, | }, | ||
"penalties1": { | "penalties1": { | ||
| − | "description": "Penalties scored by the home team, including name of | + | "description": "Penalties scored by the home team, including name of penalty-taker and whether or not it was scored", |
| − | "example": "Sánchez ", | + | "example": "Sánchez {{pengoal}}", |
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
| − | "penalties2": {}, | + | "penalties2": { |
| − | "stadium": {}, | + | "description": "Penalties scored by the away team, including name of penalty-taker and whether or not it was scored.", |
| − | "attendance": {}, | + | "example": "Higuaín ((penmiss}}", |
| − | "referee": {} | + | "type": "string", |
| + | "suggested": true | ||
| + | }, | ||
| + | "stadium": { | ||
| + | "aliases": [ | ||
| + | "venue" | ||
| + | ], | ||
| + | "description": "The stadium in which the match took place", | ||
| + | "example": "Camp Nou", | ||
| + | "type": "string", | ||
| + | "required": 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 | ||
| + | }, | ||
| + | "aet": { | ||
| + | "description": "Included when match is decided in extra-time or penalty-shoot", | ||
| + | "type": "url", | ||
| + | "suggested": true | ||
| + | } | ||
}, | }, | ||
"description": "This template displays the details of a football (soccer) match, which is usually the final match of any competition. The details include date and time, venue, competing teams, goal scorers and the minute in which they scored, a report from an external link and attendance of the stadium.", | "description": "This template displays the details of a football (soccer) match, which is usually the final match of any competition. The details include date and time, venue, competing teams, goal scorers and the minute in which they scored, a report from an external link and attendance of the stadium.", | ||
Revision as of 22:24, 17 January 2016
| This is a documentation subpage for Template:Football box. It contains usage information, categories and other content that is not part of the original template page. |
Usage
All attributes are optional.
{{Football box
|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
|date = {{Start date|2006|07|09|df=y}}
|time = 20:00 [[Central European Summer Time|CEST]] ([[UTC+02:00]])
|event = [[2006 FIFA World Cup]]
|round = [[2006 FIFA World Cup Final|Final]]
|team1 = {{fb-rt|ITA}}
|team2 = {{fb|FRA}}
|score = 1–1
|aet = yes
|goals1 = [[Marco Materazzi|Materazzi]] {{goal|19}}
|goals2 = [[Zinedine Zidane|Zidane]] {{goal|7|pen.}}
|stadium = [[Olympiastadion (Berlin)|Olympiastadion]], [[Berlin]], [[Germany]]
|attendance = 69,000
|referee = [[Horacio Elizondo]] ({{nfa|ARG}})
|report = [http://www.fifa.com/worldcup/matches/round=97410600/match=97410064/index.html Report]
|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}}
|penaltyscore = 5–3
|penalties2 = {{pengoal}} [[Sylvain Wiltord|Wiltord]]<br>{{penmiss}} [[David Trezeguet|Trezeguet]]<br>{{pengoal}} [[Éric Abidal|Abidal]]<br>{{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)
Microformats
Template:UF-hcard-short Template:UF-hcal
This template displays the details of a football (soccer) match, which is usually the final match of any competition. The details include date and time, venue, competing teams, goal scorers and the minute in which they scored, a report from an external link and attendance of the stadium.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Date | date | The date on which the match took place or will be taking place
| Date | required |
| Event | event Competition | The name of the competition of the match
| String | required |
| Team1 | team1 home team | The team that is or is treated as a home team
| String | required |
| Team2 | team2 Away team | The team that is or is treated as the away team
| String | required |
| Time | time | The time at which match starts and the time zone is mentioned beside the timings
| Number | required |
| Round | round stage semi-final final round of 16 | This shows at which level is the match being played
| String | required |
| Score | score | The final score i.e. outcome of the match
| Number | required |
| Goals1 | goals1 Home goals | Goals scored by the home team, including name of the scorer and minute of the goal
| Unknown | required |
| Report | report | no description | Unknown | optional |
| Goals2 | goals2 Away goals | Goals scored by the away team, including name of the scorer and the minute of goal
| Unknown | required |
| Penaltyscore | penaltyscore | The final score after penalty shoot-out
| Number | suggested |
| Penalties1 | penalties1 | Penalties scored by the home team, including name of penalty-taker and whether or not it was scored
| String | suggested |
| Penalties2 | penalties2 | Penalties scored by the away team, including name of penalty-taker and whether or not it was scored.
| String | suggested |
| Stadium | stadium venue | The stadium in which the match took place
| String | required |
| Attendance | attendance | The number of people in the stadium of the match
| Number | required |
| Referee | referee | The official referee of the match and their country in braces
| String | required |
| Aet | aet | Included when match is decided in extra-time or penalty-shoot | URL | suggested |