Template:Canmore/doc

This template is used to provide a link to the Canmore online database of Scotland's National Record of the Historic Environment (http://canmore.org.uk/) for a specified monument record in Scotland. Formerly maintained by RCAHMS, since 2015 it is maintained by Historic Environment Scotland.

The database record contains nearly 320,000 records on buildings, archaeological, industrial and maritime sites across Scotland.

Required parameter

 * num: The monument, collection or event number from the database.

Optional parameters

 * class: to link to the 'collection', 'event' and 'gallery' pages of the website, for example: . Do not use for 'site' which is the default url. Accepted values are:
 * C = collection
 * E = event
 * G = gallery
 * desc: The name of the database entry. If this parameter is not used default text "Monument No." will be displayed instead. (or if using 'class' the default text will be "Collection No.", "Event ID." or "Gallery")
 * access-date: The date information was retrieved from the database. Alias: accessdate
 * mode: defaults to cs1; set to cs2 to provide consistency with citation style 2, as produced by
 * postscript: controls the closing punctuation for the citation; defaults to a period ; for no terminating punctuation, set to none, however using cs2 does this automatically
 * fewer-links: Use yes to remove repeated links to 'Historic Environment Scotland' where the template is used more than once in an article, or if similar templates with the same links are used (e.g. Historic Environment Scotland)

Examples
gives:

gives:

gives:

gives:

gives:

gives:

Template data
{	"description": "Provides an external link to an entry on the Canmore database", "params": { "num": { "label": "num", "description": "the Canmore ID number from the database", "required": true, "type": "string" },		"class": { "label": "class", "description": "to change the URL for sections of the database other than 'site': enter as 'C', 'E' or 'G'.", "required": false, "type": "string" },		"desc": { "label": "desc", "description": "Additional text description such as the name of the building or site. Useful if there are several listed objects in an article. If this parameter is not used default text 'Monument No.' will be displayed instead.", "required": false, "suggested": true, "default": "Monument No.", "type": "string" },		"access-date": { "label": "access-date", "description": "The date a Wikipedia editor retrieved information from the Canmore database.", "required": false, "suggested": true, "aliases": ["accessdate"], "autovalue": " ", "type": "string" }, "mode": { "label": "mode", "description": "defaults to 'cs1'; set to 'cs2' to provide consistency with Citation style 2, as produced by ", "required": false, "type": "string" },		"postscript": { "label": "postscript", "description": "controls the closing punctuation for the citation; defaults to a period (.); for no terminating punctuation set to none, however using mode=cs2 does this automatically", "required": false, "default": ".", "type": "string" },		"fewer-links": { "label": "fewer-links", "description": "Set to 'yes' to remove repeated links where the template is used more than once in an article.", "required": false, "default": "yes", "type": "string" }	} }