Template:Orchard Infobox: Difference between revisions

From Heritage Apple Corps
Exclude Unknown and Unique from variety count
Add nrhp_ref param to link NRHP listing in infobox
 
Line 13: Line 13:
|-
|-
{{#if:{{{national_register|}}}|
{{#if:{{{national_register|}}}|
{{!}} '''NRHP''' {{!}}{{!}} Listed{{#if:{{{nrhp_date|}}}| {{{nrhp_date}}}}}
{{!}} '''NRHP''' {{!}}{{!}} {{#if:{{{nrhp_ref|}}}|[https://npgallery.nps.gov/AssetDetail/NRIS/{{{nrhp_ref}}} Listed]|Listed}}{{#if:{{{nrhp_date|}}}| {{{nrhp_date}}}}}
{{!}}-
{{!}}-
}}
}}
Line 23: Line 23:
|national_register=yes
|national_register=yes
|nrhp_date=2015-05-26
|nrhp_date=2015-05-26
|nrhp_ref=15000271
}}
}}


Line 32: Line 33:
|national_register=
|national_register=
|nrhp_date=
|nrhp_date=
|nrhp_ref=
}}
}}
</pre>
</pre>


'''Note:''' Tree counts, species breakdown, and variety counts are now calculated automatically using Semantic MediaWiki queries based on trees that have <nowiki>[[Has orchard::OrchardName]]</nowiki> set.
'''Note:''' Tree counts, species breakdown, and variety counts are now calculated automatically using Semantic MediaWiki queries based on trees that have <nowiki>[[Has orchard::OrchardName]]</nowiki> set.
When <code>nrhp_ref</code> is provided, the "Listed" text becomes a link to the National Register of Historic Places entry at <nowiki>https://npgallery.nps.gov/AssetDetail/NRIS/{ref}</nowiki>.


[[Category:Infobox templates]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Latest revision as of 16:29, 28 April 2026

Example Orchard
Location Crooked River National Grassland
Tree Count 0
Species
Varieties 0 identified
NRHP Listed2015-05-26


Usage

{{Orchard Infobox
|name=
|location=
|national_register=
|nrhp_date=
|nrhp_ref=
}}

Note: Tree counts, species breakdown, and variety counts are now calculated automatically using Semantic MediaWiki queries based on trees that have [[Has orchard::OrchardName]] set.

When nrhp_ref is provided, the "Listed" text becomes a link to the National Register of Historic Places entry at https://npgallery.nps.gov/AssetDetail/NRIS/{ref}.