Template:Match info: Difference between revisions

From Hattrick
Jump to navigationJump to search
Teles (talk | contribs)
Teles (talk | contribs)
No edit summary
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
* ID: [http://www.hattrick.org/Club/Matches/Match.aspx?matchID={{{id}}}|{{{id}}}]
{|- style="float:right; border:1px solid #e0e0e0"
! bgcolor="#e0e0e0" colspan="2" | {{#if:{{{home_flag|}}}|{{Flagicon|{{{home_flag}}}}}}} {{{home_team}}} - {{{away_team}}} {{#if:{{{away_flag|}}}|{{Flagicon|{{{away_flag}}}}}}}
|-
|
* ID: [http://www.hattrick.org/goto.ashx?path=/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]]}}
* Date: {{{date}}}
* Date: {{{date}}}
* Weather: {{#ifeq: {{{weather}}}|S|[[Image:weather_sunny.png]]}}{{#ifeq: {{{weather}}}|P|[[Image:weather_partialcloud.png]]}}{{#ifeq: {{{weather}}}|C|[[Image:weather_cloud.png]]}}{{#ifeq: {{{weather}}}|R|[[Image:weather_rain.png]]}}
* Weather: {{#ifeq: {{{weather}}}|S|[[Image:weather_sunny.png]]}}{{#ifeq: {{{weather}}}|C|[[Image:weather_partialcloud.png]]}}{{#ifeq: {{{weather}}}|O|[[Image:weather_overcast.png]]}}{{#ifeq: {{{weather}}}|R|[[Image:weather_rain.png]]}}
* Crowd: {{{crowd}}}
* Crowd: {{{crowd}}}
* Score: {{{score}}}
* '''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>}}
| {{#if: {{{kit|}}}|[[Image:{{{kit}}}]]}}
|- bgcolor="#e0e0e0"
! width="50%" | [[{{{home_team}}}]] !! width="50%" | [[{{{away_team}}}]]
|-
|
* Total stars: {{{home_stars}}}
* Yellow: {{{home_stars_yellow}}} {{Rating_1}}
* Brown: {{{home_stars_brown}}} {{Rating_1g}}
|
* Total stars: {{{away_stars}}}
* Yellow: {{{away_stars_yellow}}} {{Rating_1}}
* Brown: {{{away_stars_brown}}} {{Rating_1g}}
 
|}
 
<noinclude>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
==== Use like this: (and see [[PAPOU_TEAM_-_CPAM_FC_(354130961)|example]])====
<pre>
{{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
}}
</pre>
</noinclude>

Latest revision as of 19:41, 3 August 2014

{{{home_team}}} - {{{away_team}}}
  • ID: {{{ID}}}
  • Type:
  • Date: {{{date}}}
  • Weather:
  • Crowd: {{{crowd}}}
  • Score:
[[{{{home_team}}}]] [[{{{away_team}}}]]
  • Total stars: {{{home_stars}}}
  • Yellow: {{{home_stars_yellow}}}
  • Brown: {{{home_stars_brown}}}
  • Total stars: {{{away_stars}}}
  • Yellow: {{{away_stars_yellow}}}
  • Brown: {{{away_stars_brown}}}















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
}}