Difference between revisions of "Template:Infobox surfer"

From blackwiki
Jump to navigation Jump to search
imported>Grapesoda22
imported>Hariboneagle927
(to allow medal template especially surfing will be an olympic sport)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
 
| bodyclass  = biography vcard
 
| bodyclass  = biography vcard
| abovestyle = background-color: #7DF9FF
+
| abovestyle = background-color: lavender
| headerstyle= background-color: #7DF9FF
+
| headerstyle= background-color: lavender
 
| above      = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
 
| above      = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
  
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}}}
+
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{#invoke:Wikidata|claim|P18}}}}}|size={{{image_size|}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}}}
| caption  = {{{caption|}}}
+
| caption  = {{{caption|{{#invoke:Wikidata |getImageLegend|FETCH_WIKIDATA}}}}}
  
 
| header1    = {{#if:{{{birth_name|}}}{{{birth_date|}}}{{{birth_place|}}}{{{death_date|}}}{{{death_place|}}}{{{residence|}}}{{{height|}}}{{{weight|}}}|Personal information}}
 
| header1    = {{#if:{{{birth_name|}}}{{{birth_date|}}}{{{birth_place|}}}{{{death_date|}}}{{{death_place|}}}{{{residence|}}}{{{height|}}}{{{weight|}}}|Personal information}}
Line 30: Line 30:
  
 
| label6      = Height
 
| label6      = Height
| data6      = {{{height|}}}
+
| data6      = {{#if: {{{height|}}} | {{Infobox person/height| {{{height}}} }} }}
  
 
| label7      = Weight
 
| label7      = Weight
| data7      = {{{weight|}}}
+
| data7      = {{#if: {{{weight|}}} | {{Infobox person/weight| {{{weight}}} }} }}
  
 
| header8    = {{#if:{{{years_active|{{{yearsactive|}}}}}}{{{best_year|{{{bestyear|}}}}}} {{{career_earnings|{{{careerearnings|}}}}}}{{{sponsors|}}}{{{major_achievements|{{{majorachievements|{{{careerhighlights|}}}}}}}}}|Surfing career}}
 
| header8    = {{#if:{{{years_active|{{{yearsactive|}}}}}}{{{best_year|{{{bestyear|}}}}}} {{{career_earnings|{{{careerearnings|}}}}}}{{{sponsors|}}}{{{major_achievements|{{{majorachievements|{{{careerhighlights|}}}}}}}}}|Surfing career}}
Line 71: Line 71:
 
| label20    = Website
 
| label20    = Website
 
| data20      = {{{website|}}}
 
| data20      = {{{website|}}}
 +
 +
| header21    = {{Infobox medal templates
 +
| title      = {{{medaltemplates-title|}}}
 +
| medals    = {{{medaltemplates|}}}
 +
| expand    = {{#ifeq:{{lc:{{{show-medals}}}}}|no||yes}}
 +
}}
 +
 
}}<noinclude>{{documentation}}</noinclude>
 
}}<noinclude>{{documentation}}</noinclude>

Latest revision as of 19:03, 12 December 2019

Script error: No such module "Wikidata".
Script error: No such module "Wikidata".

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Template:Uses Wikidata

name
Personal information
Bornbirth_name
birth_date
birth_place
Dieddeath_date
death_place
Nicknamenickname
Residenceresidence
Heightheight
Weightweight
Surfing career
Best yearbest_year
Career earningscareer_earnings
Sponsorssponsors
Major achievementsmajor_achievements
Surfing specifications
Stancestance
Shaper(s)shapers
Quiverquiver
Favorite wavesfavorite_waves
Favorite maneuversfavorite_maneuvers
Websitewebsite
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox surfer 
| name               =
| image              = <!-- example.jpg -->
| caption            = 
| birth_name         = 
| birth_date         = <!-- {{birth date and age|YYYY|MM|DD}} -->
| birth_place        = 
| death_date         = <!-- {{death date and age|dYYYY|dMM|dDD|bYYYY|bMM|bDD}} -->
| death_place        = 
| residence          = 
| nickname           = 
| height             = <!-- {{convert|?|ft|?|in|cm|abbr=on}} or {{convert|?|cm|ftin|frac=2|abbr=on}} -->
| weight             = <!-- {{convert|?|lb|kg|abbr=on}} or {{convert|?|kg|lb|abbr=on}} -->
| best_year          = 
| career_earnings    =
| sponsors           =
| major_achievements = 
| stance             =  
| shapers            =
| quiver             =
| favorite_waves     = <!-- or favourite_waves for "favourite" -->
| favorite_maneuvers = <!-- or favourite_maneuvers for "favourite" -->
| website            =
| show-medals      = 
| medaltemplates   = 
| medaltemplates-title = 
}}