Template:Authority control: Difference between revisions
m (1 revision imported from alpha:Template:Authority_control) |
No edit summary |
||
| Line 1: | Line 1: | ||
{{#invoke:Authority control|authorityControl}}<noinclude> | {{#invoke:Authority control|authorityControl}}<noinclude> | ||
{{ | {{documentation}} | ||
</noinclude> | </noinclude>[[Category: Templates Vigyan Ready]] | ||
Revision as of 12:10, 17 January 2023
| This template is used on approximately 1,990,000 pages, or roughly 4814% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
| This template uses Lua: |
| Related pages |
|---|
Description
This metadata template links Wikipedia articles to various library (and other) catalogue systems, for biographies and other topics.
This template draws most of its values from Wikidata, but they can be overridden by locally entered data. Adding the data to Wikidata is preferable.
If there is no information in Wikidata for the specific subject, an empty instance of this template will be dormant, meaning it will be invisible on the rendered page. Thus, using this template on a page with no authority information is harmless.
An empty instance of this template stays dormant in an article, until values are added to Wikidata, when it will then display them, so this template should be added to all biographies, whether or not there are authority control identifiers in Wikidata already.
User pages
The template may also be placed on user pages, but then data must be entered locally.
Data types
Wikidata content is used as fallback for all identifiers.
The template validates digits for all values and shows an error if the check fails.
Wherever possible, the template also generates a link to WorldCat Identities, using VIAF or LCCN values, or manually via |WORLDCATID=.
Position
As a metadata template, the Authority control template should be placed after the external links section and navigation templates, right before the categories.
Usage
As a general guideline:
- 1: insert the empty version,
- 2: click "Show preview" to see which sources are automatically pulled from Wikidata,
- 3a: if you know of more sources, add them in the template using their named parameter,
- 3b: alternatively, consider adding those sources to the article's "Wikidata item", so that all versions of Wikipedia will automatically benefit.
In addition to the mixed-case parameter names listed on this page, the template also supports all-lowercase alias names of all parameters (except for deprecated ones).
Examples
{{Authority control |VIAF=9847974 |LCCN=n/79/091479 |ISNI=0000 0001 2120 0982 |GND=118554654 |SELIBR=206651 |SUDOC=026927608 |BNF=cb11907966z |BIBSYS=90054094 |ULAN=500032572 |HDS=011461 |MBA=c0c99c8f-4779-4c35-9497-67d60a73310a |NLA=35212404 |NDL=00443985 |NKC=jn19990003739 |Léonore=LH//1320/26 |ICCU=IT\ICCU\CFIV\000163 |RSL=000081185 |BNE=XX874892 |CINII=DA00460099 |RKDartists=40381}}
{{Authority control |VIAF=59263727 |LCCN=n/79/113947 |ISNI=0000 0000 8138 6064 |GND=119408643 |SUDOC=066924146 |BNF=13746617f |MBA=9dd93d09-24b4-41f1-a48b-ef48b07499c3 |NDL=00620343}}
{{Authority control |VIAF=66861474 |LCCN=n/87/142671 |ISNI=0000 0001 0911 2808 |GND=117421863 |SUDOC=090162897}}
Rendering
The template is split into seven sections: "General", "National libraries", "Art galleries and museums", "Art research institutes", "Biographical dictionaries", "Scientific databases", and "Other". If all identifiers are in the same section, |state= is ignored, and the template displays on one line:
Otherwise, the template displays as a navbox with a header:
Initial visibility: currently defaults to autocollapse
To set this template's initial visibility, the |state= parameter may be used:
|state=collapsed:{{Authority control|state=collapsed}}to show the template collapsed, i.e., hidden apart from its title bar|state=expanded:{{Authority control|state=expanded}}to show the template expanded, i.e., fully visible|state=autocollapse:{{Authority control|state=autocollapse}}
If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.
Wikidata and tracking categories
The template can get its information from the following properties on Wikidata:
| Parameter | Section | Appears as | Wikidata property | Tracking categories and page counts | |
|---|---|---|---|---|---|
| Articles | Faulty IDs | ||||
| AAG | Art galleries and museums | Auckland | P3372: Script error: The module returned a nil value. It is supposed to return an export table. | 0 [create] | 0 [create] |
| ACM-DL | Scientific databases | Association for Computing Machinery | P864: Script error: The module returned a nil value. It is supposed to return an export table. | 0 [create] | 0 [create] |
| ADB | Biographical dictionaries | Australia | P1907: Script error: The module returned a nil value. It is supposed to return an export table. | 0 [create] | 0 [create] |
| admiralty | Lighthouse identifiers | Admiralty | P3562: Script error: The module returned a nil value. It is supposed to return an export table. | 0 [create] | 0 [create] |
| AGSA | Art galleries and museums | South Australia | P6804: Script error: The module returned a nil value. It is supposed to return an export table. | 0 [create] | 0 [create] |
| ARLHS | Lighthouse identifiers | ARLHS | P2980: Script error: The module returned a nil value. It is supposed to return an export table. | 0 [create] | 0 [create] |
| autores.uy | Biographical dictionaries | Uruguay | P2558: Script error: The module returned a nil value. It is supposed to return an export table. | 0 [create] | 0 [create] |
| AWR | Biographical dictionaries | Australian Women's Register | P4186: Script error: The module returned a nil value. It is supposed to return an export table. | 0 [create] | 0 [create] |
| BIBSYS | National libraries | Norway | P1015: Script error: The module returned a nil value. It is supposed to return an export table. | 0 [create] | 0 [create] |
| Bildindex | Art research institutes | Bildindex (Germany) | P2092: Script error: The module returned a nil value. It is supposed to return an export table. | 0 [create] | 0 [create] |
| BNC | National libraries | ||||