Difference between revisions of "Template:Infobox surfer"

From blackwiki
Jump to navigation Jump to search
imported>Nemo bis
(Wikidata fallback for image.)
imported>Frietjes
(fix for case where there is more than one image)
Line 5: Line 5:
 
| above      = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
 
| above      = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
  
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{#property:P18}}}}}|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}}

Revision as of 22:47, 26 September 2016

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 = 
}}