Difference between revisions of "Template:Football box/doc"

From blackwiki
Jump to navigation Jump to search
imported>Pigsonthewing
m (→‎Microformats: betetr template)
imported>Pigsonthewing
m (dab)
Line 2: Line 2:
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
  
=== Usage ===
+
== Usage ==
  
 
All attributes are optional.
 
All attributes are optional.
  
 
<pre style="overflow:auto">
 
<pre style="overflow:auto">
{{footballbox
+
{{Football box
 
| date        =  
 
| date        =  
 
| event        = <!-- {{Start date|YYYY|MM|DD|df=y}} or mf=y -->
 
| event        = <!-- {{Start date|YYYY|MM|DD|df=y}} or mf=y -->
Line 28: Line 28:
 
</pre>
 
</pre>
  
=== Examples ===
+
== Example ==
  
 
<pre style="overflow:auto">
 
<pre style="overflow:auto">
{{footballbox
+
{{Football box
 
| date      = {{Start date|2006|07|09|df=y}}
 
| date      = {{Start date|2006|07|09|df=y}}
 
| event      = [[2006 FIFA World Cup]]
 
| event      = [[2006 FIFA World Cup]]
Line 54: Line 54:
 
produces:
 
produces:
  
{{ footballbox
+
{{Football box
 
| date        = {{Start date|2006|07|09|df=y}}
 
| date        = {{Start date|2006|07|09|df=y}}
 
| event        = [[2006 FIFA World Cup]]
 
| event        = [[2006 FIFA World Cup]]

Revision as of 13:30, 2 May 2011

Usage

All attributes are optional.

{{Football box
| date         = 
| event        = <!-- {{Start date|YYYY|MM|DD|df=y}} or mf=y -->
| round        = 
| time         = 
| team1        = 
| score        = 
| aet          = 
| report       = 
| team2        = 
| goals1       = 
| goals2       = 
| stadium      = 
| attendance   = 
| referee      = 
| penalties1   = 
| penaltyscore = 
| penalties2   = 
}}

Example

{{Football box
| date       = {{Start date|2006|07|09|df=y}}
| event      = [[2006 FIFA World Cup]]
| round      = Final
| time       = 20:00 ([[Central European Summer Time|CEST]])
| team1      = {{fb-rt|ITA}}
| score      = 1 – 1
| aet        = yes
| report     = [http://www.fifa.com/worldcup/archive/germany2006/results/matches/match=97410064/report.html Report]
| team2      = {{fb|FRA}}
| goals1     = [[Marco Materazzi|Materazzi]] {{goal|19}}
| goals2     = [[Zinedine Zidane|Zidane]] {{goal|7|pen.}}
| stadium    = [[Olympic Stadium (Berlin)|Olympiastadion]], [[Berlin]]
| attendance = 69,000
| referee    = [[Horacio Elizondo]] ([[Argentine Football Association|Argentina]])
| penalties1 = {{Unbulleted list| [[Andrea Pirlo|Pirlo]] {{pengoal}} | [[Marco Materazzi|Materazzi]] {{pengoal}} | [[Daniele De Rossi|De Rossi]] {{pengoal}} | [[Alessandro Del Piero|Del Piero]] {{pengoal}} | [[Fabio Grosso|Grosso]] {{pengoal|scored}} }}
| penaltyscore = 5 – 3
| penalties2 = {{Unbulleted list| {{pengoal}} [[Sylvain Wiltord|Wiltord]] | {{penmiss|hit crossbar}} [[David Trezeguet|Trezeguet]] | {{pengoal}} [[Éric Abidal|Abidal]] | {{pengoal}} [[Willy Sagnol|Sagnol]] }}
}}

produces:

Page Template:Football box/styles.css has no content.

In the goals area, you can add:

Microformats

Template:UF-hcard-short

Template:UF-hcal

See also

Match report templates
Template:Try {{try}}
Template:Sin bin {{sin bin}}
Sent to blood bin {{blood bin}}
Suspension {{2min}}