Template:Infobox expedition/Wikidata/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

This version of {{Infobox expedition}} 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.

This template is under development as part of WikiProject Te Papa Research Expeditions.

The template calls Module:Wikidata and Module:WikidataIB.

Three Kings Islands 1970
Chatham Islands Expedition 1954
Franklin's Lost Expedition 1845-48

Just use:

{{Infobox expedition/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 Biographies of Living Persons.

General example

[edit source]
{{Infobox expedition/Wikidata
 | suppressfields=country participants
 | dateformat = dmy
 | noicon=on
...
}}

This will prevent the infobox from displaying the fields for country or participants. |noicon=on will suppress the pencil icons in favour of a single "edit on Wikidata" link at the bottom.

Parameters

[edit source]
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
Subject-specific parameters
Parameter Wikidata property
name
image Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P18)
image_upright
image_size
alt
caption Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P2096)
native_name Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P1559)
country Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P17)
location Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P276)
country_of_origin Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P495)
start_point Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P1427)
start_time Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P580)
destination_point Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P1444)
end_time Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P582)
goal Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P3712)
leader Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P1037)
organiser Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P664)
sponsor Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P859)
funder Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P8324)
affiliation Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P1416)
vessels Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P1876)
participants Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P710)
routemap Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P15)
routemap_size
routemap_alt
footnotes

TemplateData

[edit source]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Infobox expedition/Wikidata in articles based on its TemplateData.

TemplateData for Infobox expedition/Wikidata

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
fetchwikidatafetchwikidata

no description

Unknownoptional

See also

[edit source]