Difference between revisions of "Template:Cite AHD"
imported>Rangasyd (change of govt department) |
imported>Mitch Ames (Display "Place ID", per the AHD web site) |
||
| Line 5: | Line 5: | ||
|accessdate={{{accessdate|}}} | |accessdate={{{accessdate|}}} | ||
|date={{{date|}}} | |date={{{date|}}} | ||
| − | |title={{#if:{{{2|}}}|{{{2}}} ( | + | |title={{#if:{{{2|}}}|{{{2}}} (Place ID {{{1}}})|Place ID {{{1}}}}} |
|ref=CITEREFAHD{{{1}}} | |ref=CITEREFAHD{{{1}}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 12:40, 9 July 2016
Usage
This template creates a {{Cite web}} citation to individual records at the Australian Heritage Database, a useful searchable reference source on Australia's heritage places.
Parameters
- There are two unnamed parameters
- Place ID number. This is the only mandatory parameter. It can be found at the end of the URL
- An optional title
For example, the Emery Point Lighthouse record can be referenced using
{{Cite AHD |16274 |Emery Point Lighthouse}}
resulting in:
"Emery Point Lighthouse (Place ID 16274 )". Australian Heritage Database. Department of the Environment.
Or, if one prefers not to mention the title:
{{Cite AHD|16274}}
results in:
"Place ID 16274". Australian Heritage Database. Department of the Environment.
- The date of registration can be specified using the
datefield. - In addition, the access date can be specified using the
access-datefields. - Error checking is not done at all. Specifying an incorrect ID will result in a link to a non-existing record.
More examples
- Use of
dateandaccess-datefields:
{{Cite AHD |105914 |Sydney Opera House |date=28 July 2007 |access-date=2010-09-16}}
result:
"Sydney Opera House (Place ID 105914 )". Australian Heritage Database. Department of the Environment. 28 July 2007.
Harvard style referencing
This template provides a simple Harvard style reference, using AHD followed by the ID number. For example, to reference the Emery Point Lighthouse use {{sfn|AHD16274}} or {{harvnb|AHD16274}}, as appropriate. However, year referencing is not supported at this time.
| The above documentation is transcluded from Template:Cite AHD/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |