Difference between revisions of "Template:MedalTableTop/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Sillyfolkboy
(update test cases to reflect actual usage)
imported>Zyxw
(update header)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{testcases}}
+
{{Testcases notice <!--|toc=on-->}}
  
;Main template
+
== 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}}
 +
}}
 +
 
 +
=== country ===
 +
<pre style="overflow:auto">
 +
{{MedalTableTop
 +
| country = {{bkw|POL}}
 +
}}
 +
{{MedalBottom}}
 +
</pre>
 +
{{Testcase table
 +
| country = {{bkw|POL}}
 +
| _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&nbsp;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&nbsp;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, country ===
 +
<pre style="overflow:auto">
 +
{{MedalTableTop
 +
| sport = Women's [[basketball]]
 +
| country = {{bkw|POL}}
 +
}}
 +
{{MedalBottom}}
 +
</pre>
 +
{{Testcase table
 +
| sport = Women's [[basketball]]
 +
| country = {{bkw|POL}}
 +
| _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&nbsp;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&nbsp;m]] }}
 +
}}
  
<code><nowiki>{{MedalTableTop|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.|Johnny Weismuller at a swim meet circa 1925|medals={{Medal|Sport|Men's [[Swimming (sport)|swimming]]}}
+
=== country_code, medals ===
}}</nowiki></code>
+
<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&nbsp;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&nbsp;m]] }}
 +
}}
  
{{MedalTableTop|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.|Johnny Weismuller at a swim meet circa 1925|medals={{Medal|Sport|Men's [[Swimming (sport)|swimming]]}}
+
=== country, medals ===
 +
<pre style="overflow:auto">
 +
{{MedalTableTop
 +
| country = {{bkw|POL}}
 +
| medals =
 +
{{MedalCompetition | [[EuroBasket Women|European Championships]] }}
 +
{{MedalGold | [[EuroBasket Women 1999|1999 Poland]] | Team competition }}
 +
}}
 +
</pre>
 +
{{Testcase table
 +
| country = {{bkw|POL}}
 +
| medals =
 +
{{MedalCompetition | [[EuroBasket Women|European Championships]] }}
 +
{{MedalGold | [[EuroBasket Women 1999|1999 Poland]] | Team competition }}
 
}}
 
}}
  
{{clear}}
+
== Three parameters, no image ==
  
; Sandbox
+
=== sport, country_code, medals ===
 +
<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&nbsp;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&nbsp;m]] }}
 +
}}
  
<code><nowiki>{{MedalTableTop/sandbox|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.|Johnny Weismuller at a swim meet circa 1925|medals={{Medal|Sport|Men's [[Swimming (sport)|swimming]]}}
+
=== sport, country, medals ===
}}</nowiki></code>
+
<pre style="overflow:auto">
 +
{{MedalTableTop
 +
| sport = Women's [[basketball]]
 +
| country = {{bkw|POL}}
 +
| medals =
 +
{{MedalCompetition | [[EuroBasket Women|European Championships]] }}
 +
{{MedalGold | [[EuroBasket Women 1999|1999 Poland]] | Team competition }}
 +
}}
 +
</pre>
 +
{{Testcase table
 +
| sport = Women's [[basketball]]
 +
| country = {{bkw|POL}}
 +
| medals =
 +
{{MedalCompetition | [[EuroBasket Women|European Championships]] }}
 +
{{MedalGold | [[EuroBasket Women 1999|1999 Poland]] | Team competition }}
 +
}}
  
{{MedalTableTop/sandbox|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.|Johnny Weismuller at a swim meet circa 1925|medals={{Medal|Sport|Men's [[Swimming (sport)|swimming]]}}
+
== All parameters ==
 +
=== Image with unnamed parameters, name specified ===
 +
<pre style="overflow:auto">
 +
{{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]] }}
 +
}}
 +
</pre>
 +
{{Testcase table
 +
| 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]] }}
 
}}
 
}}
  
{{clear}}
+
=== Image with named parameters, no name displayed  ===
 +
<pre style="overflow:auto">
 +
{{MedalTableTop
 +
| name = no
 +
| image = Weissmuller.jpg
 +
| image_size = 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]] }}
 +
}}
 +
</pre>
 +
{{Testcase table
 +
| name = no
 +
| image = Weissmuller.jpg
 +
| image_size = 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]] }}
 +
}}

Latest revision as of 04:47, 6 November 2017

No parameters

{{MedalTableTop}}
{{MedalBottom}}

Template:Testcase table

One parameter

sport

{{MedalTableTop
| sport = Men's [[athletics (sport)|athletics]]
}}
{{MedalBottom}}

Template:Testcase table

country_code

{{MedalTableTop
| country_code = JAM
}}
{{MedalBottom}}

Template:Testcase table

country

{{MedalTableTop
| country = {{bkw|POL}}
}}
{{MedalBottom}}

Template:Testcase table

medals

{{MedalTableTop
| medals =
{{MedalCompetition | [[Olympic Games]] }}
{{MedalGold | [[2008 Summer Olympics|2008 Beijing]] | [[Athletics at the 2008 Summer Olympics – Men's 100 metres|100 m]] }}
}}

Template:Testcase table

Two parameters

sport, country_code

{{MedalTableTop
| sport = Men's [[athletics (sport)|athletics]]
| country_code = JAM
}}
{{MedalBottom}}

Template:Testcase table

sport, country

{{MedalTableTop
| sport = Women's [[basketball]]
| country = {{bkw|POL}}
}}
{{MedalBottom}}

Template:Testcase table

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]] }}
}}

Template:Testcase table

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]] }}
}}

Template:Testcase table

country, medals

{{MedalTableTop
| country = {{bkw|POL}}
| medals =
{{MedalCompetition | [[EuroBasket Women|European Championships]] }}
{{MedalGold | [[EuroBasket Women 1999|1999 Poland]] | Team competition }}
}}

Template:Testcase table

Three parameters, no image

sport, country_code, medals

{{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]] }}
}}

Template:Testcase table

sport, country, medals

{{MedalTableTop
| sport = Women's [[basketball]]
| country = {{bkw|POL}}
| medals =
{{MedalCompetition | [[EuroBasket Women|European Championships]] }}
{{MedalGold | [[EuroBasket Women 1999|1999 Poland]] | Team competition }}
}}

Template:Testcase table

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]] }}
}}

Template:Testcase table

Image with named parameters, no name displayed

{{MedalTableTop
| name = no
| image = Weissmuller.jpg
| image_size = 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]] }}
}}

Template:Testcase table