Difference between revisions of "Template:Infobox fencer/testcases"
Jump to navigation
Jump to search
imported>Zyxw (create) |
imported>Zyxw (add tests for child/embed) |
||
| Line 1: | Line 1: | ||
{{Testcases notice <!--|toc=on-->}} | {{Testcases notice <!--|toc=on-->}} | ||
| + | |||
| + | == child/embed parameters == | ||
| + | |||
| + | === child=yes === | ||
| + | {| | ||
| + | |- | ||
| + | | Template code | ||
| + | | Embedded: Infobox fencer | ||
| + | | Embedded: Infobox fencer/sandbox | ||
| + | |- style="vertical-align:top;" | ||
| + | | | ||
| + | <pre style="width:26em;"> | ||
| + | {{Infobox officeholder | ||
| + | | name = Infobox officeholder | ||
| + | | birth_date = {{birth date and age|1969|09|22|df=y}} | ||
| + | | birth_place = [[Moscow]], [[Russian SFSR]] | ||
| + | | office = Minister of Sport | ||
| + | | term_start = 19 October 2016 | ||
| + | | predecessor = Vitaly Mutko | ||
| + | | module = | ||
| + | {{Infobox fencer | child = yes | ||
| + | | hand = right-handed | ||
| + | | weapon = [[épée]] | ||
| + | | club = CSKA | ||
| + | | retired = 2008 | ||
| + | | medaltemplates = | ||
| + | {{Medal|Sport|Men's [[épée]]}} | ||
| + | {{Medal|Competition|[[Olympic Games]]}} | ||
| + | {{Medal|W|1|(1 individual)}} | ||
| + | }} | ||
| + | }} | ||
| + | </pre> | ||
| + | | | ||
| + | {{Infobox officeholder | ||
| + | | name = Infobox officeholder | ||
| + | | birth_date = {{birth date and age|1969|09|22|df=y}} | ||
| + | | birth_place = [[Moscow]], [[Russian SFSR]] | ||
| + | | office = Minister of Sport | ||
| + | | term_start = 19 October 2016 | ||
| + | | predecessor = Vitaly Mutko | ||
| + | | module = | ||
| + | {{Infobox fencer | child = yes | ||
| + | | hand = right-handed | ||
| + | | weapon = [[épée]] | ||
| + | | club = CSKA | ||
| + | | retired = 2008 | ||
| + | | medaltemplates = | ||
| + | {{Medal|Sport|Men's [[épée]]}} | ||
| + | {{Medal|Competition|[[Olympic Games]]}} | ||
| + | {{Medal|W|1|(1 individual)}} | ||
| + | }} | ||
| + | }} | ||
| + | | | ||
| + | {{Infobox officeholder | ||
| + | | name = Infobox officeholder | ||
| + | | birth_date = {{birth date and age|1969|09|22|df=y}} | ||
| + | | birth_place = [[Moscow]], [[Russian SFSR]] | ||
| + | | office = Minister of Sport | ||
| + | | term_start = 19 October 2016 | ||
| + | | predecessor = Vitaly Mutko | ||
| + | | module = | ||
| + | {{Infobox fencer/sandbox | child = yes | ||
| + | | hand = right-handed | ||
| + | | weapon = [[épée]] | ||
| + | | club = CSKA | ||
| + | | retired = 2008 | ||
| + | | medaltemplates = | ||
| + | {{Medal|Sport|Men's [[épée]]}} | ||
| + | {{Medal|Competition|[[Olympic Games]]}} | ||
| + | {{Medal|W|1|(1 individual)}} | ||
| + | }} | ||
| + | }} | ||
| + | |} | ||
| + | |||
| + | === embed=Y === | ||
| + | {| | ||
| + | |- | ||
| + | | Template code | ||
| + | | Embedded: Infobox fencer | ||
| + | | Embedded: Infobox fencer/sandbox | ||
| + | |- style="vertical-align:top;" | ||
| + | | | ||
| + | <pre style="width:26em;"> | ||
| + | {{Infobox officeholder | ||
| + | | name = Infobox officeholder | ||
| + | | module = {{Infobox fencer|embed=Y}} | ||
| + | }} | ||
| + | </pre> | ||
| + | | | ||
| + | {{Infobox officeholder | ||
| + | | name = Infobox officeholder | ||
| + | | module = {{Infobox fencer|embed=Y}} | ||
| + | }} | ||
| + | | | ||
| + | {{Infobox officeholder | ||
| + | | name = Infobox officeholder | ||
| + | | module = {{Infobox fencer/sandbox|embed=Y}} | ||
| + | }} | ||
| + | |} | ||
| + | |||
| + | === child=1 === | ||
| + | {| | ||
| + | |- | ||
| + | | Template code | ||
| + | | Embedded: Infobox fencer | ||
| + | | Embedded: Infobox fencer/sandbox | ||
| + | |- style="vertical-align:top;" | ||
| + | | | ||
| + | <pre style="width:26em;"> | ||
| + | {{Infobox officeholder | ||
| + | | name = Infobox officeholder | ||
| + | | module = {{Infobox fencer|child=1}} | ||
| + | }} | ||
| + | </pre> | ||
| + | | | ||
| + | {{Infobox officeholder | ||
| + | | name = Infobox officeholder | ||
| + | | module = {{Infobox fencer|child=1}} | ||
| + | }} | ||
| + | | | ||
| + | {{Infobox officeholder | ||
| + | | name = Infobox officeholder | ||
| + | | module = {{Infobox fencer/sandbox|child=1}} | ||
| + | }} | ||
| + | |} | ||
| + | |||
| + | === embed=NO === | ||
| + | {| | ||
| + | |- | ||
| + | | Template code | ||
| + | | Embedded: Infobox fencer | ||
| + | | Embedded: Infobox fencer/sandbox | ||
| + | |- style="vertical-align:top;" | ||
| + | | | ||
| + | <pre style="width:26em;"> | ||
| + | {{Infobox officeholder | ||
| + | | name = Infobox officeholder | ||
| + | | module = {{Infobox fencer|embed=NO}} | ||
| + | }} | ||
| + | </pre> | ||
| + | | | ||
| + | {{Infobox officeholder | ||
| + | | name = Infobox officeholder | ||
| + | | module = {{Infobox fencer|embed=NO}} | ||
| + | }} | ||
| + | | | ||
| + | {{Infobox officeholder | ||
| + | | name = Infobox officeholder | ||
| + | | module = {{Infobox fencer/sandbox|embed=NO}} | ||
| + | }} | ||
| + | |} | ||
| + | |||
| + | === child=0 === | ||
| + | {| | ||
| + | |- | ||
| + | | Template code | ||
| + | | Embedded: Infobox fencer | ||
| + | | Embedded: Infobox fencer/sandbox | ||
| + | |- style="vertical-align:top;" | ||
| + | | | ||
| + | <pre style="width:26em;"> | ||
| + | {{Infobox officeholder | ||
| + | | name = Infobox officeholder | ||
| + | | module = {{Infobox fencer|child=0}} | ||
| + | }} | ||
| + | </pre> | ||
| + | | | ||
| + | {{Infobox officeholder | ||
| + | | name = Infobox officeholder | ||
| + | | module = {{Infobox fencer|child=0}} | ||
| + | }} | ||
| + | | | ||
| + | {{Infobox officeholder | ||
| + | | name = Infobox officeholder | ||
| + | | module = {{Infobox fencer/sandbox|child=0}} | ||
| + | }} | ||
| + | |} | ||
| + | |||
== Height/weight == | == Height/weight == | ||
=== Automatic conversion === | === Automatic conversion === | ||
| − | <pre style="float:left;"> | + | <pre style="float:left; width:26em;"> |
{{Infobox fencer | name = | {{Infobox fencer | name = | ||
| height = 6 ft 2 in | | height = 6 ft 2 in | ||
| Line 15: | Line 193: | ||
{{clear}} | {{clear}} | ||
| − | <pre style="float:left;"> | + | <pre style="float:left; width:26em;"> |
{{Infobox fencer | name = | {{Infobox fencer | name = | ||
| height = 188 cm | | height = 188 cm | ||
| Line 28: | Line 206: | ||
=== Conversion via template === | === Conversion via template === | ||
| − | <pre style="float:left;"> | + | <pre style="float:left; width:26em;"> |
{{Infobox fencer | name = | {{Infobox fencer | name = | ||
| height = {{convert|6|ft|2|in|cm|abbr=on}} | | height = {{convert|6|ft|2|in|cm|abbr=on}} | ||
| Line 40: | Line 218: | ||
{{clear}} | {{clear}} | ||
| − | <pre style="float:left;"> | + | <pre style="float:left; width:26em;"> |
{{Infobox fencer | name = | {{Infobox fencer | name = | ||
| height = {{convert|188|cm|ftin|abbr=on}} | | height = {{convert|188|cm|ftin|abbr=on}} | ||
| Line 53: | Line 231: | ||
=== Manually entered conversion === | === Manually entered conversion === | ||
| − | <pre style="float:left;"> | + | <pre style="float:left; width:26em;"> |
{{Infobox fencer | name = | {{Infobox fencer | name = | ||
| height = 6 ft 2 in (188 cm) | | height = 6 ft 2 in (188 cm) | ||
| Line 65: | Line 243: | ||
{{clear}} | {{clear}} | ||
| − | <pre style="float:left;"> | + | <pre style="float:left; width:26em;"> |
{{Infobox fencer | name = | {{Infobox fencer | name = | ||
| height = 188 cm (6 ft 2 in) | | height = 188 cm (6 ft 2 in) | ||
Latest revision as of 23:49, 18 April 2017
| This is the template test cases page for the sandbox of Template:Infobox fencer. 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
child/embed parameters
child=yes
| Template code | Embedded: Infobox fencer | Embedded: Infobox fencer/sandbox | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Infobox officeholder
| name = Infobox officeholder
| birth_date = {{birth date and age|1969|09|22|df=y}}
| birth_place = [[Moscow]], [[Russian SFSR]]
| office = Minister of Sport
| term_start = 19 October 2016
| predecessor = Vitaly Mutko
| module =
{{Infobox fencer | child = yes
| hand = right-handed
| weapon = [[épée]]
| club = CSKA
| retired = 2008
| medaltemplates =
{{Medal|Sport|Men's [[épée]]}}
{{Medal|Competition|[[Olympic Games]]}}
{{Medal|W|1|(1 individual)}}
}}
}}
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
embed=Y
| Template code | Embedded: Infobox fencer | Embedded: Infobox fencer/sandbox | ||||||||||||||||
{{Infobox officeholder
| name = Infobox officeholder
| module = {{Infobox fencer|embed=Y}}
}}
|
|
| ||||||||||||||||
child=1
| Template code | Embedded: Infobox fencer | Embedded: Infobox fencer/sandbox | ||||||||||||||||
{{Infobox officeholder
| name = Infobox officeholder
| module = {{Infobox fencer|child=1}}
}}
|
|
| ||||||||||||||||
embed=NO
| Template code | Embedded: Infobox fencer | Embedded: Infobox fencer/sandbox | ||||||||||||||||
{{Infobox officeholder
| name = Infobox officeholder
| module = {{Infobox fencer|embed=NO}}
}}
|
|
| ||||||||||||||||
child=0
| Template code | Embedded: Infobox fencer | Embedded: Infobox fencer/sandbox | ||||||||||||||||
{{Infobox officeholder
| name = Infobox officeholder
| module = {{Infobox fencer|child=0}}
}}
|
|
| ||||||||||||||||
Height/weight
Automatic conversion
{{Infobox fencer | name =
| height = 6 ft 2 in
| weight = 265 lb
}}
{{Infobox fencer | name =
| height = 188 cm
| weight = 120 kg
}}
Conversion via template
{{Infobox fencer | name =
| height = {{convert|6|ft|2|in|cm|abbr=on}}
| weight = {{convert|265|lb|kg|0|abbr=on}}
}}
{{Infobox fencer | name =
| height = {{convert|188|cm|ftin|abbr=on}}
| weight = {{convert|120|kg|lb|0|abbr=on}}
}}
Manually entered conversion
{{Infobox fencer | name =
| height = 6 ft 2 in (188 cm)
| weight = 265 lb (120 kg)
}}
{{Infobox fencer | name =
| height = 188 cm (6 ft 2 in)
| weight = 120 kg (265 lb)
}}