Template:Authority control: Difference between revisions

From Vigyanwiki
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}}
{{documentation}}
</noinclude>{{#switch:{{NAMESPACE}}
</noinclude>[[Category: Templates Vigyan Ready]]
||{{ns:14}} = <!-- Only articles and categories.-->{{#invoke:Check for unknown parameters|check|arts|suppress|qid|qid2|qid3|qid4|qid5|state|showblankpositional=1|unknown=[[Category:Pages using authority control with parameters|_VALUE_]]|preview=Page using [[Template:Authority control]] with "_VALUE_", please move this to Wikidata if possible}}
}}

Revision as of 12:10, 17 January 2023

Template documentation

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

Victor Hugo:

{{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}}

Alexander Graham Bell:

{{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}}

Harry Forbes Witherby:

{{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}}
    • shows the template collapsed to the title bar if there is a {{navbox}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

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:

ParameterSectionAppears asWikidata propertyTracking categories and page counts
ArticlesFaulty IDs
AAGArt galleries and museumsAucklandP3372: Script error: The module returned a nil value. It is supposed to return an export table.0 [create]0 [create]
ACM-DLScientific databasesAssociation for Computing MachineryP864: Script error: The module returned a nil value. It is supposed to return an export table.0 [create]0 [create]
ADBBiographical dictionariesAustraliaP1907: Script error: The module returned a nil value. It is supposed to return an export table.0 [create]0 [create]
admiraltyLighthouse identifiersAdmiraltyP3562: Script error: The module returned a nil value. It is supposed to return an export table.0 [create]0 [create]
AGSAArt galleries and museumsSouth AustraliaP6804: Script error: The module returned a nil value. It is supposed to return an export table.0 [create]0 [create]
ARLHSLighthouse identifiersARLHSP2980: Script error: The module returned a nil value. It is supposed to return an export table.0 [create]0 [create]
autores.uyBiographical dictionariesUruguayP2558: Script error: The module returned a nil value. It is supposed to return an export table.0 [create]0 [create]
AWRBiographical dictionariesAustralian Women's RegisterP4186: Script error: The module returned a nil value. It is supposed to return an export table.0 [create]0 [create]
BIBSYSNational librariesNorwayP1015: Script error: The module returned a nil value. It is supposed to return an export table.0 [create]0 [create]
BildindexArt research institutesBildindex (Germany)P2092: Script error: The module returned a nil value. It is supposed to return an export table.0 [create]0 [create]
BNCNational libraries