Template:Match infobox: Difference between revisions
From Hattrick
Jump to navigationJump to search
Unknown guy (talk | contribs) No edit summary |
Unknown guy (talk | contribs) No edit summary |
||
| Line 9: | Line 9: | ||
* Crowd: {{{crowd}}} | * Crowd: {{{crowd}}} | ||
* '''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}}}]] | ! width="50%" | [[{{{home_team}}}]] !! width="50%" | [[{{{away_team}}}]] | ||
|- | |||
|| {{#if: {{{kit_home|}}}|[[Image:{{{kit_home}}}]]}} || {{#if: {{{kit_away|}}}|[[Image:{{{kit_away}}}]]}} | |||
|- | |- | ||
| | | | ||
Revision as of 20:52, 3 April 2012
| |
| [[{{{home_team}}}]] | [[{{{away_team}}}]] |
|---|---|
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
}}