Template:Footballbox: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
No edit summary
Cj miller (talk | contribs)
No edit summary
Line 1: Line 1:
{| style="width:{{{size|100%}}}; background: {{{bg|transparent}}};" cellspacing="0"  
{| cellspacing=0 style="width: {{{size|100%}}}; background-color: {{{bg|transparent}}}" class="vevent"
|-
{{#if:{{{event|}}}|
|width=15% valign=top align=right rowspan=3|{{ #if: {{{date|}}} | {{{date}}} | }} {{ #if: {{{time|}}} |<br /> {{{time}}} | }}{{ #if: {{{round|}}} |<br /> {{{round}}} | }}
! colspan=5 style="text-align: center" {{!}} {{{event}}}
|width=24% valign=top align=right|'''{{{team1}}}'''
{{!}}-
|width=13% valign=top align=center|'''{{{score}}}'''
|width=24% valign=top|'''{{{team2}}}'''
|style=font-size:85% rowspan=2 valign=top|{{ #if: {{{stadium|}}} | {{{stadium}}} | }} {{ #if: {{{attendance|}}} |<br /> Attendance: {{{attendance}}} | }}{{ #if: {{{referee|}}} |<br /> Referee: {{{referee}}} | }}
|- style=font-size:85%
|valign=top align=right|{{ #if: {{{goals1|}}} |  {{{goals1}}} | }}
|valign=top align=center|{{ #if: {{{report|}}} | {{{report}}} | }}  
|valign=top|{{ #if: {{{goals2|}}} |  {{{goals2}}} | }}
|}<noinclude>
 
== Usage ==
 
<pre>{{footballbox
|date =
|time =
|team1 =
|score =
|report =
|team2 =
|goals1 =
|goals2 =
|stadium =
|attendance =
|referee =
}}
}}
 
| width=15% valign=top align=right rowspan=5 class="summary" | {{{date}}}<br />{{#if:{{{time|}}}|{{{time}}}<br />| }}{{#if:{{{round|}}}|{{{round}}} }}
{{penshootoutbox
! width=24% valign=top align=right class = "vcard attendee" | <span class="fn org">{{{team1}}}</span>
|penalties1 =
! width=13% valign=top align=center          | {{#if:{{{score|}}}|{{{score}}}|v }} {{#if:{{{aet|}}}|([[Overtime (sports)#Association football|a.e.t.]]) }}
|penaltyscore =
! width=24% valign=top align=left  class = "vcard attendee" | <span class="fn org">{{{team2}}}</span>
|penalties2 =
| style="font-size: 85%" rowspan=2 valign=top | {{{stadium}}}<br />{{#if:{{{attendance|}}}|Attendance: {{{attendance}}}<br />}}{{#if:{{{referee|}}}|Referee: {{{referee}}} }}
}}</pre>
|- style="font-size: 85%"
[[Category:Football templates]]
| valign=top align=right  | {{#if:{{{goals1|}}}|{{{goals1}}} }}
</noinclude>
| valign=top align=center | {{#if:{{{report|}}}|{{{report}}} }}
| valign=top              | {{#if:{{{goals2|}}}|{{{goals2}}} }}
{{#if:{{{penaltyscore|}}}|
{{!}}-
{{!}} {{!}} &nbsp;
! align=center {{!}} [[Penalty shootout (association football)|Penalties]]
{{!}} {{!}} &nbsp;
{{!}}- style=font-size:85%
{{!}} align=right valign=top {{!}} {{{penalties1}}}
! align=center valign=top {{!}} {{{penaltyscore}}}
{{!}} valign=top {{!}} {{{penalties2}}}
{{!}} &nbsp; {{!}}
}}
|}<noinclude>{{Documentation}}<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --></noinclude>

Revision as of 09:08, 28 September 2012

{{{date}}}
{{{team1}}} v {{{team2}}} {{{stadium}}}
[edit] [purge] Template documentation

Usage

All attributes are optional.

{{Football box
|id           =
|amorian      = <!-- if enabled, uses Americanisms like "vs." and "F/OT" -->
|date         = <!-- {{Start date|YYYY|MM|DD|df=y}} -->
|time         =
|event        =
|round        =
|team1        =
|score        =
|aet          =
|report       =
|team2        =
|goals1       =
|goals2       =
|stadium      =
|attendance   =
|referee      =
|referees     = <!-- If there are multiple referees -->
|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

{{footballbox
|date = 13 August 2017
|team1 = Senya [[File:Senya flag.png|25px|border|Senya]]
|score =1 – 2
|team2 = [[File:Tellia flag.png|25px|border|Tellia]] Tellia
|goals1 = [[Alesandrœ Danetskë|Danetskë]] {{goal|36}}
|goals2 = [[Sezer Özker|Özker]] {{goal|2}}<br>[[Marko Zajc|Zajc]] {{goal|42}}
|stadium = [[The Snakepit]], [[Svorgas]]
}}

produces:

13 August 2017
Senya Senya 1 – 2 Tellia Tellia The Snakepit, Svorgas
Danetskë Goal 36' Özker Goal 2'
Zajc Goal 42'