Difference between revisions of "Template:Infobox dim/testcases"
Jump to navigation
Jump to search
imported>Hike395 (correct test cases for rounding) |
imported>Hike395 (add area test cases) |
||
| Line 9: | Line 9: | ||
<nowiki>{{Infobox dim|width_km=30}}</nowiki> → {{Infobox dim|width_km=30}}, should be 15km<br/> | <nowiki>{{Infobox dim|width_km=30}}</nowiki> → {{Infobox dim|width_km=30}}, should be 15km<br/> | ||
<nowiki>{{Infobox dim|width_mi=30}}</nowiki> → {{Infobox dim|width_mi=30}}, should be 24km<br/> | <nowiki>{{Infobox dim|width_mi=30}}</nowiki> → {{Infobox dim|width_mi=30}}, should be 24km<br/> | ||
| + | <nowiki>{{Infobox dim|area_km2=300}}</nowiki> → {{Infobox dim|area_km2=300}}, should be 15km<br/> | ||
| + | <nowiki>{{Infobox dim|area_mi2=200}}</nowiki> → {{Infobox dim|area_mi2=200}}, should be 20km<br/> | ||
<nowiki>{{Infobox dim}}</nowiki> → {{Infobox dim}} should be blank | <nowiki>{{Infobox dim}}</nowiki> → {{Infobox dim}} should be blank | ||
Revision as of 06:10, 23 June 2012
| This is the template test cases page for the sandbox of Template:Infobox dim. 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: |
{{Infobox dim|length_km=20|width_km=30}} → 15km, should be 15km
{{Infobox dim|length_mi=20|width_mi=30}} → 24km, should be 24km
{{Infobox dim|width_km=20|length_km=30}} → 15km, should be 15km
{{Infobox dim|width_mi=20|length_mi=30}} → 24km, should be 24km
{{Infobox dim|length_km=20}} → 10km, should be 10km
{{Infobox dim|length_mi=20}} → 16km, should be 16km
{{Infobox dim|width_km=30}} → 15km, should be 15km
{{Infobox dim|width_mi=30}} → 24km, should be 24km
{{Infobox dim|area_km2=300}} → 17km, should be 15km
{{Infobox dim|area_mi2=200}} → 22km, should be 20km
{{Infobox dim}} → should be blank