Difference between revisions of "Template:Infobox fencer/testcases"

From blackwiki
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

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)}}
  }}
}}
Infobox officeholder
Minister of Sport
Assumed office
19 October 2016
Preceded byVitaly Mutko
Personal details
Born (1969-09-22) 22 September 1969 (age 56)
Moscow, Russian SFSR
Fencing career
Script error: No such module "Wikidata".
Script error: No such module "Wikidata".
SportFencing
Weaponépée
Handright-handed
ClubCSKA
Retired2008
Medal record
Men's épée
Olympic Games
Winner 1 (1 individual)
Infobox officeholder
Minister of Sport
Assumed office
19 October 2016
Preceded byVitaly Mutko
Personal details
Born (1969-09-22) 22 September 1969 (age 56)
Moscow, Russian SFSR
Template:PAGENAMEBASE
Script error: No such module "Wikidata".
Script error: No such module "Wikidata".
Weapon(s)épée
Handright-handed
ClubCSKA
Retired2008
Medal record
Men's épée
Olympic Games
Winner 1 (1 individual)

embed=Y

Template code Embedded: Infobox fencer Embedded: Infobox fencer/sandbox
{{Infobox officeholder
| name   = Infobox officeholder
| module = {{Infobox fencer|embed=Y}}
}}
Infobox officeholder
Template:PAGENAMEBASE
Script error: No such module "Wikidata".
Script error: No such module "Wikidata".
Infobox officeholder
Template:PAGENAMEBASE
Script error: No such module "Wikidata".
Script error: No such module "Wikidata".

child=1

Template code Embedded: Infobox fencer Embedded: Infobox fencer/sandbox
{{Infobox officeholder
| name   = Infobox officeholder
| module = {{Infobox fencer|child=1}}
}}
Infobox officeholder
Template:PAGENAMEBASE
Script error: No such module "Wikidata".
Script error: No such module "Wikidata".
Infobox officeholder
Template:PAGENAMEBASE
Script error: No such module "Wikidata".
Script error: No such module "Wikidata".

embed=NO

Template code Embedded: Infobox fencer Embedded: Infobox fencer/sandbox
{{Infobox officeholder
| name   = Infobox officeholder
| module = {{Infobox fencer|embed=NO}}
}}
Infobox officeholder
Template:PAGENAMEBASE
Script error: No such module "Wikidata".
Script error: No such module "Wikidata".
Infobox officeholder
Template:PAGENAMEBASE
Script error: No such module "Wikidata".
Script error: No such module "Wikidata".

child=0

Template code Embedded: Infobox fencer Embedded: Infobox fencer/sandbox
{{Infobox officeholder
| name   = Infobox officeholder
| module = {{Infobox fencer|child=0}}
}}
Infobox officeholder
Template:PAGENAMEBASE
Script error: No such module "Wikidata".
Script error: No such module "Wikidata".
Infobox officeholder
Template:PAGENAMEBASE
Script error: No such module "Wikidata".
Script error: No such module "Wikidata".

Height/weight

Automatic conversion

{{Infobox fencer | name = 
| height = 6 ft 2 in
| weight = 265 lb
}}

Template:Testcase table

{{Infobox fencer | name = 
| height = 188 cm
| weight = 120 kg
}}

Template:Testcase table

Conversion via template

{{Infobox fencer | name = 
| height = {{convert|6|ft|2|in|cm|abbr=on}}
| weight = {{convert|265|lb|kg|0|abbr=on}}
}}

Template:Testcase table

{{Infobox fencer | name = 
| height = {{convert|188|cm|ftin|abbr=on}}
| weight = {{convert|120|kg|lb|0|abbr=on}}
}}

Template:Testcase table

Manually entered conversion

{{Infobox fencer | name = 
| height = 6 ft 2 in (188 cm)
| weight = 265 lb (120 kg)
}}

Template:Testcase table

{{Infobox fencer | name = 
| height = 188 cm (6 ft 2 in)
| weight = 120 kg (265 lb)
}}

Template:Testcase table