Difference between revisions of "Template:Infobox officeholder/Wikidata"
Jump to navigation
Jump to search
imported>Belamp |
imported>Belamp |
||
| Line 3: | Line 3: | ||
</noinclude>{{Infobox officeholder | </noinclude>{{Infobox officeholder | ||
| embed = {{{embed|}}} | | embed = {{{embed|}}} | ||
| − | {{#ifeq:{{lc:{{{embed | + | | image = {{#ifeq:{{lc:{{{embed}}}}}|yes||{{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:Wikidata|getValue|P18|{{{image|FETCH_WIKIDATA}}}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}}} |
| − | + | | caption = {{#ifeq:{{lc:{{{embed}}}}}|yes||{{{image caption|{{{caption|{{{image_caption|{{#invoke:Wikidata|getImageLegend|FETCH_WIKIDATA}}}}}}}}}}}}} | |
| − | {{ | + | | birth_place = {{#ifeq:{{lc:{{{embed}}}}}|yes||{{#invoke:WikidataIB |getValue |P19 |name=birth_place |fetchwikidata={{{fetchwikidata|}}} |suppressfields={{{suppressfields|}}} |onlysourced={{{onlysourced|}}} |noicon={{{noicon|}}} |qid={{{qid|}}} | {{{birth_place|}}} }}}} |
| − | {{ | + | | death_place = {{#ifeq:{{lc:{{{embed}}}}}|yes||{{#invoke:WikidataIB |getValue |P20 |name=death_place |fetchwikidata={{{fetchwikidata|}}} |suppressfields={{{suppressfields|}}} |onlysourced={{{onlysourced|}}} |noicon={{{noicon|}}} |qid={{{qid|}}} | {{{death_place|}}} }}}} |
| − | {{ | + | | father = {{#ifeq:{{lc:{{{embed}}}}}|yes||{{#invoke:WikidataIB |getValue |P22 |name=father |fetchwikidata={{{fetchwikidata|}}} |suppressfields={{{suppressfields|}}} |onlysourced={{{onlysourced|}}} |noicon={{{noicon|}}} |qid={{{qid|}}} |{{{father|}}} }}}} |
| − | {{ | + | | mother = {{#ifeq:{{lc:{{{embed}}}}}|yes||{{#invoke:WikidataIB |getValue |P25 |name=mother |fetchwikidata={{{fetchwikidata|}}} |suppressfields={{{suppressfields|}}} |onlysourced={{{onlysourced|}}} |noicon={{{noicon|}}} |qid={{{qid|}}} |{{{mother|}}} }}}} |
| − | {{ | + | | children = {{#ifeq:{{lc:{{{embed}}}}}|yes||{{#invoke:WikidataIB |getValue |P40 |name=children |fetchwikidata={{{fetchwikidata|}}} |suppressfields={{{suppressfields|}}} |onlysourced={{{onlysourced|}}} |noicon={{{noicon|}}} |qid={{{qid|}}} |{{{children|}}} }}}} |
| − | {{ | + | | siblings = {{#ifeq:{{lc:{{{embed}}}}}|yes||{{#invoke:WikidataIB |getValue |P3373 |name=siblings |fetchwikidata={{{fetchwikidata|}}} |suppressfields={{{suppressfields|}}} |onlysourced={{{onlysourced|}}} |noicon={{{noicon|}}} |qid={{{qid|}}} |{{{siblings|}}} }}}} |
| − | {{ | + | | spouse = {{#ifeq:{{lc:{{{embed}}}}}|yes||{{#invoke:WikidataIB |getValue |P26 |name=spouse |fetchwikidata={{{fetchwikidata|}}} |suppressfields={{{suppressfields|}}} |onlysourced={{{onlysourced|}}} |noicon={{{noicon|}}} |qid={{{qid|}}} |{{{spouse|}}} }}}} |
| − | {{ | + | | weapon = {{#ifeq:{{lc:{{{embed}}}}}|yes||{{#invoke:WikidataIB |getValue |P520 |name=weapon |fetchwikidata={{{fetchwikidata|}}} |suppressfields={{{suppressfields|}}} |onlysourced={{{onlysourced|}}} |noicon={{{noicon|}}} |qid={{{qid|}}} |{{{weapon|}}} }}}} |
| − | {{ | + | | education = {{#ifeq:{{lc:{{{embed}}}}}|yes||{{#invoke:WikidataIB |getValue |P69 |name=education |fetchwikidata={{{fetchwikidata|}}} |suppressfields={{{suppressfields|}}} |onlysourced={{{onlysourced|}}} |noicon={{{noicon|}}} |qid={{{qid|}}} |{{{education|}}} }}}} |
| − | {{ | + | | website = {{#ifeq:{{lc:{{{embed}}}}}|yes||{{#invoke:WikidataIB |getValue |P856 |name=website |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=no |noicon={{{noicon|}}} |qid={{{qid|}}} |{{{website|}}} }}}} |
| − | {{ | ||
| − | }} | ||
}}<noinclude>{{Documentation}}</noinclude> | }}<noinclude>{{Documentation}}</noinclude> | ||
Revision as of 14:44, 13 November 2019
| This template's documentation is missing, inadequate, or does not accurately describe its functionality and/or the parameters in its code. Please help to expand and improve it. (September 2017) |
| Script error: No such module "Wikidata". Script error: No such module "Wikidata". |
| The above documentation is transcluded from Template:Infobox officeholder/Wikidata/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |