Difference between revisions of "Template:SPlantbox"

From Gardenology.org - Plant Encyclopedia and Gardening Wiki
Jump to navigationJump to search
 
(54 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the 'SPlantbox' template.
+
This is the 'SPlantbox2' template.
  
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude><includeonly>
 
</noinclude><includeonly>
{| style="background: Beige; position:relative; margin: 0 0 0.5em 1em; border-collapse: collapse; float:left; clear:right; width:800px;" border="1" cellpadding="0"
+
 
|- style="text-align:center; width:180px;"
+
{{#if: {{{image|}}} |<nowiki/>  
! style="background-color: IndianRed; text-align: center;" | &nbsp;{{{genus|}}} <span class="hiddenStructure{{{species|}}}">{{{species|}}}</span> <span class="hiddenStructure{{{subspecies|}}}">subsp. {{{subspecies|}}}</span> <span class="hiddenStructure{{{cultivar|}}}">var. {{{cultivar|}}}</span>
+
<div style="cellpadding=0 text-align: center;"> [[Image:{{{image|}}}|{{{image_width|}}}px|{{{image_caption|}}}]]</div>
| style="background-color: IndianRed; text-align: left; width:600px;" colspan=2 | <span class="hiddenStructure{{{common_name|}}}">'''&nbsp;{{#arraymap:{{{common_name|}}}|,|x|[[Common name::x]]}}'''</span>
+
}}
|- class{{{image|}}}="hiddenStructure"
+
 
| style="cellpadding=0 text-align: center;" rowspan=2| [[Image:{{{image|}}}|{{{image_width|}}}px|{{{image_caption|}}}]]
+
 
|<!-- Start included PLANT CHARACTERISTICS table -->
+
{| style="background: Beige; position:relative; margin: 0 0 0.5em 1em; border-collapse: collapse; float:left; clear:right; width:250px;" border="0" cellpadding="0"
{| style="margin:0 auto; text-align:left; background:none;" cellpadding="2"
+
|+ Plant Characteristics
<!-- -->
+
{{#if: {{{habit|}}} |<nowiki/>
{{#if: {{{habit|}}} |  
+
  {{!}}-
{{!}}-
+
  !{{#ask:
!{{#ask:
 
 
[[Category:Plant]]
 
[[Category:Plant]]
 
[[Growth habit::+]]
 
[[Growth habit::+]]
|?Growth_habit
+
|?Growth_habit|limit=0|searchlabel=Habit}}
|limit=0
+
  {{!}}&nbsp;
|searchlabel=Habit}}:
+
  {{!}}[[Growth habit::{{{habit|}}}]][[Category:{{{habit|}}}]]
{{!}}
 
{{!}}[[Growth habit::{{{habit|}}}]][[Category:{{{habit|}}}]]
 
 
}}
 
}}
{{#if: {{{max_height|}}} |  
+
{{#if: {{{max_height|}}} |<nowiki/>
{{!}}-
+
  {{!}}-
! Height:
+
  ! Height:
{{!}} ⇕
+
  {{!}} ⇕
{{!}} [[Min height::{{{min_height|}}}]] to [[Max height::{{{max_height|}}}]]
+
  {{!}} [[Min height::{{{min_height|}}}]] to [[Max height::{{{max_height|}}}]]
 +
}}{{#if: {{{max_width|}}} |<nowiki/>
 +
  {{!}}-
 +
  ! Width:
 +
  {{!}} ⇔
 +
  {{!}} [[Min width::{{{min_width|}}}]] to [[Max width::{{{max_width|}}}]]
 +
}}{{#if: {{{Max ht box|}}} |<nowiki/>
 +
  {{!}}-
 +
  ! Height:
 +
  {{!}} ⇕
 +
  {{!}} {{#if: {{{Min ht box|}}} | [[Min height::{{{Min ht box|}}} {{{Min ht metric|}}}]] to}} [[Max height::{{{Max ht box|}}} {{{Max ht metric|}}}]]
 +
}}{{#if: {{{Max wd box|}}} |<nowiki/>
 +
  {{!}}-
 +
  ! Width:
 +
  {{!}} ⇔
 +
  {{!}} {{#if: {{{Min wd box|}}} | [[Min width::{{{Min wd box|}}} {{{Min wd metric|}}}]] to}} [[Max width::{{{Max wd box|}}} {{{Max wd metric|}}}]]
 +
}}{{#if: {{{lifespan|}}} |<nowiki/>
 +
  {{!}}-
 +
  ! {{#ask:[[Category:Plant]]|[[Lifespan::+]]| ?Lifespan| limit=0|searchlabel=Lifespan}}:
 +
  {{!}} ⌛
 +
  {{!}} {{#arraymap:{{{lifespan|}}}|,|x|[[Lifespan::x]]}}
 +
}}{{#if: {{{origin|}}} |<nowiki/>
 +
  {{!}}-
 +
  ! Origin:
 +
  {{!}} ✈
 +
  {{!}} [[Origin::{{{origin|}}}]]
 +
}}{{#if: {{{poisonous|}}} |<nowiki/>
 +
  {{!}}-
 +
  ! Poisonous:
 +
  {{!}} ☠
 +
  {{!}} [[Poisonous::{{{poisonous|}}}]]
 +
}}{{#if: {{{flower_season|}}} |<nowiki/>
 +
  {{!}}-
 +
  ! Bloom:
 +
  {{!}} ❀
 +
  {{!}} {{#arraymap:{{{flower_season|}}}|,|x|[[Flower season::x]]}}
 
}}
 
}}
<!-- -->
 
{{#if: {{{max_width|}}} |
 
{{!}}-
 
! Width:
 
{{!}} ⇔
 
{{!}} [[Min width::{{{min_width|}}}]] to </span> [[Max width::{{{max_width|}}}]]
 
}}
 
<!-- -->
 
{{#if: {{{Max ht box|}}} |
 
{{!}}-
 
! Height:
 
{{!}} ⇕
 
{{!}} {{#if: {{{Max ht box|}}} | [[Min height::{{{Min ht box|}}} {{{Min ht metric|}}}]] to}} [[Max height::{{{Max ht box|}}} {{{Max ht metric|}}}]]
 
}}
 
<!-- -->
 
{{#if: {{{Max wd box|}}} |
 
{{!}}-
 
! Width:
 
{{!}} ⇔
 
{{!}} {{#if: {{{Max wd box|}}} | [[Min width::{{{Min wd box|}}} {{{Min wd metric|}}}]] to}} [[Max width::{{{Max wd box|}}} {{{Max wd metric|}}}]]
 
}}
 
<!--  -->
 
{{#if: {{{lifespan|}}} |
 
{{!}}-
 
! {{#ask:[[Category:Plant]]|[[Lifespan::+]]| ?Lifespan| limit=0|searchlabel=Lifespan}}:
 
{{!}} ⌛
 
{{!}} {{#arraymap:{{{lifespan|}}}|,|x|[[Lifespan::x]]}}
 
}}
 
<!--  -->
 
{{#if: {{{origin|}}} |
 
{{!}}-
 
! Origin:
 
{{!}} ✈
 
{{!}} [[Origin::{{{origin|}}}]]
 
}}
 
<!--  -->
 
{{#if: {{{poisonous|}}} |
 
{{!}}-
 
! Poisonous:
 
{{!}} ☠
 
{{!}} [[Poisonous::{{{poisonous|}}}]]
 
}}
 
<!--  -->
 
{{#if: {{{flower_season|}}} |
 
{{!}}-
 
! Bloom:
 
{{!}} ❀
 
{{!}} {{#arraymap:{{{flower_season|}}}|,|x|[[Flower season::x]]}}
 
}}
 
<!--  -->
 
 
|} <!-- End included PLANT CHARACTERISTICS table -->
 
|} <!-- End included PLANT CHARACTERISTICS table -->
 +
{| style="background: Beige; position:relative; margin: 0 0 0.5em 1em; border-collapse: collapse; float:left; clear:right; width:250px;" border="0" cellpadding="0"
 
|<!-- Start included CULTIVATION table -->
 
|<!-- Start included CULTIVATION table -->
{| style="margin:0 auto; text-align:left; background:none;" cellpadding="2"
+
|+ Cultivation
<!--  -->
+
{{#if: {{{exposure|}}} |<nowiki/>
{{#if: {{{exposure|}}} |
+
  {{!}}-  
{{!}}-  
+
  ! {{#ask:[[Category:Plant]]|[[Exposure::+]]| ?Exposure| limit=0|searchlabel=Exposure}}:
! {{#ask:[[Category:Plant]]|[[Exposure::+]]| ?Exposure| limit=0|searchlabel=Exposure}}:
+
  {{!}} ☼
{{!}} ☼
+
  {{!}} {{#arraymap:{{{exposure|}}}|,|y|[[Exposure::y]]}}
{{!}} {{#arraymap:{{{exposure|}}}|,|y|[[Exposure::y]]}}
+
}}{{#if: {{{water|}}} |<nowiki/>
 +
  {{!}}-
 +
  ! {{#ask:[[Category:Plant]]|[[Water::+]]| ?Water| limit=0 |searchlabel=Water}}:
 +
  {{!}} ◍
 +
  {{!}} {{#arraymap:{{{water|}}}|,|x|[[Water::x]]}}
 +
}}{{#if: {{{features|}}} |<nowiki/>
 +
  {{!}}-
 +
  ! Features:
 +
  {{!}} ✓
 +
  {{!}} {{#arraymap:{{{features|}}}|,|x|[[Features::x]]}}
 +
}}{{#if: {{{Min Temp Num|}}} |<nowiki/>
 +
  {{!}}-
 +
  ! Minimum Temp:
 +
  {{!}} ☃
 +
  {{!}} [[Temp degree::{{{Min Temp Num|}}}{{{Temp Metric|}}}]]
 +
}}{{#if: {{{min_zone|}}} |<nowiki/>
 +
  {{!}}-
 +
  ! USDA Zones:
 +
  {{!}}
 +
  {{!}} [[Min zone::{{{min_zone|}}}]] {{#if: {{{max_zone|}}} |  to [[Max zone::{{{max_zone|}}}]] }}
 +
}}{{#if: {{{sunset_zones|}}} |<nowiki/>
 +
  {{!}}-
 +
  ! Sunset Zones:
 +
  {{!}}
 +
  {{!}} [[Sunset zones::{{{sunset_zones|}}}]]
 +
}}{{#if: {{{flowers|}}} |<nowiki/>
 +
  {{!}}-
 +
  ! Flower features:
 +
  {{!}} ❀
 +
  {{!}} {{#arraymap:{{{flowers|}}}|,|x|[[Flowers::x]]}}
 
}}
 
}}
<!-- -->
+
|} <!-- End included CULTIVATION table -->
{{#if: {{{water|}}} |
+
<!-- Start included CLASSIFICATION table -->
{{!}}-
+
{| style="background: Beige; position:relative; margin: 0 0 0.5em 1em; border-collapse: collapse; float:left; clear:right; width:250px;" border="0" cellpadding="0"
! {{#ask:[[Category:Plant]]|[[Water::+]]| ?Water| limit=0 |searchlabel=Water}}:
+
|+ Scientific Names
{{!}} ◍
+
|{{#if: {{{familia|}}} |<nowiki/>
{{!}} {{#arraymap:{{{water|}}}|,|x|[[Water::x]]}}
+
<small> [[{{{familia|}}}]] > </small>
 
}}
 
}}
<!--  -->
+
|{{#if: {{{genus|}}} |<nowiki/>
{{#if: {{{features|}}} |
+
<small> [[{{{genus|}}}]] > </small>
{{!}}-
 
! Features:
 
{{!}} ✓
 
{{!}} {{#arraymap:{{{features|}}}|,|x|[[Features::x]]}}
 
 
}}
 
}}
<!-- was Hidden fields, interally pass variables to right place  -->
+
|{{#if: {{{species|}}} |<nowiki/>
<!--  -->
+
<small> [[{{{species|}}}]] > </small>
{{#if: {{{Min Temp Num|}}} |
 
{{!}}-
 
! Minimum Temp:
 
{{!}} ☃
 
{{!}}- [[Temp degree::{{{Min Temp Num|}}}{{{Temp Metric|}}}]]
 
 
}}
 
}}
<!--  -->
+
|{{#if: {{{subspecies|}}} |<nowiki/>
{{#if: {{{min_zone|}}} |
+
<small> [[{{{subspecies|}}}]] > </small>
{{!}}-
 
! USDA Zones:
 
{{!}}
 
{{!}} [[Min zone::{{{min_zone|}}}]] <span class="hiddenStructure{{{max_zone|}}}"> to [[Max zone::{{{max_zone|}}}]]</span>
 
 
}}
 
}}
<!--  -->
+
|{{#if: {{{cultivar|}}} |<nowiki/>
{{#if: {{{sunset_zones|}}} |
+
<small> [[{{{cultivar|}}}]] > </small>
{{!}}-
 
! Sunset Zones:
 
{{!}}
 
{{!}} [[Sunset zones::{{{sunset_zones|}}}]]
 
 
}}
 
}}
<!--  -->
+
|{{#if: {{{taxo_author|}}} |<nowiki/>
{{#if: {{{flowers|}}} |
+
<small> [[{{{taxo_author|}}}]] > </small>
{{!}}-
 
! Flower features:
 
{{!}} ❀
 
{{!}} {{#arraymap:{{{flowers|}}}|,|x|[[Flowers::x]]}}
 
 
}}
 
}}
|} <!-- End included CULTIVATION table -->
+
|} <!-- End included CLASSIFICATION table -->
|-
+
{{#if: {{{jumpin|}}} |
| colspan=2 | <!-- Start included CLASSIFICATION table -->
+
{{{!}} style="background: Beige; position:relative; margin: 0 0 0.5em 1em; border-collapse: collapse; float:left; clear:right; width:300px;" border="0" cellpadding="0"
{| style="margin:0 auto; text-align:left; background:none;" cellpadding="2"
+
<br>{{#arraymap:{{{jumpin|}}}|,|x|[[Jump in::x]]}}
{{#if: {{{familia|}}} |
+
{{!}}}
{{!}} <small> [[{{{familia|}}}]] > </small>j
 
 
}}
 
}}
| class="hiddenStructure{{{familia|}}}" | <small> [[{{{familia|}}}]] > </small>j
+
 
| class="hiddenStructure{{{genus|}}}" | <small> [[{{{genus|}}}]] </small>k
+
<!-- set schematic wiki properties -->
| class="hiddenStructure{{{species|}}}" | <small> {{{species|}}} </small>l
+
[[genus::{{{genus|}}}| ]]
| class="hiddenStructure{{{subspecies|}}}" | <small> {{{subspecies|}}} </small>m
+
[[familia::{{{familia|}}}| ]]
| class="hiddenStructure{{{cultivar|}}}" | <small> var. {{{cultivar|}}} </small>n
+
[[Min Temp Num::{{{Min Temp Num|}}}| ]]
| class="hiddenStructure{{{taxo_author|}}}" | <small>, {{{taxo_author|}}} </small>o
+
[[Temp Metric::{{{Temp Metric|}}}| ]]
|} <!-- End included CLASSIFICATION table -->
+
<!-- set categories -->
<span class="hiddenStructure{{{jumpin|}}}"><br>{{#arraymap:{{{jumpin|}}}|,|x|[[Jump in::x]]}}</span>
+
[[Category:Plant]]
|}
 
a[[genus::{{{genus|}}}| ]]
 
b[[familia::{{{familia|}}}| ]]
 
c[[Category:Plant]]
 
 
<br clear=all>
 
<br clear=all>
 
</includeonly>
 
</includeonly>

Latest revision as of 02:40, 15 August 2021

This is the 'SPlantbox2' template.

Edit the page to see the template text.