Difference between revisions of "Template:Infobox tennis biography/testcases"

From blackwiki
Jump to navigation Jump to search
imported>ScottDavis
(add a test case for embedding an MLA in a tennis infobox)
imported>Zyxw
(add test case for "height" parameter)
Line 1: Line 1:
{{template test cases notice}}
+
{{Template test cases notice}}
  
 
== Test 1 ==
 
== Test 1 ==
{{testcase table
+
{{Testcase table
 
| name=Just Testing
 
| name=Just Testing
 
| AustralianOpenresult  = QF 1994
 
| AustralianOpenresult  = QF 1994
Line 19: Line 19:
  
 
==Test 2==
 
==Test 2==
 
+
{{Testcase table
{{testcase table
 
 
| name=Testing module
 
| name=Testing module
 
| AustralianOpenresult  = QF 1994
 
| AustralianOpenresult  = QF 1994
Line 52: Line 51:
 
  | term_end2    =  {{end date|1920|2|18|df=y}}
 
  | term_end2    =  {{end date|1920|2|18|df=y}}
 
}}
 
}}
 +
}}
 +
 +
== Height ==
 +
 +
=== Automatic conversion ===
 +
<pre style="float:left;">
 +
{{Infobox tennis biography | name =
 +
| height = 5 ft 10 in
 +
}}
 +
</pre>
 +
{{Testcase table | name =
 +
| height = 5 ft 10 in
 +
}}
 +
{{clear}}
  
==Test 3 ==
+
<pre style="float:left;">
 +
{{Infobox tennis biography | name =  
 +
| height = 180 cm
 +
}}
 +
</pre>
 +
{{Testcase table | name =  
 +
| height = 180 cm
 +
}}
 +
{{clear}}
 +
 
 +
=== Conversion via template ===
 +
<pre style="float:left;">
 +
{{Infobox tennis biography | name =
 +
| height = {{convert|5|ft|10|in|cm|abbr=on}}
 +
}}
 +
</pre>
 +
{{Testcase table | name =
 +
| height = {{convert|5|ft|10|in|cm|abbr=on}}
 +
}}
 +
{{clear}}
 +
 
 +
<pre style="float:left;">
 +
{{Infobox tennis biography | name =
 +
| height = {{convert|180|cm|ftin|abbr=on}}
 +
}}
 +
</pre>
 +
{{Testcase table | name =
 +
| height = {{convert|180|cm|ftin|abbr=on}}
 +
}}
 +
{{clear}}
 +
 
 +
=== Manually entered conversion ===
 +
<pre style="float:left;">
 +
{{Infobox tennis biography | name =
 +
| height = 5 ft 10 in (178 cm)
 +
}}
 +
</pre>
 +
{{Testcase table | name =
 +
| height = 5 ft 10 in (178 cm)
 +
}}
 +
{{clear}}
 +
 
 +
<pre style="float:left;">
 +
{{Infobox tennis biography | name =
 +
| height = 180 cm (5 ft 11 in)
 +
}}
 +
</pre>
 +
{{Testcase table | name =
 +
| height = 180 cm (5 ft 11 in)
 
}}
 
}}
 +
{{clear}}

Revision as of 20:08, 4 December 2016

  1. REDIRECT Template:Testcases notice
  • From a page move: This is a redirect from a page that has been moved (renamed). This page was kept as a redirect to avoid breaking links, both internal and external, that may have been made to the old page name.

Test 1

Template:Testcase table

Test 2

Template:Testcase table

Height

Automatic conversion

{{Infobox tennis biography | name = 
| height = 5 ft 10 in
}}

Template:Testcase table

{{Infobox tennis biography | name = 
| height = 180 cm
}}

Template:Testcase table

Conversion via template

{{Infobox tennis biography | name = 
| height = {{convert|5|ft|10|in|cm|abbr=on}}
}}

Template:Testcase table

{{Infobox tennis biography | name = 
| height = {{convert|180|cm|ftin|abbr=on}}
}}

Template:Testcase table

Manually entered conversion

{{Infobox tennis biography | name = 
| height = 5 ft 10 in (178 cm)
}}

Template:Testcase table

{{Infobox tennis biography | name = 
| height = 180 cm (5 ft 11 in)
}}

Template:Testcase table