Difference between revisions of "Template:Cite loaidx"
imported>Jonesey95 (adding template doc demo parameter to remove template doc from error category) |
imported>Malcol13 (Updated links from lighthouse.net.au to lighthouses.org.au reflecting change of URL) |
||
Line 1: | Line 1: | ||
<includeonly>{{cite web | <includeonly>{{cite web | ||
− | |url={{#ifeq:{{{1}}}|idx|http://www. | + | |url={{#ifeq:{{{1}}}|idx|http://www.lighthouses.org.au/lights/States/states.asp|http://www.lighthouses.org.au/lights/{{{1}}}/Index%20{{{1}}}.asp}} |
− | |work=[http://www. | + | |work=[http://www.lighthouses.org.au/lights/index.asp Lighthouses of Australia] |
|title={{#ifeq:{{{1}}}|idx|State Indexes|List of Lighthouses of {{#switch: {{{1}}} | |title={{#ifeq:{{{1}}}|idx|State Indexes|List of Lighthouses of {{#switch: {{{1}}} | ||
|WA=Western Australia | |WA=Western Australia |
Revision as of 02:20, 2 September 2014
![]() | 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. |
Usage
This template creates a {{cite web}} citation to the index pages of Lighthouses of Australia Inc, a useful reference site on the Lighthouses of Australia.
Parameters
There is one mandatory unnamed parameter, which is the postal abbreviation of the state name, capitalized. "idx" can also be used to reference the State Index.
In addition, access date can be specified using the access-date fields.
Error checking is done, thus using {{cite loaidx |foo}} will result in an error:
"List of Lighthouses of Error: invalid index page when using {{[[Template:cite loaidx|cite loaidx]]}}[[:Template:Namespace detect showall]]". Lighthouses of Australia. Lighthouses of Australia Inc. External link in |work=
(help); URL–wikilink conflict (help)
Examples
{{cite loaidx |VIC}}
"List of Lighthouses of Victoria". Lighthouses of Australia. Lighthouses of Australia Inc. External link in |work=
(help)
{{cite loaidx |itx}}
"State Indexes". Lighthouses of Australia. Lighthouses of Australia Inc. External link in |work=
(help)
{{cite loaidx |TAS |access-date=August 3, 2010}}
/Index%20TAS .asp "List of Lighthouses of Tasmania" Check |url=
value (help). Lighthouses of Australia. Lighthouses of Australia Inc. External link in |work=
(help)
Harvard style referencing
This template provides a simple Harvard style reference, using {{sfn|Lighthouses of Australia Inc}}
or {{harvnb|Lighthouses of Australia Inc}}
, as appropriate. However, year referencing is not supported at this time.
The above documentation is transcluded from Template:Cite loaidx/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. |