Difference between revisions of "Template:Infobox martial artist/testcases"
Jump to navigation
Jump to search
imported>Zyxw (update to use test case templates, misc formatting) |
imported>Zyxw (add test with all parameters) |
||
| Line 1: | Line 1: | ||
<!--{{TOC left|top=0}}-->{{Testcases page}}{{clear}} | <!--{{TOC left|top=0}}-->{{Testcases page}}{{clear}} | ||
| + | |||
| + | == All parameters == | ||
| + | {{Testcase table | ||
| + | | name = {{{name}}} | ||
| + | | image = {{{image}}} | ||
| + | | image_size = {{{image_size}}} | ||
| + | | alt = {{{alt}}} | ||
| + | | caption = {{{caption}}} | ||
| + | | birth_name = {{{birth_name}}} | ||
| + | | birth_date = {{{birth_date}}} | ||
| + | | birth_place = {{{birth_place}}} | ||
| + | | death_date = {{{death_date}}} | ||
| + | | death_place = {{{death_place}}} | ||
| + | | death_cause = {{{death_cause}}} | ||
| + | | deathcause = {{{deathcause}}} | ||
| + | | native_name = {{{native_name}}} | ||
| + | | native_name_lang = {{{native_name_lang}}} | ||
| + | | other_names = {{{other_names}}} | ||
| + | | nickname = {{{nickname}}} | ||
| + | | residence = {{{residence}}} | ||
| + | | nationality = {{{nationality}}} | ||
| + | | ethnicity = {{{ethnicity}}} | ||
| + | | height = {{{height}}} | ||
| + | | height_footnote = {{{height_footnote}}} | ||
| + | | weight = {{{weight}}} | ||
| + | | weight_footnote = {{{weight_footnote}}} | ||
| + | | weight_class = {{{weight_class}}} | ||
| + | | reach = {{{reach}}} | ||
| + | | reach_footnote = {{{reach_footnote}}} | ||
| + | | martial_art = {{{martial_art}}} | ||
| + | | style = {{{style}}} | ||
| + | | stance = {{{stance}}} | ||
| + | | fighting_out_of = {{{fighting_out_of}}} | ||
| + | | team = {{{team}}} | ||
| + | | teacher = {{{teacher}}} | ||
| + | | trainer = {{{trainer}}} | ||
| + | | rank = {{{rank}}} | ||
| + | | wrestling = {{{wrestling}}} | ||
| + | | years_active = {{{years_active}}} | ||
| + | | box_win = {{{box_win}}} | ||
| + | | box_kowin = {{{box_kowin}}} | ||
| + | | box_loss = {{{box_loss}}} | ||
| + | | box_koloss = {{{box_koloss}}} | ||
| + | | box_draw = {{{box_draw}}} | ||
| + | | box_nc = {{{box_nc}}} | ||
| + | | kickbox_win = {{{kickbox_win}}} | ||
| + | | kickbox_kowin = {{{kickbox_kowin}}} | ||
| + | | kickbox_loss = {{{kickbox_loss}}} | ||
| + | | kickbox_koloss = {{{kickbox_koloss}}} | ||
| + | | kickbox_draw = {{{kickbox_draw}}} | ||
| + | | kickbox_nc = {{{kickbox_nc}}} | ||
| + | | mma_win = {{{mma_win}}} | ||
| + | | mma_kowin = {{{mma_kowin}}} | ||
| + | | mma_subwin = {{{mma_subwin}}} | ||
| + | | mma_decwin = {{{mma_decwin}}} | ||
| + | | mma_otherwin = {{{mma_otherwin}}} | ||
| + | | mma_dqwin = {{{mma_dqwin}}} | ||
| + | | mma_loss = {{{mma_loss}}} | ||
| + | | mma_koloss = {{{mma_koloss}}} | ||
| + | | mma_subloss = {{{mma_subloss}}} | ||
| + | | mma_decloss = {{{mma_decloss}}} | ||
| + | | mma_dqloss = {{{mma_dqloss}}} | ||
| + | | mma_label = {{{mma_label}}} | ||
| + | | mma_otherloss = {{{mma_otherloss}}} | ||
| + | | mma_draw = {{{mma_draw}}} | ||
| + | | mma_nc = {{{mma_nc}}} | ||
| + | | am_label = {{{am_label}}} | ||
| + | | amlabel = {{{amlabel}}} | ||
| + | | am_win = {{{am_win}}} | ||
| + | | am_kowin = {{{am_kowin}}} | ||
| + | | am_subwin = {{{am_subwin}}} | ||
| + | | am_decwin = {{{am_decwin}}} | ||
| + | | am_loss = {{{am_loss}}} | ||
| + | | am_koloss = {{{am_koloss}}} | ||
| + | | am_subloss = {{{am_subloss}}} | ||
| + | | am_decloss = {{{am_decloss}}} | ||
| + | | am_draw = {{{am_draw}}} | ||
| + | | am_nc = {{{am_nc}}} | ||
| + | | occupation = {{{occupation}}} | ||
| + | | university = {{{university}}} | ||
| + | | spouse = {{{spouse}}} | ||
| + | | children = {{{children}}} | ||
| + | | relatives = {{{relatives}}} | ||
| + | | students = {{{students}}} | ||
| + | | club = {{{club}}} | ||
| + | | school = {{{school}}} | ||
| + | | website = {{{website}}} | ||
| + | | boxrec = {{{boxrec}}} | ||
| + | | sherdog = {{{sherdog}}} | ||
| + | | medaltemplates = {{{medaltemplates}}} | ||
| + | | show-medals = {{{show-medals}}} | ||
| + | | module = {{{module}}} | ||
| + | | module2 = {{{module2}}} | ||
| + | | footnotes = {{{footnotes}}} | ||
| + | | updated = {{{updated}}} | ||
| + | }} | ||
| + | |||
| + | == Example == | ||
| + | {{Test case nowiki | format = columns | code = <nowiki>{{__TEMPLATENAME__ | ||
| + | | name = Brock Lesnar | ||
| + | | image = Brock Lesnar in 2003.jpg | ||
| + | | caption = Lesnar in 2003 | ||
| + | | birth_date = {{birth date and age|1977|7|12}} | ||
| + | | birth_place = [[Webster, South Dakota]], U.S. | ||
| + | | nationality = {{flagu|United States}} | ||
| + | | height = 6 ft 2 in | ||
| + | | weight = 265 lb | ||
| + | | style = [[Freestyle wrestling]] | ||
| + | | fighting_out_of = [[Minneapolis–Saint Paul]], U.S. | ||
| + | | team = Minnesota Martial Arts Academy | ||
| + | | mma_kowin = 1 | ||
| + | | university = [[University of Minnesota]] | ||
| + | | sherdog = 17522 | ||
| + | }}</nowiki>}} | ||
== Comparison 1 == | == Comparison 1 == | ||
| Line 56: | Line 170: | ||
| footnotes = footnotes | | footnotes = footnotes | ||
}} | }} | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
== child == | == child == | ||
Latest revision as of 05:57, 12 March 2019
Contents
All parameters
Example
{{Infobox martial artist
| name = Brock Lesnar
| image = Brock Lesnar in 2003.jpg
| caption = Lesnar in 2003
| birth_date = {{birth date and age|1977|7|12}}
| birth_place = [[Webster, South Dakota]], U.S.
| nationality = {{flagu|United States}}
| height = 6 ft 2 in
| weight = 265 lb
| style = [[Freestyle wrestling]]
| fighting_out_of = [[Minneapolis–Saint Paul]], U.S.
| team = Minnesota Martial Arts Academy
| mma_kowin = 1
| university = [[University of Minnesota]]
| sherdog = 17522
}}
| {{Infobox martial artist}} | {{Infobox martial artist/sandbox}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Comparison 1
Comparison 2
This comparison illustrates the color/box_width options.
child
Martial artist details (starting with Other names) as a "child" box for column widths the same as parent infobox. See Template:Infobox/doc#Embedding.
| Infobox martial artist | Infobox martial artist/sandbox | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
subbox
Martial artist details (starting with Other names) as "subbox" for column widths independent of parent infobox. See Template:Infobox/doc#Subboxes.
| Infobox martial artist | Infobox martial artist/sandbox | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Height/weight/reach
Automatic conversion
{{Infobox martial artist | name =
| height = 6 ft 2 in
| weight = 265 lb
| reach = 75 in
}}
{{Infobox martial artist | name =
| height = 188 cm
| weight = 120 kg
| reach = 191 cm
}}
Conversion via template
{{Infobox martial artist | name =
| height = {{convert|6|ft|2|in|cm|abbr=on}}
| weight = {{convert|265|lb|kg|0|abbr=on}}
| reach = {{convert|75|in|cm|0|abbr=on}}
}}
{{Infobox martial artist | name =
| height = {{convert|188|cm|ftin|abbr=on}}
| weight = {{convert|120|kg|lb|0|abbr=on}}
| reach = {{convert|191|cm|in|0|abbr=on}}
}}
Manually entered conversion
{{Infobox martial artist | name =
| height = 6 ft 2 in (188 cm)
| weight = 265 lb (120 kg)
| reach = 75 in (191 cm)
}}
{{Infobox martial artist | name =
| height = 188 cm (6 ft 2 in)
| weight = 120 kg (265 lb)
| reach = 191 cm (75 in)
}}
Conversion via additional parameters
{{Infobox martial artist | name =
| height_ft = 6 | height_in = 2
| weight_lb = 265
| reach_in = 75
}}
{{Infobox martial artist | name =
| height_cm = 188
| weight_kg = 120
| reach_cm = 191
}}
