Jump to content

Template:Infobox rugby biography/sandbox: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
fix rounding issue with height_ft; see Template:Infobox rugby biography/testcases
WIP
Line 1: Line 1:
<includeonly>{{Infobox3cols
{| class="infobox vcard" style="width: 22em; text-align: left; font-size: 88%; line-height: 1.5em"
| bodystyle = vcard
|+ class="fn" style="font-weight: bold; font-size: 125%; text-align: center" | {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
| title = {{{name|{{PAGENAMEBASE}}}}}
{{#if:{{{image|}}}|
| labelstyle = white-space:nowrap;
{{!}} colspan=4 style="text-align: center" {{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizefault=frameless|upright=1|alt={{{alt|}}}}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizefault=frameless|upright=1|alt={{{alt|}}}}}
{{!}}-
{{#if:{{{caption|}}}|
| caption = {{{caption|}}}
| label1 = Full name
{{!}} colspan=4 style="text-align: center" {{!}} {{{caption}}}
| data1 = {{{birth_name|}}}
}}}}
| label2 = Date of birth
|-
| data2 = {{{birth_date|}}}
{{#if:{{{birth_name|{{{birthname|}}}}}}|
| label3 = Place of birth
! {{nowrap|Full name}}
| data3 = {{{birth_place|}}}
{{!}} colspan=3 {{!}} {{{birth_name|{{{birthname}}}}}}
| label4 = Date of death
| data4 = {{{death_date|}}}
| label5 = Place of death
| data5 = {{{death_place|}}}
| label6 = Height
| data6 ={{#if:{{{height|}}}{{{height_cm|}}}{{{height_ft|}}}{{{height_in|}}}|{{convinfobox|{{{height_cm|}}}|cm|{{{height_ft|}}}|ft|{{{height_in|}}}|in|{{#if:{{{height_ft|}}}{{{height_in|}}}|0}}}} {{#if: {{{height|}}} | {{Infobox person/height|{{{height}}}}}}}}}
| label7 = Weight
| data7 = {{#if:{{{weight|}}}{{{weight_kg|}}}{{{weight_st|}}}{{{weight_lb|}}}|{{convinfobox|{{{weight_kg|}}}|kg|{{{weight_st|}}}|st|{{{weight_lb|}}}|lb|{{#if:{{{weight_kg|}}}{{{weight_lb|}}}|0}}}} {{#if: {{{weight|}}} | {{Infobox person/weight|{{{weight}}}}}}}}}
| label8 = School
| data8 = {{{school|}}}
| label9 = University
| data9 = {{{university|}}}
| label10 = Notable relative(s)
| data10 = {{{relatives|}}}
| label11 = Occupation(s)
| data11 = {{{occupation|}}}
| data12 = {{#if:{{{weight_update|}}}|{{nowrap|{{small|Height and weight correct as of {{{weight_update|}}}}}}}}}
}}</includeonly><noinclude>
{{testcase table
| name = "name"
| image = Placeholder.png
| image_size = 20px
| alt = "alt"
| caption = "caption"
| birth_name = "birth_name"
| birthname = "birthname"
| birth_date = "birth_date"
| birth_place = "birth_place"
| death_date = "death_date"
| death_place = "death_place"
| height = "height"
| height_cm = 2
| height_ft = 5
| height_in = 12
| weight = "weight"
| weight_kg = 12
| weight_st = 5
| weight_lb = 7
| school = "school"
| university = "university"
| relatives = "relatives"
| occupation = "occupation"
| weight_update = "weight_update"
| rl_position = "rl_position"
| rl_proclubs = "rl_proclubs"
| city_vs_country_team = "city_vs_country_team"
| sooteam = "sooteam"
| rl_nationalteam = "rl_nationalteam"
| rl_coachclubs = "rl_coachclubs"
| rl_refereecomps = "rl_refereecomps"
| rl_youthclubs = "rl_youthclubs"
| rl_amateurclubs = "rl_amateurclubs"
| rl_amateuryears = "rl_amateuryears"
| rl_amupdate = "rl_amupdate"
| rl_clubyears = "rl_clubyears"
| rl_clubcaps = "rl_clubcaps"
| rl_clubpoints = "rl_clubpoints"
| rl_clubupdate = "rl_clubupdate"
<!--| city_vs_country_years = "city_vs_country_years"
| city_vs_country_caps = "city_vs_country_caps"
| city_vs_country_points = "city_vs_country_points"
| city_vs_country_update = "city_vs_country_update"
| sooteam pre-1980 = "sooteam pre-1980"
| sooyears = "sooyears"
| soocaps = "soocaps"
| soopoints = "soopoints"
| sooupdate = "sooupdate"
| rl_nationalyears = "rl_nationalyears"
| rl_nationalcaps = "rl_nationalcaps"
| rl_nationalpoints = "rl_nationalpoints"
| rl_ntupdate = "rl_ntupdate"
| rl_coachyears = "rl_coachyears"
| rl_coachupdate = "rl_coachupdate"
| rl_refereeyears = "rl_refereeyears"
| rl_refereeapps = "rl_refereeapps"
| rl_refereeupdate = "rl_refereeupdate"
| ru_currentposition = "ru_currentposition"
| ru_currentteam = "ru_currentteam"
| ru_position = "ru_position"
| ru_coachclubs = "ru_coachclubs"
| ru_refereecomps = "ru_refereecomps"
| allblackid = "allblackid"
| allblackno = "allblackno"
| ru_youthclubs = "ru_youthclubs"
| ru_amateurclubs = "ru_amateurclubs"
| ru_amateuryears = "ru_amateuryears"
| ru_amupdate = "ru_amupdate"
| ru_proclubs = "ru_proclubs"
| ru_clubyears = "ru_clubyears"
| ru_clubcaps = "ru_clubcaps"
| ru_clubpoints = "ru_clubpoints"
| ru_clubupdate = "ru_clubupdate"
| ru_province = "ru_province"
| ru_provinceyears = "ru_provinceyears"
| ru_provincecaps = "ru_provincecaps"
| ru_provincepoints = "ru_provincepoints"
| ru_provinceupdate = "ru_provinceupdate"
| super14 = "super14"
| staterep = "staterep"
| super14years = "super14years"
| super14caps = "super14caps"
| super14points = "super14points"
| ru_currentclub = "ru_currentclub"
| super14update = "super14update"
| ru_nationalteam = "ru_nationalteam"
| ru_nationalyears = "ru_nationalyears"
| ru_nationalcaps = "ru_nationalcaps"
| ru_nationalpoints = "ru_nationalpoints"
| ru_ntupdate = "ru_ntupdate"
| ru_sevensnationalteam = "ru_sevensnationalteam"
| ru_sevensnationalyears = "ru_sevensnationalyears"
| ru_sevensnationalcomp = "ru_sevensnationalcomp"
| ru_sevensupdate = "ru_sevensupdate"
| ru_coachyears = "ru_coachyears"
| ru_coachupdate = "ru_coachupdate"
| ru_refereeyears = "ru_refereeyears"
| ru_refereeapps = "ru_refereeapps"
| ru_refereeupdate = "ru_refereeupdate"
| website = "website"
| url = "url"
| module = "module"-->
}}
}}
|-
{{#if:{{{birth_date|}}}|
! {{nowrap|Date of birth}}
{{!}} colspan=3 {{!}} {{{birth_date|}}}
}}
|-
{{#if:{{{birth_place|}}}|
! {{nowrap|Place of birth}}
{{!}} colspan=3 {{!}} {{{birth_place|}}}
}}
|-
{{#if:{{{death_date|}}}|
! {{nowrap|Date of death}}
{{!}} colspan=3 {{!}} {{{death_date|}}}
}}
|-
{{#if:{{{death_place|}}}|
! {{nowrap|Place of death}}
{{!}} colspan=3 {{!}} {{{death_place|}}}
}}
|-
{{#if:{{{height|}}}{{{height_cm|}}}{{{height_ft|}}}{{{height_in|}}}|
! Height
{{!}} colspan=3 {{!}} {{convinfobox|{{{height_cm|}}}|cm|{{{height_ft|}}}|ft|{{{height_in|}}}|in|{{#if:{{{height_ft|}}}{{{height_in|}}}|0}}}} {{#if: {{{height|}}} | {{Infobox person/height|{{{height}}}}} }}
}}
|-
{{#if:{{{weight|}}}{{{weight_kg|}}}{{{weight_st|}}}{{{weight_lb|}}}|
! Weight
{{!}} colspan=3 {{!}} {{convinfobox|{{{weight_kg|}}}|kg|{{{weight_st|}}}|st|{{{weight_lb|}}}|lb|{{#if:{{{weight_kg|}}}{{{weight_lb|}}}|0}}}} {{#if: {{{weight|}}} | {{Infobox person/weight|{{{weight}}}}} }}
}}
|-
{{#if:{{{school|}}}|
! School
{{!}} colspan=3 {{!}} {{{school}}}
}}
|-
{{#if:{{{university|}}}|
! University
{{!}} colspan=3 {{!}} {{{university}}}
}}
|-
{{#if:{{{relatives|}}}|
! {{nowrap|Notable relative(s)}}
{{!}} colspan=3 {{!}} {{{relatives}}}
}}
|-
{{#if:{{{occupation|}}}|
! {{nowrap|Occupation(s)}}
{{!}} colspan=3 {{!}} {{{occupation}}}
}}
|-
{{#if:{{{weight_update|}}}|
! colspan=4 style="font-size: 80%; color: #555" {{!}} Height and weight correct as of {{{weight_update|}}}.
}}
|-
{{#if:{{{rl_position|}}}{{{rl_proclubs|}}}{{{city_vs_country_team|}}}{{{sooteam|}}}{{{rl_nationalteam|}}}{{{rl_coachclubs|}}}{{{rl_refereecomps|}}}|
! colspan=4 style="background-color: #b0c4de; text-align: center" {{!}} Rugby league career
}}
|-
{{#if:{{{rl_position|}}}|
! Position
{{!}} colspan=3 {{!}} {{{rl_position}}}
{{!}}-
{{#if:{{{rl_youthclubs |}}}|
! colspan=4 style="background-color: #e0ffff" {{!}} Youth clubs
{{!}}-
{{!}} colspan=4 {{!}} {{{rl_youthclubs}}}
{{!}}-
}}
{{#if:{{{rl_amateurclubs|}}}|
! colspan=4 style="background-color: #e0ffff" {{!}} Amateur clubs
{{!}}-
! Years
! colspan=3 {{!}} Club / team
{{!}}-
{{!}} {{{rl_amateuryears}}}
{{!}} colspan=3 {{!}} {{{rl_amateurclubs}}}
{{!}}-
}}
{{#if:{{{rl_amupdate|}}}|
! colspan=4 style="font-size: 80%; color: #555" {{!}} correct as of {{{rl_amupdate}}}.
{{!}}-
}}
}}
{{#if:{{{rl_proclubs|}}}|
! colspan=4 style="background-color: #e0ffff" {{!}} Professional clubs
{{!}}-
! Years
! Club / team
! style="text-align: right" {{!}} Caps
! style="text-align: right" {{!}} (points)
{{!}}-
{{!}} {{{rl_clubyears}}}
{{!}} {{{rl_proclubs}}}
{{!}} style="text-align: right" {{!}} {{{rl_clubcaps}}}
{{!}} style="text-align: right" {{!}} {{{rl_clubpoints}}}
{{!}}-
{{#if:{{{rl_clubupdate|}}}|
! colspan=4 style="font-size: 80%; color: #555" {{!}} correct as of {{{rl_clubupdate}}}.
{{!}}-
}}
}}
{{#if:{{{city_vs_country_team|}}}|
! colspan=4 style="background-color: #e0ffff" {{!}} City vs Country Origin
{{!}}-
! Years
! Club / team
! style="text-align: right" {{!}} Caps
! style="text-align: right" {{!}} (points)
{{!}}-
{{!}} {{{city_vs_country_years}}}
{{!}} {{{city_vs_country_team}}}
{{!}} style="text-align: right" {{!}} {{{city_vs_country_caps}}}
{{!}} style="text-align: right" {{!}} {{{city_vs_country_points}}}
{{!}}-
{{#if:{{{city_vs_country_update|}}}|
! colspan=4 style="font-size: 80%; color: #555" {{!}} correct as of {{{city_vs_country_update}}}.
{{!}}-
}}
}}
{{#if:{{{sooteam|}}}|
! colspan=4 style="background-color: #e0ffff" {{!}} {{#ifeq: {{{sooteam pre-1980|}}}| yes | State Representation | State of Origin }}
{{!}}-
! Years
! Club / team
! style="text-align: right" {{!}} Caps
! style="text-align: right" {{!}} (points)
{{!}}-
{{!}} {{{sooyears}}}
{{!}} {{{sooteam}}}
{{!}} style="text-align: right" {{!}} {{{soocaps}}}
{{!}} style="text-align: right" {{!}} {{{soopoints}}}
{{!}}-
{{#if:{{{sooupdate|}}}|
! colspan=4 style="font-size: 80%; color: #555" {{!}} correct as of {{{sooupdate}}}.
{{!}}-
}}
}}
{{#if:{{{rl_nationalteam|}}}|
! colspan=4 style="background-color: #e0ffff" {{!}} National teams
{{!}}-
! Years
! Club / team
! style="text-align: right" {{!}} Caps
! style="text-align: right" {{!}} (points)
{{!}}-
{{!}} {{{rl_nationalyears}}}
{{!}} {{{rl_nationalteam}}}
{{!}} style="text-align: right" {{!}} {{{rl_nationalcaps}}}
{{!}} style="text-align: right" {{!}} {{{rl_nationalpoints}}}
{{!}}-
{{#if:{{{rl_ntupdate|}}}|
! colspan=4 style="font-size: 80%; color: #555" {{!}} correct as of {{{rl_ntupdate}}}.
{{!}}-
}}
}}
{{#if:{{{rl_coachclubs|}}}|
! colspan=4 style="background-color: #e0ffff" {{!}} Teams coached
{{!}}-
{{!}} {{{rl_coachyears}}}
{{!}} colspan=3 {{!}} {{{rl_coachclubs}}}
{{!}}-
{{#if:{{{rl_coachupdate|}}}|
! colspan=4 style="font-size: 80%; color: #555" {{!}} correct as of {{{rl_coachupdate}}}.
{{!}}-
}}
}}
{{#if:{{{rl_refereecomps|}}}|
! colspan=4 style="background-color: #e0ffff; text-align: center" {{!}} Refereeing career
{{!}}-
! Years
{{!}} colspan=2 {{!}} '''Competition'''
{{!}} style="text-align: right" {{!}} '''Apps '''
{{!}}-
{{!}} {{{rl_refereeyears}}}
{{!}} colspan=2 {{!}} {{{rl_refereecomps}}}
{{!}} style="text-align: right" {{!}} {{{rl_refereeapps}}}
{{!}}-
{{#if:{{{rl_refereeupdate|}}}|
! colspan=4 style="font-size: 80%; color: #555" {{!}} correct as of {{{rl_refereeupdate}}}.
}}
}}
|-
{{#if:{{{ru_currentposition |}}}{{{ru_currentteam|}}}{{{ru_position|}}}{{{ru_coachclubs |}}}{{{ru_refereecomps|}}}|
! colspan=4 style="background-color: #b0c4de; text-align: center" {{!}} Rugby union career
}}
|-
{{#if:{{{ru_currentposition |}}}{{{ru_currentteam|}}}|
! colspan=4 style="background-color: #e0ffff; text-align: center" {{!}} Current status
}}
|-
{{#if:{{{ru_currentposition |}}}|
! Position(s)
{{!}} colspan=3 class="role" {{!}} {{{ru_currentposition}}}
}}
|-
{{#if:{{{ru_currentteam |}}}|
! Current team
{{!}} colspan=3 class="org" {{!}} {{{ru_currentteam}}}
}}
|-
{{#if:{{{ru_position|}}}|
! colspan=4 style="background-color: #e0ffff; text-align: center" {{!}} Playing career
{{!}}-
! Position
{{!}} colspan=3 {{!}} {{{ru_position}}}
}}
|-
{{#if:{{{allblackid|}}}|
! {{nowrap|New Zealand No.}}
{{!}} colspan=3 {{!}} [http://stats.allblacks.com/asp/Profile.asp?ABID={{{allblackid}}} {{{allblackno}}}]
}}
|-
{{#if:{{{ru_youthclubs|}}}|
! colspan=4 style="background-color: #e0ffff; text-align: center" {{!}} Youth clubs
{{!}}-
{{!}} colspan=4 {{!}} {{{ru_youthclubs}}}
}}
|-
{{#if:{{{ru_amateurclubs|}}}|
! colspan=4 style="background-color: #e0ffff" {{!}} Amateur clubs
{{!}}-
! Years
! colspan=3 {{!}} Club / team
{{!}}-
{{!}} {{{ru_amateuryears}}}
{{!}} colspan=3 {{!}} {{{ru_amateurclubs}}}
{{!}}-
{{#if:{{{ru_amupdate|}}}|
! colspan=4 style="font-size: 80%; color: #555" {{!}} correct as of {{{ru_amupdate}}}.
{{!}}-
}}
}}
{{#if:{{{ru_proclubs|}}}|
! colspan=4 style="background-color: #e0ffff" {{!}} Professional / senior clubs
{{!}}-
! Years
! Club / team
! style="text-align: right" {{!}} Caps
! style="text-align: right" {{!}} (points)
{{!}}-
{{!}} {{{ru_clubyears|}}}
{{!}} {{{ru_proclubs}}}
{{!}} style="text-align: right" {{!}} {{{ru_clubcaps|}}}
{{!}} style="text-align: right" {{!}} {{{ru_clubpoints|}}}
{{!}}-
{{#if:{{{ru_clubupdate|}}}|
! colspan=4 style="font-size: 80%; color: #555" {{!}} correct as of {{{ru_clubupdate}}}.
{{!}}-
}}
}}
{{#if:{{{ru_province|}}}|
! colspan=4 style="background-color: #e0ffff" {{!}} Provincial/State sides
{{!}}-
! Years
! Club / team
! style="text-align: right" {{!}} Caps
! style="text-align: right" {{!}} (points)
{{!}}-
{{!}} {{{ru_provinceyears}}}
{{!}} {{{ru_province}}}
{{!}} style="text-align: right" {{!}} {{{ru_provincecaps}}}
{{!}} style="text-align: right" {{!}} {{{ru_provincepoints}}}
{{!}}-
{{#if:{{{ru_provinceupdate|}}}|
! colspan=4 style="font-size: 80%; color: #555" {{!}} correct as of {{{ru_provinceupdate}}}.
{{!}}-
}}
}}
{{#if:{{{super14|}}}|
! colspan=4 style="background-color: #e0ffff" {{!}} {{#ifeq: {{{staterep|}}}| yes | State Representation | Super Rugby }}
{{!}}-
! Years
! Club / team
! style="text-align: right" {{!}} Caps
! style="text-align: right" {{!}} (points)
{{!}}-
{{!}} {{{super14years}}}
{{!}} {{{super14}}}
{{!}} style="text-align: right" {{!}} {{{super14caps}}}
{{!}} style="text-align: right" {{!}} {{{super14points}}}
{{!}}-
! {{#if:{{{ru_currentclub|}}}|Current local club}}
{{!}} colspan=2 {{!}} {{#if:{{{ru_currentclub|}}}|{{{ru_currentclub}}} }}
{{!}}-
{{#if:{{{super14update|}}}|
! colspan=4 style="font-size: 80%; color: #555" {{!}} correct as of {{{super14update}}}.
{{!}}-
}}
}}
{{#if:{{{ru_nationalteam|}}}|
! colspan=4 style="background-color: #e0ffff" {{!}} National team(s)
{{!}}-
! Years
! Club / team
! style="text-align: right" {{!}} Caps
! style="text-align: right" {{!}} (points)
{{!}}-
{{!}} {{{ru_nationalyears}}}
{{!}} {{{ru_nationalteam}}}
{{!}} style="text-align: right" {{!}} {{{ru_nationalcaps}}}
{{!}} style="text-align: right" {{!}} {{{ru_nationalpoints}}}
{{!}}-
{{#if:{{{ru_ntupdate|}}}|
! colspan=4 style="font-size: 80%; color: #555" {{!}} correct as of {{{ru_ntupdate}}}.
{{!}}-
}}
}}
{{#if:{{{ru_sevensnationalteam|}}}|
! colspan=2 {{!}} Sevens national teams
{{!}}-
! Years
! colspan=2 {{!}} Club / team
! Comps
{{!}}-
{{!}} {{{ru_sevensnationalyears}}}
{{!}} colspan=2 {{!}} {{{ru_sevensnationalteam}}}
{{!}} {{{ru_sevensnationalcomp}}}
{{!}}-
{{#if:{{{ru_sevensupdate|}}}|
! colspan=4 style="font-size: 80%; color: #555" {{!}} correct as of {{{ru_sevensupdate}}}.
}}
}}
|-
{{#if:{{{ru_coachclubs|}}}|
! colspan=4 style="background-color: #e0ffff; text-align: center" {{!}} Coaching career
{{!}}-
! Years
! colspan=3 {{!}} Club / team
{{!}}-
{{!}} {{{ru_coachyears}}}
{{!}} colspan=3 {{!}} {{{ru_coachclubs}}}
{{!}}-
{{#if:{{{ru_coachupdate|}}}|
! colspan=4 style="font-size: 80%; color: #555" {{!}} correct as of {{{ru_coachupdate}}}.
{{!}}-
}}
}}
|-
{{#if:{{{ru_refereecomps|}}}|
! colspan=4 style="background-color: #e0ffff; text-align: center" {{!}} Refereeing career
{{!}}-
! Years
{{!}} colspan=2 {{!}} '''Competition'''
{{!}} style="text-align: right" {{!}} '''Apps'''
{{!}}-
{{!}} {{{ru_refereeyears}}}
{{!}} colspan=2 {{!}} {{{ru_refereecomps}}}
{{!}} style="text-align: right" {{!}} {{{ru_refereeapps}}}
{{!}}-
{{#if:{{{ru_refereeupdate|}}}|
! colspan=4 style="font-size: 80%; color: #555" {{!}} correct as of {{{ru_refereeupdate}}}.
}}
}}
|-
{{#if:{{{website|{{{url|}}}}}}|
! colspan=4 style="background-color: #b0c4de; text-align: center" {{!}} Official website
{{!}}-
{{!}} colspan=4 style="text-align: center" {{!}} {{{website|{{{url|}}}}}}
}}
|-
{{#if:{{{module|}}}|
{{!}} colspan=4 style="text-align: center" {{!}}
{{{!}} style="width:100%; margin:0; border-width:0;"
{{{module|}}}
{{!}}} }}
|}<noinclude>
{{being merged|2014 February 28|merge=Template:Infobox rugby union biography}}
{{documentation}}<!-- add category and language links to the /doc sub-page, not here -->
</noinclude>
</noinclude>

Revision as of 18:36, 25 January 2017

Side by side comparison
{{Infobox rugby biography}}{{Infobox rugby biography/sandbox}}
"name"
"alt"
"caption"
Birth name"birth_name"
Date of birth"birth_date"
Place of birth"birth_place"
Date of death"death_date"
Place of death"death_place"
Height2 cm (1 in) "height"
Weight12 kg (26 lb; 1 st 12 lb) "weight"
School"school"
University"university"
Notable relative(s)"relatives"
Occupation(s)"occupation"
Height and weight correct as of "weight_update"
"name"
"alt"
"caption"
Full name "birth_name"
Date of birth "birth_date"
Place of birth "birth_place"
Date of death "death_date"
Place of death "death_place"
Height 2 cm (1 in) "height"
Weight 12 kg (26 lb; 1 st 12 lb) "weight"
School "school"
University "university"
Notable relative(s) "relatives"
Occupation(s) "occupation"
Height and weight correct as of "weight_update"