(Go: >> BACK << -|- >> HOME <<)

Template:Infobox climber: Difference between revisions

Content deleted Content added
Fix a prior change to logic for "Highest grade" section that prevented "highestgrade" parameter from being displayed when not using "highestredpoint", "highestonsight", or "highestboulder".
Make headers conditional on at least one parameter being specified for that section. Remove <includeonly> used to display parameters, see {{Parameter names example}} in documentation.
Line 1:
{{Infobox
| bodyclass = vcard
| title = {{{name|<includeonly>|{{PAGENAMEBASE}}</includeonly>}}}
| titleclass = fn
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image<includeonly>|</includeonly>}}}|size={{#if:{{{image_size|}}}|{{{image_size}}}|{{{imagesize|}}}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}}}
| caption = {{{caption<includeonly>|</includeonly>}}}
| headerstyle = background:{{#if:{{{headercolor|}}}|{{{headercolor}}}|#CCCC99}};
 
| header1 = {{#if: {{{nickname|}}} {{{nationality|}}} {{{birth_date|}}} {{{birth_place|}}} {{{death_date|}}} {{{death_place|}}} {{{residence|}}} {{{education|}}} {{{occupation|}}} {{{height|}}} {{{weight|}}} {{{retired|}}} {{{website|}}} |Personal information}}
| header1 = Personal information
| label3 = Nickname
| data3 = {{{nickname<includeonly>|</includeonly>}}}
| label4 = Nationality
| data4 = {{{nationality<includeonly>|</includeonly>}}}
| label5 = Born
| data5 = {{br separated entries|{{{birth_date<includeonly>|</includeonly>}}}|{{{birth_place<includeonly>|</includeonly>}}} }}
| label6 = Died
| data6 = {{br separated entries|{{{death_date<includeonly>|</includeonly>}}}|{{{death_place<includeonly>|</includeonly>}}} }}
| label7 = Residence
| data7 = {{{residence<includeonly>|</includeonly>}}}
| label8 = Education
| data8 = {{{education<includeonly>|</includeonly>}}}
| label9 = Occupation
| data9 = {{{occupation<includeonly>|</includeonly>}}}
| label10 = Height
| data10 = {{{height<includeonly>|</includeonly>}}}
| label11 = Weight
| data11 = {{{weight<includeonly>|</includeonly>}}}
| label12 = Retired from competitions
| data12 = {{{retired|}}}
| label13 = Website
| data13 = {{{website<includeonly>|</includeonly>}}}
 
| header14 = {{#if: {{{typeofclimber|}}} {{{highestredpoint|}}} {{{highestonsight|}}} {{{highestboulder|}}} {{{highestgrade|}}} {{{knownfor|}}} {{{firstascents|}}} {{{namedroutes|}}} {{{majorascents|}}} |Climbing career}}
| header14 = Climbing career
| label15 = Type of climber
| data15 = {{{typeofclimber<includeonly>|</includeonly>}}}
| label16 = Highest grade
| data16 = {{#if:{{{highestredpoint|}}}{{{highestonsight|}}}{{{highestboulder|}}}
Line 40:
* {{#if:{{{highestonsight|}}}|[[On-sight]]: {{{highestonsight}}}}}
* {{#if:{{{highestboulder|}}}|[[Bouldering]]: {{{highestboulder}}}}}
}}|{{{highestgrade<includeonly>|</includeonly>}}}}}
| label17 = Known for
| data17 = {{{knownfor<includeonly>|</includeonly>}}}
| label18 = First ascents
| data18 = {{{firstascents<includeonly>|</includeonly>}}}
| label19 = Named routes
| data19 = {{{namedroutes<includeonly>|</includeonly>}}}
| label20 = Major ascents
| data20 = {{{majorascents<includeonly>|</includeonly>}}}
 
| header21 = {{#if:{{{worlds|}}}|Achievements and titles}}