Difference between revisions of "Template:MedalBox/testcases"
Jump to navigation
Jump to search
imported>Zyxw (create testcases) |
imported>Zyxw (expand testcases) |
||
| Line 1: | Line 1: | ||
{{Testcases notice <!--|toc=on-->}} | {{Testcases notice <!--|toc=on-->}} | ||
| − | == Testcase | + | == No parameters == |
| + | <pre style="overflow:auto"> | ||
| + | {{MedalBox}} | ||
| + | {{MedalBottom}} | ||
| + | </pre> | ||
| + | {{Testcase table | ||
| + | | _after = {{MedalBottom}} | ||
| + | }} | ||
| + | |||
| + | == One parameter == | ||
| + | === sport === | ||
| + | <pre style="overflow:auto"> | ||
| + | {{MedalBox | ||
| + | | sport = Men's [[athletics (sport)|athletics]] | ||
| + | }} | ||
| + | {{MedalBottom}} | ||
| + | </pre> | ||
| + | {{Testcase table | ||
| + | | sport = Men's [[athletics (sport)|athletics]] | ||
| + | | _after = {{MedalBottom}} | ||
| + | }} | ||
| + | |||
| + | === country === | ||
| + | <pre style="overflow:auto"> | ||
| + | {{MedalBox | ||
| + | | country = {{JAM}} | ||
| + | }} | ||
| + | {{MedalBottom}} | ||
| + | </pre> | ||
| + | {{Testcase table | ||
| + | | country = {{JAM}} | ||
| + | | _after = {{MedalBottom}} | ||
| + | }} | ||
| + | |||
| + | === medals === | ||
| + | <pre style="overflow:auto"> | ||
| + | {{MedalBox | ||
| + | | 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 === | ||
| + | <pre style="overflow:auto"> | ||
| + | {{MedalBox | ||
| + | | sport = Men's [[athletics (sport)|athletics]] | ||
| + | | country = {{JAM}} | ||
| + | }} | ||
| + | {{MedalBottom}} | ||
| + | </pre> | ||
| + | {{Testcase table | ||
| + | | sport = Men's [[athletics (sport)|athletics]] | ||
| + | | country = {{JAM}} | ||
| + | | _after = {{MedalBottom}} | ||
| + | }} | ||
| + | === sport, medals === | ||
<pre style="overflow:auto"> | <pre style="overflow:auto"> | ||
{{MedalBox | {{MedalBox | ||
| sport = Men's [[athletics (sport)|athletics]] | | 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, medals === | ||
| + | <pre style="overflow:auto"> | ||
| + | {{MedalBox | ||
| country = {{JAM}} | | country = {{JAM}} | ||
| medals = | | medals = | ||
| Line 12: | Line 89: | ||
}} | }} | ||
</pre> | </pre> | ||
| + | {{Testcase table | ||
| + | | country = {{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 == | ||
| + | <pre style="overflow:auto"> | ||
| + | {{MedalBox | ||
| + | | sport = Men's [[athletics (sport)|athletics]] | ||
| + | | country = {{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 | {{Testcase table | ||
| sport = Men's [[athletics (sport)|athletics]] | | sport = Men's [[athletics (sport)|athletics]] | ||
Latest revision as of 09:29, 24 June 2015
| This is the template test cases page for the sandbox of Template:MedalBox. 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
{{MedalBox}}
{{MedalBottom}}
One parameter
sport
{{MedalBox
| sport = Men's [[athletics (sport)|athletics]]
}}
{{MedalBottom}}
country
{{MedalBox
| country = {{JAM}}
}}
{{MedalBottom}}
medals
{{MedalBox
| 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
{{MedalBox
| sport = Men's [[athletics (sport)|athletics]]
| country = {{JAM}}
}}
{{MedalBottom}}
sport, medals
{{MedalBox
| 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, medals
{{MedalBox
| country = {{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
{{MedalBox
| sport = Men's [[athletics (sport)|athletics]]
| country = {{JAM}}
| medals =
{{MedalCompetition | [[Olympic Games]] }}
{{MedalGold | [[2008 Summer Olympics|2008 Beijing]] | [[Athletics at the 2008 Summer Olympics – Men's 100 metres|100 m]] }}
}}