Difference between revisions of "Template:Cite uscghist"
imported>Jonesey95 (add standard CS1 parameter) |
imported>Muhandes (Add archive locations, see talk page) |
||
| Line 1: | Line 1: | ||
<includeonly>{{cite web | <includeonly>{{cite web | ||
| − | |url = https://www.uscg.mil/history/weblighthouses/LH{{{1}}}.asp | + | |url = {{#switch:{{{1}}} |
| + | |PANAMA|CUBA|PACIFIC|AWI|AL|CA|CT|DE|FL|GA|HI|IL|IN|LA|ME|MA|MI|MN|MS|NH|NJ|NY|NC|OH|OR|PA|RI|SC|TX|VT|WA|WI|PR=https://www.uscg.mil/history/weblighthouses/LH{{{1}}}.asp | ||
| + | |AK=https://media.defense.gov/2018/Jul/09/2001940194/-1/-1/0/LHAK.PDF | ||
| + | |MD=https://media.defense.gov/2018/Jul/09/2001940171/-1/-1/0/LHMD.PDF | ||
| + | |VA=https://media.defense.gov/2018/Jul/09/2001940190/-1/-1/0/LHVA.PDF}} | ||
| + | |archive-url={{#switch:{{{1}}} | ||
| + | |PANAMA=https://web.archive.org/web/20170501203214/http://www.uscg.mil/history/weblighthouses/LHPANAMA.asp | ||
| + | |CUBA=https://web.archive.org/web/20170501203205/http://www.uscg.mil/history/weblighthouses/LHCUBA.asp | ||
| + | |PACIFIC=https://web.archive.org/web/20170525211127/http://www.uscg.mil/history/weblighthouses/LHPACIFIC.asp | ||
| + | |AWI=https://web.archive.org/web/20170501203613/http://www.uscg.mil/history/weblighthouses/LHAWI.asp | ||
| + | |AL=https://web.archive.org/web/20170501201558/http://www.uscg.mil/history/weblighthouses/LHAL.asp | ||
| + | |CA=https://web.archive.org/web/20170501201850/http://www.uscg.mil/history/weblighthouses/LHCA.asp | ||
| + | |CT=https://web.archive.org/web/20170519232547/http://www.uscg.mil/history/weblighthouses/LHCT.asp | ||
| + | |DE=https://web.archive.org/web/20170501202320/http://www.uscg.mil/history/weblighthouses/LHDE.asp | ||
| + | |FL=https://web.archive.org/web/20170501202325/http://www.uscg.mil/history/weblighthouses/LHFL.asp | ||
| + | |GA=https://web.archive.org/web/20170501202343/http://www.uscg.mil/history/weblighthouses/LHGA.asp | ||
| + | |HI=https://web.archive.org/web/20170501202351/http://www.uscg.mil/history/weblighthouses/LHHI.asp | ||
| + | |IL=https://web.archive.org/web/20170519232700/http://www.uscg.mil/history/weblighthouses/LHIL.asp | ||
| + | |IN=https://web.archive.org/web/20170501202403/http://www.uscg.mil/history/weblighthouses/LHIN.asp | ||
| + | |LA=https://web.archive.org/web/20170501202409/http://www.uscg.mil/history/weblighthouses/LHLA.asp | ||
| + | |ME=https://web.archive.org/web/20170501202418/http://www.uscg.mil/history/weblighthouses/LHME.asp | ||
| + | |MA=https://web.archive.org/web/20170501202446/http://www.uscg.mil/history/weblighthouses/LHMA.asp | ||
| + | |MI=https://web.archive.org/web/20170501202456/http://www.uscg.mil/history/weblighthouses/LHMI.asp | ||
| + | |MN=https://web.archive.org/web/20170501202509/http://www.uscg.mil/history/weblighthouses/LHMN.asp | ||
| + | |MS=https://web.archive.org/web/20170501202519/http://www.uscg.mil/history/weblighthouses/LHMS.asp | ||
| + | |NH=https://web.archive.org/web/20170501202533/http://www.uscg.mil/history/weblighthouses/LHNH.asp | ||
| + | |NJ=https://web.archive.org/web/20170501202535/http://www.uscg.mil/history/weblighthouses/LHNJ.asp | ||
| + | |NY=https://web.archive.org/web/20170501202548/http://www.uscg.mil/history/weblighthouses/LHNY.asp | ||
| + | |NC=https://web.archive.org/web/20170923034550/http://www.uscg.mil/history/weblighthouses/LHNC.asp | ||
| + | |OH=https://web.archive.org/web/20170501202653/http://www.uscg.mil/history/weblighthouses/LHOH.asp | ||
| + | |OR=https://web.archive.org/web/20170501202719/http://www.uscg.mil/history/weblighthouses/LHOR.asp | ||
| + | |PA=https://web.archive.org/web/20170501202726/http://www.uscg.mil/history/weblighthouses/LHPA.asp | ||
| + | |RI=https://web.archive.org/web/20170501202729/http://www.uscg.mil/history/weblighthouses/LHRI.asp | ||
| + | |SC=https://web.archive.org/web/20170501202734/http://www.uscg.mil/history/weblighthouses/LHSC.asp | ||
| + | |TX=https://web.archive.org/web/20170501202750/http://www.uscg.mil/history/weblighthouses/LHTX.asp | ||
| + | |VT=https://web.archive.org/web/20170501203059/http://www.uscg.mil/history/weblighthouses/LHVT.asp | ||
| + | |WA=https://web.archive.org/web/20170501203120/http://www.uscg.mil/history/weblighthouses/LHWA.asp | ||
| + | |WI=https://web.archive.org/web/20170501203144/http://www.uscg.mil/history/weblighthouses/LHWI.asp | ||
| + | |PR=https://web.archive.org/web/20170501203225/http://www.uscg.mil/history/weblighthouses/LHPR.asp}} | ||
| + | |archivedate={{#switch:{{{1}}} | ||
| + | |PANAMA|CUBA|AWI|AL|CA|DE|FL|GA|HI|IN|LA|ME|MA|MI|MN|MS|NH|NJ|NY|OH|OR|PA|RI|SC|TX|VT|WA|WI|PR=2017-05-01 | ||
| + | |PACIFIC=2017-05-25 | ||
| + | |CT|IL=2017-05-19 | ||
| + | |NC=2017-09-23}} | ||
|publisher = United States Coast Guard Historian's Office | |publisher = United States Coast Guard Historian's Office | ||
|access-date = {{{accessdate|}}} | |access-date = {{{accessdate|}}} | ||
Revision as of 12:22, 6 December 2019
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. |