Difference between revisions of "Template:MedalCompetition"

From blackwiki
Jump to navigation Jump to search
imported>Ozhiker
(Added default value, added code around template to display properly on this page)
imported>Ozhiker
(Fix usage example)
Line 10: Line 10:
 
==Usage Example==
 
==Usage Example==
 
{{MedalTableTop}}
 
{{MedalTableTop}}
 +
{{MedalSport | [[Athletics]]}}
 
{{MedalCompetition|[[Olympic Games]]}}
 
{{MedalCompetition|[[Olympic Games]]}}
{{MedalSport | [[Athletics]]}}
 
 
{{MedalGold  | [[2000 Summer Olympics|2000 Sydney]] | 400 m }}
 
{{MedalGold  | [[2000 Summer Olympics|2000 Sydney]] | 400 m }}
 
{{MedalCompetition|[[Commonwealth Games]]}}
 
{{MedalCompetition|[[Commonwealth Games]]}}
Line 21: Line 21:
 
<pre>
 
<pre>
 
{{MedalTableTop}}
 
{{MedalTableTop}}
 +
{{MedalSport | [[Athletics]]}}
 
{{MedalCompetition|[[Olympic Games]]}}
 
{{MedalCompetition|[[Olympic Games]]}}
{{MedalSport | [[Athletics]]}}
 
 
{{MedalGold  | [[2000 Summer Olympics|2000 Sydney]] | 400 m }}
 
{{MedalGold  | [[2000 Summer Olympics|2000 Sydney]] | 400 m }}
 
{{MedalCompetition|[[Commonwealth Games]]}}
 
{{MedalCompetition|[[Commonwealth Games]]}}
{MedalBronze | [[2006 Commonwealth Games|2006 Melbourne]] | 400 m }}
+
{{MedalBronze | [[2006 Commonwealth Games|2006 Melbourne]] | 400 m }}
 
{{MedalBottom}}
 
{{MedalBottom}}
 
</pre>
 
</pre>

Revision as of 13:57, 15 August 2006

Competition Name



Purpose

Allows a medal list to include multiple competitions, e.g. Olympic Games, Commonwealth Games, World Championships, National Titles, Goodwill Games, Paralympic Games, etc.

Usage Example

Template:PAGENAMEBASE
Medal record
Athletics
Olympic Games
Gold medal – first place 2000 Sydney 400 m
Commonwealth Games
Bronze medal – third place 2006 Melbourne 400 m

The table on the right is produced with the code below:

{{MedalTableTop}}
{{MedalSport | [[Athletics]]}}
{{MedalCompetition|[[Olympic Games]]}}
{{MedalGold  | [[2000 Summer Olympics|2000 Sydney]] | 400 m }}
{{MedalCompetition|[[Commonwealth Games]]}}
{{MedalBronze | [[2006 Commonwealth Games|2006 Melbourne]] | 400 m }}
{{MedalBottom}}



Related templates: