Template:Group4/doc: Difference between revisions

From Hattrick
Jump to navigationJump to search
Crazycompgeek (talk | contribs)
Crazycompgeek (talk | contribs)
No edit summary
 
Line 1: Line 1:
==Usage==
==Usage==
This template should only be used to create other templates of 4 team groups with different color/line format (check "See also").
This template can be used to create a group of 4 teams.


<pre>
<pre>
Line 15: Line 15:
</pre>
</pre>


Use the parameters listed below to customize the template. For example, putting <code>|color1=gold|color2=silver|color3=#cc9966}}</code> in the last line will display the gold background for the first team, silver background for the second team and the bronze background for the third team. The following parameter values are acceptable:
Use the parameters listed below to customize the template. For example, putting <code>|final=yes}}</code> in the last line will display the gold background for the first team, silver background for the second team and the bronze background for the third team. The following parameter values are acceptable:


{| border=1 cellspacing=0 cellpadding=5 style="margin: 1em 1em 1em 0; border-collapse:collapse; border: 1px #aaa solid;"
{{table-begin}}
|- bgcolor=#f2f2f2
|- bgcolor=#f2f2f2
!Parameter value !! Description
! Parameter value !! Description
|- bgcolor=#f9f9f9
|- bgcolor=#f9f9f9
|''color1=color''||Change background color in row 1 to ''color''.
|''advanced=num''|| Highlight the top ''num'' advanced teams (to the next round).
|- bgcolor=#f9f9f9
|- bgcolor=#f9f9f9
|''color2=color''||Change background color in row 2 to ''color''.
|''final=yes''|| The group is the final. No further competition. Top 3 teams are highlighted.
|- bgcolor=#f9f9f9
{{table-end}}
|''color3=color''||Change background color in row 3 to ''color''.
|- bgcolor=#f9f9f9
|''color4=color''||Change background color in row 4 to ''color''.
|- bgcolor=#f9f9f9
|''line1=width''||Change width (in px) of the line between in row 1 and 2 to ''width''.
|- bgcolor=#f9f9f9
|''line2=width''||Change width (in px) of the line between in row 2 and 3 to ''width''.
|- bgcolor=#f9f9f9
|''line3=width''||Change width (in px) of the line between in row 3 and 4 to ''width''.
|- bgcolor=#f9f9f9
|''linecolor1=color''||Change color of the line between in row 1 and 2 to ''color''.
|- bgcolor=#f9f9f9
|''linecolor1=color''||Change color of the line between in row 2 and 3 to ''color''.
|- bgcolor=#f9f9f9
|''linecolor1=color''||Change color of the line between in row 3 and 4 to ''color''.
|}


==See also==
==See also==
*[[Template:Group4 A2]]
*[[Template:Group6]]<noinclude>
*[[Template:Group4 A1]]
[[Category: Template documentation]]
*[[Template:Group4 F]]
</noinclude>
 
<noinclude>[[Category: Template documentation]]</noinclude>

Latest revision as of 21:15, 13 May 2010

Usage

This template can be used to create a group of 4 teams.

{{Group4
<!-- Team/Played/Wins/Draws/Losses/Goals for/Goals against/Goals difference/Points -->
<!-- rows -->
||||||||||
||||||||||
||||||||||
||||||||||
<!-- parameters -->
|
}}

Use the parameters listed below to customize the template. For example, putting |final=yes}} in the last line will display the gold background for the first team, silver background for the second team and the bronze background for the third team. The following parameter values are acceptable:

Parameter value Description
advanced=num Highlight the top num advanced teams (to the next round).
final=yes The group is the final. No further competition. Top 3 teams are highlighted.

See also