Template:Infobox person/Wikidata/doc

From Fallenchungus Wiki
Jump to navigation Jump to search

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 Wikipedia. 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
Leo Tolstoy

Just use: <syntaxhighlight lang="wikitext">

Infobox person/Wikidata/doc

</syntaxhighlight> 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

<syntaxhighlight lang="wikitext">

Infobox person/Wikidata/doc

</syntaxhighlight> 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

In Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (Q255) <syntaxhighlight lang="wikitext">

Infobox person/Wikidata/doc

</syntaxhighlight>

This fetches information on place of birth, baptism, death, citizenship, etc. - but not date of birth as that is not known.

Parameters

{{{honorific_prefix}}}
{{{name}}}
{{{honorific_suffix}}}
{{{native_name}}}
[[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}|upright={{{image_upright}}}]]
{{{caption}}}
Pronunciation{{{pronunciation}}}
Born{{{birth_name}}}
{{{birth_date}}}
{{{birth_place}}}
Baptised{{{baptised}}}
Disappeared{{{disappeared_date}}}
{{{disappeared_place}}}
Status{{{disappeared_status}}}
Died{{{death_date}}}
{{{death_place}}}
Cause of death{{{death_cause}}}
Body discovered{{{body_discovered}}}
Resting place{{{resting_place}}}
{{{resting_place_coordinates}}}
Monuments{{{monuments}}}
Nationality{{{nationality}}}
Other names{{{other_names}}}
Citizenship{{{citizenship}}}
Education{{{education}}}
Alma mater{{{alma_mater}}}
Occupation{{{Occupation}}}
Years active{{{years_active}}}
Era{{{era}}}
Employer{{{employer}}}
Organisation{{{organisation}}}
Agent{{{agent}}}
Known for{{{known_for}}}
Works{{{notable_works}}}
See {{{list_of_works}}}
Style{{{style}}}
Television{{{television}}}
Height{{{height}}}
Title{{{title}}}
Term{{{term}}}
Predecessor{{{predecessor}}}
Successor{{{successor}}}
Political party{{{party}}}
Movement{{{movement}}}
Opponent(s){{{opponents}}}
Board member of{{{boards}}}
Criminal charge{{{criminal_charge}}}
Criminal penalty{{{criminal_penalty}}}
Criminal status{{{criminal_status}}}
Spouse(s){{{spouse}}}
Partner(s){{{domestic_partner}}}
Children{{{children}}}
Parent(s){{{parents}}}
Relatives{{{relatives}}}
Family{{{family}}}
Call sign{{{callsign}}}
Awards{{{awards}}}
Honours{{{honours}}}
Website{{{website}}}
{{{module}}}
{{{module2}}}
{{{module3}}}
{{{module4}}}
{{{module5}}}
{{{module6}}}
Signature
[[File:{{{signature}}}|{{{signature_size}}}|alt={{{signature_alt}}}|class=infobox-signature skin-invert]]
Notes
{{{footnotes}}}
Position held{{{position_held}}}
Rank{{{military_rank}}}
Branch{{{military_branch}}}
Titles{{{noble_title}}}


Wikidata-specific parameters
For more information, see Module:WikidataIB § Parameters to getValue.
Parameter Effect
qid Should be used only in drafts (and removed when they are published) and documentation
fetchwikidata Allows a whitelist of fields that may be imported from Wikidata; set to "ALL" for all fields; defaults to none
fwd Alias for |fetchwikidata=. It is only used in this template with the image caption from the Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P2096) qualifier of Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P18)
suppressfields Allows a blacklist of fields that may be displayed in this infobox; overrides whitelist; defaults to none
onlysourced A boolean which will filter out Wikidata values that are unsourced or only sourced to Wikipedia. This 2018 RFC requires that Wikidata values displayed in article infoboxes must be sourced. Values no, false and 0 are all false; anything else is true.
noicon A boolean to suppress the trailing "Edit this on Wikidata" icons for all fields extracted from Wikidata, replacing them a single "edit on Wikidata" link at the lower right corner of the infobox. The values no, false and 0 are all false (shows the icons); anything else is true (suppresses the icons).
list The name of a template that the list of multiple values is then passed through. Examples include "cslist", "hlist", "ubl", "blist", "olist", "p-1". A special value, prose, produces "1, 2, 3 and 4". It is only used in this template with Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P69), Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P106), Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P108), Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P800), Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P1455), and Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P166).
Subject-specific parameters
Parameter Wikidata property
honorific_prefix
name
honorific_suffix
native_name Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P1559)
native_name_lang
image Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P18)
image_upright
image_size
alt
caption Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P2096) qualifier of Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P18)
pronunciation
birth_name Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P1477)
birth_date Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P569) (can use qualifier Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P1480) -> Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (Q5727902) if needed)
birth_place Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P19)
baptised
baptized
Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P1636)
disappeared_date
disappeared_place
disappeared_status
death_date Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P570) (can use qualifier Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P1480) -> Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (Q5727902) if needed)
death_place Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P20)
death_cause
body_discovered
resting_place
burial_place
Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P119)
resting_place_coordinates
burial_coordinates
monuments
nationality
other_names Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P1449)
citizenship
education Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P512)
alma_mater Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P69)
occupation Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P106)
years_active
era
employer Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P108)
organization
agent
known_for
notable_works Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P800), Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P1455)
style Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P136)
television
height
title
office
term
predecessor
successor
party Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P102)
movement
opponents
boards
criminal_charge
criminal_penalty
criminal_status
judicial_status
spouse Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P26)
partner Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P451)
children Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P40)
parents
father
mother
Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P22), Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P25)
relatives Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P3373)
family Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P53)
callsign
awards Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P166)
honors
honours
website
homepage
Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P856), Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P1581)
URLs extracted from Wikidata are formatted like the output of Template:URL, but using Module:WikidataIB § Function url2 instead. Official website URLs not in Wikidata can still be added to this infobox manually with |website={{URL|https://example.com/}}.
module
module2
module3
module4
module5
module6
position_held Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P39)
This parameter is not available in {{Infobox person}}.
military_rank Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P410)
This parameter is not available in {{Infobox person}}.
military_branch Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P241)
This parameter is not available in {{Infobox person}}.
noble_title Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P97)
This parameter is not available in {{Infobox person}}.
signature Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P109)
signature_size
signature_alt
footnotes

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/Wikidata in articles based on its TemplateData.

TemplateData for Infobox person/Wikidata

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
fetchwikidatafetchwikidata

no description

Unknownoptional

Tracking categories

categories used in {{Infobox person/Wikidata}} and {{Infobox person}}
categories used in {{Infobox person/Wikidata}} but not {{Infobox person}}

See also