Difference between revisions of "Template:Infobox scientist/Wikidata/doc"
imported>Idsmoend |
imported>Zyxw |
||
| Line 93: | Line 93: | ||
{{UF-hcard-person}} | {{UF-hcard-person}} | ||
| − | ==Tracking | + | == Tracking category == |
* {{clc|Pages using infobox scientist/Wikidata with unknown parameters}} | * {{clc|Pages using infobox scientist/Wikidata with unknown parameters}} | ||
| Line 100: | Line 100: | ||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
| − | [[Category:People and person infobox templates | + | [[Category:People and person infobox templates|Scientist]] |
| − | |||
[[Category:Science and nature infobox templates|Scientist]] | [[Category:Science and nature infobox templates|Scientist]] | ||
[[Category:Technology and applied science infobox templates|Scientist]] | [[Category:Technology and applied science infobox templates|Scientist]] | ||
[[Category:Biographical templates usable as a module|Scientist]] | [[Category:Biographical templates usable as a module|Scientist]] | ||
[[Category:Infobox templates with module parameter|Scientist]] | [[Category:Infobox templates with module parameter|Scientist]] | ||
| + | [[Category:Infobox templates using Wikidata]] | ||
| + | [[Category:Templates that add a tracking category]] | ||
}}</includeonly> | }}</includeonly> | ||
Revision as of 05:08, 11 March 2020
| This is a documentation subpage for Template:Infobox scientist/Wikidata. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
Template:Person infobox header Template:Uses infobox person/Wikidata
| 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. |
{{Infobox scientist/Wikidata}} may be used to summarize information about a person who is a scientist, medic, engineer, mathematician or (scientific) academic.
This template may also be used as a module (sub-template) of {{Infobox person/Wikidata}}; see Wikipedia:Infobox modules for guidance on such usage.
This version of {{Infobox scientist}} 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.
Contents
Usage
Basic
| Gilean McVean | |
|---|---|
| Spouse(s) | Script error: No such module "If empty". |
| Partner(s) | Script error: No such module "If empty". |
| Website | Script error: No such module "If empty". |
| Scientific career | |
| Thesis URL | Lua error in Module:WikidataIdentifiers at line 24: attempt to index field 'wikibase' (a nil value). |
Just use:
{{infobox scientist/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 BLPs. The subject's current age (or age at death) will be calculated automatically provided that the dates are sourced and full (i.e. 12 January 1958 not 1958).
General example
{{infobox scientist/Wikidata
| suppressfields=occupation children
| dateformat = dmy
| noicon=false
...
}}
This will prevent the infobox from displaying the fields for occupation or children. |noicon=false will unsuppress the pencil icons instead of a single "edit on Wikidata" link at the bottom (see McVean, 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 |
| noicon | shuold the pencils be shown false means they should, default is they should not ("on") |
| list | Should multiple items be shown in a list format (use value "ubl" for un-bulleted list) or comma separated (default) |
In addition to the parameters available from {{Infobox person/Wikidata}} the following scientist specific parameters are available
See also
Microformats
Tracking category