Difference between revisions of "Template:Treatment/Body"

 
(add introduced variants to resolve Issue #32)
 
(7 intermediate revisions by the same user not shown)
Line 29: Line 29:
  
 
### Text distribution
 
### Text distribution
-->{{#if:{{{introduced|}}}| Introduced;&nbsp;}}{{#arraymap: {{{distribution|}}}|;|@@@|@@@|<span>, </span>}}
+
-->{{#ifeq:{{{introduced}}}|true| Introduced;&nbsp;|}}{{#ifeq:{{{introduced}}}|presumed| Presumed introduced;&nbsp;|}}{{#ifeq:{{{introduced}}}|possibly| Possibly introduced;&nbsp;|}}{{#arraymap: {{{distribution|}}}|;|@@@|@@@|<span>, </span>}}
 
</div>}}<!--
 
</div>}}<!--
  
Line 47: Line 47:
 
## References
 
## References
 
--><div class="treatment-references">
 
--><div class="treatment-references">
<h2>References</h2>
+
<h2>Selected References</h2>
 
{{#if:{{{references|}}}|{{{references}}}|None.}}
 
{{#if:{{{references|}}}|{{{references}}}|None.}}
 
</div><!--
 
</div><!--
Line 55: Line 55:
 
### If lower taxa found
 
### If lower taxa found
 
--><h2>Lower Taxa</h2>
 
--><h2>Lower Taxa</h2>
<div class="show-treatment-lower-taxa collapsed" data-toggle="collapse" data-target="#treatment-lower-taxa-list"><span class="">Click to show lower taxa</span> <span class="caret"></span></div>
+
<div>{{#ask: [[Taxon parent::{{PAGENAME}} ]]|limit=999 }}</div> | <!--
<div id="treatment-lower-taxa-list" class="treatment-lower-taxa-list collapse">{{#ask: [[Taxon parent::{{PAGENAME}} ]]|limit=999 }}</div> | <!--
 
 
### If no lower taxa found
 
### If no lower taxa found
 
-->
 
-->
 
<h2>Lower Taxa</h2>
 
<h2>Lower Taxa</h2>
<div>No lower taxa listed.</div>}}
+
<div>None.</div>}}
</div>
+
</div><!--
 +
 
 +
## Family Illustrations
 +
-->{{#if: {{#ask:[[Taxon rank::family]][[Taxon name::{{PAGENAME}}]]}}|<div class="family-illustrations">
 +
<h2>Illustrations</h2>
 +
{{:{{PAGENAME}} Illustrations}}</div>
 +
}}<!--
 +
 
 
</includeonly>
 
</includeonly>

Latest revision as of 16:03, 10 May 2021

Used to format the main body of a treatment:

  • Distribution
  • Discussion
  • Tables
  • References
  • Lower Taxa