Template:Infobox expedition/Wikidata
Infobox expedition/Wikidata | |
|---|---|
| Error creating thumbnail: File missing | 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. |
| File:Lua-Logo.svg | This template uses Lua: |
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.
Usage
[edit source]Basic
[edit source]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]| 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 |
TemplateData
[edit source]TemplateData for Infobox expedition
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| fetchwikidata | fetchwikidata | no description | Unknown | optional |