Template:Infobox organization/Wikidata/sandbox
![]() | This is the template sandbox page for Template:Infobox organization/Wikidata (diff). See also the companion subpage for test cases. |
![]() | This template uses Lua: |
![](http://upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Wikidata-logo.svg/40px-Wikidata-logo.svg.png)
image (P18) (see uses)
logo image (P154) (see uses)
flag image (P41) (see uses)
locator map image (P242) (see uses)
short name (P1813) (see uses)
IPA transcription (P898) (see uses)
named after (P138) (see uses)
instance of (P31) (see uses)
motto text (P1451) (see uses)
has goal (P3712) (see uses)
director / manager (P1037) (see uses)
chief executive officer (P169) (see uses)
chairperson (P488) (see uses)
official language (P37) (see uses)
inception (P571) (see uses)
founded by (P112) (see uses)
location of formation (P740) (see uses)
dissolved, abolished or demolished date (P576) (see uses)
parent organization (P749) (see uses)
part of (P361) (see uses)
owned by (P127) (see uses)
has subsidiary (P355) (see uses)
headquarters location (P159) (see uses)
location (P276) (see uses)
country (P17) (see uses)
coordinate location (P625) (see uses)
budget (P2769) (see uses)
total revenue (P2139) (see uses)
total expenditure (P2402) (see uses)
total assets (P2403) (see uses)
employees (P1128) (see uses)
affiliation (P1416) (see uses)
member count (P2124) (see uses)
number of volunteers (P6125) (see uses)
award received (P166) (see uses)
official website (P856) (see uses)
replaces (P1365) (see uses)
![]() | 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
[edit]Basic
[edit]![]() | |
![]() | |
Abbreviation | WHO |
---|---|
Formerly | International Office of Public Hygiene |
Established | 7 April 1948 (76 years ago) |
Types | specialized agency of the United Nations, open-access publisher |
Headquarters | Geneva |
Country | Switzerland, Philippines |
Official Languages | English language, Arabic, Spanish language, French language, Russian language |
Directors | Tedros Adhanom Ghebreyesus |
Parent organisations | United Nations Economic and Social Council, United Nations |
Subsidiaries | World Health Organization Regional Office for Africa, Pan American Health Organization, World Health Organization Regional Office for Europe, Alliance for Health Policy and Systems Research, World Health Organization (France), World Health Organization Regional Office for South-East Asia, WHO Regional Office for the Eastern Mediterranean, World Health Organization Regional Office for the Western Pacific |
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
[edit]{{infobox organization/Wikidata
| fetchwikidata=ALL
| suppressfields=flag official_language
| noicon=on
| dateformat=mdy
...
| chairperson=Peter Pan
}}
This will fetch all available data, prevent the infobox from displaying the fields for flag or official language. |noicon=on
will suppress the pencil icons in favour of a single "edit on Wikidata" link at the bottom (see WHO, right). |dateformat=mdy
will change the date format to mdy. In addition, every parameter can be used to overwrite the data from Wikidata like the chairperson in the example.
Parameters
[edit]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 |
dateformat | allows to set the date format for established and dissolved; values: dmy, mdy, or y; defaults to dmy |
noicon | "ON" will suppress the pencil icons in favour of a single "edit on Wikidata" link at the bottom |
qid | allows to set a special Wikidata ID, defaults to the current Wikipedia-Page |