Revision as of 11:46, 28 July 2020 view sourceNikkimaria (talk | contribs)Autopatrolled, Extended confirmed users232,607 edits sig← Previous edit | Latest revision as of 20:33, 14 September 2024 view source Jonesey95 (talk | contribs)Autopatrolled, Extended confirmed users, Page movers, Mass message senders, Template editors375,495 edits add qid tracking in article space | ||
(19 intermediate revisions by 9 users not shown) | |||
Line 3: | Line 3: | ||
| above = {{Br separated entries | | above = {{Br separated entries | ||
| 1 = {{#if:{{{honorific prefix|{{{honorific_prefix|}}}}}}|< |
| 1 = {{#if:{{{honorific prefix|{{{honorific_prefix|{{{honorific-prefix|{{{pre-nominals|}}}}}}}}}}}}|<div class="honorific-prefix" style="font-size: 77%; font-weight: normal; display:inline;">{{{honorific prefix|{{{honorific_prefix|{{{honorific-prefix|{{{pre-nominals|}}}}}}}}}}}}</div>}} | ||
| 2 = < |
| 2 = <div class="fn" style="display:inline">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}</div> | ||
| 3 = {{#if:{{{honorific suffix|{{{honorific_suffix|}}}}}}|< |
| 3 = {{#if:{{{honorific suffix|{{{honorific_suffix|{{{honorific-suffix|{{{post-nominals|}}}}}}}}}}}}|<div class="honorific-suffix" style="font-size: 77%; font-weight: normal; display:inline;">{{{honorific suffix|{{{honorific_suffix|{{{honorific-suffix|{{{post-nominals|}}}}}}}}}}}}</div>}} | ||
}} | }} | ||
| abovestyle = {{{abovestyle|}}} | | abovestyle = {{{abovestyle|}}} | ||
Line 24: | Line 24: | ||
| data10 = {{br separated entries | | data10 = {{br separated entries | ||
|1={{#invoke:WikidataIB | getValue | rank=best |P1477 |name=birth_name |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|}}} |noicon={{{noicon|}}}|{{{birth_name|}}}}} | |1={{#invoke:WikidataIB | getValue | rank=best |P1477 |name=birth_name |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|}}} |noicon={{{noicon|}}}|{{{birth_name|}}}}} | ||
|2={{#if:{{{birth_date|}}}|{{{birth_date|}}}|{{#invoke:WikidataIB | getValue | rank=best |P569 |name=birth_date |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|}}} |noicon={{{noicon|}}}|{{{birth_date|}}} |df={{{dateformat|dmy}}} }} {{#if:{{{birth_date|}}}||{{#if:{{#invoke:WikidataIB | getValue | rank=best |P570 |name=death_date |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|}}} |noicon={{{noicon|}}} |{{{death_date|}}} | df={{{dateformat|dmy}}} }}|| {{#if:{{#invoke:WikidataIB | getValue | rank=best |P569 |name=death_date |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|}}} |noicon={{{noicon|}}} |{{{death_date|}}} | df={{{dateformat|dmy}}} }}|{{#ifexpr:{{#invoke:WikidataIB|getDatePrecision|P569|qid={{{qid|}}}}}>8|(age {{#expr: trunc ({{#time: Y.md}}-{{#time: Y.md|{{#titleparts:{{wikidata|property|raw|{{{qid|}}}|P569}}|1}}}})}})}}}}}}{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P569}} }} }} }} | |2={{#if:{{{birth_date|}}}|{{{birth_date|}}}|{{#invoke:WikidataIB | getValue | rank=best |P569 |name=birth_date |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|}}} |noicon={{{noicon|}}}|{{{birth_date|}}} |df={{{dateformat|dmy}}} }} {{#if:{{{birth_date|}}}||{{#if:{{#invoke:WikidataIB | getValue | rank=best |P570 |name=death_date |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|}}} |noicon={{{noicon|}}} |{{{death_date|}}} | df={{{dateformat|dmy}}} }}|| {{#if:{{#invoke:WikidataIB | getValue | rank=best |P569 |name=death_date |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|}}} |noicon={{{noicon|}}} |{{{death_date|}}} | df={{{dateformat|dmy}}} }}|{{#ifexpr:{{#invoke:WikidataIB|getDatePrecision|P569|qid={{{qid|}}}}}>8|<!--(age {{#expr: trunc ({{#time: Y.md}}-{{#time: Y.md|{{#titleparts:{{wikidata|property|raw|{{{qid|}}}|P569}}|1}}}})}})-->}}}}}}{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P569}} }} }} }} | ||
|3={{if then show |1={{#invoke:WikidataIB | getValue | rank=best |P19 |qual=P17 |name=birth_place |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|}}} |noicon={{{noicon|}}} | {{{birth_place|}}} }} |2=|3=<span class="birthplace"> |4=</span>}} | |3={{if then show |1={{#invoke:WikidataIB | getValue | rank=best |P19 |qual=P17 |name=birth_place |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|}}} |noicon={{{noicon|}}} | {{{birth_place|}}} }} |2=|3=<span class="birthplace"> |4=</span>}} | ||
}} | }} | ||
Line 54: | Line 54: | ||
| data18 = {{#invoke:WikidataIB | getValue | rank=best |P0 |name=monuments |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|}}} |{{{monuments|}}} }} | | data18 = {{#invoke:WikidataIB | getValue | rank=best |P0 |name=monuments |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|}}} |{{{monuments|}}} }} | ||
| label19 = Residence | |||
| data19 = {{#invoke:WikidataIB | getValue | rank=best |P0 |name=residence |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|}}} |{{{residence|}}} }} | |||
| class19 = {{#if:{{{death_date|}}}{{{death_place|}}}||label}} | |||
| label20 = Nationality | | label20 = Nationality | ||
Line 63: | Line 60: | ||
| label21 = Other names | | label21 = Other names | ||
| data21 = {{#invoke:WikidataIB | getValue | rank=best | |
| data21 = {{#invoke:WikidataIB | getValue | rank=best |P1449 |name=othername |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|}}} |{{{other names|{{{other_names|{{{othername|{{{alias|}}}}}}}}}}}} }} | ||
| class21 = nickname | | class21 = nickname | ||
Line 171: | Line 168: | ||
| label57 = Partner(s) | | label57 = Partner(s) | ||
| data57 = {{#invoke:WikidataIB | getValue | rank=best | |
| data57 = {{#invoke:WikidataIB | getValue | rank=best |P451 |name=partner |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|}}} |{{{partner|{{{domesticpartner|{{{domestic_partner|}}}}}}}}} }} | ||
| label58 = Children | | label58 = Children | ||
Line 201: | Line 198: | ||
| label77 = Position held | | label77 = Position held | ||
| data77 = {{#invoke:WikidataIB | getValue | rank=best |P39 |name=position |
| data77 = {{#invoke:WikidataIB | getValue | rank=best |P39 |name=position |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|}}} |qual=P642,P580,P582 |{{{position_held|}}} }} | ||
| class77 = category | | class77 = category | ||
Line 227: | Line 224: | ||
{{{footnotes}}}</div>}} | {{{footnotes}}}</div>}} | ||
| below = {{ |
| below = {{Edit on Wikidata|noicon={{{noicon|false}}}}} | ||
}}<!-- | }}<!-- | ||
-->{{#invoke:Check for unknown parameters|check|unknown={{main other|]}}|preview = Page using ] with unknown parameter "_VALUE_"|ignoreblank=y | -->{{#invoke:Check for unknown parameters|check|unknown={{main other|]}}|preview = Page using ] with unknown parameter "_VALUE_"|ignoreblank=y | ||
|qid |suppressfields |fetchwikidata |onlysourced |noicon | abovestyle | agent | alias | alma mater | alma_mater | alt | awards | baptised | birth_date | birth_name | birth_place | birthname | boards | body discovered | body_discovered | burial_coordinates | burial_place | callsign | caption | child | children | citizenship | credits | criminal charge | criminal penalty | criminal status | criminal_charge | criminal_penalty | criminal_status | dateformat | death cause | death_cause | death_date | death_place | denomination | disappeared_date | disappeared_place | disappeared_status | domestic_partner | domesticpartner | education | employer | era | ethnicity | family | father | footnotes | height | height_cm | height_ft | height_in | height_m | home town | home_town | homepage | honorific prefix | honorific suffix | honorific_prefix | honorific_suffix | honors | honours | image | image caption | image size | image_caption | image_size | image_upright | imagesize | judicial status | judicial_status | known | known for | known_for | list | misc | misc2 | misc3 | misc4 | misc5 | misc6 | module | module2 | module3 | module4 | module5 | module6 | monuments | mother | movement | name | nationality | native_name | native_name_lang | net worth | net_worth | networth | notable works | notable_works | occupation | opponents | organisation | organization | organizations | other names | other_names | othername | parents | partner | party | position_held | predecessor | pronunciation | refs | relations | relatives | religion | |
|qid |suppressfields |fetchwikidata |onlysourced |noicon | abovestyle | agent | alias | alma mater | alma_mater | alt | awards | baptised | birth_date | birth_name | birth_place | birthname | boards | body discovered | body_discovered | burial_coordinates | burial_place | callsign | caption | child | children | citizenship | credits | criminal charge | criminal penalty | criminal status | criminal_charge | criminal_penalty | criminal_status | dateformat | death cause | death_cause | death_date | death_place | denomination | disappeared_date | disappeared_place | disappeared_status | domestic_partner | domesticpartner | education | employer | era | ethnicity | family | father | footnotes | height | height_cm | height_ft | height_in | height_m | home town | home_town | homepage | honorific prefix | honorific suffix | honorific_prefix | honorific_suffix | honors | honours | image | image caption | image size | image_caption | image_size | image_upright | imagesize | judicial status | judicial_status | known | known for | known_for | list | misc | misc2 | misc3 | misc4 | misc5 | misc6 | module | module2 | module3 | module4 | module5 | module6 | monuments | mother | movement | name | nationality | native_name | native_name_lang | net worth | net_worth | networth | notable works | notable_works | occupation | opponents | organisation | organization | organizations | other names | other_names | othername | parents | partner | party | position_held | predecessor | pronunciation | refs | relations | relatives | religion | resting place | resting place coordinates | resting_place | resting_place_coordinates | restingplace | restingplacecoordinates | salary | signature | signature alt | signature_alt | signature_size | spouse | status | style | successor | television | term | title | URL | website | weight | weight_kg | weight_lb | weight_st | works | years active | years_active | yearsactive | noble_title | military_rank | military_branch }}<!-- | ||
-->{{Main other| | -->{{Main other| | ||
{{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}|]}}<!-- | {{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}|]}}<!-- | ||
Line 238: | Line 235: | ||
-->{{#if:{{{influences|}}}{{{influenced|}}}|]}}<!-- | -->{{#if:{{{influences|}}}{{{influenced|}}}|]}}<!-- | ||
-->{{#if:{{{pronunciation|}}}|]}}<!-- | -->{{#if:{{{pronunciation|}}}|]}}<!-- | ||
-->{{#if:{{{signature|}}}|]}}] | -->{{#if:{{{signature|}}}|]}}]<!-- | ||
-->{{#if:{{{qid|}}}|]}} | |||
}}<includeonly>{{main other|{{#if:{{safesubst:#invoke:Check for unknown parameters|check|unknown=1|preview=1|fetchwikidata|onlysourced|dateformat|noicon|list|suppressfields}}|<!-- Check for locally-defined parameters could go here-->|]}}}}</includeonly> | }}<includeonly>{{main other|{{#if:{{safesubst:#invoke:Check for unknown parameters|check|unknown=1|preview=1|fetchwikidata|onlysourced|dateformat|noicon|list|suppressfields}}|<!-- Check for locally-defined parameters could go here-->|]}}}}</includeonly> | ||
<includeonly>{{main other |]}}</includeonly><noinclude> | <includeonly>{{main other |]}}</includeonly><noinclude> |
Latest revision as of 20:33, 14 September 2024
Infobox person/Wikidata | |
---|---|
The design and content of biographical infoboxes must follow Misplaced Pages's verifiability policy, as well as infobox and biographical style guideline. All content displayed in this template must adhere to the biographies of living persons policy if applicable. Unsourced or poorly sourced contentious material must be removed immediately from the article and its infobox, especially if potentially libellous. |
When adding an infobox using data from Wikidata, please check for consistency with the article and its references, and to address the inconsistencies observed, which can be done by amending the article or the Wikidata entry, or by supplying a better value to the infobox as a local parameter if this is what emerges from the sources. |
This template uses Lua: |
This version of {{Infobox person}} retrieves various parameter values from Wikidata if enabled ("opt-in") as long as that information is sourced on Wikidata to a source other than Misplaced Pages. Editors can provide a local value at the article level to override or prevent specific fields from displaying, i.e., to indicate that those fields are unsuitable for inclusion in that article's infobox. This template has no option/parameter to display unsourced values.
The template calls Module:Wikidata and Module:WikidataIB.
Usage
Basic
Georges Duhamel | |
---|---|
Georges Duhamel, c. 1930 | |
Born | 30 June 1884 Paris |
Died | 13 April 1966 (aged 81) Valmondois |
Resting place | Cemetery of Valmondois |
Occupation | Writer, poet, physician |
Spouse(s) | Blanche Albane |
Children | Antoine Duhamel |
Awards |
|
Signature | |
Position held | president of the Société des gens de lettres (1936–1936) |
Leo Tolstoy | |
---|---|
Л. Н. Толстой в Ясной Поляне. Фото С. М. Прокудина-Горского. 23 мая 1908 года. | |
Born | 28 August 1828 (in Julian calendar) Yasnaya Polyana (Russian Empire) |
Died | 7 November 1910 (in Julian calendar) (aged 82) Astapovo (Russian Empire) |
Occupation | Writer, playwright, philosopher, pacifist, poet |
Works | Anna Karenina, War and Peace See Leo Tolstoy bibliography |
Spouse(s) | Sophia Tolstaya |
Children | Tatiana Sukhotina-Tolstaya, Ilya Tolstoy, Lev Lvovich Tolstoy, Maria L'vovna Tolstaya, Mikhail Tolstoy, Alexandra Tolstaya |
Awards |
|
Website | https://tolstoy.ru/ |
Signature | |
[edit on Wikidata] |
Just use:
{{Infobox person/Wikidata | fetchwikidata=ALL}}
and you should get a Wikidata-filled infobox. (Providing the article is linked to a Wikidata entry containing relevant information) This will by default only fetch information that is sourced on Wikidata. This is an important safeguard for BLPs. The subject's current age (or age at death) will be calculated automatically provided that the dates are sourced and full (i.e. 12 January 1958 not 1958).
General example
{{Infobox person/Wikidata | suppressfields=occupation children | dateformat = dmy | noicon=on ... }}
This will prevent the infobox from displaying the fields for occupation or children. |noicon=on
will suppress the pencil icons in favour of a single "edit on Wikidata" link at the bottom (see Tolstoy, right).
Specific example
Ludwig van Beethoven | |
---|---|
Beethoven pracující na Missa solemnis, obraz Josepha Stielera z roku 1820 | |
Born | Bonn (Holy Roman Empire) |
Baptised | 17 December 1770 |
Died | 26 March 1827 Vienna (Austrian Empire) |
Occupation | Composer |
Works | See list of compositions by Ludwig van Beethoven, WoO, list of compositions by Ludwig van Beethoven by opus number |
Awards | |
Website | https://www.beethoven.de |
Signature | |
In Ludwig van Beethoven (Q255)
{{Infobox person/Wikidata | suppressfields=birth_date | fetchwikidata=ALL | dateformat = dmy }}
This fetches information on place of birth, baptism, death, citizenship, etc. - but not date of birth as that is not known.
Parameters
Parameter | Effect |
---|---|
fetchwikidata | allows a whitelist of fields that may be imported from Wikidata; set to "ALL" for all fields; defaults to none |
suppressfields | allows a blacklist of fields that may be displayed in this infobox; overrides whitelist; defaults to none |
Parameter | Wikidata property |
---|---|
honorific_prefix | |
name | |
honorific_suffix | |
image | image (P18) |
image_upright | |
image_size | |
alt | |
caption | media legend (P2096) |
native_name | name in native language (P1559) |
native_name_lang | |
pronunciation | |
birth_name | birth name (P1477) |
birth_date | date of birth (P569) (can use qualifier sourcing circumstances (P1480) -> circa (Q5727902) if needed) |
birth_place | place of birth (P19) |
baptised | date of baptism (P1636) |
disappeared_date | |
disappeared_place | |
disappeared_status | |
death_date | date of death (P570) (can use qualifier sourcing circumstances (P1480) -> circa (Q5727902) if needed) |
death_place | place of death (P20) |
death_cause | cause of death (P509) |
body_discovered | |
resting_place | place of burial (P119) |
resting_place_coordinates | |
burial_place | |
burial_coordinates | |
monuments | |
nationality | country of citizenship (P27) |
other_names | nickname (P1449) |
citizenship | country of citizenship (P27) |
education | academic degree (P512) |
alma_mater | educated at (P69) |
occupation | occupation (P106) |
years_active | |
era | |
employer | employer (P108) |
organization | |
agent | |
known_for | |
notable_works | notable work (P800) |
style | genre (P136) |
home_town | |
salary | |
net_worth | |
height | |
weight | |
television | |
title | |
term | |
predecessor | |
successor | |
party | member of political party (P102) |
movement | |
opponents | |
boards | |
criminal_charge | |
criminal_penalty | |
criminal_status | |
spouse | spouse (P26) |
partner | unmarried partner (P451) |
children | child (P40) |
parents | father (P22), mother (P25) |
mother | |
father | |
relatives | relative (P1038) |
family | sibling (P3373) |
callsign | |
awards | award received (P166) |
website | official website (P856) |
military_rank | military or police rank (P410) |
military_branch | military branch (P241) |
noble_title | noble title (P97) |
module | |
module2 | |
module3 | |
module4 | |
module5 | |
module6 | |
signature | signature (P109) |
signature_size | |
signature_alt | |
footnotes | |
qid | Should be used only in drafts (and removed when they are published) and documentation |
TemplateData
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Infobox person in articles based on its TemplateData.TemplateData for Infobox person
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
fetchwikidata | fetchwikidata | no description | Unknown | optional |
Tracking categories
- Category:Infobox person Wikidata using qid (3) – pages in article space using
|qid=
See also
- {{Infobox person}}
Infoboxes using Wikidata | |
---|---|
|
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template. Categories: