Template:NHC TCR url/doc
Appearance
This is a documentation subpage for Template:NHC TCR url. It may contain usage information, categories and other content that is not part of the original template page. |
The purpose of this template is to have a single location for the National Hurricane Center Tropical Cyclone Report base url as a method of combating link rot.
Usage
[edit]The template takes two parameters:
|id=
– (required) the 'file name' without the .pdf extension|title=
– (optional) the title of the linked document
Parameter names are not required. When not used, the positional order is:
{{NHC TCR url|identifier|title}}
When |title=
is empty or omitted, the template produces a url suitable for use in Citation Style 1 and Citation Style 2 templates.
{{cite report |first=James L. |last=Franklin |title=Tropical Cyclone Report Hurricane Alex 31 July – 6 August 2004 |url={{NHC TCR url|id=AL012004_Alex}} |publisher=[[National Hurricane Center]] |date=26 October 2004 |access-date=2016-03-05}}
- Franklin, James L. (26 October 2004). Tropical Cyclone Report Hurricane Alex 31 July – 6 August 2004 (PDF) (Report). National Hurricane Center. Retrieved 2016-03-05.
With a title, the template produces a properly marked up external wikilink:
{{NHC TCR url|id=AL012004_Alex|title=Tropical Cyclone Report Hurricane Alex 31 July – 6 August 2004}}
[http://www.nhc.noaa.gov/data/tcr/AL012004_Alex.pdf Tropical Cyclone Report Hurricane Alex 31 July – 6 August 2004]