Template:Infobox rugby biography/testcases

From blackwiki
Jump to navigation Jump to search
Also see Template:Infobox rugby biography/testcases2 for additional test cases which could not be included here due to a template include size is too large warning.

Test case

{{Infobox rugby biography
| name = Willie Davies
| image = 
| caption = 
| birth_name = William Thomas Harcourt Davies
| nickname = 
| birth_date = {{birth date|1916|08|23|df=y}}
| birth_place = [[Penclawdd]], Wales
| death_date = {{death date and age|2002|09|26|1916|08|23|df=y}}
| death_place = [[Rustington]], England
| height = 
| weight = 
| ru_position = [[Rugby union positions#10. Fly-half|fly-half]]
| ru_amateuryears = 1934–1939<br />?<br />?
| ru_amateurclubs = [[Swansea RFC]]<br />[[Leeds Tykes|Headingley RUFC]]<br />[[London Welsh RFC]]
| ru_amclubcaps = 
| ru_amclubpoints = 
| ru_amupdate = 
| ru_nationalteam = [[Wales national rugby union team|Wales]]
| ru_nationalyears = 1936–1939
| ru_nationalcaps = 6
| ru_nationalpoints = (7)
| ru_ntupdate = 
| rl_position = [[Rugby league positions#Backs|Back]]
| rl_clubyears = 1939–1950
| rl_clubcaps = 
| rl_clubpoints = 
| rl_proclubs = [[Bradford Bulls|Bradford Northern R.L.F.C.]]
| rl_nationalteam = [[Wales national rugby league team|Wales]]<br />[[Great Britain national rugby league team|Great Britain]]
| rl_nationalyears = 1939–1948<br />1946–47
| rl_nationalcaps = 9<br />3
| rl_nationalpoints = (3)<br />(?)
| other = 
| occupation = teacher
| spouse = 
| children = 
| relatives = [[Haydn Tanner]] (cousin)
| school = Gowerton county school
| university = 
| url = 
}}
Side by side comparison
{{Infobox rugby biography}}{{Infobox rugby biography/sandbox}}
[[Category:Template:Pagetype with short description]]
Willie Davies
Birth nameScript error: No such module "If empty".
Date of birth(1916-08-23)23 August 1916
Place of birthPenclawdd, Wales
Date of death26 September 2002(2002-09-26) (aged 86)
Place of deathRustington, England
SchoolGowerton county school
Notable relative(s)Haydn Tanner (cousin)
Occupation(s)teacher
Rugby league career
Position(s) Template:Use first nonempty
Rugby union career
Position(s) Template:Use first nonempty
Current team Template:Use first nonempty
Amateur team(s)
Years Team Apps (Points)
1934–1939
?
?
Swansea RFC
Headingley RUFC
London Welsh RFC
()
National team(s)
Years Team Apps (Points)
1936–1939 Wales 6 (7)
Willie Davies
Birth nameScript error: No such module "If empty".
Date of birth(1916-08-23)23 August 1916
Place of birthPenclawdd, Wales
Date of death26 September 2002(2002-09-26) (aged 86)
Place of deathRustington, England
SchoolGowerton county school
Notable relative(s)Haydn Tanner (cousin)
Occupation(s)teacher
Rugby league career
Position(s) Template:Use first nonempty
Rugby union career
Position(s) Template:Use first nonempty
Current team Template:Use first nonempty
Amateur team(s)
Years Team Apps (Points)
1934–1939
?
?
Swansea RFC
Headingley RUFC
London Welsh RFC
()
National team(s)
Years Team Apps (Points)
1936–1939 Wales 6 (7)

Everything filled in

rugby bio params Template:Testcase table

RU bio params Template:Testcase table

Height and weight

height: cm, weight: kg

manual conversion
| height = 180 cm (5 ft 11 in)
| weight = 110 kg (243 lb; 17 st 5 lb)

Template:Testcase table

conversion via template, |0 in second example prevents rounding of lb

| height = {{cvt|180|cm|ftin}}
| weight = {{cvt|110|kg|lb stlb}}

Template:Testcase table

| height = {{cvt|180|cm|ftin}}
| weight = {{cvt|110|kg|lb stlb|0}}

Template:Testcase table

automatic conversion, template uses {{Infobox person/height}} and {{Infobox person/weight}}

| height = 180 cm
| weight = 110 kg

Template:Testcase table

conversion via other parameters, template uses {{Convinfobox}}

| height_cm = 180
| weight_kg = 110

Template:Testcase table

height: ft/in, weight: lb

manual conversion
| height = 5 ft 10 in (178 cm)
| weight = 240 lb (109 kg; 17 st 2 lb)

Template:Testcase table

conversion via template, |0 in second example prevents rounding of kg

| height = {{cvt|5|ft|10|in|cm}}
| weight = {{cvt|240|lb|kg stlb}}

Template:Testcase table

| height = {{cvt|5|ft|10|in|cm}}
| weight = {{cvt|240|lb|kg stlb|0}}

Template:Testcase table

automatic conversion, template uses {{Infobox person/height}} and {{Infobox person/weight}}

| height = 5 ft 10 in
| weight = 240 lb

Template:Testcase table

conversion via other parameters, template uses {{Convinfobox}}

| height_ft = 5 | height_in = 10
| weight_lb = 240

Template:Testcase table

height: ft

manual conversion
| height = 10 ft (305 cm)

Template:Testcase table

conversion via template, |0 in second example prevents rounding of cm

| height = {{cvt|10|ft|cm}}

Template:Testcase table

| height = {{cvt|10|ft|cm|0}}

Template:Testcase table

automatic conversion, template uses {{Infobox person/height}}

| height = 10 ft

Template:Testcase table

conversion via other parameters, template uses {{Convinfobox}}

| height_ft = 10

Template:Testcase table

height: in

manual conversion
| height = 100 in (254 cm)

Template:Testcase table

conversion via template, |0 in second example prevents rounding of cm

| height = {{cvt|100|in|cm}}

Template:Testcase table

| height = {{cvt|100|in|cm|0}}

Template:Testcase table

automatic conversion, template uses {{Infobox person/height}}

| height = 100 in

Template:Testcase table

conversion via other parameters, template uses {{Convinfobox}}

| height_in = 100

Template:Testcase table

weight: st/lb

manual conversion
| weight = 17 st 3 lb (241 lb; 109 kg)

Template:Testcase table

conversion via template

| weight = {{cvt|17|st|3|lb|lb kg}}

Template:Testcase table

automatic conversion, template uses {{Infobox person/weight}}

| weight = 17 st 3 lb

Template:Testcase table

conversion via other parameters, template uses {{Convinfobox}}

| weight_st = 17 | weight_lb = 3

Template:Testcase table

weight: st

manual conversion
| weight = 17 st (238 lb; 108 kg)

Template:Testcase table

conversion via template, |0 in second example prevents rounding of lb and kg

| weight = {{cvt|17|st|lb kg}}

Template:Testcase table

| weight = {{cvt|17|st|lb kg|0}}

Template:Testcase table

automatic conversion, template uses {{Infobox person/weight}}

| weight = 17 st

Template:Testcase table

conversion via other parameters, template uses {{Convinfobox}}

| weight_st = 17

Template:Testcase table

Using embed parameter

{{Infobox sportsperson
| birth_date        = {{birth date|1849|10|9|df=y}}
| birth_place       = [[Mussoorie]], [[British India]]
| death_date        = {{death date and age|1920|6|15|1849|10|9|df=y}}
| death_place       = [[Montrose, Angus|Montrose]], Scotland
| module            =
{{Infobox rugby biography | embed = yes
| ru_position       = [[Forward (rugby union)|Forward]]
| ru_amateuryears   = 
| ru_amateurclubs   = Royal Engineers
| ru_nationalyears  = 1872
| ru_nationalteam   = [[Scotland national rugby union team|Scotland]]
| ru_nationalcaps   = 1
| ru_nationalpoints = 0
}}
}}
Side by side comparison
{{Infobox rugby biography}}{{Infobox rugby biography/sandbox}}
Script error: No such module "If empty".
Personal information
Born(1849-10-09)9 October 1849
Mussoorie, British India
Died15 June 1920(1920-06-15) (aged 70)
Montrose, Scotland
[[Category:Template:Pagetype with short description]]
Rugby career
Full nameScript error: No such module "If empty".
Rugby union career
Position(s) Template:Use first nonempty
Current team Template:Use first nonempty
Amateur team(s)
Years Team Apps (Points)
Royal Engineers ()
National team(s)
Years Team Apps (Points)
1872 Scotland 1 0
Template:Wikidata image
Script error: No such module "If empty".
Personal information
Born(1849-10-09)9 October 1849
Mussoorie, British India
Died15 June 1920(1920-06-15) (aged 70)
Montrose, Scotland
Rugby career
Full nameScript error: No such module "If empty".
Rugby union career
Position(s) Template:Use first nonempty
Current team Template:Use first nonempty
Amateur team(s)
Years Team Apps (Points)
Royal Engineers ()
National team(s)
Years Team Apps (Points)
1872 Scotland 1 0
Template:Wikidata image

Using module parameter

Lua error: Internal error: The interpreter has terminated with signal "24".

Medal templates

{{Infobox rugby biography}} {{Infobox rugby biography}} {{Infobox rugby biography/sandbox}}
[[Category:Template:Pagetype with short description]]Lua error: Internal error: The interpreter has terminated with signal "24".Expression error: Unexpected < operator.Lua error: Internal error: The interpreter has terminated with signal "24".Lua error: Internal error: The interpreter has terminated with signal "24". [[Category:Template:Pagetype with short description]]Lua error: Internal error: The interpreter has terminated with signal "24".Expression error: Unexpected < operator.Lua error: Internal error: The interpreter has terminated with signal "24".Lua error: Internal error: The interpreter has terminated with signal "24".

Lua error: Internal error: The interpreter has terminated with signal "24".

Position and current team

In the following tests, the third column shows this template's output prior to it being converted to use {{Infobox}} and {{Infobox3cols}}.

rX_currentposition and rX_position both contain text

Template:Testcase table

rX_currentposition is missing, rX_position contains text

Template:Testcase table

rX_currentposition is empty, rX_position contains text

Template:Testcase table

ru_position is missing, position contains text

Template:Testcase table

ru_position is empty, position contains text

Template:Testcase table

ru_currentteam is missing, currentclub contains text

Template:Testcase table

ru_currentteam is empty, currentclub contains text

Template:Testcase table

ru_currentclub (different from ru_currentteam and currentclub)

Template:Testcase table

rX_position and rX_currentposition without team/club below

Template:Testcase table

rX_currentteam without team/club below

Template:Testcase table

See also