Template:Football box collapsible/doc: Difference between revisions
m (1 revision) |
(→Usage) |
||
Line 9: | Line 9: | ||
<pre style="overflow:auto"> | <pre style="overflow:auto"> | ||
{{football box collapsible | {{football box collapsible | ||
|date = {{Start date| | |date = {{Start date|2217|07|06|df=y}} | ||
|time = 20:00 | |time = 20:00 | ||
|round = [[ | |round = [[World Cup 70 Final]] | ||
|team1 = {{fb-rt| | |team1 = {{fb-rt|FEL}} | ||
|score = | |score = 1–2 | ||
|report = [[nspost:23126928|Report]] | |||
|report = [ | |team2 = {{fb|OSR}} | ||
|team2 = {{fb| | |goals1 = [[Luca Esser|Esser]] {{goal|39}} | ||
|goals1 = [[ | |goals2 = [[Emanuele Riviello|Riviello]] {{goal|28}}<br />[[Ezio Grassi|Grassi]] {{goal|84}} | ||
|goals2 = [[ | |stadium = [[Royal Equestria Stadium]] | ||
|stadium = [[ | |||
|competiton = default | |competiton = default | ||
|location = [[ | |location = [[Canterlot]], [[Equestrian States]] | ||
|attendance = | |attendance = 98,625 | ||
|referee = | |referee = Gareth Schwarzer ({{subst:nfa|NPH}}) | ||
|assistantreferees = | |assistantreferees = Jayce Wilhelm ({{subst:nfa|NPH}}) | ||
|assistantreferee2 = | |assistantreferee2 = Markus Crossley ({{subst:nfa|NPH}}) | ||
|fourthofficial = | |fourthofficial = Joel Martín Águila Nena ({{subst:nfa|SJG}}) | ||
|fifthofficial = | |fifthofficial = Mathias Morrison ({{subst:nfa|YTT}}) | ||
|goallineassistants = | |goallineassistants = | ||
|goallineassistant2 = | |goallineassistant2 = | ||
|aggregatescore = | |aggregatescore = | ||
|mvp = | |mvp = | ||
|note = | |note = | ||
|motm = [[ | |motm = [[Ezio Grassi]] | ||
|size = 100% | |size = 100% | ||
|result = | |result = | ||
Line 43: | Line 39: | ||
|stack = | |stack = | ||
|class = "collapsible collapsed" | |class = "collapsible collapsed" | ||
}} | }}</pre> | ||
</pre> | |||
'''Sample result:''' | '''Sample result:''' | ||
{{football box collapsible | {{football box collapsible | ||
|date = {{Start date| | |date = {{Start date|2217|07|06|df=y}} | ||
|time = 20:00 | |time = 20:00 | ||
|round = [[ | |round = [[World Cup 70 Final]] | ||
|team1 = {{fb-rt| | |team1 = {{fb-rt|FEL}} | ||
|score = | |score = 1–2 | ||
|report = [[nspost:23126928|Report]] | |||
|report = [ | |team2 = {{fb|OSR}} | ||
|team2 = {{fb| | |goals1 = [[Luca Esser|Esser]] {{goal|39}} | ||
|goals1 = [[ | |goals2 = [[Emanuele Riviello|Riviello]] {{goal|28}}<br />[[Ezio Grassi|Grassi]] {{goal|84}} | ||
|goals2 = [[ | |stadium = [[Royal Equestria Stadium]] | ||
|stadium = [[ | |||
|competiton = default | |competiton = default | ||
|location = [[ | |location = [[Canterlot]], [[Equestrian States]] | ||
|attendance = | |attendance = 98,625 | ||
|referee = | |referee = Gareth Schwarzer ([[Nepharim Football Association|Nephara]]) | ||
|assistantreferees = | |assistantreferees = Jayce Wilhelm ([[Nepharim Football Association|Nephara]]) | ||
|assistantreferee2 = | |assistantreferee2 = Markus Crossley ([[Nepharim Football Association|Nephara]]) | ||
|fourthofficial = | |fourthofficial = Joel Martín Águila Nena ([[Federación Guayabalense de Fútbol|San Jose Guayabal]]) | ||
|fifthofficial = | |fifthofficial = Mathias Morrison ([[Yttribian Football Federation|Yttribia]]) | ||
|goallineassistants = | |goallineassistants = | ||
|goallineassistant2 = | |goallineassistant2 = | ||
|aggregatescore = | |aggregatescore = | ||
|mvp = | |mvp = | ||
|note = | |note = | ||
|motm = [[ | |motm = [[Ezio Grassi]] | ||
|size = 100% | |size = 100% | ||
|result = | |result = | ||
Line 82: | Line 73: | ||
|nobars = | |nobars = | ||
|stack = | |stack = | ||
|class = "collapsible collapsed " | |class = "collapsible collapsed" | ||
}} | }} | ||
Revision as of 02:37, 4 July 2015
Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory
Usage
This template is meant to be used for abbreviated regular season results with expandable details. The goal with this template is to only consume one line of text (when collapsed) for each match. Therefore, avoid using line breaks (<br />) in parameters that are still visible when the box score is collapsed.
Sample:
{{football box collapsible |date = {{Start date|2217|07|06|df=y}} |time = 20:00 |round = [[World Cup 70 Final]] |team1 = {{fb-rt|FEL}} |score = 1–2 |report = [[nspost:23126928|Report]] |team2 = {{fb|OSR}} |goals1 = [[Luca Esser|Esser]] {{goal|39}} |goals2 = [[Emanuele Riviello|Riviello]] {{goal|28}}<br />[[Ezio Grassi|Grassi]] {{goal|84}} |stadium = [[Royal Equestria Stadium]] |competiton = default |location = [[Canterlot]], [[Equestrian States]] |attendance = 98,625 |referee = Gareth Schwarzer ({{subst:nfa|NPH}}) |assistantreferees = Jayce Wilhelm ({{subst:nfa|NPH}}) |assistantreferee2 = Markus Crossley ({{subst:nfa|NPH}}) |fourthofficial = Joel Martín Águila Nena ({{subst:nfa|SJG}}) |fifthofficial = Mathias Morrison ({{subst:nfa|YTT}}) |goallineassistants = |goallineassistant2 = |aggregatescore = |mvp = |note = |motm = [[Ezio Grassi]] |size = 100% |result = |bg = |nobars = |stack = |class = "collapsible collapsed" }}
Sample result:
6 July 2217 World Cup 70 Final | Felix | 1–2 | Osarius | Canterlot, Equestrian States |
---|---|---|---|---|
20:00 | Esser 39' | Report | Riviello 28' Grassi 84' |
Stadium: Royal Equestria Stadium Attendance: 98,625 Referee: Gareth Schwarzer (Nephara) Assistant referees: Jayce Wilhelm (Nephara) Markus Crossley (Nephara) Fourth official: Joel Martín Águila Nena (San Jose Guayabal) Fifth official: Mathias Morrison (Yttribia) Man of the Match: Ezio Grassi |
Blank template
All available parameters are shown here.
{{football box collapsible <!-- recommended or required parameters --> |date = <!-- {{Start date|YYYY|MM|DD|df=y}} --> |time = |round = |team1 = |score = |report = <!-- [ Report] --> |team2 = |goals1 = |goals2 = |stadium = <!-- optional parameters --> |aet = <!-- "yes" for extra time --> |competition = <!-- "default" (default), "Cascadia Cup", "SuperClasico" --> |location = |attendance = |referee = |assistantreferees = |assistantreferee2 = <!-- rarely used, see explanation --> |fourthofficial = |fifthofficial = |goallineassistants = |goallineassistant2 = <!-- rarely used, see explanation --> |aggregatescore = |motm = |mvp = |note = <!-- penalty parameters, required if the match went to shootout --> |penalties1 = |penaltyscore = |penalties2 = <!-- formatting/color parameters --> |size = <!-- for example 80%, by default 100% --> |result = <!-- the following are based on the parameter "competition" --><!-- default: W, L, T/D, V/P --><!-- Cascadia Cup: V/VAN, S/SEA, P/PDX, T/D, VOID/POST --><!-- SuperClasico: LA, CHIVAS, T/D, V/P --> |bg = <!-- color without number sign --> |nobars = <!-- "1" to hide bars --> |stack = <!-- "yes" with multiple boxscores stacked together. Hides the bar at the bottom avoiding double lines between boxscores. --> |class = <!-- "uncollapsed " for removal of collapse function, "collapsible " for expanded with collapsible option, "collapsible collapsed " for box being initially collapsed (default) --> }}
Parameters
Required parameters: team1, team2, score (if the match has occurred), and report. Everything else is optional, though goals1, goals2, referee, location, and stadium are highly encouraged wherever this template is used.
Content Parameters
- attendance - Match attendance as reported in the match report.
- date - Date of the match. Use {{Start date}} (with df=y or mf=y; see: WP:ENGVAR)
- location & stadium - If location is not specified, the value of stadium will appear at the top of the far right column "above the fold". If location is specified, then only the location value will appear "above the fold" on the right, and the value of stadium will be shown with the prefix "Stadium:" beside it only when the box score is expanded.
- goals1 and goals2 - Goals scored and optionally cards issued. Use {{goal}}, {{yel}}, and {{sent off}} with the last name (or professional name) of the player involved. Place a line break <br> between each player listed. If a player scores more than one goal (or cards) these can be grouped together so that the player's name only appears once. This is not required though. Preference should be given to listing goals (and cards) in chronological order.
- penaltyscore - The result of the penalty shootout.
- score - The final score of the match. If the match went into extra time (and possibly penalties) the aet parameter should be set to yes.
- aet - Set this parameter to yes if the match went to extra time.
- aggregatescore - Optionally, the aggregate score if the match is the second of a two leg tie. Example:
|aggregatescore = 4[[Away goals rule|a]]–4
, which produces (4a–4 agg.) - time - Time of the match. The local time of the match (local to the stadium it took place in). Either 24h or 12h formats are acceptable.
- team1 and team2 - Typically team1 is the home team. Both should be wikilined to a team page if there is one.
- referee - Name of head referee (wikilinked only if there is a page for the referee or you intend to create it soon). The referee's national federation in parenthesis is optional but recommended when the box score is for an international competition.
- assistantreferees, fourthofficial, fifthofficial, & goallineassistants - Further detailed referee information. Same guidelines apply as referee.
- assistantreferee2 & goallineassistant2 - For use when putting both officials name in the parameter takes too much space. If this field is used, only one referee should be in "assistantreferees" or "goallineassistants", and the other should be in this parameter. An example of a use for this is when putting the national football association which the referees belong, and running out of space.
- assistantreferees, fourthofficial, fifthofficial, & goallineassistants - Further detailed referee information. Same guidelines apply as referee.
- motm - Man of the match.
- mvp - Most valuable player.
- report - An external link to an official match report or box score. It is important that match information be referenced, so please use this parameter! (See also: Verifiability and No Original Research)
- round - For use when the match is part of a tournament with various rounds of play, such as Preliminary Round, First Round, Group Stage, etc. Wikilinking to the appropriate tournament page/section is recommended.
- note - For use when a short explanation is needed. It creates text in italics in the bottom left hand corner.
Formatting Parameters
- bg - Use this param to specify a custom background color (ignored if result is specified). Use RRGGBB values without the # sign. Example: |bg=99C0B0
- nobars - Set this parameter to 1 if you don't want the one pixel bars to show above and below the template. Example: |nobars=1
- result - Adjusts background color to indicate win (green), draw/tie (yellow), loss (red) or void/postponement (grey). Possible values: W, L, T, D, V or P. See the Legend section below when using this parameter. See competition parameter below for custom values of the result parameter.
- size - By default Footballbox_collapsible is 100% wide. Use this param to specify a different width. Example: |size=80%
- stack - Use when multiple {{footballbox collapsible}}s are stacked together. It causes the bottom bar to be hidden so that a thick bar does not appear between each box score. Example |stack=yes
- class - Use this if you do not want the template collapsed. The options are "uncollapsed " (removal of collapse function), "collapsible " (box can be collapsed, but by default is not) and "collapsible collapsed " (box is initially collapsed). If unused, the parameter will default to "collapsible collapsed ". Example: |class=collapsible
- competition - Used with result parameter to define custom background colors in derby and competition articles. Case sensitive.
Legend
Simple coloring legend recommended when an article makes use of result parameter:
{{legend2|#CCFFCC|Win|border=1px solid #AAAAAA}} {{legend2|#FFFFCC|Draw|border=1px solid #AAAAAA}} {{legend2|#FFCCCC|Loss|border=1px solid #AAAAAA}} {{legend2|#CCCCCC|Void|border=1px solid #AAAAAA}} <!-- optional --> {{legend2|#CCCCCC|Postponed|border=1px solid #AAAAAA}} <!-- optional -->
Which produces:
Win Draw Loss Void Postponed
Note: Given the rarity of voided results and postponements, those entries are optional and can be omitted in most cases.
Microformats
The HTML markup produced by this template includes an hCard microformat, which makes the person's or organisation's name parsable by computers, either acting automatically to catalogue articles across Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book. For more information about the use of microformats on Wikipedia, please see the microformat project.
The hCard in this template uses at least some of these HTML classes:
- fn (required)
- nickname
- org
- vcard
Please do not rename or remove these classes nor collapse nested elements which use them.
The HTML mark-up produced by this template includes an hCalendar microformat that makes event details readily parsable by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases. For more information about the use of microformats on Wikipedia, please visit the Microformat WikiProject.
- Classes used
The HTML classes of this microformat include:
- Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory
nor collapse nested elements which use them.
See also
- {{football box}} - almost the same thing, but not collapsible