Template:HeadToHead/doc

From Hattrick

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.

This template was created by GM-Cyntech

Usage:

{{HeadToHead
|TeamName=Lysdexic Untied
|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 Lysdexic Untied:

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

Head To Head

TeamName
Your team name.
data
The table row data (see below).

Head To Head Row

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.