Template:Infobox martial artist/testcases

From blackwiki
Jump to navigation Jump to search

Template:Testcases page

All parameters

Template:Testcase table

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
}}
Side by side comparison
{{Infobox martial artist}}{{Infobox martial artist/sandbox}}
Brock Lesnar
Brock Lesnar in 2003.jpg
Lesnar in 2003
Born (1977-07-12) July 12, 1977 (age 44)
Webster, South Dakota, U.S.
Nickname(s)Script error: No such module "If empty".
Nationality United States
Height6 ft 2 in (188 cm)
Weight265 lb (120 kg; 18 st 13 lb)
StyleFreestyle wrestling
Fighting out ofMinneapolis–Saint Paul, U.S.
TeamMinnesota Martial Arts Academy
Mixed martial arts record
Total1
Wins1
By knockout1
Losses0
UniversityUniversity of Minnesota
Mixed martial arts record from Sherdog
Brock Lesnar
Brock Lesnar in 2003.jpg
Lesnar in 2003
Born (1977-07-12) July 12, 1977 (age 44)
Webster, South Dakota, U.S.
Nickname(s)Script error: No such module "If empty".
Nationality United States
Height6 ft 2 in (188 cm)
Weight265 lb (120 kg; 18 st 13 lb)
StyleFreestyle wrestling
Fighting out ofMinneapolis–Saint Paul, U.S.
TeamMinnesota Martial Arts Academy
Mixed martial arts record
Total1
Wins1
By knockout1
Losses0
UniversityUniversity of Minnesota
Mixed martial arts record from Sherdog

Comparison 1

Template:Testcase table

Comparison 2

This comparison illustrates the color/box_width options.

Template:Testcase table

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.

Side by side comparison
Infobox martial artist Infobox martial artist/sandbox
Kevin Jackson
Script error: No such module "Wikidata".
Script error: No such module "Wikidata".
BornNovember 25, 1964 (1964-11-25) (age 57)
Highland Falls, New York, U.S.
CollegeIowa State University
StatusCoach of Iowa State University
Script error: No such module "Wikidata".
Script error: No such module "Wikidata".
Other namesScript error: No such module "If empty".
NationalityAmerican
Height5 ft 10 in (1.78 m)
Weight199 lb (90 kg; 14.2 st)
Mixed martial arts record
Total6
Wins4
By submission4
Losses2
By submission2
Mixed martial arts record from Sherdog
Kevin Jackson
Script error: No such module "Wikidata".
Script error: No such module "Wikidata".
BornNovember 25, 1964 (1964-11-25) (age 57)
Highland Falls, New York, U.S.
CollegeIowa State University
StatusCoach of Iowa State University
Script error: No such module "Wikidata".
Script error: No such module "Wikidata".
Other namesScript error: No such module "If empty".
NationalityAmerican
Height5 ft 10 in (1.78 m)
Weight199 lb (90 kg; 14.2 st)
Mixed martial arts record
Total6
Wins4
By submission4
Losses2
By submission2
Mixed martial arts record from Sherdog

subbox

Martial artist details (starting with Other names) as "subbox" for column widths independent of parent infobox. See Template:Infobox/doc#Subboxes.

Side by side comparison
Infobox martial artist Infobox martial artist/sandbox
Kevin Jackson
Script error: No such module "Wikidata".
Script error: No such module "Wikidata".
BornNovember 25, 1964 (1964-11-25) (age 57)
Highland Falls, New York, U.S.
CollegeIowa State University
StatusCoach of Iowa State University
Script error: No such module "Wikidata".
Script error: No such module "Wikidata".
Other namesScript error: No such module "If empty".
NationalityAmerican
Height5 ft 10 in (1.78 m)
Weight199 lb (90 kg; 14.2 st)
Mixed martial arts record
Total6
Wins4
By submission4
Losses2
By submission2
Mixed martial arts record from Sherdog
Kevin Jackson
Script error: No such module "Wikidata".
Script error: No such module "Wikidata".
BornNovember 25, 1964 (1964-11-25) (age 57)
Highland Falls, New York, U.S.
CollegeIowa State University
StatusCoach of Iowa State University
Script error: No such module "Wikidata".
Script error: No such module "Wikidata".
Other namesScript error: No such module "If empty".
NationalityAmerican
Height5 ft 10 in (1.78 m)
Weight199 lb (90 kg; 14.2 st)
Mixed martial arts record
Total6
Wins4
By submission4
Losses2
By submission2
Mixed martial arts record from Sherdog

Height/weight/reach

Automatic conversion

{{Infobox martial artist | name = 
| height = 6 ft 2 in
| weight = 265 lb
| reach  = 75 in
}}

Template:Testcase table

{{Infobox martial artist | name = 
| height = 188 cm
| weight = 120 kg
| reach  = 191 cm
}}

Template:Testcase table

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}}
}}

Template:Testcase table

{{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}}
}}

Template:Testcase table

Manually entered conversion

{{Infobox martial artist | name = 
| height = 6 ft 2 in (188 cm)
| weight = 265 lb (120 kg)
| reach  = 75 in (191 cm)
}}

Template:Testcase table

{{Infobox martial artist | name = 
| height = 188 cm (6 ft 2 in)
| weight = 120 kg (265 lb)
| reach  = 191 cm (75 in)
}}

Template:Testcase table

Conversion via additional parameters

{{Infobox martial artist | name = 
| height_ft = 6 | height_in = 2
| weight_lb = 265
| reach_in  = 75
}}

Template:Testcase table

{{Infobox martial artist | name = 
| height_cm = 188
| weight_kg = 120
| reach_cm  = 191
}}

Template:Testcase table