Template:Round4: Difference between revisions

From Hattrick
Jump to navigationJump to search
Crazycompgeek (talk | contribs)
No edit summary
Crazycompgeek (talk | contribs)
No edit summary
Line 57: Line 57:
| rowspan="2" style="border:1px solid #aaa;" bgcolor="{{#ifeq: {{{color|no}}}|yes|{{#ifeq: {{{3rdplace|no}}}|yes|#f9f9f9|{{#ifeq: {{{semifinalwinner2|top}}}|top|{{color-bronze}}|#f9f9f9}} }}|#f9f9f9}}" align="center"| {{{10| }}}
| rowspan="2" style="border:1px solid #aaa;" bgcolor="{{#ifeq: {{{color|no}}}|yes|{{#ifeq: {{{3rdplace|no}}}|yes|#f9f9f9|{{#ifeq: {{{semifinalwinner2|top}}}|top|{{color-bronze}}|#f9f9f9}} }}|#f9f9f9}}" align="center"| {{{10| }}}
| rowspan="{{#ifeq: {{{3rdplace|no}}}|yes|9|2}}" style="border-width:2px 0 0 0; border-style: solid;border-color:black;"| 
| rowspan="{{#ifeq: {{{3rdplace|no}}}|yes|9|2}}" style="border-width:2px 0 0 0; border-style: solid;border-color:black;"| 
|-
{{#ifeq: {{{3rdplace|no}}}|yes|
{{#ifeq: {{{3rdplace|no}}}|yes|{{!}} height=6{{!}}
{{!-}}
{{!}} height=6{{!}}
{{!}} colspan="2" rowspan="2" align="center" style="border:1px solid #aaa;" bgcolor="#f2f2f2"{{!}}{{{Consol|Third place}}}
{{!}} colspan="2" rowspan="2" align="center" style="border:1px solid #aaa;" bgcolor="#f2f2f2"{{!}}{{{Consol|Third place}}}
{{!-}}
{{!-}}

Revision as of 03:53, 28 June 2010

Semi-finals   Final
           
       
     
 
       
     
 
         
     
 
       


[edit] Template documentation

Usage

{{Round4
<!-- Date-Place/[Seed 1]/Team 1/[Leg 11]/[Leg 12]/Score 1/[Seed 2]/Team 2/[Leg 21]/[Leg 22]/Score 2 -->
<!-- semi finals -->
|||||
|||||
<!-- final -->
|||||
<!-- 3rd place -->
|||||
<!-- parameters -->
|
}}

Use the parameters listed below to customize the template. For example, putting |RD1=Final Four|RD2=Championship}} in the last line will rename the 1st round to "Final Four" and the 2nd round to "Championship". The following parameter values are acceptable:

Parameter value Description
RD1=name Rename Semi-finals to name.
RD2=name Rename Final to name.
Consol=name Rename Third place to name.
seeded=yes Add seeds in front of each team.
aggregated1=yes Added two legged scores for semi-finals.
aggregated2=yes Added two legged scores for final/3rd place.
color=yes Add color for Gold, Silver & Bronze position.
3rdplace=yes Add 3rd place match.
semifinalwinner1=top Indicate winner of first semi-final (top or bottom).
semifinalwinner2=bottom Indicate winner of second semi-final (top or bottom).
finalwinner=top Indicate winner of final (top or bottom).
3rdplacewinner=bottom Indicate 3rd place match (top or bottom).

Note:

  • [Seed 1] and [Seed 2] game data are required when seeded=yes and omitted when seeded=no
  • [Leg 11], [Leg 12], [Leg 21], [Leg 22] are required when aggregated1=yes (semi-finals)and/or aggregated2=yes (final/3rd place match) and omitted when no
  • 3rd place game data is only needed when 3rdplace=yes
  • finalwinner is only needed when color=yes
  • 3rdplacewinner is only needed when 3rdplace=yes and color=yes
  • semifinalwinner1 and semifinalwinner2 are only needed when 3rdplace=no and color=yes

See also