Difference between revisions of "Template:Cite NSW SHR/doc"

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎Example: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
imported>Debresser
m (Add dash to "access-date".)
 
Line 11: Line 11:
 
   | hr = "State Heritage Register (SHR) number"
 
   | hr = "State Heritage Register (SHR) number"
 
   | fn = "New South Wales State Heritage Register (NSW SHR) File number" (optional)
 
   | fn = "New South Wales State Heritage Register (NSW SHR) File number" (optional)
   | accessdate = </nowiki>{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>
+
   | access-date = </nowiki>{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>
}}</nowiki>-->
+
}}</nowiki>-->
  
 
==Parameters==
 
==Parameters==
Line 22: Line 22:
 
The optional parameters are:
 
The optional parameters are:
 
* The New South Wales State Heritage Register (NSW SHR) File number can be specified using the optional <code>fn</code> field (currently not displayed)
 
* The New South Wales State Heritage Register (NSW SHR) File number can be specified using the optional <code>fn</code> field (currently not displayed)
* In addition, the access date can be specified using the {{para|accessdate}} parameter.
+
* In addition, the access date can be specified using the {{para|access-date}} parameter.
  
 
===Example===
 
===Example===
 
For example, the [[Sydney Conservatorium of Music]] record can be referenced using
 
For example, the [[Sydney Conservatorium of Music]] record can be referenced using
  
<code><nowiki>{{cite NSW SHR|5060991|Conservatorium of Music|hr=01849|accessdate=3 November 2018}}</nowiki></code>
+
<code><nowiki>{{cite NSW SHR|5060991|Conservatorium of Music|hr=01849|access-date=3 November 2018}}</nowiki></code>
  
 
resulting in:
 
resulting in:
  
{{cite NSW SHR|5060991|Conservatorium of Music|hr=01849|accessdate=3 November 2018}}
+
{{cite NSW SHR|5060991|Conservatorium of Music|hr=01849|access-date=3 November 2018}}
  
 
<!--==Harvard style referencing==
 
<!--==Harvard style referencing==

Latest revision as of 22:17, 30 August 2020

Usage

This template creates a {{cite web}} citation to New South Wales State Heritage Register and the Heritage Office on the State Heritage Inventory, a searchable reference source on the heritage places of New South Wales, Australia.

There is no error checking. Specifying an incorrect ID will result in a link to a non-existing record.

Parameters

There are two mandatory unnamed parameters and one mandatory named parameter

  • Place ID number. It is found at the end of the URL.
  • A title. If empty it defaults to BASEPAGENAME.
  • hr: State Heritage Register (SHR) number

The optional parameters are:

  • The New South Wales State Heritage Register (NSW SHR) File number can be specified using the optional fn field (currently not displayed)
  • In addition, the access date can be specified using the |access-date= parameter.

Example

For example, the Sydney Conservatorium of Music record can be referenced using

{{cite NSW SHR|5060991|Conservatorium of Music|hr=01849|access-date=3 November 2018}}

resulting in:

"Conservatorium of Music". New South Wales State Heritage Register. Office of Environment and Heritage. H01849. Retrieved 3 November 2018.