Difference between revisions of "Template:Cite uscghist/sandbox"
imported>Muhandes (a few more. A bit at a time we'll get there) |
imported>Muhandes (Done?) |
||
| Line 14: | Line 14: | ||
|CT=https://web.archive.org/web/20170519232547/http://www.uscg.mil/history/weblighthouses/LHCT.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 | |DE=https://web.archive.org/web/20170501202320/http://www.uscg.mil/history/weblighthouses/LHDE.asp | ||
| − | |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=}} | + | |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}}} | |archivedate={{#switch:{{{1}}} | ||
| − | |PANAMA|CUBA|AWI|AL|CA|DE=2017-05-01 | + | |PANAMA|CUBA|AWI|AL|CA|DE|FL|GA|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 | |PACIFIC=2017-05-25 | ||
| − | |CT= | + | |CT|IL=2017-5-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:19, 6 December 2019
| 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. |