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>
| titleclass = fn
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image
| caption = {{{caption
| 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}}
| label3 = Nickname
| data3 = {{{nickname
| label4 = Nationality
| data4 = {{{nationality
| label5 = Born
| data5 = {{br separated entries|{{{birth_date
| label6 = Died
| data6 = {{br separated entries|{{{death_date
| label7 = Residence
| data7 = {{{residence
| label8 = Education
| data8 = {{{education
| label9 = Occupation
| data9 = {{{occupation
| label10 = Height
| data10 = {{{height
| label11 = Weight
| data11 = {{{weight
| label12 = Retired from competitions
| data12 = {{{retired|}}}
| label13 = Website
| data13 = {{{website
| header14 = {{#if: {{{typeofclimber|}}} {{{highestredpoint|}}} {{{highestonsight|}}} {{{highestboulder|}}} {{{highestgrade|}}} {{{knownfor|}}} {{{firstascents|}}} {{{namedroutes|}}} {{{majorascents|}}} |Climbing career}}
| label15 = Type of climber
| data15 = {{{typeofclimber
| label16 = Highest grade
| data16 = {{#if:{{{highestredpoint|}}}{{{highestonsight|}}}{{{highestboulder|}}}
Line 40:
* {{#if:{{{highestonsight|}}}|[[On-sight]]: {{{highestonsight}}}}}
* {{#if:{{{highestboulder|}}}|[[Bouldering]]: {{{highestboulder}}}}}
}}|{{{highestgrade
| label17 = Known for
| data17 = {{{knownfor
| label18 = First ascents
| data18 = {{{firstascents
| label19 = Named routes
| data19 = {{{namedroutes
| label20 = Major ascents
| data20 = {{{majorascents
| header21 = {{#if:{{{worlds|}}}|Achievements and titles}}
|