Difference between revisions of "Template:Cite sslidx"
imported>Jonesey95 (adding <nowiki>| template doc demo = {{{template doc demo|}}}</nowiki>) |
imported>Matthiaspaul (Switched from |template-doc-demo to |no-tracking parameter alias as the former will be disabled soon.) |
||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| − | <includeonly>{{ | + | <includeonly>{{Cite web |
|url={{#ifeq:{{{1}}}|idx|http://www.seasidelights.com.au/au.asp|http://www.seasidelights.com.au/state.asp?fState={{{1}}}}} | |url={{#ifeq:{{{1}}}|idx|http://www.seasidelights.com.au/au.asp|http://www.seasidelights.com.au/state.asp?fState={{{1}}}}} | ||
| − | |work={{#ifeq:{{{1}}}|idx|| | + | |work={{#ifeq:{{{1}}}|idx||Lighthouses of Australia}} |
|title={{#ifeq:{{{1}}}|idx|Lighthouses of Australia|List of Lighthouses - {{#switch: {{{1}}} | |title={{#ifeq:{{{1}}}|idx|Lighthouses of Australia|List of Lighthouses - {{#switch: {{{1}}} | ||
|WA=Western Australia | |WA=Western Australia | ||
| Line 10: | Line 10: | ||
|VIC=Victoria | |VIC=Victoria | ||
|TAS=Tasmania | |TAS=Tasmania | ||
| − | |{{Citation error|invalid index page|cite sslidx|nocat={{{template doc demo|}}}}}}}}} | + | |{{Citation error|invalid index page|cite sslidx|nocat={{{no-tracking|{{{template doc demo|}}}}}}}}}}}} |
|first=Garry | |first=Garry | ||
|last=Searle | |last=Searle | ||
| − | |ref= | + | |ref={{{ref|}}} |
|publisher=SeaSide Lights | |publisher=SeaSide Lights | ||
| − | | | + | |access-date={{{access-date|{{{accessdate|}}}}}} |
| − | | | + | |no-tracking={{{no-tracking|{{{template doc demo|}}}}}} |
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 21:29, 23 September 2020
Usage
This template creates a {{cite web}} citation to the index pages of SeaSide Lights, 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 sslidx|foo}} will result in an error:
Searle, Garry. "List of Lighthouses - Error: invalid index page when using {{[[Template:cite sslidx|cite sslidx]]}}[[:Template:Namespace detect showall]]". Lighthouses of Australia. SeaSide Lights. URL–wikilink conflict (help)
Examples:
{{cite sslidx|VIC}}
Searle, Garry. "List of Lighthouses - Victoria". Lighthouses of Australia. SeaSide Lights.
{{cite sslidx|itx}}
Searle, Garry. "Lighthouses of Australia". SeaSide Lights.
{{cite sslidx|TAS|access-date=August 3, 2010}}
Searle, Garry. "List of Lighthouses - Tasmania". Lighthouses of Australia. SeaSide Lights. Retrieved August 3, 2010.
Harvard style referencing
This template provides a simple Harvard style reference, using {{sfn|Searle}} or {{harvnb|Searle}}, as appropriate. However, year referencing is not supported at this time.
| The above documentation is transcluded from Template:Cite sslidx/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. |