Template:Match infobox: Difference between revisions

From Hattrick
Jump to navigationJump to search
No edit summary
mNo edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
{|- class="infobox"
{| class="infobox" cellspacing="0" style="font-size:90%;"
|+ {{#if:{{{home_flag|}}}|{{Flagicon|{{{home_flag}}}}}}} {{{home_team}}} - {{{away_team}}} {{#if:{{{away_flag|}}}|{{Flagicon|{{{away_flag}}}}}}}
|-
|-
| colpan="2" |
| style="font-size:larger; text-align:center;" | {{#if:{{{home_flag|}}}|{{Flagicon|{{{home_flag}}}}}}} '''[[{{{home_team}}}]] - [[{{{away_team}}}]]''' {{#if:{{{away_flag|}}}|{{Flagicon|{{{away_flag}}}}}}}
|-
|
* ID: [http://www.hattrick.org/Club/Matches/Match.aspx?matchID={{{ID}}} {{{ID}}}]
* ID: [http://www.hattrick.org/Club/Matches/Match.aspx?matchID={{{ID}}} {{{ID}}}]
* Type: {{#ifeq: {{{type}}}|L|[[Image:match_league.png]]}}{{#ifeq: {{{type}}}|F|[[Image:match_friendly.png]]}}{{#ifeq: {{{type}}}|C|[[Image:match_cup.png]]}}
* Type: {{#ifeq: {{{type}}}|L|[[Image:match_league.png]]}}{{#ifeq: {{{type}}}|F|[[Image:match_friendly.png]]}}{{#ifeq: {{{type}}}|C|[[Image:match_cup.png]]}}
Line 10: Line 11:
* '''Score:''' {{#if: {{{win|}}}|<span style="color:#277F31">'''{{{win}}}'''</span>}}{{#if: {{{lost|}}}|<span style="color:#A00">'''{{{lost}}}'''</span>}}{{#if: {{{draw|}}}|<span style="color:#333">'''{{{draw}}}'''</span>}}
* '''Score:''' {{#if: {{{win|}}}|<span style="color:#277F31">'''{{{win}}}'''</span>}}{{#if: {{{lost|}}}|<span style="color:#A00">'''{{{lost}}}'''</span>}}{{#if: {{{draw|}}}|<span style="color:#333">'''{{{draw}}}'''</span>}}
|-
|-
! width="50%" | [[{{{home_team}}}]] !! width="50%" | [[{{{away_team}}}]]
| style="padding: 0 10px;" |
{| class="prettytable" style="width:100%;"
|-
|-
| {{#if: {{{kit_home|}}}|[[Image:{{{kit_home}}}]]}}
! width="50%" | {{{home_team}}} !! width="50%" | {{{away_team}}}
| {{#if: {{{kit_away|}}}|[[Image:{{{kit_away}}}]]}}
|- align="center"
| {{#if: {{{kit_home|}}}|[[Image:{{{kit_home}}}]]}} || {{#if: {{{kit_away|}}}|[[Image:{{{kit_away}}}]]}}
|-
! colspan="2" | Stars
|-
|-
|
|
* Total stars: {{{home_stars}}}
* Total: {{{home_stars}}} {{Rating_1h}}
* Yellow: {{{home_stars_yellow}}} {{Rating_1}}
* Yellow: {{{home_stars_yellow}}} {{Rating_1}}
* Brown: {{{home_stars_brown}}} {{Rating_1g}}
* Brown: {{{home_stars_brown}}} {{Rating_1g}}
|
|
* Total stars: {{{away_stars}}}
* Total: {{{away_stars}}} {{Rating_1h}}
* Yellow: {{{away_stars_yellow}}} {{Rating_1}}
* Yellow: {{{away_stars_yellow}}} {{Rating_1}}
* Brown: {{{away_stars_brown}}} {{Rating_1g}}
* Brown: {{{away_stars_brown}}} {{Rating_1g}}
 
|-
! colspan="2" | Best Players
|- align="center"
| {{{best_player_home}}} || {{{best_player_away}}}
|-  align="center"
| {{{best_player_home_stars}}} || {{{best_player_away_stars}}}
|-
! colspan="2" | Worst Players
|- align="center"
| {{{worst_player_home}}} || {{{worst_player_away}}}
|-  align="center"
| {{{worst_player_home_stars}}} || {{{worst_player_away_stars}}}
|}
|}
|}



Latest revision as of 00:36, 4 April 2012

[[{{{home_team}}}]] - [[{{{away_team}}}]]
  • ID: {{{ID}}}
  • Type:
  • Date: {{{date}}}
  • Weather:
  • Crowd: {{{crowd}}}
  • Score:
{{{home_team}}} {{{away_team}}}
Stars
  • Total: {{{home_stars}}}
  • Yellow: {{{home_stars_yellow}}}
  • Brown: {{{home_stars_brown}}}
  • Total: {{{away_stars}}}
  • Yellow: {{{away_stars_yellow}}}
  • Brown: {{{away_stars_brown}}}
Best Players
{{{best_player_home}}} {{{best_player_away}}}
{{{best_player_home_stars}}} {{{best_player_away_stars}}}
Worst Players
{{{worst_player_home}}} {{{worst_player_away}}}
{{{worst_player_home_stars}}} {{{worst_player_away_stars}}}















Use like this: (and see example)

{{match_info |
| ID = match id
| type = L for league, C for cup, F for friendly
| date = match date
| weather = S for sunny, C for partialy cloudly, O for overcast, R for rain
| crowd = number of spectators
| win = score (use lost or draw variable instead of win, all three set the score value)
| kit = image of kit
| home_team = home team name
| home_flag = home team flag
| home_stars = home total stars
| home_stars_yellow = home total yellow stars
| home_stars_brown = home total brown stars
| away_team = away team name
| away_flag = away team flag
| away_stars = away total stars
| away_stars_yellow = away total yellow stars
| away_stars_brown = away total brown stars
}}