Difference between revisions of "Template:Football box"

From Rigged Wiki
Jump to navigation Jump to search
m
m (I might figured out how to remove that annoying white space between icons and the first line of the scorers when there are many rows on the left.)
Line 4: Line 4:
{{!}}-
{{!}}-
}}
}}
| width=15% valign=top align=right rowspan=5 class="summary" | {{{date}}}<br />{{#if:{{{time|}}}|{{{time}}}<br />| }}{{#if:{{{note|}}}|Note: <small>'''''{{{note}}}'''''</small> }}<br />{{#if:{{{round|}}}|{{{round}}}}}  
| width=15% valign=top align=right class="summary" | {{{date}}}
! width=24% valign=top align=right class = "vcard attendee" | <span class="fn org">{{{team1}}}</span>
! width=24% valign=top align=right class = "vcard attendee" | <span class="fn org">{{{team1}}}</span>
! width=13% valign=top align=center          | {{#if:{{{score|}}}|{{{score}}}|v }} {{#if:{{{aet|}}}|(a.e.t.) }}
! width=13% valign=top align=center          | {{#if:{{{score|}}}|{{{score}}}| }} {{#if:{{{aet|}}}|(a.e.t.) }}
! width=24% valign=top align=left  class = "vcard attendee" | <span class="fn org">{{{team2}}}</span>
! width=24% valign=top align=left  class = "vcard attendee" | <span class="fn org">{{{team2}}}</span>
|- style="font-size: 85%" rowspan=3 cellspacing=0
|- style="font-size: 85%" cellspacing=0
|  width=15% valign=top align=right class="summary" |{{#if:{{{time|}}}|<big>{{{time}}}</big><br />| }}{{#if:{{{note|}}}|Note: '''''{{{note}}}'''''}}<br />{{#if:{{{round|}}}|{{{round}}} }}
| valign=top align=right  | {{#if:{{{goals1|}}}|{{{goals1}}} }}  
| valign=top align=right  | {{#if:{{{goals1|}}}|{{{goals1}}} }}  
|
|  
| valign=top              | {{#if:{{{goals2|}}}|{{{goals2}}} }}
| valign=top              | {{#if:{{{goals2|}}}|{{{goals2}}} }}
| style="font-size: 100%" valign=top |{{{stadium}}}<br />{{#if:{{{attendance|}}}|Attendance: {{{attendance}}}<br />}}{{#if:{{{referee|}}}|Referee: {{{referee}}}<br /> }}{{#if:{{{video|}}}|Video: {{{video}}}}}
| style="font-size: 100%" valign=top |{{{stadium}}}<br />{{#if:{{{attendance|}}}|Attendance: {{{attendance}}}<br />}}{{#if:{{{referee|}}}|Referee: {{{referee}}}<br /> }}{{#if:{{{video|}}}|Video: {{{video}}}<br />}} {{#if:{{{report|}}}|Report: {{{report}}} }}
|-
{{#if:{{{penaltyscore|}}}|
{{#if:{{{penaltyscore|}}}|
{{!}}-
{{!}}-
{{!}} {{!}} &nbsp;
{{!}} {{!}} &nbsp;
!
! align=center {{!}} Penalties
! align=center {{!}} Penalties
{{!}} {{!}} &nbsp;
{{!}} {{!}} &nbsp;
{{!}}- style=font-size:85%
{{!}}- style=font-size:85%
{{!}} align=right valign=top {{!}}
{{!}} align=right valign=top {{!}} {{{penalties1|}}}
{{!}} align=right valign=top {{!}} {{{penalties1|}}}
! align=center valign=top {{!}} {{{penaltyscore}}}
! align=center valign=top {{!}} {{{penaltyscore}}}
Line 72: Line 76:
| referee    = A nigger
| referee    = A nigger
| video      = [http://archive.klaxa.eu/ Klaxa]
| video      = [http://archive.klaxa.eu/ Klaxa]
| report    = First Bait
| penalties1 = [[Some guy|/sp/]] {{pengoal}}<br />[[Some guy|/sp/]] {{pengoal}}<br />[[Some guy|/sp/]] {{pengoal}}<br />[[Some guy|/sp/]] {{pengoal}}<br />[[Some guy|/sp/]] {{pengoal|scored}}
| penalties1 = [[Some guy|/sp/]] {{pengoal}}<br />[[Some guy|/sp/]] {{pengoal}}<br />[[Some guy|/sp/]] {{pengoal}}<br />[[Some guy|/sp/]] {{pengoal}}<br />[[Some guy|/sp/]] {{pengoal|scored}}
| penaltyscore = 5 – 3
| penaltyscore = 5 – 3
Line 96: Line 101:
| referee    = A nigger
| referee    = A nigger
| video      = [http://archive.klaxa.eu/ Klaxa]
| video      = [http://archive.klaxa.eu/ Klaxa]
| report    = [https://www.smashcast.tv/firstbait First Bait]
| penalties1 = [[/sp/|Some guy]] {{pengoal}}<br />[[/sp/|Some guy]] {{pengoal}}<br />[[/sp/|Some guy]] {{pengoal}}<br />[[/sp/|Some guy]] {{pengoal}}<br />[[/sp/|Some guy]] {{pengoal|scored}}
| penalties1 = [[/sp/|Some guy]] {{pengoal}}<br />[[/sp/|Some guy]] {{pengoal}}<br />[[/sp/|Some guy]] {{pengoal}}<br />[[/sp/|Some guy]] {{pengoal}}<br />[[/sp/|Some guy]] {{pengoal|scored}}
| penaltyscore = 5 – 3
| penaltyscore = 5 – 3

Revision as of 22:01, 6 November 2017

{{{date}}} {{{team1}}} {{{team2}}}

{{{stadium}}}

Usage

All attributes are optional.

{{Football box
| date         = <!-- {{Start date|YYYY|MM|DD|df=y}} or mf=y --> 
| event        = 
| round        = 
| time         = 
| note         = 
| team1        = {{badgeicon|board}} [[/board/]] <!--Note the order! -->
| team2        = [[/board/]] {{badgeicon|board}}
| score        = 
| aet          = 
| goals1       = 
| goals2       = 
| stadium      = 
| attendance   = 
| referee      = 
| report       = 
| video        =
| penalties1   = 
| penaltyscore = 
| penalties2   = 
}}

Example

{{Football box
| date       = {{Start date|2006|07|09|df=y}}
| event      = [[2012 4chan Spring Babby Cup]]
| round      = 
| time       = {{time|20|00}}
| note       = {{tt|[[/sp/]] player Messi is suspended for this match|Straight red in the previous game}}
| team1      = [[/sp/]] {{Team home|sp}}
| team2      = {{Team away|x}}
| score      = 1 – 1
| aet        = yes
| goals1     = [[Some guy|/sp/]] {{goal|19}}
| goals2     = [[Another guy|/x/]] {{goal|7|pen.}}
| stadium    = Some Stadium over there.
| attendance = 69000
| referee    = A nigger
| video      = [http://archive.klaxa.eu/ Klaxa]
| report     = First Bait
| penalties1 = [[Some guy|/sp/]] {{pengoal}}<br />[[Some guy|/sp/]] {{pengoal}}<br />[[Some guy|/sp/]] {{pengoal}}<br />[[Some guy|/sp/]] {{pengoal}}<br />[[Some guy|/sp/]] {{pengoal|scored}}
| penaltyscore = 5 – 3
| penalties2 = {{pengoal}} [[Another guy|/x/]]<br />{{penmiss|hit crossbar}} [[Another guy|/x/]]<br />{{pengoal}} [[Another guy|/x/]]<br />{{pengoal}} [[Another guy|/x/]]
}}

produces:

2012 4chan Spring Babby Cup
8 January 2012 /sp/ Sp icon.png 1 – 1 (a.e.t.) X icon.png /x/
20:00
Note: sp player Messi is suspended for this match
Some guy Goal 19' Another guy Goal 7' (pen.) Some Stadium over there.
Attendance: 69000
Referee: A nigger
Video: Klaxa
Report: First Bait
  Penalties  
Some guy Scored
Some guy Scored
Some guy Scored
Some guy Scored
Some guy Scored
5 – 3 Scored Another guy
Missed (hit crossbar) Another guy
Scored Another guy
Scored Another guy

In the goals area, you can add:

  • {{penmiss}} -> Missed
  • {{penmiss|goalkeeper saved}} -> Missed (goalkeeper saved)