Difference between revisions of "Template:Infobox sportsperson/Wikidata"

From blackwiki
Jump to navigation Jump to search
imported>Mike Peel
(code upgrade)
imported>WOSlinker
(remove params no longer in Infobox sportsperson)
 
Line 10: Line 10:
 
| caption = {{#if:{{{image|}}}|{{{caption|}}}|{{#invoke:Wikidata|getImageLegend|{{{caption|FETCH_WIKIDATA}}}}}}}
 
| caption = {{#if:{{{image|}}}|{{{caption|}}}|{{#invoke:Wikidata|getImageLegend|{{{caption|FETCH_WIKIDATA}}}}}}}
  
| header1  = {{#ifeq:{{{child|{{{embed|}}}}}}|yes||{{#if:{{{native_name|}}}{{{native_name_lang|}}}{{{birth_name|}}}{{{birthname|}}}{{{full_name|}}}{{{fullname|}}}{{{nickname|}}}{{{national_team|}}}{{{nationality|}}}{{{ethnicity|}}}{{{citizenship|}}}{{{birth_date|}}}{{{birth_place|}}}{{{death_date|}}}{{{death_place|}}}{{{resting_place|}}}{{{resting place|}}}{{{restingplace|}}}{{{resting_place_coordinates|}}}{{{resting place coordinates|}}}{{{restingplacecoordinates|}}}{{{monuments|}}}{{{residence|}}}{{{education|}}}{{{alma_mater|}}}{{{alma mater|}}}{{{occupation|}}}{{{years_active|}}}{{{years active|}}}{{{yearsactive|}}}{{{employer|}}}{{{agent|}}}{{{height_cm|}}}{{{height_ft|}}}{{{height_in|}}}{{{height|}}}{{{weight_kg|}}}{{{weight_lb|}}}{{{weight_st|}}}{{{weight|}}}{{{spouse|}}}{{{life_partner|}}}{{{other_interests|}}}{{{other-interests|}}}{{{website|}}}{{#Property:P1449}}{{#Property:P19}}{{#Property:P569}}{{#Property:P2048}}{{#Property:P2067}}|{{Infobox|child=yes|decat=yes
+
| header1  = {{#ifeq:{{{child|{{{embed|}}}}}}|yes||{{#if:{{{native_name|}}}{{{native_name_lang|}}}{{{birth_name|}}}{{{birthname|}}}{{{full_name|}}}{{{fullname|}}}{{{nickname|}}}{{{national_team|}}}{{{nationality|}}}{{{citizenship|}}}{{{birth_date|}}}{{{birth_place|}}}{{{death_date|}}}{{{death_place|}}}{{{resting_place|}}}{{{resting place|}}}{{{restingplace|}}}{{{resting_place_coordinates|}}}{{{resting place coordinates|}}}{{{restingplacecoordinates|}}}{{{monuments|}}}{{{education|}}}{{{alma_mater|}}}{{{alma mater|}}}{{{occupation|}}}{{{years_active|}}}{{{years active|}}}{{{yearsactive|}}}{{{employer|}}}{{{agent|}}}{{{height_cm|}}}{{{height_ft|}}}{{{height_in|}}}{{{height|}}}{{{weight_kg|}}}{{{weight_lb|}}}{{{weight_st|}}}{{{weight|}}}{{{spouse|}}}{{{life_partner|}}}{{{other_interests|}}}{{{other-interests|}}}{{{website|}}}{{#Property:P1449}}{{#Property:P19}}{{#Property:P569}}{{#Property:P2048}}{{#Property:P2067}}|{{Infobox|child=yes|decat=yes
 
  | title    = Personal information
 
  | title    = Personal information
  
Line 27: Line 27:
 
  |  data5  = {{#if:{{{national_team|}}}|{{{national_team}}}|{{{nationality|}}}}}
 
  |  data5  = {{#if:{{{national_team|}}}|{{{national_team}}}|{{{nationality|}}}}}
 
  | class5  = category
 
  | class5  = category
| label6  = Ethnicity
 
|  data6  = {{#invoke:WikidataIB | getValue | rank=best |P172 |name=ethnicity |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}}  |noicon={{{noicon|}}} |{{{ethnicity|}}} }}
 
| class6  = category
 
 
  | label7  = Citizenship
 
  | label7  = Citizenship
 
  |  data7  = {{#invoke:WikidataIB | getValue | rank=best |P27 |name=citizenship |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}}  |noicon={{{noicon|}}} |{{{citizenship|}}} }}
 
  |  data7  = {{#invoke:WikidataIB | getValue | rank=best |P27 |name=citizenship |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}}  |noicon={{{noicon|}}} |{{{citizenship|}}} }}
Line 49: Line 46:
 
  | label11  = Monuments
 
  | label11  = Monuments
 
  |  data11  = {{{monuments|}}}
 
  |  data11  = {{{monuments|}}}
| label12  = Residence
 
|  data12  = {{#invoke:WikidataIB | getValue | rank=best |P551 |name=residence |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}}  |noicon={{{noicon|}}} |{{{residence|}}} }}
 
 
  | label13  = Education
 
  | label13  = Education
 
  |  data13  = {{{education|}}}
 
  |  data13  = {{{education|}}}
Line 171: Line 166:
 
| unknown = {{main other|[[Category:Pages using Infobox sportsperson with unknown parameters|_VALUE_{{PAGENAME}}]]}}
 
| unknown = {{main other|[[Category:Pages using Infobox sportsperson with unknown parameters|_VALUE_{{PAGENAME}}]]}}
 
| preview = Page using [[Template:Infobox sportsperson]] with unknown parameter "_VALUE_"
 
| preview = Page using [[Template:Infobox sportsperson]] with unknown parameter "_VALUE_"
| child | embed | headercolor | textcolor | honorific_prefix | honorific prefix | name | honorific_suffix | honorific suffix | image | image_size | imagesize | alt | caption | native_name | native_name_lang | birth_name | birthname | full_name | fullname | nickname | national_team | nationality | ethnicity | citizenship | birth_date | birth_place | death_date | death_place | resting_place | resting place | restingplace | resting_place_coordinates | resting place coordinates | restingplacecoordinates | monuments | residence | education | alma_mater | alma mater | occupation | years_active | years active | yearsactive | employer | agent | height_cm | height_ft | height_in | height | weight_kg | weight_lb | weight_st | weight | spouse | life_partner | other_interests | other-interests | website | module | misc | country | sport | position | shoots | catches | disability | disability_class | weight_class | rank | event | universityteam | collegeteam | league | club | team | turnedpro | partner | former_partner | formerpartner | coach | retired | coaching | weight_class_type | event_type | league_type | turnedpro_type | module2 | misc2 | worlds | regionals | nationals | olympics | paralympics | commonwealth | highestranking | pb | medaltemplates-title | medaltemplates | show-medals | module3 | misc3 | updated | fetchwikidata
+
| child | embed | headercolor | textcolor | honorific_prefix | honorific prefix | name | honorific_suffix | honorific suffix | image | image_size | imagesize | alt | caption | native_name | native_name_lang | birth_name | birthname | full_name | fullname | nickname | national_team | nationality | citizenship | birth_date | birth_place | death_date | death_place | resting_place | resting place | restingplace | resting_place_coordinates | resting place coordinates | restingplacecoordinates | monuments | education | alma_mater | alma mater | occupation | years_active | years active | yearsactive | employer | agent | height_cm | height_ft | height_in | height | weight_kg | weight_lb | weight_st | weight | spouse | life_partner | other_interests | other-interests | website | module | misc | country | sport | position | shoots | catches | disability | disability_class | weight_class | rank | event | universityteam | collegeteam | league | club | team | turnedpro | partner | former_partner | formerpartner | coach | retired | coaching | weight_class_type | event_type | league_type | turnedpro_type | module2 | misc2 | worlds | regionals | nationals | olympics | paralympics | commonwealth | highestranking | pb | medaltemplates-title | medaltemplates | show-medals | module3 | misc3 | updated | fetchwikidata
 
}}<noinclude>
 
}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
<!--PLEASE PUT CATEGORIES IN [[Template:Infobox Sportsperson/doc]].-->
 
<!--PLEASE PUT CATEGORIES IN [[Template:Infobox Sportsperson/doc]].-->
 
</noinclude>
 
</noinclude>

Latest revision as of 15:17, 25 October 2020

Personal information
WebsiteScript error: No such module "If empty".
Sport
Template documentation[view] [edit] [history] [purge]

Template:Person infobox header

Template:Uses Wikidata

Usage

This is a copy of Template:Infobox sportsperson that is wikidataified. Please use as:

{{Infobox sportsperson/Wikidata}}

It will hopefully be merged with Template:Infobox sportsperson at some point.

See also