Template:Watprn/doc

Wales Archaeological Trusts Primary Reference Numbers: A template to provide a link to the Archwillio data page, or other organisation where supported (Historic Wales, Coflein, National Trust), for an archaeological site, from the Trust and PRN/identifier supplied.

Usage

 * Short form: best suited to list references, where the abbreviations are explained elsewhere



e.g.


 * Long form: where a fully explained reference is required (identified by using the optional 'title=' parameter)

e.g.

Trust abbreviations
There are four trusts that cover the whole of Wales. Further websites/databases are also supported. These are:-
 * GGAT: Glamorgan-Gwent Archaeological Trust
 * GAT: Gwynedd Archaeological Trust
 * CPAT: Clwyd-Powys Archaeological Trust
 * DAT: Dyfed Archaeological Trust
 * coflein: RCAHMW website (using NPRN at www.coflein.co.uk)
 * NT: National Trust website (uses the 'website-name-of-the-property rather than a code number). Adding a Title= with a short form or standard name for the property is also recommended for NT
 * HW: Historic Wales, a map-based resource with links to the Cadw site description, and other useful databases.
 * Cadw: Cadw Scheduled Monument Reports. Includes site description and interpretation. Nb, it requires the page code - not the SAM number!

If a PRN number is supplied, it provides a link directly to that entry in the Historic Environment Record database at Archwillio, e.g.

If no PRN is supplied, it provides a link to the relevant search page, e.g., although HW finds the site using just grid reference data.

Optional parameters
If a Title is supplied, by using the optional 'title=' parameter, further optional parameters will also be displayed:-


 * title=:Normally this will be the 'official' name for the site being referenced.


 * access-date=: to note the date at which the entry was last consulted.


 * author=: to identify a particular author, if the database entry identifies a particular author.

As with the short form, the long form can be used with or without the PRN/unique identifier. eg:


 * e.g.




 * e.g.



Historic Wales has three compulsory un-named parameters
 * 1) the Cadw reference ID (two letter county code and three digit number)
 * 2) OS grid Northing
 * 3) OS grid Easting. These use the full six-digit form of grid reference, and must avoid all spaces or it will break the URL.


 * e.g.