Template:Footballbox: Difference between revisions

From Hattrick
Jump to navigationJump to search
Crazycompgeek (talk | contribs)
No edit summary
Crazycompgeek (talk | contribs)
new football box with parser functions
Line 1: Line 1:
{| cellspacing=0 style="width: {{{size|100%}}}; background-color: {{{bg|transparent}}}"
{| cellspacing=0 style="width: {{{size|100%}}}; background-color: {{{bg|transparent}}}"
| width=15% valign=top align=right rowspan=5  | {{{date}}}&nbsp;{{{time}}}<br />{{{round|&nbsp;}}}
{{#if:{{{event|}}}|
! colspan=5 style="text-align: center" {{!}} {{{event}}}
{{!}}-
}}
| width=15% valign=top align=right rowspan=5  | {{{date}}}<br />{{#if:{{{time|}}}|{{{time}}}<br />| }}{{#if:{{{round|}}}|{{{round}}} }}  
! width=24% valign=top align=right            | {{{team1}}}
! width=24% valign=top align=right            | {{{team1}}}
! width=13% valign=top align=center          | {{{score|v}}}
! width=13% valign=top align=center          | {{#if:{{{score|}}}|{{{score}}}|v }}{{#if:{{{aet|}}}|<br />([[Extra time|a.e.t.]]) }}
! width=24% valign=top align=left            | {{{team2}}}
! width=24% valign=top align=left            | {{{team2}}}
| style="font-size: 85%" rowspan=2 valign=top | {{{stadium|&nbsp;}}}<br />{{{Aw|&nbsp;}}} {{{attendance|&nbsp;}}}
| style="font-size: 85%" rowspan=2 valign=top | {{{stadium}}}<br />{{#if:{{{attendance|}}}|Attendance: {{{attendance}}}<br />}}
|- style="font-size: 85%"
|- style="font-size: 85%"
| valign=top align=right  | {{{goals1|&nbsp;}}}
| valign=top align=right  | {{#if:{{{goals1|}}}|{{{goals1}}} }}  
| valign=top align=center | {{{report|&nbsp;}}}
| valign=top align=center | {{#if:{{{report|}}}|{{{report}}} }}  
| valign=top              | {{{goals2|&nbsp;}}}
| 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; {{!}}
}}
|}
|}

Revision as of 02:42, 10 June 2010

{{{date}}}
{{{team1}}} v {{{team2}}} {{{stadium}}}