Difference between revisions of "Template:Infobox cyclist/testcases"
Jump to navigation
Jump to search
imported>Zyxw (update) |
imported>Zyxw (add test cases for Infobox cyclist embedded as child and as subbox) |
||
| Line 1: | Line 1: | ||
{{Testcases notice <!--|toc=on-->}} | {{Testcases notice <!--|toc=on-->}} | ||
| + | |||
== Height/weight == | == Height/weight == | ||
=== Automatic conversion === | === Automatic conversion === | ||
| − | <pre style="float:left;"> | + | <pre style="float:left; font-size:90%; width:28em;"> |
{{Infobox cyclist | name = | {{Infobox cyclist | name = | ||
| height = 5 ft 10 in | | height = 5 ft 10 in | ||
| Line 15: | Line 16: | ||
{{clear}} | {{clear}} | ||
| − | <pre style="float:left;"> | + | <pre style="float:left; font-size:90%; width:28em;"> |
{{Infobox cyclist | name = | {{Infobox cyclist | name = | ||
| height = 180 cm | | height = 180 cm | ||
| Line 28: | Line 29: | ||
=== Conversion via template === | === Conversion via template === | ||
| − | <pre style="float:left;"> | + | <pre style="float:left; font-size:90%; width:28em;"> |
{{Infobox cyclist | name = | {{Infobox cyclist | name = | ||
| height = {{convert|5|ft|10|in|cm|abbr=on}} | | height = {{convert|5|ft|10|in|cm|abbr=on}} | ||
| Line 40: | Line 41: | ||
{{clear}} | {{clear}} | ||
| − | <pre style="float:left;"> | + | <pre style="float:left; font-size:90%; width:28em;"> |
{{Infobox cyclist | name = | {{Infobox cyclist | name = | ||
| height = {{convert|180|cm|ftin|abbr=on}} | | height = {{convert|180|cm|ftin|abbr=on}} | ||
| Line 53: | Line 54: | ||
=== Manually entered conversion === | === Manually entered conversion === | ||
| − | <pre style="float:left;"> | + | <pre style="float:left; font-size:90%; width:28em;"> |
{{Infobox cyclist | name = | {{Infobox cyclist | name = | ||
| height = 5 ft 10 in (178 cm) | | height = 5 ft 10 in (178 cm) | ||
| Line 65: | Line 66: | ||
{{clear}} | {{clear}} | ||
| − | <pre style="float:left;"> | + | <pre style="float:left; font-size:90%; width:28em;"> |
{{Infobox cyclist | name = | {{Infobox cyclist | name = | ||
| height = 180 cm (5 ft 11 in) | | height = 180 cm (5 ft 11 in) | ||
| Line 75: | Line 76: | ||
| weight = 60 kg (132 lb) | | weight = 60 kg (132 lb) | ||
}} | }} | ||
| + | {{clear}} | ||
| + | |||
| + | == Embedded as child == | ||
| + | Use as "child" for column widths the same as parent infobox (see [[Template:Infobox/doc#Embedding]]). | ||
| + | |||
| + | {| style="border-collapse: collapse; float: right;" | ||
| + | ! Live version !! Sandbox version | ||
| + | |- | ||
| + | | style="vertical-align: top;" | | ||
| + | {{Infobox officeholder | ||
| + | | name = Marty Nothstein | ||
| + | | office = Board of Commissioners of [[Lehigh County, Pennsylvania]] | ||
| + | | term_start = 2015 | ||
| + | | birth_name = Martin Wayne Nothstein | ||
| + | | birth_date = {{birth date and age|1971|2|10}} | ||
| + | | birth_place = [[Allentown, Pennsylvania]], U.S. | ||
| + | | death_date = | ||
| + | | death_place = | ||
| + | | party = [[Republican Party (United States)|Republican]] | ||
| + | | module = | ||
| + | {{Infobox cyclist | ||
| + | | child = yes | ||
| + | | name = '''Cycling career''' | ||
| + | | nickname = The Blade | ||
| + | | height = 6 ft 1+1/2 in | ||
| + | | weight = 212 lb | ||
| + | | discipline = Track & Road | ||
| + | | role = Rider | ||
| + | | ridertype = Sprinter | ||
| + | | proyears1 = 2001 | ||
| + | | proteam1 = Mercury Viatel | ||
| + | | proyears2 = 2002–2006 | ||
| + | | proteam2 = Navigators Insurance Cycling Team | ||
| + | | show-medals = yes | ||
| + | | medaltemplates = | ||
| + | {{MedalSport|Men's [[track cycling]]}} | ||
| + | {{MedalCountry|the {{USA}}}} | ||
| + | {{MedalCompetition|[[Cycling at the Summer Olympics|Olympic Games]]}} | ||
| + | {{MedalGold|[[2000 Summer Olympics|2000 Sydney]]|[[Cycling at the 2000 Summer Olympics – Men's sprint|Sprint]]}} | ||
| + | {{MedalSilver|[[1996 Summer Olympics|1996 Atlanta]]|[[Cycling at the 1996 Summer Olympics – Men's sprint|Sprint]]}} | ||
| + | {{MedalCompetition|[[UCI Track Cycling World Championships|World Championships]]}} | ||
| + | {{MedalGold|[[1996 UCI Track Cycling World Championships|1996 Manchester]]|Keirin}} | ||
| + | {{MedalSilver|1996 Manchester|Sprint}} | ||
| + | {{MedalBronze|[[1995 UCI Track Cycling World Championships|1995 Bogota]]|Team sprint}} | ||
| + | }} | ||
| + | }} | ||
| + | | style="vertical-align: top;" | | ||
| + | {{Infobox officeholder | ||
| + | | name = Marty Nothstein | ||
| + | | office = Board of Commissioners of [[Lehigh County, Pennsylvania]] | ||
| + | | term_start = 2015 | ||
| + | | birth_name = Martin Wayne Nothstein | ||
| + | | birth_date = {{birth date and age|1971|2|10}} | ||
| + | | birth_place = [[Allentown, Pennsylvania]], U.S. | ||
| + | | death_date = | ||
| + | | death_place = | ||
| + | | party = [[Republican Party (United States)|Republican]] | ||
| + | | module = | ||
| + | {{Infobox cyclist/sandbox | ||
| + | | child = yes | ||
| + | | name = '''Cycling career''' | ||
| + | | nickname = The Blade | ||
| + | | height = 6 ft 1+1/2 in | ||
| + | | weight = 212 lb | ||
| + | | discipline = Track & Road | ||
| + | | role = Rider | ||
| + | | ridertype = Sprinter | ||
| + | | proyears1 = 2001 | ||
| + | | proteam1 = Mercury Viatel | ||
| + | | proyears2 = 2002–2006 | ||
| + | | proteam2 = Navigators Insurance Cycling Team | ||
| + | | show-medals = yes | ||
| + | | medaltemplates = | ||
| + | {{MedalSport|Men's [[track cycling]]}} | ||
| + | {{MedalCountry|the {{USA}}}} | ||
| + | {{MedalCompetition|[[Cycling at the Summer Olympics|Olympic Games]]}} | ||
| + | {{MedalGold|[[2000 Summer Olympics|2000 Sydney]]|[[Cycling at the 2000 Summer Olympics – Men's sprint|Sprint]]}} | ||
| + | {{MedalSilver|[[1996 Summer Olympics|1996 Atlanta]]|[[Cycling at the 1996 Summer Olympics – Men's sprint|Sprint]]}} | ||
| + | {{MedalCompetition|[[UCI Track Cycling World Championships|World Championships]]}} | ||
| + | {{MedalGold|[[1996 UCI Track Cycling World Championships|1996 Manchester]]|Keirin}} | ||
| + | {{MedalSilver|1996 Manchester|Sprint}} | ||
| + | {{MedalBronze|[[1995 UCI Track Cycling World Championships|1995 Bogota]]|Team sprint}} | ||
| + | }} | ||
| + | }} | ||
| + | |} | ||
| + | <pre style="overflow:auto; font-size:90%;"> | ||
| + | {{Infobox officeholder | ||
| + | | name = Marty Nothstein | ||
| + | | office = Board of Commissioners of [[Lehigh County, Pennsylvania]] | ||
| + | | term_start = 2015 | ||
| + | | birth_name = Martin Wayne Nothstein | ||
| + | | birth_date = {{birth date and age|1971|2|10}} | ||
| + | | birth_place = [[Allentown, Pennsylvania]], U.S. | ||
| + | | death_date = | ||
| + | | death_place = | ||
| + | | party = [[Republican Party (United States)|Republican]] | ||
| + | | module = | ||
| + | {{Infobox cyclist | ||
| + | | child = yes | ||
| + | | name = '''Cycling career''' | ||
| + | | nickname = The Blade | ||
| + | | height = 6 ft 1+1/2 in | ||
| + | | weight = 212 lb | ||
| + | | discipline = Track & Road | ||
| + | | role = Rider | ||
| + | | ridertype = Sprinter | ||
| + | | proyears1 = 2001 | ||
| + | | proteam1 = Mercury Viatel | ||
| + | | proyears2 = 2002–2006 | ||
| + | | proteam2 = Navigators Insurance Cycling Team | ||
| + | | show-medals = yes | ||
| + | | medaltemplates = | ||
| + | {{MedalSport|Men's [[track cycling]]}} | ||
| + | {{MedalCountry|the {{USA}}}} | ||
| + | {{MedalCompetition|[[Cycling at the Summer Olympics|Olympic Games]]}} | ||
| + | {{MedalGold|[[2000 Summer Olympics|2000 Sydney]]|[[Cycling at the 2000 Summer Olympics – Men's sprint|Sprint]]}} | ||
| + | {{MedalSilver|[[1996 Summer Olympics|1996 Atlanta]]|[[Cycling at the 1996 Summer Olympics – Men's sprint|Sprint]]}} | ||
| + | {{MedalCompetition|[[UCI Track Cycling World Championships|World Championships]]}} | ||
| + | {{MedalGold|[[1996 UCI Track Cycling World Championships|1996 Manchester]]|Keirin}} | ||
| + | {{MedalSilver|1996 Manchester|Sprint}} | ||
| + | {{MedalBronze|[[1995 UCI Track Cycling World Championships|1995 Bogota]]|Team sprint}} | ||
| + | }} | ||
| + | }} | ||
| + | </pre> | ||
| + | {{clear}} | ||
| + | |||
| + | == Embedded as subbox == | ||
| + | Use as "subbox" for column widths independent of parent infobox (see [[Template:Infobox/doc#Subboxes]]). | ||
| + | |||
| + | {| style="border-collapse: collapse; float: right;" | ||
| + | ! Live version !! Sandbox version | ||
| + | |- | ||
| + | | style="vertical-align: top;" | | ||
| + | {{Infobox officeholder | ||
| + | | name = Marty Nothstein | ||
| + | | office = Board of Commissioners of [[Lehigh County, Pennsylvania]] | ||
| + | | term_start = 2015 | ||
| + | | birth_name = Martin Wayne Nothstein | ||
| + | | birth_date = {{birth date and age|1971|2|10}} | ||
| + | | birth_place = [[Allentown, Pennsylvania]], U.S. | ||
| + | | death_date = | ||
| + | | death_place = | ||
| + | | party = [[Republican Party (United States)|Republican]] | ||
| + | | module = | ||
| + | {{Infobox cyclist | ||
| + | | subbox = yes | ||
| + | | name = Cycling career | ||
| + | | nickname = The Blade | ||
| + | | height = 6 ft 1+1/2 in | ||
| + | | weight = 212 lb | ||
| + | | discipline = Track & Road | ||
| + | | role = Rider | ||
| + | | ridertype = Sprinter | ||
| + | | proyears1 = 2001 | ||
| + | | proteam1 = Mercury Viatel | ||
| + | | proyears2 = 2002–2006 | ||
| + | | proteam2 = Navigators Insurance Cycling Team | ||
| + | | show-medals = yes | ||
| + | | medaltemplates = | ||
| + | {{MedalSport|Men's [[track cycling]]}} | ||
| + | {{MedalCountry|the {{USA}}}} | ||
| + | {{MedalCompetition|[[Cycling at the Summer Olympics|Olympic Games]]}} | ||
| + | {{MedalGold|[[2000 Summer Olympics|2000 Sydney]]|[[Cycling at the 2000 Summer Olympics – Men's sprint|Sprint]]}} | ||
| + | {{MedalSilver|[[1996 Summer Olympics|1996 Atlanta]]|[[Cycling at the 1996 Summer Olympics – Men's sprint|Sprint]]}} | ||
| + | {{MedalCompetition|[[UCI Track Cycling World Championships|World Championships]]}} | ||
| + | {{MedalGold|[[1996 UCI Track Cycling World Championships|1996 Manchester]]|Keirin}} | ||
| + | {{MedalSilver|1996 Manchester|Sprint}} | ||
| + | {{MedalBronze|[[1995 UCI Track Cycling World Championships|1995 Bogota]]|Team sprint}} | ||
| + | }} | ||
| + | }} | ||
| + | | style="vertical-align: top;" | | ||
| + | {{Infobox officeholder | ||
| + | | name = Marty Nothstein | ||
| + | | office = Board of Commissioners of [[Lehigh County, Pennsylvania]] | ||
| + | | term_start = 2015 | ||
| + | | birth_name = Martin Wayne Nothstein | ||
| + | | birth_date = {{birth date and age|1971|2|10}} | ||
| + | | birth_place = [[Allentown, Pennsylvania]], U.S. | ||
| + | | death_date = | ||
| + | | death_place = | ||
| + | | party = [[Republican Party (United States)|Republican]] | ||
| + | | module = | ||
| + | {{Infobox cyclist/sandbox | ||
| + | | subbox = yes | ||
| + | | name = Cycling career | ||
| + | | nickname = The Blade | ||
| + | | height = 6 ft 1+1/2 in | ||
| + | | weight = 212 lb | ||
| + | | discipline = Track & Road | ||
| + | | role = Rider | ||
| + | | ridertype = Sprinter | ||
| + | | proyears1 = 2001 | ||
| + | | proteam1 = Mercury Viatel | ||
| + | | proyears2 = 2002–2006 | ||
| + | | proteam2 = Navigators Insurance Cycling Team | ||
| + | | show-medals = yes | ||
| + | | medaltemplates = | ||
| + | {{MedalSport|Men's [[track cycling]]}} | ||
| + | {{MedalCountry|the {{USA}}}} | ||
| + | {{MedalCompetition|[[Cycling at the Summer Olympics|Olympic Games]]}} | ||
| + | {{MedalGold|[[2000 Summer Olympics|2000 Sydney]]|[[Cycling at the 2000 Summer Olympics – Men's sprint|Sprint]]}} | ||
| + | {{MedalSilver|[[1996 Summer Olympics|1996 Atlanta]]|[[Cycling at the 1996 Summer Olympics – Men's sprint|Sprint]]}} | ||
| + | {{MedalCompetition|[[UCI Track Cycling World Championships|World Championships]]}} | ||
| + | {{MedalGold|[[1996 UCI Track Cycling World Championships|1996 Manchester]]|Keirin}} | ||
| + | {{MedalSilver|1996 Manchester|Sprint}} | ||
| + | {{MedalBronze|[[1995 UCI Track Cycling World Championships|1995 Bogota]]|Team sprint}} | ||
| + | }} | ||
| + | }} | ||
| + | |} | ||
| + | <pre style="overflow:auto; font-size:90%;"> | ||
| + | {{Infobox officeholder | ||
| + | | name = Marty Nothstein | ||
| + | | office = Board of Commissioners of [[Lehigh County, Pennsylvania]] | ||
| + | | term_start = 2015 | ||
| + | | birth_name = Martin Wayne Nothstein | ||
| + | | birth_date = {{birth date and age|1971|2|10}} | ||
| + | | birth_place = [[Allentown, Pennsylvania]], U.S. | ||
| + | | death_date = | ||
| + | | death_place = | ||
| + | | party = [[Republican Party (United States)|Republican]] | ||
| + | | module = | ||
| + | {{Infobox cyclist | ||
| + | | subbox = yes | ||
| + | | name = Cycling career | ||
| + | | nickname = The Blade | ||
| + | | height = 6 ft 1+1/2 in | ||
| + | | weight = 212 lb | ||
| + | | discipline = Track & Road | ||
| + | | role = Rider | ||
| + | | ridertype = Sprinter | ||
| + | | proyears1 = 2001 | ||
| + | | proteam1 = Mercury Viatel | ||
| + | | proyears2 = 2002–2006 | ||
| + | | proteam2 = Navigators Insurance Cycling Team | ||
| + | | show-medals = yes | ||
| + | | medaltemplates = | ||
| + | {{MedalSport|Men's [[track cycling]]}} | ||
| + | {{MedalCountry|the {{USA}}}} | ||
| + | {{MedalCompetition|[[Cycling at the Summer Olympics|Olympic Games]]}} | ||
| + | {{MedalGold|[[2000 Summer Olympics|2000 Sydney]]|[[Cycling at the 2000 Summer Olympics – Men's sprint|Sprint]]}} | ||
| + | {{MedalSilver|[[1996 Summer Olympics|1996 Atlanta]]|[[Cycling at the 1996 Summer Olympics – Men's sprint|Sprint]]}} | ||
| + | {{MedalCompetition|[[UCI Track Cycling World Championships|World Championships]]}} | ||
| + | {{MedalGold|[[1996 UCI Track Cycling World Championships|1996 Manchester]]|Keirin}} | ||
| + | {{MedalSilver|1996 Manchester|Sprint}} | ||
| + | {{MedalBronze|[[1995 UCI Track Cycling World Championships|1995 Bogota]]|Team sprint}} | ||
| + | }} | ||
| + | }} | ||
| + | </pre> | ||
{{clear}} | {{clear}} | ||
Latest revision as of 19:23, 17 July 2018
| 42px | This is the template test cases page for the sandbox of Template:Infobox cyclist. 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
Height/weight
Automatic conversion
{{Infobox cyclist | name =
| height = 5 ft 10 in
| weight = 130 lb
}}
{{Infobox cyclist | name =
| height = 180 cm
| weight = 60 kg
}}
Conversion via template
{{Infobox cyclist | name =
| height = {{convert|5|ft|10|in|cm|abbr=on}}
| weight = {{convert|130|lb|kg|0|abbr=on}}
}}
{{Infobox cyclist | name =
| height = {{convert|180|cm|ftin|abbr=on}}
| weight = {{convert|60|kg|lb|0|abbr=on}}
}}
Manually entered conversion
{{Infobox cyclist | name =
| height = 5 ft 10 in (178 cm)
| weight = 130 lb (59 kg)
}}
{{Infobox cyclist | name =
| height = 180 cm (5 ft 11 in)
| weight = 60 kg (132 lb)
}}
Embedded as child
Use as "child" for column widths the same as parent infobox (see Template:Infobox/doc#Embedding).
| Live version | Sandbox version | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Infobox officeholder
| name = Marty Nothstein
| office = Board of Commissioners of [[Lehigh County, Pennsylvania]]
| term_start = 2015
| birth_name = Martin Wayne Nothstein
| birth_date = {{birth date and age|1971|2|10}}
| birth_place = [[Allentown, Pennsylvania]], U.S.
| death_date =
| death_place =
| party = [[Republican Party (United States)|Republican]]
| module =
{{Infobox cyclist
| child = yes
| name = '''Cycling career'''
| nickname = The Blade
| height = 6 ft 1+1/2 in
| weight = 212 lb
| discipline = Track & Road
| role = Rider
| ridertype = Sprinter
| proyears1 = 2001
| proteam1 = Mercury Viatel
| proyears2 = 2002–2006
| proteam2 = Navigators Insurance Cycling Team
| show-medals = yes
| medaltemplates =
{{MedalSport|Men's [[track cycling]]}}
{{MedalCountry|the {{USA}}}}
{{MedalCompetition|[[Cycling at the Summer Olympics|Olympic Games]]}}
{{MedalGold|[[2000 Summer Olympics|2000 Sydney]]|[[Cycling at the 2000 Summer Olympics – Men's sprint|Sprint]]}}
{{MedalSilver|[[1996 Summer Olympics|1996 Atlanta]]|[[Cycling at the 1996 Summer Olympics – Men's sprint|Sprint]]}}
{{MedalCompetition|[[UCI Track Cycling World Championships|World Championships]]}}
{{MedalGold|[[1996 UCI Track Cycling World Championships|1996 Manchester]]|Keirin}}
{{MedalSilver|1996 Manchester|Sprint}}
{{MedalBronze|[[1995 UCI Track Cycling World Championships|1995 Bogota]]|Team sprint}}
}}
}}
Embedded as subbox
Use as "subbox" for column widths independent of parent infobox (see Template:Infobox/doc#Subboxes).
| Live version | Sandbox version | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Infobox officeholder
| name = Marty Nothstein
| office = Board of Commissioners of [[Lehigh County, Pennsylvania]]
| term_start = 2015
| birth_name = Martin Wayne Nothstein
| birth_date = {{birth date and age|1971|2|10}}
| birth_place = [[Allentown, Pennsylvania]], U.S.
| death_date =
| death_place =
| party = [[Republican Party (United States)|Republican]]
| module =
{{Infobox cyclist
| subbox = yes
| name = Cycling career
| nickname = The Blade
| height = 6 ft 1+1/2 in
| weight = 212 lb
| discipline = Track & Road
| role = Rider
| ridertype = Sprinter
| proyears1 = 2001
| proteam1 = Mercury Viatel
| proyears2 = 2002–2006
| proteam2 = Navigators Insurance Cycling Team
| show-medals = yes
| medaltemplates =
{{MedalSport|Men's [[track cycling]]}}
{{MedalCountry|the {{USA}}}}
{{MedalCompetition|[[Cycling at the Summer Olympics|Olympic Games]]}}
{{MedalGold|[[2000 Summer Olympics|2000 Sydney]]|[[Cycling at the 2000 Summer Olympics – Men's sprint|Sprint]]}}
{{MedalSilver|[[1996 Summer Olympics|1996 Atlanta]]|[[Cycling at the 1996 Summer Olympics – Men's sprint|Sprint]]}}
{{MedalCompetition|[[UCI Track Cycling World Championships|World Championships]]}}
{{MedalGold|[[1996 UCI Track Cycling World Championships|1996 Manchester]]|Keirin}}
{{MedalSilver|1996 Manchester|Sprint}}
{{MedalBronze|[[1995 UCI Track Cycling World Championships|1995 Bogota]]|Team sprint}}
}}
}}