Template:Infobox rugby biography/testcases
| This is the template test cases page for the sandbox of Template:Infobox rugby biography. 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: |
- 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.
Contents
- 1 Test case
- 2 Everything filled in
- 3 Height and weight
- 4 Using embed parameter
- 5 Using module parameter
- 6 Medal templates
- 7 Position and current team
- 7.1 rX_currentposition and rX_position both contain text
- 7.2 rX_currentposition is missing, rX_position contains text
- 7.3 rX_currentposition is empty, rX_position contains text
- 7.4 ru_position is missing, position contains text
- 7.5 ru_position is empty, position contains text
- 7.6 ru_currentteam is missing, currentclub contains text
- 7.7 ru_currentteam is empty, currentclub contains text
- 7.8 ru_currentclub (different from ru_currentteam and currentclub)
- 7.9 rX_position and rX_currentposition without team/club below
- 7.10 rX_currentteam without team/club below
- 8 See also
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 =
}}
| {{Infobox rugby biography}} | {{Infobox rugby biography/sandbox}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[[Category:Template:Pagetype with short description]]
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Everything filled in
rugby bio params Template:Testcase table
RU bio params Template:Testcase table
Height and weight
height: cm, weight: kg
| height = 180 cm (5 ft 11 in) | weight = 110 kg (243 lb; 17 st 5 lb)
conversion via template, |0 in second example prevents rounding of lb
| height = {{cvt|180|cm|ftin}}
| weight = {{cvt|110|kg|lb stlb}}
| height = {{cvt|180|cm|ftin}}
| weight = {{cvt|110|kg|lb stlb|0}}
automatic conversion, template uses {{Infobox person/height}} and {{Infobox person/weight}}
| height = 180 cm | weight = 110 kg
conversion via other parameters, template uses {{Convinfobox}}
| height_cm = 180 | weight_kg = 110
height: ft/in, weight: lb
| height = 5 ft 10 in (178 cm) | weight = 240 lb (109 kg; 17 st 2 lb)
conversion via template, |0 in second example prevents rounding of kg
| height = {{cvt|5|ft|10|in|cm}}
| weight = {{cvt|240|lb|kg stlb}}
| height = {{cvt|5|ft|10|in|cm}}
| weight = {{cvt|240|lb|kg stlb|0}}
automatic conversion, template uses {{Infobox person/height}} and {{Infobox person/weight}}
| height = 5 ft 10 in | weight = 240 lb
conversion via other parameters, template uses {{Convinfobox}}
| height_ft = 5 | height_in = 10 | weight_lb = 240
height: ft
| height = 10 ft (305 cm)
conversion via template, |0 in second example prevents rounding of cm
| height = {{cvt|10|ft|cm}}
| height = {{cvt|10|ft|cm|0}}
automatic conversion, template uses {{Infobox person/height}}
| height = 10 ft
conversion via other parameters, template uses {{Convinfobox}}
| height_ft = 10
height: in
| height = 100 in (254 cm)
conversion via template, |0 in second example prevents rounding of cm
| height = {{cvt|100|in|cm}}
| height = {{cvt|100|in|cm|0}}
automatic conversion, template uses {{Infobox person/height}}
| height = 100 in
conversion via other parameters, template uses {{Convinfobox}}
| height_in = 100
weight: st/lb
| weight = 17 st 3 lb (241 lb; 109 kg)
conversion via template
| weight = {{cvt|17|st|3|lb|lb kg}}
automatic conversion, template uses {{Infobox person/weight}}
| weight = 17 st 3 lb
conversion via other parameters, template uses {{Convinfobox}}
| weight_st = 17 | weight_lb = 3
weight: st
| weight = 17 st (238 lb; 108 kg)
conversion via template, |0 in second example prevents rounding of lb and kg
| weight = {{cvt|17|st|lb kg}}
| weight = {{cvt|17|st|lb kg|0}}
automatic conversion, template uses {{Infobox person/weight}}
| weight = 17 st
conversion via other parameters, template uses {{Convinfobox}}
| weight_st = 17
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
}}
}}
| {{Infobox rugby biography}} | {{Infobox rugby biography/sandbox}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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}}.