Template:HeadToHead/doc: Difference between revisions
From Hattrick
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
==About== | ==About== | ||
A basic template to create a table for your head to head stats. It's designed to show results from your teams perspective | A basic template, in combination with [[Template:HeadToHeadRow]] to create a table for your head to head stats. It's designed to show results from your teams perspective. | ||
'''Usage:''' | |||
<pre> | |||
{{HeadToHead | |||
|data= | |||
{{HeadToHeadRow | |||
|TeamName=[[Concordia Lagers]] | |||
|TEAMID=423937 | |||
|MP=1 | |||
|WINS=1 | |||
|DRAWS=0 | |||
|LOSSES=0 | |||
|GOALSFOR=4 | |||
|GOALSAGAINST=1 | |||
|AVGGOALSFOR=4 | |||
|AVGGOALSAGAINST=1 | |||
}} | |||
{{HeadToHeadRow | |||
|TeamName=[[AFC Whenuapai]] | |||
|TEAMID=76189 | |||
|MP=1 | |||
|WINS=1 | |||
|DRAWS=0 | |||
|LOSSES=0 | |||
|GOALSFOR=6 | |||
|GOALSAGAINST=3 | |||
|AVGGOALSFOR=6 | |||
|AVGGOALSAGAINST=3 | |||
}} | |||
}} | |||
</pre> | |||
Gives: | |||
{{HeadToHead | |||
|data= | |||
{{HeadToHeadRow | |||
|TeamName=[[Concordia Lagers]] | |||
|TEAMID=423937 | |||
|MP=1 | |||
|WINS=1 | |||
|DRAWS=0 | |||
|LOSSES=0 | |||
|GOALSFOR=4 | |||
|GOALSAGAINST=1 | |||
|AVGGOALSFOR=4 | |||
|AVGGOALSAGAINST=1 | |||
}} | |||
{{HeadToHeadRow | |||
|TeamName=[[AFC Whenuapai]] | |||
|TEAMID=76189 | |||
|MP=1 | |||
|WINS=1 | |||
|DRAWS=0 | |||
|LOSSES=0 | |||
|GOALSFOR=6 | |||
|GOALSAGAINST=3 | |||
|AVGGOALSFOR=6 | |||
|AVGGOALSAGAINST=3 | |||
}} | |||
}} | |||
==Parameters== | ==Parameters== | ||
Revision as of 03:55, 23 August 2012
About
A basic template, in combination with Template:HeadToHeadRow to create a table for your head to head stats. It's designed to show results from your teams perspective.
Usage:
{{HeadToHead
|data=
{{HeadToHeadRow
|TeamName=[[Concordia Lagers]]
|TEAMID=423937
|MP=1
|WINS=1
|DRAWS=0
|LOSSES=0
|GOALSFOR=4
|GOALSAGAINST=1
|AVGGOALSFOR=4
|AVGGOALSAGAINST=1
}}
{{HeadToHeadRow
|TeamName=[[AFC Whenuapai]]
|TEAMID=76189
|MP=1
|WINS=1
|DRAWS=0
|LOSSES=0
|GOALSFOR=6
|GOALSAGAINST=3
|AVGGOALSFOR=6
|AVGGOALSAGAINST=3
}}
}}
Gives:
Head to Head Statistics for [[{{{TeamName}}}]]:
| Team Name | MP | W | D | L | GF | GA | Avg GF | Avg GA |
|---|---|---|---|---|---|---|---|---|
| Concordia Lagers (423937) | 1 | 1 | 0 | 0 | 4 | 1 | 4 | 1 |
| AFC Whenuapai (76189) | 1 | 1 | 0 | 0 | 6 | 3 | 6 | 3 |
Parameters
- TeamName
- The name of the team.
- TEAMID
- The Hattrick Team ID.
- MP
- Matches Played.
- WINS
- The number of wins against this team.
- DRAWS
- The number of draws you've had against this team.
- LOSSES
- The number of losses against this team.
- GOALSFOR
- The number of goals you've scored, total.
- GOALSAGAINST
- The number of goals they have scored against you.
- AVGGOALSFOR
- The average number of goals you have scored per match.
- AVGGOALSAGAINST
- The average number of goals they have scored per match.