Difference between pages "Template:Infobox climber" and "Template:Infobox climber/sandbox"

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
imported>MB
(add spouse)
 
imported>Zyxw
(Allow automatic conversion of height and weight via Template:Infobox person/height and Template:Infobox person/weight, see examples at Template:Infobox climber/testcases.)
 
Line 1: Line 1:
{{Infobox sportsperson
+
{{Infobox
| name = {{{name|}}}
+
| bodyclass  = vcard
| image = {{{image|}}}
+
| title      = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
| image_size = {{{image_size|{{{imagesize|}}}}}}
+
| titleclass  = fn
| alt = {{{alt|}}}
+
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{#if:{{{image_size|}}}|{{{image_size}}}|{{{imagesize|}}}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}}}
| caption = {{{caption|}}}
+
| caption    = {{{caption|}}}
| nickname = {{{nickname|}}}
+
| headerstyle = background:{{#if:{{{headercolor|}}}|{{{headercolor}}}|#CCCC99}};
| nationality = {{{nationality|}}}
 
| birth_name = {{{birth_name|}}}
 
| birth_date = {{{birth_date|}}}
 
| birth_place = {{{birth_place|}}}
 
| death_date = {{{death_date|}}}
 
| death_place = {{{death_place|}}}
 
| spouse = {{{spouse|}}}
 
| education = {{{education|}}}
 
| occupation = {{{occupation|}}}
 
| height = {{{height|}}}
 
| weight = {{{weight|}}}
 
| retired = {{{retired|}}}
 
| website = {{{website|}}}
 
| worlds = {{{worlds|}}}
 
| medaltemplates = {{{medals|{{{medaltemplates|}}}}}}
 
| show-medals = {{{medals-expand|{{{show-medals|}}}}}}
 
| updated = {{{updated|}}}
 
| nocat_wdimage = {{{nocat_wdimage|}}}
 
  
| module = {{#if: {{{typeofclimber|}}} {{{highestredpoint|}}} {{{highestonsight|}}} {{{highestboulder|}}} {{{highestgrade|}}} {{{knownfor|}}} {{{firstascents|}}} {{{namedroutes|}}} {{{majorascents|}}} |{{Infobox
+
| header1    = {{#if: {{{nickname|}}} {{{nationality|}}} {{{birth_date|}}} {{{birth_place|}}} {{{death_date|}}} {{{death_place|}}} {{{residence|}}} {{{education|}}} {{{occupation|}}} {{{height|}}} {{{weight|}}} {{{retired|}}} {{{website|}}} |Personal information}}
| child = yes
+
| label3      = Nickname
| title = '''Climbing career'''
+
| data3      = {{{nickname|}}}
| decat = yes <!-- remove from template:infobox tracking categories -->
+
| label4      = Nationality
| label1 = Type of climber
+
| data4      = {{{nationality|}}}
| data1  = {{{typeofclimber|}}}
+
| label5      = Born
| label2 = Highest grade
+
| data5      = {{br separated entries|{{{birth_date|}}}|{{{birth_place|}}} }}
| data2  = {{#if:{{{highestredpoint|}}}{{{highestonsight|}}}{{{highestboulder|}}}
+
| label6      = Died
 +
| data6      = {{br separated entries|{{{death_date|}}}|{{{death_place|}}} }}
 +
| label7      = Residence
 +
| data7      = {{{residence|}}}
 +
| label8      = Education
 +
| data8      = {{{education|}}}
 +
| label9      = Occupation
 +
| data9      = {{{occupation|}}}
 +
| label10    = Height
 +
| data10      = {{#if: {{{height|}}} | {{Infobox person/height|{{{height}}}}} }}
 +
| label11    = Weight
 +
| data11      = {{#if: {{{weight|}}} | {{Infobox person/weight|{{{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|}}}
 
   |{{plainlist|
 
   |{{plainlist|
* {{#if:{{{highestredpoint|}}}|[[Redpoint (climbing)|Redpoint]]:&nbsp;{{{highestredpoint}}}}}
+
* {{#if:{{{highestredpoint|}}}|[[Redpoint (climbing)|Redpoint]]: {{{highestredpoint}}}}}
* {{#if:{{{highestonsight|}}}|[[On-sight]]:&nbsp;{{{highestonsight}}}}}
+
* {{#if:{{{highestonsight|}}}|[[On-sight]]: {{{highestonsight}}}}}
* {{#if:{{{highestboulder|}}}|[[Bouldering]]:&nbsp;{{{highestboulder}}}}}
+
* {{#if:{{{highestboulder|}}}|[[Bouldering]]: {{{highestboulder}}}}}
 
}}|{{{highestgrade|}}}}}
 
}}|{{{highestgrade|}}}}}
| label3     = Known for
+
| label17     = Known for
| data3     = {{{knownfor|}}}
+
| data17     = {{{knownfor|}}}
| label4     = First ascents
+
| label18     = First ascents
| data4     = {{{firstascents|}}}
+
| data18     = {{{firstascents|}}}
| label5     = Named routes
+
| label19     = Named routes
| data5     = {{{namedroutes|}}}
+
| data19     = {{{namedroutes|}}}
| label6     = Major ascents
+
| label20     = Major ascents
| data6     = {{{majorascents|}}}
+
| data20     = {{{majorascents|}}}
}}
+
 
}}
+
| header21    = {{#if:{{{worlds|}}}|Achievements and titles}}
}}{{#if: {{{highestgrade|}}} | {{#if: {{{highestredpoint|}}} {{{highestonsight|}}} {{{highestboulder|}}} | {{#invoke:Preview warning|main|Infobox climber contains an undisplayed [[Template:Infobox climber#highestgrade|highestgrade]] parameter}}{{Main other|[[Category:Pages using infobox climber with undisplayed highestgrade parameter]]}} }}
+
| label22    = World finals
}}{{#invoke:Check for unknown parameters | check | unknown = {{Main other|[[Category:Pages using infobox climber with unknown parameters|_VALUE_{{PAGENAME}}]]}} | preview = Page using [[Template:Infobox climber]] with unknown parameter "_VALUE_" | ignoreblank = y | name | image | image_size | imagesize | alt | caption | nickname | nationality | birth_name | birth_date | birth_place | death_date | death_place | spouse | education | occupation | height | weight | retired | website | worlds | medals | medaltemplates | medals-expand | show-medals | updated | nocat_wdimage | typeofclimber | highestredpoint | highestonsight | highestboulder | highestgrade | knownfor | firstascents | namedroutes | majorascents
+
| data22      = {{{worlds|}}}
 +
 
 +
| header23    = {{Infobox medal templates
 +
  |medals = {{{medaltemplates|}}}
 +
  |expand = {{#ifeq:{{lc:{{{show-medals}}}}}|no||yes}}
 +
  }}
 +
 
 +
| belowstyle  = color:darkslategray; font-size:82%
 +
| below      = {{#if:{{{updated|}}}|Updated on {{{updated}}}.}}
 +
 
 
}}<noinclude>
 
}}<noinclude>
{{Documentation}}
+
{{Documentation}}<!--PLEASE PUT CATEGORIES IN [[Template:Infobox Climber/doc]].-->
 
</noinclude>
 
</noinclude>