Template:Footballbox: Difference between revisions

From Hattrick
Jump to navigationJump to search
Crazycompgeek (talk | contribs)
new football box with parser functions
Crazycompgeek (talk | contribs)
fix white space
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{| cellspacing=0 style="width: {{{size|100%}}}; background-color: {{{bg|transparent}}}"
{| cellspacing=0 style="width: {{{size|100%}}}; background-color: {{{color|transparent}}}"
{{#if:{{{event|}}}|
{{#if:{{{event|}}}|
! colspan=5 style="text-align: center" {{!}} {{{event}}}
! colspan=5 style="text-align: center" {{!}} {{{event}}}
Line 8: Line 8:
! width=13% valign=top align=center          | {{#if:{{{score|}}}|{{{score}}}|v }}{{#if:{{{aet|}}}|<br />([[Extra time|a.e.t.]]) }}
! 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}}}<br />{{#if:{{{attendance|}}}|Attendance: {{{attendance}}}<br />}}
| style="font-size: 85%" rowspan=2 valign=top | {{#if:{{{walkover|}}}|&nbsp;|{{{stadium}}}<br />{{#if:{{{attendance|}}}|Attendance: {{{attendance}}}<br />}} }}
|- style="font-size: 85%"
|- style="font-size: 85%"
| valign=top align=right  | {{#if:{{{goals1|}}}|{{{goals1}}} }}  
| valign=top align=right  | {{#if:{{{goals1|}}}|{{{goals1}}} }}
| valign=top align=center | {{#if:{{{report|}}}|{{{report}}} }}  
| valign=top align=center | {{#ifeq:{{{walkover|}}}|yes|'''[[Walkover]]'''|{{#ifeq:{{{walkover|}}}|mutual|'''[[Walkover|Mutual Walkover]]'''|{{matchid|{{{matchid|0}}}}} }} }}
| valign=top              | {{#if:{{{goals2|}}}|{{{goals2}}} }}
| valign=top              | {{#if:{{{goals2|}}}|{{{goals2}}} }}
{{#if:{{{penaltyscore|}}}|
{{#if:{{{walkover|}}}|&nbsp;|{{#if:{{{penaltyscore|}}}|
{{!}}-
{{!}}-
{{!}} {{!}} &nbsp;
{{!}} {{!}} &nbsp;
Line 23: Line 23:
{{!}} valign=top {{!}} {{{penalties2}}}
{{!}} valign=top {{!}} {{{penalties2}}}
{{!}} &nbsp; {{!}}
{{!}} &nbsp; {{!}}
}}
}} }}
|}
|}

Latest revision as of 03:04, 10 June 2010

{{{date}}}
{{{team1}}} v {{{team2}}} {{{stadium}}}
(0)