Template:Orchard Infobox: Difference between revisions

From Heritage Apple Corps
Bot (talk | contribs)
Bot: Create infobox template
 
Bot (talk | contribs)
Exclude Unknown and Unique from variety count
 
(9 intermediate revisions by 2 users not shown)
Line 6: Line 6:
{{!}}-
{{!}}-
}}
}}
| '''Tree Count''' || {{{tree_count}}}
| '''Tree Count''' || {{#ask: [[Has orchard::{{{name}}}]] |format=count}}
|-
|-
{{#if:{{{species_breakdown}}}|
| '''Species''' || {{#ifexpr: {{#ask: [[Has orchard::{{{name}}}]] [[Has species::Apple]] |format=count}} > 0 | {{#ask: [[Has orchard::{{{name}}}]] [[Has species::Apple]] |format=count}} apple|}}<nowiki/>{{#ifexpr: {{#ask: [[Has orchard::{{{name}}}]] [[Has species::Pear]] |format=count}} > 0 | {{#ifexpr: {{#ask: [[Has orchard::{{{name}}}]] [[Has species::Apple]] |format=count}} > 0 |, |}}{{#ask: [[Has orchard::{{{name}}}]] [[Has species::Pear]] |format=count}} pear|}}<nowiki/>{{#ifexpr: {{#ask: [[Has orchard::{{{name}}}]] [[Has species::Plum]] |format=count}} > 0 | {{#ifexpr: ({{#ask: [[Has orchard::{{{name}}}]] [[Has species::Apple]] |format=count}} + {{#ask: [[Has orchard::{{{name}}}]] [[Has species::Pear]] |format=count}}) > 0 |, |}}{{#ask: [[Has orchard::{{{name}}}]] [[Has species::Plum]] |format=count}} plum|}}<nowiki/>{{#ifexpr: {{#ask: [[Has orchard::{{{name}}}]] [[Has species::Apricot]] |format=count}} > 0 | {{#ifexpr: ({{#ask: [[Has orchard::{{{name}}}]] [[Has species::Apple]] |format=count}} + {{#ask: [[Has orchard::{{{name}}}]] [[Has species::Pear]] |format=count}} + {{#ask: [[Has orchard::{{{name}}}]] [[Has species::Plum]] |format=count}}) > 0 |, |}}{{#ask: [[Has orchard::{{{name}}}]] [[Has species::Apricot]] |format=count}} apricot|}}
{{!}} '''Species''' {{!}}{{!}} {{{species_breakdown}}}
|-
{{!}}-
| '''Varieties''' || {{#ask: [[Has orchard::{{{name}}}]] [[Has variety::+]] [[Has variety::!Unknown]] [[Has variety::!Unique]] [[Has variety::!Unique Trees]] |format=count}} identified
}}
|-
{{#if:{{{variety_count}}}|
{{#if:{{{national_register|}}}|
{{!}} '''Varieties''' {{!}}{{!}} {{{variety_count}}} identified
{{!}} '''NRHP''' {{!}}{{!}} Listed{{#if:{{{nrhp_date|}}}| {{{nrhp_date}}}}}
{{!}}-
}}
{{#if:{{{lat}}}|
{{!}} '''Coordinates''' {{!}}{{!}} [{{{lat}}}, {{{lon}}}]
{{!}}-
}}
{{#if:{{{national_register}}}|
{{!}} '''NRHP''' {{!}}{{!}} Listed{{#if:{{{nrhp_date}}}| {{{nrhp_date}}}}}
{{!}}-
{{!}}-
}}
}}
Line 29: Line 21:
|name=Example Orchard
|name=Example Orchard
|location=Crooked River National Grassland
|location=Crooked River National Grassland
|tree_count=25
|species_breakdown=22 apple, 3 pear
|variety_count=12
|lat=44.123
|lon=-121.456
|national_register=yes
|national_register=yes
|nrhp_date=2015-05-26
|nrhp_date=2015-05-26
Line 43: Line 30:
|name=
|name=
|location=
|location=
|tree_count=
|species_breakdown=
|variety_count=
|lat=
|lon=
|national_register=
|national_register=
|nrhp_date=
|nrhp_date=
}}
}}
</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.


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

Latest revision as of 12:12, 5 February 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=
}}

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.