Difference between revisions of "Template:Cite uscghist/sandbox"
imported>Gonnym |
imported>Matthiaspaul (Switched from |template-doc-demo to |no-tracking parameter alias as the former will be disabled soon.) |
||
Line 47: | Line 47: | ||
|access-date = {{{accessdate|}}} | |access-date = {{{accessdate|}}} | ||
|date= {{{date|}}} | |date= {{{date|}}} | ||
− | | | + | |no-tracking = {{{no-tracking|{{{template doc demo|}}}}}} |
|title = Historic Light Station Information and Photography: {{#switch:{{{1}}} | |title = Historic Light Station Information and Photography: {{#switch:{{{1}}} | ||
|PANAMA=Panama | |PANAMA=Panama | ||
Line 54: | Line 54: | ||
|AWI=West Indies / Virgin Islands | |AWI=West Indies / Virgin Islands | ||
|AL|AK|CA|CT|DE|FL|GA|HI|IL|IN|LA|ME|MD|MA|MI|MN|MS|NH|NJ|NY|NC|OH|OR|PA|RI|SC|TX|VT|VA|WA|WI|PR={{ISO 3166 name|US-{{{1}}}}} | |AL|AK|CA|CT|DE|FL|GA|HI|IL|IN|LA|ME|MD|MA|MI|MN|MS|NH|NJ|NY|NC|OH|OR|PA|RI|SC|TX|VT|VA|WA|WI|PR={{ISO 3166 name|US-{{{1}}}}} | ||
− | |{{Citation error|invalid state or no state|cite uscghist|nocat={{{ | + | |{{Citation error|invalid state or no state|cite uscghist|nocat={{{no-tracking|{{{template doc demo|}}}}}}}} |
}}}}</includeonly><noinclude> | }}}}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 21:32, 23 September 2020
![]() | This is the template sandbox page for Template:Cite uscghist (diff). See also the companion subpage for test cases. |
Usage
This template creates a {{cite web}} citation to the United States Coast Guard Historical information site for lighthouses.
Parameters
There is one mandatory unnamed parameter, a two letter postal abbreviation of the state, or one of:
- PANAMA for Panama
- CUBA for Cuba
- PACIFIC for Pacific Rim
- AWI for West Indies / Virgin Islands
- PR for Puerto Rico
It must be in upper case.
In addition, on can state the date which appears on the bottom right of the page, using the |date= field, and/or the date the page was accessed, using the accessdate field.
Error checking is done, thus using {{cite uscghist|CO}} will result in an error since there are no lighthouses in Colorado:
"Historic Light Station Information and Photography: Error: invalid state or no state when using {{cite uscghist}}Template:Namespace detect showall". United States Coast Guard Historian's Office. Missing or empty |url=
(help)
Examples:
{{cite uscghist|MA}}
"Historic Light Station Information and Photography: Massachusetts". United States Coast Guard Historian's Office. Archived from the original on 2017-05-01.
{{cite uscghist|AWI}}
"Historic Light Station Information and Photography: West Indies / Virgin Islands". United States Coast Guard Historian's Office. Archived from the original on 2017-05-01.
With accessdate and date
{{cite uscghist|PACIFIC|accessdate=2010-07-30|date=2009-08-08}}
"Historic Light Station Information and Photography: Pacific Rim". United States Coast Guard Historian's Office. 2009-08-08. Archived from the original on 2017-05-25. Retrieved 2010-07-30.
The above documentation is transcluded from Template:Cite uscghist/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |