Template:NHLS url
| This template is used on approximately 2,100 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
The purpose of this template is to provide a single location for the base url that links to the nps.gov website. In the event that the base url is changed at nps.gov, a single change here corrects thousands of broken links.
This template uses {{NRHP url/core}}. When it becomes necessary to change the base url, that change is made at {{NRHP url/core}}.
Usage
This template takes three parameters:
|id=– (required) the 'file name' without the .pdf extension|title=– (optional) the title of the linked document|photos=– (optional) when linking to a file in the Photos folder, setting|photos=ywill modify the url path
Parameter names are not required. When not used, the positional order is:
{{NHLS url|identifier|title|photos}}
When |title= is empty or omitted, the template produces a url suitable for use in Citation Style 1 and Citation Style 2 templates.
{{cite web |title=United States Naval Academy |url={{NHLS url|id=66000386}} |publisher=[[National Park Service]] |access-date=2016-03-03}}- "United States Naval Academy". National Park Service. Retrieved 2016-03-03.
With a title, the template produces a properly marked up external wikilink:
{{NHLS url|id=66000386|title=United States Naval Academy}}[https://npgallery.nps.gov/NRHP/GetAsset/NHLS/66000386_text United States Naval Academy]
To link to the associated photos:
{{NHLS url|id=66000386|title=United States Naval Academy|photos=y}}[https://npgallery.nps.gov/NRHP/GetAsset/NHLS/66000386_photos United States Naval Academy]
To create a plain url link to the associated photos:
{{NHLS url|id=66000386|photos=y}}https://npgallery.nps.gov/NRHP/GetAsset/NHLS/66000386_photos
or, when using positional parameters:
{{NHLS url|66000386||y}}https://npgallery.nps.gov/NRHP/GetAsset/NHLS/66000386_photos
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.