Template:Infobox deity/Wikidata/doc

From WWII Archives

Revision as of 21:27, 28 September 2020 by w>Artoria2e5 (→‎Usage)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This version of {{Infobox deity}} retrieves various parameter values from Wikidata if enabled ("opt-in"), but only in the absence of a locally supplied value. The template calls Module:Wikidata and Module:WikidataIB.

It allows editors at the article level to blacklist various fields so that they do not display. This makes a positive statement that those fields are unsuitable for inclusion in that article's infobox.

Usage

Basic

Lua error in Module:WikidataIB at line 555: attempt to index field 'wikibase' (a nil value).
Lua error in Module:Wikidata at line 448: attempt to index field 'wikibase' (a nil value).
Lua error in Module:Wikidata at line 800: attempt to index field 'wikibase' (a nil value).

Just use:

{{infobox deity/Wikidata | fetchwikidata=ALL}}

and you should get a Wikidata-filled infobox! (Providing the article is linked to a Wikidata entry containing relevant information!). The |onlysourced= is set to "yes" by default.

Fetching un-sourced info

Lua error in Module:WikidataIB at line 555: attempt to index field 'wikibase' (a nil value).
Lua error in Module:Wikidata at line 448: attempt to index field 'wikibase' (a nil value).
Lua error in Module:Wikidata at line 800: attempt to index field 'wikibase' (a nil value).

Just use:

{{infobox deity/Wikidata | fetchwikidata=ALL | onlysourced=no}}

This can be used outside of BLPs if the editor wishes to see all of the information, sourced and unsourced, available on Wikidata. Generally, though, it is better not to use |onlysourced= as it will help to reduce the effects here of unsourced vandalism on Wikidata.

Using custom values

In addition to above, you can also add custom values, or use custom values instead of wikidata values.

Lua error in Module:WikidataIB at line 555: attempt to index field 'wikibase' (a nil value).
Lua error in Module:Wikidata at line 448: attempt to index field 'wikibase' (a nil value).
Lua error in Module:Wikidata at line 800: attempt to index field 'wikibase' (a nil value).
AffiliationAvatar of Vishnu
{{Infobox deity/Wikidata
 | fetchwikidata=ALL
 | affiliation = Avatar of Vishnu
}}

Parameters

Wikidata-specific 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
onlysourced rejects Wikidata that is unsourced or only imported from a Wikipedia; values: yes/true/1 or no/false/0; defaults to yes
Subject-specific parameters
Parameter Wikidata property
image Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P18)
alt
caption Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P2096)
birth_name
birth_date Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P569)
birth_place Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P19)
death_date Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P570)
death_place Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P20)
death_cause
resting_place
resting_place_coordinates
burial_place
burial_coordinates
monuments
other_names
education Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P69)
era
height
spouse Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P26)
partner
children Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P40)
parents
mother
father

Tracker