Template:AFLGame/doc
Template:Documentation subpage This template is for adding a single line summary of an Australian Rules Football game. It must be used with Template:AFLGameHeader and Template:AFLGameFooter to form a properly formatted table. It can also be used with Template:AFLGameBye in seasons where teams have a bye.
Usage[edit source]
Blank Parameter[edit source]
{{AFLGameHeader|title = }}
{{AFLGame
|date =
|home team =
|home score =
|winner =
|away team =
|away score =
|venue =
|crowd =
|report =
}}
{{AFLGameFooter|notes = }}
vs. | |||||
Using UnNamed Parameters[edit source]
Before the game has been played the template can be used to present the fixture information as follows:
{{AFLGameHeader}}
{{AFLGame|Saturday, 25 April 2:20pm|{{AFL Ess}}||V|{{AFL Col}}||[[Melbourne Cricket Ground|MCG]]}}
{{AFLGameFooter}}
Saturday, 25 April 2:20pm | Template:AFL Ess | vs. | Template:AFL Col | MCG | |
After the game has been played the result can be added to the template to give a summary of the result.
{{AFLGameHeader}}
{{AFLGame|Saturday, 25 April 2:20pm|{{AFL Ess}}|13.15 (93)|H|{{AFL Col}}|12.16 (88)|[[Melbourne Cricket Ground|MCG]]|84,829|[http://www.afl.com.au/news/newsarticle/tabid/208/newsid/75608/default.aspx Report]}}
{{AFLGameFooter}}
Saturday, 25 April 2:20pm | Template:AFL Ess 13.15 (93) | def. | Template:AFL Col 12.16 (88) | MCG (crowd: 84,829) | Report |
Using Named Parameters[edit source]
Before the game has been played the template can be used to present the fixture information as follows:
{{AFLGameHeader}} {{AFLGame |date = Saturday, 25 April 2:20pm |home team = {{AFL Ess}} |home score = |winner = V |away team = {{AFL Col}} |away score = |venue = [[Melbourne Cricket Ground|MCG]] |crowd = |report = }} {{AFLGameFooter}}
Saturday, 25 April 2:20pm | Template:AFL Ess | vs. | Template:AFL Col | MCG | |
After the game has been played the result can be added to the template to give a summary of the result.
{{AFLGameHeader}} {{AFLGame |date = Saturday, 25 April 2:20pm |home team = {{AFL Ess}} |home score = 13.15 (93) |winner = H |away team = {{AFL Col}} |away score = 12.16 (88) |venue = [[Melbourne Cricket Ground|MCG]] |crowd = 84,829 |report = [http://www.afl.com.au/news/newsarticle/tabid/208/newsid/75608/default.aspx Report] }} {{AFLGameFooter}}
Saturday, 25 April 2:20pm | Template:AFL Ess 13.15 (93) | def. | Template:AFL Col 12.16 (88) | MCG (crowd: 84,829) | Report |
Example Round[edit source]
Anzac Day | |||||
---|---|---|---|---|---|
Friday, 24 April 7:45pm | Template:AFL Por 5.6 (36) | def. by | Template:AFL StK 15.12 (102) | AAMI Stadium (crowd: 25,426) | Report |
Saturday, 25 April 2:20pm | Template:AFL Ess 13.15 (93) | def. | Template:AFL Col 12.16 (88) | MCG (crowd: 84,829) | Report |
Saturday, 25 April 5:20pm | Template:AFL Haw 11.8 (74) | def. | Template:AFL WC 7.14 (56) | Aurora Stadium (crowd: 17,880) | Report |
Saturday, 25 April 6:45pm | Template:AFL Fre 18.13 (121) | def. | Template:AFL Syd 16.4 (100) | Subiaco Oval (crowd: 32,884) | Report |
Saturday, 25 April 7:20pm | Template:AFL Nor 7.16 (58) | def. by | Template:AFL Ric 13.16 (94) | Docklands Stadium (crowd: 29,224) | Report |
Sunday, 26 April 1:10pm | Template:AFL Gee 18.18 (126) | def. | Template:AFL Bri 5.3 (33) | Skilled Stadium (crowd: 15,580) | Report |
Sunday, 26 April 2:10pm | Template:AFL WB 13.12 (90) | def. by | Template:AFL Car 21.7 (133) | Docklands Stadium (crowd: 44,268) | Report |
Sunday, 26 April 4:40pm | Template:AFL Mel 4.10 (34) | def. by | Template:AFL Ade 7.9 (51) | MCG (crowd: 14,129) | Report |
|
Parameters[edit source]
Parameter | Explanation | |
---|---|---|
Number | Name | |
1 | date | The date and optionally time of the AFL match. |
2 | home team | The template for the home team of the match. |
3 | home score | The final score for the home team. Score should be in the format 13.15 (93) or 1.12.10 (91). Can be left blank prior to result. |
4 | winner | Should be V when the match has not been played and then changed to H for a victory by the home team, A for a victory by the away team, or D for a draw. This will set the winning teams name and score to bold and provide the correct 'def.' or def. by' in the middle. |
5 | away team | The template for the away team of the match. |
6 | away score | The final score for the away team. Score should be in the format 12.16 (88) or 1.12.10 (91). Can be left blank prior to result. |
7 | venue | The venue the AFL match is being played at. |
8 | crowd | The attendance figure for the AFL match. Can be left blank prior to the match being played. |
9 | report | A report into the game. Should be an external link with the display text of Report. Can be left blank prior to the match being played. There is a known issue with passing URL's that contain the '=' sign as a paramtere for a template. To overcome it, all '=' signs should be replaced with '%3D'. |