Difference between revisions of "Template:Cite ssl"

From blackwiki
Jump to navigation Jump to search
imported>Muhandes
m (c)
imported>Muhandes
m (Undid revision 381274366 by Muhandes (talk)oops)
Line 1: Line 1:
{{Documentation subpage}}
+
<includeonly>{{Cite web
==Usage==
+
|url=http://www.seasidelights.com.au/au/{{{1}}}/{{{2}}}.asp?fState={{{1}}}
This template creates a {{tl|cite web}} citation to individual pages at [http://www.seasidelights.com.au/ SeaSide Lights], a useful reference site on the Lighthouses of Australia.
+
|work=[http://www.seasidelights.com.au/state.asp?fState={{{1}}} Lighthouses of {{#switch: {{{1}}}
 
+
  |WA=Western Australia
==Parameters==
+
  |NT=Northern Territory
* There are three mandatory unnamed parameter.
+
  |SA=South Australia
# the postal abbreviation of the state name, e.g. TAS or NT, capitalized
+
  |QLD=Queensland
# the lighthouse name abbreviation used in the url
+
  |NSW=New South Wales
# title
+
  |VIC=Victoria
 
+
  |TAS=Tasmania
For example, the Cumberland Light page url is <code>http://www.seasidelights.com.au/au/tas/cumberland.asp?fState=Tas</code>. The parameters are
+
  |{{Citation error|invalid index page|cite ssl}}}}]
# <code>TAS</code>
+
|author=Garry Searle
# <code>cumberland</code>
+
|publisher=[http://www.seasidelights.com.au SeaSide Lights]
# <code>Cumberland Light</code>
+
|accessdate={{{accessdate|}}}
 
+
|title={{{3}}}
The full citation is
+
}}</includeonly><noinclude>
 
+
{{Documentation}}
<code><nowiki>{{cite ssl|TAS|cumberland|Cumberland Light}}</nowiki></code> resulting in:
+
</noinclude>
 
 
{{cite ssl|TAS|cumberland|Cumberland Light}}
 
 
 
* In addition, access date can be specified using the accessdate fields.
 
 
 
* Error checking is done only on the state, thus using <code><nowiki>{{cite ssl|NC|hatteras|Cape Hatteras Light}}</nowiki></code> will result in an error:
 
 
 
{{cite ssl|NC|hatteras|Cape Hatteras Light}}
 
 
 
However, using a non-existing page results in a link to a non-existing page, thus using <code><nowiki>{{cite ssl|NT|capedon|Cape Don}}</nowiki></code> results in:
 
 
 
{{cite ssl|NT|capedon|Cape Don}}
 
 
 
==More examples==
 
 
 
<code><nowiki>{{cite ssl|QLD|caloundraold|Caloundra Head - Old}}</nowiki></code>
 
 
 
{{cite ssl|QLD|caloundraold|Caloundra Head - Old}}
 
 
 
<code><nowiki>{{cite ssl|SA|capespencer|Cape Spencer|accessdate=August 3, 2010}}</nowiki></code>
 
 
 
{{cite ssl|SA|capespencer|Cape Spencer|accessdate=August 3, 2010}}
 
<includeonly>
 
[[Category:Lighthouse source templates]]
 
</includeonly>
 

Revision as of 08:55, 27 August 2010

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

Usage

This template creates a {{cite web}} citation to individual pages at SeaSide Lights, a useful reference site on the Lighthouses of Australia.

Parameters

  • There are three mandatory unnamed parameter.
  1. the postal abbreviation of the state name, e.g. TAS or NT, capitalized
  2. the lighthouse name abbreviation used in the url
  3. title

For example, the Cumberland Light page url is http://www.seasidelights.com.au/au/tas/cumberland.asp?fState=Tas. The parameters are

  1. TAS
  2. cumberland
  3. Cumberland Light

The full citation is

{{cite ssl|TAS|cumberland|Cumberland Light}} resulting in:

Garry Searle. "Cumberland Light". Lighthouses of Tasmania. SeaSide Lights. External link in |publisher=, |work= (help)

  • In addition, access date can be specified using the access-date fields.
  • Error checking is done only on the state, thus using {{cite ssl|NC|hatteras|Cape Hatteras Light}} will result in an error:

Garry Searle. "Cape Hatteras Light". Lighthouses of Error: invalid index page when using {{cite ssl}}Template:Namespace detect showall. SeaSide Lights. External link in |publisher=, |work= (help)

However, using a non-existing page results in a link to a non-existing page, thus using {{cite ssl|NT|capedon|Cape Don}} results in:

Garry Searle. "Cape Don". Lighthouses of Northern Territory. SeaSide Lights. External link in |publisher=, |work= (help)

More examples

{{cite ssl|QLD|caloundraold|Caloundra Head - Old}}

Garry Searle. "Caloundra Head - Old". Lighthouses of Queensland. SeaSide Lights. External link in |publisher=, |work= (help)

{{cite ssl|SA|capespencer|Cape Spencer|acces-sdate=August 3, 2010}}

Garry Searle. "Cape Spencer". Lighthouses of South Australia. SeaSide Lights. External link in |publisher=, |work= (help)

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.