Difference between revisions of "Template:Cite sslidx"

From blackwiki
Jump to navigation Jump to search
imported>Jonesey95
imported>Jonesey95
(add standard CS1 parameter)
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={{{template doc demo|{{{template-doc-demo|}}}}}}}}}}}}
 
  |first=Garry
 
  |first=Garry
 
  |last=Searle
 
  |last=Searle
 
  |ref=harv
 
  |ref=harv
 
  |publisher=SeaSide Lights
 
  |publisher=SeaSide Lights
  |accessdate={{{accessdate|}}}
+
  |access-date={{{accessdate|}}}
  | template doc demo = {{{template doc demo|}}}
+
  | template-doc-demo = {{{template doc demo|{{{template-doc-demo|}}}}}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 20:18, 15 November 2017

Template documentation[view] [edit] [history] [purge]

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)CS1 maint: ref=harv (link)

Examples:

{{cite sslidx|VIC}}

Searle, Garry. "List of Lighthouses - Victoria". Lighthouses of Australia. SeaSide Lights.CS1 maint: ref=harv (link)

{{cite sslidx|itx}}

Searle, Garry. "Lighthouses of Australia". SeaSide Lights.CS1 maint: ref=harv (link)

{{cite sslidx|TAS|access-date=August 3, 2010}}

Searle, Garry. "List of Lighthouses - Tasmania". Lighthouses of Australia. SeaSide Lights.CS1 maint: ref=harv (link)

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.