Template:UK National Archives ID/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

This template generates an external link to a page listing associated archival material at the UK National Register of Archives (NRA).

One parameter:

{{UK National Archives ID | ID }}
{{UK National Archives ID | id= ID }}

Two parameters:

{{UK National Archives ID | ID | NAME }}
{{UK National Archives ID | id= ID | name= NAME }}

Three parameters:

{{UK National Archives ID | ID | NAME | ACCESS DATE }}
{{UK National Archives ID | id= ID | name= NAME | accessdate= ACCESS DATE }}

Using Wikidata property (P3029):

{{UK National Archives ID}}
{{UK National Archives ID | name= NAME }}
{{UK National Archives ID | name= NAME | accessdate= ACCESS DATE }}

Instructions

[edit source]

Add the template to the "external links" section of the article, or use it in <ref></ref> tags.

To use this template, first search for the NRA page relating to the organisation, person, family or place.

This will often lead to a list of possible matches. If the one you want (e.g. that for George Orwell) is there, click through to the relevant page. The id is the string with which the URL ends, after ID=, e.g. here F39029.

This template replaces {{NRA}}, which uses a deprecated form of ID.

Examples

[edit source]

https://discovery.nationalarchives.gov.uk/details/c/F39029

One parameter

[edit source]

Usage:

{{UK National Archives ID | F39029 }}
{{UK National Archives ID | id= F39029 }}

Output:

Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

Two parameters

[edit source]

Usage:

{{UK National Archives ID | F39029 | George Orwell }}
{{UK National Archives ID | id= F39029 | name= George Orwell }}

Output:

Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

Three parameters

[edit source]

Usage:

{{UK National Archives ID | F39029 | George Orwell | 13 August 2018 }}
{{UK National Archives ID | id= F39029 | name= George Orwell | accessdate= 13 August 2018 }}

Output:

Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

No ID in template or Wikidata

[edit source]

Usage:

{{UK National Archives ID}}

Output:

Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).

TemplateData

[edit source]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:UK National Archives ID in articles based on its TemplateData.

TemplateData for UK National Archives ID

This template generates an external link to a page listing associated archival material at the UK National Register of Archives (NRA).

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
IDid 1

ID string used in the URL, defaults to value in Wikidata

Default
Wikidata property P3029
Example
F39029
Stringoptional
Namename 2

Name displayed in the link text. If not specified it defaults to the article's title, without disambiguation.

Default
{{PAGENAMEBASE}}
Example
George Orwell
Stringoptional
Access dateaccessdate 3

Access date for citation template.

Example
13 August 2018
Dateoptional

Tracking category

[edit source]