Template:HAER: Difference between revisions
Appearance
Content deleted Content added
MusikAnimal (talk | contribs) m Protected "Template:HAER": Highly visible template; 1,000+ transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite)) |
Fix links broken by LOC Tag: Reverted |
||
Line 1: | Line 1: | ||
{{#ifeq:{{{short|}}}|yes||{{#ifeq:{{{link|}}}|no|HAER|[[Heritage Documentation Programs#Historic American Engineering Record|Historic American Engineering Record]] (HAER)}} No. }}{{#ifeq:{{{short|}}}|yes|[https://loc.gov |
{{#ifeq:{{{short|}}}|yes||{{#ifeq:{{{link|}}}|no|HAER|[[Heritage Documentation Programs#Historic American Engineering Record|Historic American Engineering Record]] (HAER)}} No. }}{{#ifeq:{{{short|}}}|yes|[https://loc.gov/item/{{{2|{{{id}}}}}}/ {{{1|{{{survey}}}}}}]|{{{1|{{{survey}}}}}}}}{{#ifeq:{{{short|}}}|yes||, "[https://loc.gov/item/{{{2|{{{id}}}}}}/ {{{title}}}]"{{#if:{{{photos|}}}|, {{{photos}}} photo{{#ifexpr:{{{photos}}}>1|s}}}}{{#if:{{{color|}}}|, {{{color}}} color {{#ifexpr:{{{color}}}>1|transparencies|transparency}}}}{{#if:{{{dwgs|}}}|, {{{dwgs}}} measured drawing{{#ifexpr:{{{dwgs}}}>1|s}}}}{{#if:{{{data|}}}|, {{{data}}} data page{{#ifexpr:{{{data}}}>1|s}}}}{{#if:{{{cap|}}}|, {{{cap}}} photo caption page{{#ifexpr:{{{cap}}}>1|s}}}}{{#ifeq: {{{supp|}}}|yes|, supplemental material}}}}<noinclude> |
||
{{Documentation}} |
{{Documentation}} |
||
<!-- |
<!-- |
Revision as of 12:47, 11 December 2023
Historic American Engineering Record (HAER) No. {{{survey}}}, "{{{title}}}"
![]() | This template is used on approximately 2,400 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. |
This is a template for linking to entries in the Historic American Engineering Record database on the Library of Congress Web site. Sample usage is as follows:
{{HAER |survey=PA-491 |id=pa3662 |title=Pleasantville Covered Bridge |photos=9 |color=1 |dwgs=6 |data=8 |cap=1}}
Required parameters:
survey
. The "Survey Number" from the HAER database entry. Always consists of a two-letter state abbreviation (all upper case) followed by a hyphen and one or more numbers. Subsidiary structures on a common site may have a second hyphen followed by one or more letters.id
. The last six digits from the "Bookmark This Record" link given in the HAER database entry. Always consists of a two-letter state abbreviation (all lower case) followed by four numbers.title
. The "Title" from the HAER database entry. You may include only the name of the structure and omit any subsequent information about location, etc. This parameter is not required when the template is used in "short" mode.
Optional parameters:
photos
. The number of photos listed in the HAER database entry.color
. The number of color transparencies listed in the HAER database entry.dwgs
. The number of measured drawings listed in the HAER database entry.data
. The number of data pages listed in the HAER database entry. Note that the database will typically display a "Data Pages" box, even if no data pages are listed, because this is the hard copy record cover sheet; the cover sheet does not count as a data page.cap
. The number of photo caption pages listed in the HAER database entry.supp
. Set to "yes" if supplemental material is shown in the HAER database entry.
Control parameters:
link
. Set to "no" for subsequent instances of this template on the same page; this will shorten the output from "Historic American Engineering Record" to "HAER" and avoid overlinking.short
. Set to "yes" for a highly abbreviated external link, displaying the survey number only, for use in tabular lists such as List of Erie Railroad structures documented by the Historic American Engineering Record.
This template is for Historic American Engineering Record (HAER) entries only; use {{HABS}} and {{HALS}} for the other collections created by Heritage Documentation Programs.