Difference between revisions of "Template:Cite NSW HD/doc"
imported>Vanisaac m (→Harvard style referencing: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
imported>Debresser m (Add dash to "access-date".) |
||
| Line 2: | Line 2: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
{{cs1 wrapper|base=cite web}} | {{cs1 wrapper|base=cite web}} | ||
| + | |||
==Usage== | ==Usage== | ||
This template creates a {{tl|cite web}} citation to [[New South Wales State Heritage Register|New South Wales Heritage Database]] and the [[Office of Environment and Heritage (New South Wales)|Heritage Office]] on the [http://www.environment.nsw.gov.au/heritageapp/ ''State Heritage Inventory''], a searchable reference source on the heritage places that are '''not''' listed on any active international or Commonwealth register, or the [[New South Wales State Heritage Register]] in [[Australia]]. | This template creates a {{tl|cite web}} citation to [[New South Wales State Heritage Register|New South Wales Heritage Database]] and the [[Office of Environment and Heritage (New South Wales)|Heritage Office]] on the [http://www.environment.nsw.gov.au/heritageapp/ ''State Heritage Inventory''], a searchable reference source on the heritage places that are '''not''' listed on any active international or Commonwealth register, or the [[New South Wales State Heritage Register]] in [[Australia]]. | ||
<nowiki>{{cite NSW HD | <nowiki>{{cite NSW HD | ||
| − | + | | "database id" | |
| − | + | | "title" | |
| − | + | | fn = "New South Wales Heritage Database (NSW HD) File number (optional)" | |
| − | + | | access-date = </nowiki>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}<nowiki> | |
}}</nowiki> | }}</nowiki> | ||
There is no error checking. Specifying an incorrect ID will result in a link to a non-existing record. | There is no error checking. Specifying an incorrect ID will result in a link to a non-existing record. | ||
| − | ==Mandatory | + | ==Mandatory parameters== |
There are two mandatory unnamed parameters | There are two mandatory unnamed parameters | ||
| − | # Place ID number. | + | # Place ID number. It is found at the end of the URL. |
| − | # A title. | + | # A title. If empty it defaults to BASEPAGENAME. |
===Example=== | ===Example=== | ||
| Line 31: | Line 32: | ||
The optional parameters are: | The optional parameters are: | ||
* The New South Wales Heritage Database (NSW HD) File number can be specified using the optional <code>fn</code> field | * The New South Wales Heritage Database (NSW HD) File number can be specified using the optional <code>fn</code> field | ||
| − | * In addition, the access date can be specified using the {{para| | + | * In addition, the access date can be specified using the {{para|access-date}} parameter. |
===Examples=== | ===Examples=== | ||
| Line 41: | Line 42: | ||
==More examples== | ==More examples== | ||
| − | Use of {{para| | + | Use of {{para|access-date}} parameter: |
| − | <code><nowiki>{{cite NSW HD|2423504|Terrace Group "Glover Cottages" Including Interiors| | + | <code><nowiki>{{cite NSW HD|2423504|Terrace Group "Glover Cottages" Including Interiors|access-date=2018-05-15}}</nowiki></code> |
result: | result: | ||
| − | {{cite NSW HD|2423504|Terrace Group "Glover Cottages" Including Interiors| | + | {{cite NSW HD|2423504|Terrace Group "Glover Cottages" Including Interiors|access-date=2018-05-15}} |
==Harvard style referencing== | ==Harvard style referencing== | ||
Latest revision as of 22:16, 30 August 2020
| This is a documentation subpage for Template:Cite NSW HD. It contains usage information, categories and other content that is not part of the original template page. |
| This template is a Citation Style 1 wrapper template based on {{Cite web}}. For centralised Citation Style 1 discussions, see Help talk:Citation Style 1. |
Contents
Usage
This template creates a {{cite web}} citation to New South Wales Heritage Database and the Heritage Office on the State Heritage Inventory, a searchable reference source on the heritage places that are not listed on any active international or Commonwealth register, or the New South Wales State Heritage Register in Australia.
{{cite NSW HD | "database id" | "title" | fn = "New South Wales Heritage Database (NSW HD) File number (optional)" | access-date = 2025-12-14 }}
There is no error checking. Specifying an incorrect ID will result in a link to a non-existing record.
Mandatory parameters
There are two mandatory unnamed parameters
- Place ID number. It is found at the end of the URL.
- A title. If empty it defaults to BASEPAGENAME.
Example
For example, the Glover cottages record can be referenced using
{{cite NSW HD|2423504|Terrace Group "Glover Cottages" Including Interiors}}
resulting in:
"Glover cottages". New South Wales Heritage Database. Office of Environment and Heritage.
Optional parameters
The optional parameters are:
- The New South Wales Heritage Database (NSW HD) File number can be specified using the optional
fnfield - In addition, the access date can be specified using the
|access-date=parameter.
Examples
{{cite NSW HD|2423504|Terrace Group "Glover Cottages" Including Interiors|fn=S97/00190/007}}
resulting in:
"Terrace Group "Glover Cottages" Including Interiors, New South Wales Heritage Database (NSW HD) Number HS97/00190/007". New South Wales Heritage Database. Office of Environment and Heritage.
More examples
Use of |access-date= parameter:
{{cite NSW HD|2423504|Terrace Group "Glover Cottages" Including Interiors|access-date=2018-05-15}}
result:
"Terrace Group "Glover Cottages" Including Interiors". New South Wales Heritage Database. Office of Environment and Heritage. Retrieved 2018-05-15.
Harvard style referencing
This template provides a simple Harvard style reference, using HD followed by the ID number. For example, to reference the Glover cottages, use {{sfn|HD2423504}} or {{harvnb|HD2423504}}, as appropriate. Year referencing is not supported at this time.