m (Trying to fix broken A or an output.)
m (Modifying subspecies display.)
Line 131: Line 131:
 
}}<!--  
 
}}<!--  
 
========================== DESCENDANTS ============================ --><span id="descendants"></span>
 
========================== DESCENDANTS ============================ --><span id="descendants"></span>
<div class="article-section" id="plant-descendants">
+
<div class="article-section" id="plant-descendants"><!--
 +
--NOTE: We just print the variable here to set SMW values, we retrieve the values with queries below (much easier than breaking apart the various sub-species taxon types)
 +
-->{{{subspecies}}}
 
==Descendants==
 
==Descendants==
===Cultivars===
+
{{#if:{{{cultivar groups|}}}|
{{#if:{{{cultivar details|}}}|{{{cultivar details|}}} }}{{#ifexpr:{{#ask:[[Category:Cultivar Group]][[Cultivar group of::{{PAGENAME}}]]|format=count}} > 0|
+
===Cultivar Groups &amp; Cultivars===
{{#arraymap: {{#ask:[[Category:Cultivar Group]][[Cultivar group of::{{PAGENAME}}]]| format=list | link=none | limit=100 }} |,|x|====[[x|{{#show:x |?Has group epithet |link=none}}]]====
+
{{{cultivar groups|}}}
{{#ask:[[Category:Cultivar]][[Cultivar of group::x ]] |?Has cultivar epithet= |?Has common name= | link=none | format=ul | template=Plant/Has cultivar}}  
+
|
}}
+
===Cultivars===
====Ungrouped Cultivars====
+
{{#ask: [[Cultivar of::{{PAGENAME}} |?Epithet= |? Common name= |? Group name= |? Details=  | format=template | template=Plant/Cultivar}}
}}
+
}}<!--end if cultivar groups-->
{{{ungrouped cultivars|}}}
+
{{#if:{{#ask:[[Variety of::{{{PAGENAME}}}]]|format=count}}|
 
+
 
===Varieties===
 
===Varieties===
{{#ask:[[Category:Variety]][[Variety of::{{PAGENAME}}]] |?Has common name= | format=ul | template=Plant/Has descendent | link=none | limit=100 | default=None listed. }}
+
{{#ask:[[Category:Variety]][[Variety of::{{PAGENAME}}]] |?Common name= | format=ul | template=Plant/Has descendent | link=none | limit=100 | default=None listed. }}
 
<!--[{{fullurl:Special:FormEdit/Variety|extend={{PAGENAMEE}}&child_type=variety}} Add a new Variety]-->
 
<!--[{{fullurl:Special:FormEdit/Variety|extend={{PAGENAMEE}}&child_type=variety}} Add a new Variety]-->
 +
| None listed.
 +
}}<!--end IF variety count-->
 
===Subspecies===
 
===Subspecies===
{{#ask:[[Category:Subspecies]][[Subspecies of::{{PAGENAME}}]] |?Has common name= | format=ul | template=Plant/Has descendent | link=none | limit=100 | default=None listed. }}
+
{{#if:{{#ask:[[Subspecies of::{{{PAGENAME}}}]]|format=count}}|
 +
{{#if:{{#ask:[[Variety of::{{{PAGENAME}}}]] |?Common name= | format=ul | template=Plant/Has descendent | link=none | limit=100 | default=None listed. }}
 
<!--[{{fullurl:Special:FormEdit/Subspecies|extend={{PAGENAMEE}}&child_type=subspecies}} Add a new Subspecies]-->
 
<!--[{{fullurl:Special:FormEdit/Subspecies|extend={{PAGENAMEE}}&child_type=subspecies}} Add a new Subspecies]-->
 +
| None listed.
 +
}}<!--end IF subspecies count-->
  
 
</div>
 
</div>

Revision as of 15:12, 17 March 2013

This is the Plant template. It is used in combination with the Plant form to generate plant articles.

It defines the following semantic properties:

  • to-do - list semantic properties!