Difference between revisions of "Template:MedalTableTop/testcases"
Jump to navigation
Jump to search
imported>Zyxw (update test cases) |
imported>Zyxw (expand testcases) |
||
| Line 1: | Line 1: | ||
| − | {{ | + | {{Testcases notice <!--|toc=on-->}} |
| − | == | + | == No parameters == |
| + | <pre style="overflow:auto"> | ||
| + | {{MedalTableTop}} | ||
| + | {{MedalBottom}} | ||
| + | </pre> | ||
| + | {{Testcase table | ||
| + | | _after = {{MedalBottom}} | ||
| + | }} | ||
| + | |||
| + | == One parameter == | ||
| + | === sport === | ||
| + | <pre style="overflow:auto"> | ||
| + | {{MedalTableTop | ||
| + | | sport = Men's [[athletics (sport)|athletics]] | ||
| + | }} | ||
| + | {{MedalBottom}} | ||
| + | </pre> | ||
| + | {{Testcase table | ||
| + | | sport = Men's [[athletics (sport)|athletics]] | ||
| + | | _after = {{MedalBottom}} | ||
| + | }} | ||
| + | |||
| + | === country_code === | ||
| + | <pre style="overflow:auto"> | ||
| + | {{MedalTableTop | ||
| + | | country_code = JAM | ||
| + | }} | ||
| + | {{MedalBottom}} | ||
| + | </pre> | ||
| + | {{Testcase table | ||
| + | | country_code = JAM | ||
| + | | _after = {{MedalBottom}} | ||
| + | }} | ||
| + | |||
| + | === medals === | ||
| + | <pre style="overflow:auto"> | ||
| + | {{MedalTableTop | ||
| + | | medals = | ||
| + | {{MedalCompetition | [[Olympic Games]] }} | ||
| + | {{MedalGold | [[2008 Summer Olympics|2008 Beijing]] | [[Athletics at the 2008 Summer Olympics – Men's 100 metres|100 m]] }} | ||
| + | }} | ||
| + | </pre> | ||
| + | {{Testcase table | ||
| + | | medals = | ||
| + | {{MedalCompetition | [[Olympic Games]] }} | ||
| + | {{MedalGold | [[2008 Summer Olympics|2008 Beijing]] | [[Athletics at the 2008 Summer Olympics – Men's 100 metres|100 m]] }} | ||
| + | }} | ||
| + | |||
| + | == Two parameters == | ||
| + | === sport, country_code === | ||
| + | <pre style="overflow:auto"> | ||
| + | {{MedalTableTop | ||
| + | | sport = Men's [[athletics (sport)|athletics]] | ||
| + | | country_code = JAM | ||
| + | }} | ||
| + | {{MedalBottom}} | ||
| + | </pre> | ||
| + | {{Testcase table | ||
| + | | sport = Men's [[athletics (sport)|athletics]] | ||
| + | | country_code = JAM | ||
| + | | _after = {{MedalBottom}} | ||
| + | }} | ||
| + | |||
| + | === sport, medals === | ||
| + | <pre style="overflow:auto"> | ||
| + | {{MedalTableTop | ||
| + | | sport = Men's [[athletics (sport)|athletics]] | ||
| + | | medals = | ||
| + | {{MedalCompetition | [[Olympic Games]] }} | ||
| + | {{MedalGold | [[2008 Summer Olympics|2008 Beijing]] | [[Athletics at the 2008 Summer Olympics – Men's 100 metres|100 m]] }} | ||
| + | }} | ||
| + | </pre> | ||
| + | {{Testcase table | ||
| + | | sport = Men's [[athletics (sport)|athletics]] | ||
| + | | medals = | ||
| + | {{MedalCompetition | [[Olympic Games]] }} | ||
| + | {{MedalGold | [[2008 Summer Olympics|2008 Beijing]] | [[Athletics at the 2008 Summer Olympics – Men's 100 metres|100 m]] }} | ||
| + | }} | ||
| + | |||
| + | === country_code, medals === | ||
| + | <pre style="overflow:auto"> | ||
| + | {{MedalTableTop | ||
| + | | country_code = JAM | ||
| + | | medals = | ||
| + | {{MedalCompetition | [[Olympic Games]] }} | ||
| + | {{MedalGold | [[2008 Summer Olympics|2008 Beijing]] | [[Athletics at the 2008 Summer Olympics – Men's 100 metres|100 m]] }} | ||
| + | }} | ||
| + | </pre> | ||
| + | {{Testcase table | ||
| + | | country_code = JAM | ||
| + | | medals = | ||
| + | {{MedalCompetition | [[Olympic Games]] }} | ||
| + | {{MedalGold | [[2008 Summer Olympics|2008 Beijing]] | [[Athletics at the 2008 Summer Olympics – Men's 100 metres|100 m]] }} | ||
| + | }} | ||
| + | |||
| + | == Three parameters, no image == | ||
| + | <pre style="overflow:auto"> | ||
| + | {{MedalTableTop | ||
| + | | sport = Men's [[athletics (sport)|athletics]] | ||
| + | | country_code = JAM | ||
| + | | medals = | ||
| + | {{MedalCompetition | [[Olympic Games]] }} | ||
| + | {{MedalGold | [[2008 Summer Olympics|2008 Beijing]] | [[Athletics at the 2008 Summer Olympics – Men's 100 metres|100 m]] }} | ||
| + | }} | ||
| + | </pre> | ||
| + | {{Testcase table | ||
| + | | sport = Men's [[athletics (sport)|athletics]] | ||
| + | | country_code = JAM | ||
| + | | medals = | ||
| + | {{MedalCompetition | [[Olympic Games]] }} | ||
| + | {{MedalGold | [[2008 Summer Olympics|2008 Beijing]] | [[Athletics at the 2008 Summer Olympics – Men's 100 metres|100 m]] }} | ||
| + | }} | ||
| + | == All parameters == | ||
| + | === Image with unnamed parameters, name specified === | ||
<pre style="overflow:auto"> | <pre style="overflow:auto"> | ||
{{MedalTableTop | {{MedalTableTop | ||
| Line 17: | Line 130: | ||
}} | }} | ||
</pre> | </pre> | ||
| − | |||
| − | |||
{{Testcase table | {{Testcase table | ||
| name = Johnny Weissmuller | | name = Johnny Weissmuller | ||
| Line 32: | Line 143: | ||
}} | }} | ||
| − | == Image with unnamed parameters, no name displayed == | + | === Image with unnamed parameters, no name displayed === |
| − | |||
<pre style="overflow:auto"> | <pre style="overflow:auto"> | ||
{{MedalTableTop | {{MedalTableTop | ||
| Line 48: | Line 158: | ||
}} | }} | ||
</pre> | </pre> | ||
| − | |||
| − | |||
{{Testcase table | {{Testcase table | ||
| name = no | | name = no | ||
Revision as of 10:17, 24 June 2015
| 42px | This is the template test cases page for the sandbox of Template:MedalTableTop. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Contents
No parameters
{{MedalTableTop}}
{{MedalBottom}}
One parameter
sport
{{MedalTableTop
| sport = Men's [[athletics (sport)|athletics]]
}}
{{MedalBottom}}
country_code
{{MedalTableTop
| country_code = JAM
}}
{{MedalBottom}}
medals
{{MedalTableTop
| medals =
{{MedalCompetition | [[Olympic Games]] }}
{{MedalGold | [[2008 Summer Olympics|2008 Beijing]] | [[Athletics at the 2008 Summer Olympics – Men's 100 metres|100 m]] }}
}}
Two parameters
sport, country_code
{{MedalTableTop
| sport = Men's [[athletics (sport)|athletics]]
| country_code = JAM
}}
{{MedalBottom}}
sport, medals
{{MedalTableTop
| sport = Men's [[athletics (sport)|athletics]]
| medals =
{{MedalCompetition | [[Olympic Games]] }}
{{MedalGold | [[2008 Summer Olympics|2008 Beijing]] | [[Athletics at the 2008 Summer Olympics – Men's 100 metres|100 m]] }}
}}
country_code, medals
{{MedalTableTop
| country_code = JAM
| medals =
{{MedalCompetition | [[Olympic Games]] }}
{{MedalGold | [[2008 Summer Olympics|2008 Beijing]] | [[Athletics at the 2008 Summer Olympics – Men's 100 metres|100 m]] }}
}}
Three parameters, no image
{{MedalTableTop
| sport = Men's [[athletics (sport)|athletics]]
| country_code = JAM
| medals =
{{MedalCompetition | [[Olympic Games]] }}
{{MedalGold | [[2008 Summer Olympics|2008 Beijing]] | [[Athletics at the 2008 Summer Olympics – Men's 100 metres|100 m]] }}
}}
All parameters
Image with unnamed parameters, name specified
{{MedalTableTop
| name = Johnny Weissmuller
| Weissmuller.jpg
| 200px
| alt = A young male swimmer stands at the edge of a pool with other swimmers sitting in the background. He leans over and squints into the camera. He wears circa 1930 swimming attire with a tank top.
| Weissmuller at a swim meet circa 1925
| sport = Men's [[swimming (sport)|swimming]]
| country_code = USA
| medals =
{{MedalCompetition | [[Olympic Games]] }}
{{MedalGold | [[1924 Summer Olympics|1924 Paris]] | [[Swimming at the 1924 Summer Olympics – Men's 100 metre freestyle|100 m freestyle]] }}
}}
Image with unnamed parameters, no name displayed
{{MedalTableTop
| name = no
| image = Weissmuller.jpg
| imagesize = 200px
| alt = A young male swimmer stands at the edge of a pool with other swimmers sitting in the background. He leans over and squints into the camera. He wears circa 1930 swimming attire with a tank top.
| caption = Weissmuller at a swim meet circa 1925
| sport = Men's [[swimming (sport)|swimming]]
| country_code = USA
| medals =
{{MedalCompetition | [[Olympic Games]] }}
{{MedalGold | [[1924 Summer Olympics|1924 Paris]] | [[Swimming at the 1924 Summer Olympics – Men's 100 metre freestyle|100 m freestyle]] }}
}}