Template:Archival records/doc

From blackwiki
Jump to navigation Jump to search

Template:Uses Wikidata

This template is intended for use in the External Links section. It displays the location of a notable figure's archives, identifiers, access conditions, and a link to the digital description. It uses the Wikidata property Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P485).

Usage

Placement

This template should normally be placed at the top of the ==External links== section at the end of an article, if the article has a section for external links. If no such section exists, then please place it at the top of the last section in the article.

Wikidata use

This template can call the following parameters from Wikidata, if they are available. Alternatively, manual entry is possible for all fields, and will override any Wikidata values.

Wikidata values
Parameter Wikidata entity Notes
location Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P485) property:Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P485)
inventory_number Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P217) qualifier for Property:Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P485)
description_URL Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P973) qualifier for Property:Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P485)

Simple

To use this template, please make data available for at least the location and description_URL parameters. These values may be called from Wikidata (if present) or manually entered. Manual entry will override any Wikidata values.

Wikidata-aware

If Wikidata values exist for location and description_URL, use:

{{Archival records}}

You can include the title parameter to modify the source link text (defaults to "digital description").

For example, the following code on Ursula Franklin's page (Wikidata item Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q77729)) will produce:

{{Archival records|title=Ursula Franklin fonds}}

This example can also be formatted in a more human-readable way:

{{Archival records
| title                 = Ursula Franklin fonds
}}

Manual entry

If entering manually, use:

{{Archival records
| title                 = <!--title will link out to description_URL under label:Source-->
| location              = <!--leave blank if Wikidata value for property:P485(archives at) exists; otherwise, enter manually-->
| description_URL       = <!--leave blank if Wikidata value for qualifier:P973(described at URL) exists; otherwise, enter manually (permalink if possible)-->
}}

For example, the following code will produce:

{{Archival records
| title                 = Ursula Franklin fonds
| location              = University of Toronto Archives & Records Management
| description_URL       = https://discoverarchives.library.utoronto.ca/index.php/ursula-martius-franklin-fonds
}}

Full

{{Archival records
| title                 = <!--title will link out to given description_URL under label:Source-->
| location              = <!--leave blank if Wikidata value for property:P485(archives at) exists; otherwise, enter manually-->
| inventory_number      = <!--leave blank if Wikidata value for qualifier:P217(inventory number) exists; otherwise, enter manually-->
| description_URL       = <!--leave blank if Wikidata value for qualifier:P973(described at URL) exists; otherwise, enter manually (permalink if possible)-->
| dates                 = <!--enter if desired, but if prone to change, consider future data maintenance needs-->
| access_conditions     = <!--open or open with exceptions-->
}}

TemplateData

TemplateData documentation used by VisualEditor and other tools
See the monthly parameter usage report for this template.

TemplateData for Archival records

Sidebar for use in External Links section. Uses Wikidata property "Archives at" (P485). Displays location of archives, identifiers, and access level.

Template parameters

ParameterDescriptionTypeStatus
titletitle

Title of archival collection, including highest level of description. If description URL is also given, title will link out to given URL in "Source".

Example
John Doe fonds, Jane Doe papers
Stringrequired
Fetchwikidatafetchwikidata

no description

Unknownoptional
Suppressfieldssuppressfields

no description

Unknownoptional
locationlocation institution archives at

Institution which holds the archives. If left blank AND Wikidata entry exists for "archives at" (P485) property, field will autofill. Otherwise, enter manually.

Example
University of Toronto Archives
Stringsuggested
inventory numberinventory_number identifier accession number

Unique (usually alphanumeric) identifier(s) assigned to collection. If left blank AND Wikidata entry exists for "inventory number" (P217) qualifier, field will autofill. Otherwise, enter manually.

Stringsuggested
digital descriptiondescription_URL

URL of digital description (permalink preferred). If left blank AND Wikidata entry exists for "described at URL" (P973) qualifier, field will autofill. Otherwise, enter manually.

URLsuggested
datesdates

Time period for material creation

Example
1934–2014
Stringsuggested
accessaccess_conditions access permissions

Conditions governing access to material

Example
'open', 'open with exceptions', 'closed'
Stringsuggested