Difference between revisions of "Template:Infobox organization/Wikidata/doc"
imported>Uzume (→top: -Module:Wikidata) |
imported>Gonnym (update lua usage) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Template categories go at the bottom of this page and interwikis go in Wikidata. --> | <!-- Template categories go at the bottom of this page and interwikis go in Wikidata. --> | ||
| − | {{Lua|Module: | + | {{Lua|Module:Check for unknown parameters|Module:InfoboxImage|Module:WikidataIB}} |
{{Uses Wikidata|P18|P154|P41|P242|P1813|P898|P138|P31|P1451|P3712|P1037|P169|P488|P37|P571|P112|P740|P576|P749|P361|P127|P355|P159|P276|P17|P625|P2769|P2139|P2402|P2403|P1128|P2124|P166|P856|P1365}} | {{Uses Wikidata|P18|P154|P41|P242|P1813|P898|P138|P31|P1451|P3712|P1037|P169|P488|P37|P571|P112|P740|P576|P749|P361|P127|P355|P159|P276|P17|P625|P2769|P2139|P2402|P2403|P1128|P2124|P166|P856|P1365}} | ||
{{warning|When adding an infobox using data from Wikidata, please '''check for consistency''' with the article and its references, and '''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.}} | {{warning|When adding an infobox using data from Wikidata, please '''check for consistency''' with the article and its references, and '''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.}} | ||
Latest revision as of 12:17, 15 September 2020
| 40px | This is a documentation subpage for Template:Infobox organization/Wikidata. It contains usage information, categories and other content that is not part of the original template page. |
| 30px | This template uses Lua: |
| 40x40px | When adding an infobox using data from Wikidata, please check for consistency with the article and its references, and 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 version of {{Infobox organisation}} 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
| Coordinates | Lua error in Module:Coordinates at line 611: attempt to index field 'wikibase' (a nil value).Template:WikidataScript error: No such module "EditAtWikidata". |
|---|---|
Just use:
{{infobox organization/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.
General example
{{infobox organisation/Wikidata
| suppressfields=flag official_language
| noicon=on
...
}}
This will prevent the infobox from displaying the fields for flag or . |noicon=on will suppress the pencil icons in favour of a single "edit on Wikidata" link at the bottom (see WHO, right).
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 |
See also