Difference between revisions of "Template:SPlantbox"

From Gardenology.org - Plant Encyclopedia and Gardening Wiki
Jump to navigationJump to search
 
(106 intermediate revisions by 2 users 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;"
 
! 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>
 
| 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="margin:0 auto; text-align:left; background:none;" cellpadding="2"
 
|-class{{{habit|}}}="hiddenStructure"
 
! {{#ask:searchlabel=Habit|[[Category:Plant]]|[[Growth habit::+]]| ?Growth_habit| limit=0}}:
 
|
 
| [[Growth habit::{{{habit|}}}]]
 
|-class{{{max_height|}}}="hiddenStructure"
 
! Height:
 
| ⇕
 
| <span class="hiddenStructure{{{min_height|}}}">[[Min height::{{{min_height|}}}]] to </span> [[Max height::{{{max_height|}}}]]
 
|-class{{{max_width|}}}="hiddenStructure"
 
! Width:
 
| ⇔
 
| <span class="hiddenStructure{{{min_width|}}}">[[Min width::{{{min_width|}}}]] to </span> [[Max width::{{{max_width|}}}]]
 
  
|-class="hiddenStructure"
+
{{#if: {{{image|}}} |<nowiki/>
!
+
<div style="cellpadding=0 text-align: center;"> [[Image:{{{image|}}}|{{{image_width|}}}px|{{{image_caption|}}}]]</div>
| [[Min height box::{{{Min ht box|}}}]][[Min height metric::{{{Min ht metric|}}}]][[Max height box::{{{Max ht box|}}}]][[Max height metric::{{{Max ht metric|}}}]]
+
}}
| [[Min width box::{{{Min wd box|}}}]][[Min width metric::{{{Min wd metric|}}}]][[Max width box::{{{Max wd box|}}}]][[Max width metric::{{{Max wd metric|}}}]]
 
|-class{{{Max ht box|}}}="hiddenStructure"
 
! Height:
 
| ⇕
 
| <span class="hiddenStructure{{{Min ht box|}}}">[[Min height::{{{Min ht box|}}} {{{Min ht metric|}}}]] to </span> [[Max height::{{{Max ht box|}}} {{{Max ht metric|}}}]]
 
|-class{{{Max wd box|}}}="hiddenStructure"
 
! Width:
 
| ⇔
 
| <span class="hiddenStructure{{{Min wd box|}}}">[[Min width::{{{Min wd box|}}} {{{Min wd metric|}}}]] to </span> [[Max width::{{{Max wd box|}}} {{{Max wd metric|}}}]]
 
  
|- class{{{lifespan|}}}="hiddenStructure"
+
 
! {{#ask:searchlabel=Lifespan|[[Category:Plant]]|[[Lifespan::+]]| ?Lifespan| limit=0}}:
+
{| style="background: Beige; position:relative; margin: 0 0 0.5em 1em; border-collapse: collapse; float:left; clear:right; width:250px;" border="0" cellpadding="0"
|
+
|+ Plant Characteristics
| {{#arraymap:{{{lifespan|}}}|,|x|[[Lifespan::x]]}}
+
{{#if: {{{habit|}}} |<nowiki/>
|- class{{{origin|}}}="hiddenStructure"
+
  {{!}}-
! Origin:
+
  !{{#ask:
|
+
[[Category:Plant]]
| [[Origin::{{{origin|}}}]]
+
[[Growth habit::+]]
|- class{{{poisonous|}}}="hiddenStructure"
+
|?Growth_habit|limit=0|searchlabel=Habit}}
! Poisonous:
+
  {{!}}&nbsp;
|
+
  {{!}}[[Growth habit::{{{habit|}}}]][[Category:{{{habit|}}}]]
| [[Poisonous::{{{poisonous|}}}]]
+
}}
|- class{{{flower_season|}}}="hiddenStructure"
+
{{#if: {{{max_height|}}} |<nowiki/>
! Bloom:
+
  {{!}}-
| ❀  
+
  ! Height:
| {{#arraymap:{{{flower_season|}}}|,|x|[[Flower season::x]]}}
+
  {{!}} ⇕
 +
  {{!}} [[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]]}}
 +
}}
 
|} <!-- 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
|- class{{{exposure|}}}="hiddenStructure"
+
{{#if: {{{exposure|}}} |<nowiki/>
! {{#ask:searchlabel=Exposure|[[Category:Plant]]|[[Exposure::+]]| ?Exposure| limit=0}}:
+
  {{!}}-
|
+
  ! {{#ask:[[Category:Plant]]|[[Exposure::+]]| ?Exposure| limit=0|searchlabel=Exposure}}:
| {{#arraymap:{{{exposure|}}}|,|y|[[Exposure::y]]}}
+
  {{!}}
|- class{{{water|}}}="hiddenStructure"
+
  {{!}} {{#arraymap:{{{exposure|}}}|,|y|[[Exposure::y]]}}
! {{#ask:searchlabel=Water|[[Category:Plant]]|[[Water::+]]| ?Water| limit=0}}:
+
}}{{#if: {{{water|}}} |<nowiki/>
|
+
  {{!}}-
| {{#arraymap:{{{water|}}}|,|x|[[Water::x]]}}
+
  ! {{#ask:[[Category:Plant]]|[[Water::+]]| ?Water| limit=0 |searchlabel=Water}}:
|- class{{{features|}}}="hiddenStructure"
+
  {{!}}
! Features:
+
  {{!}} {{#arraymap:{{{water|}}}|,|x|[[Water::x]]}}
|
+
}}{{#if: {{{features|}}} |<nowiki/>
| {{#arraymap:{{{features|}}}|,|x|[[Features::x]]}}
+
  {{!}}-
|- class="hiddenStructure"
+
  ! Features:
! Hidden fields, interally pass variables to right place
+
  {{!}}
| [[Min Temp Num::{{{Min Temp Num|}}}| ]]
+
  {{!}} {{#arraymap:{{{features|}}}|,|x|[[Features::x]]}}
| [[Temp Metric::{{{Temp Metric|}}}| ]]
+
}}{{#if: {{{Min Temp Num|}}} |<nowiki/>
|- class{{{Min Temp Num|}}}="hiddenStructure"
+
  {{!}}-
! Minimum Temp:
+
  ! Minimum Temp:
|
+
  {{!}}
| [[Temp degree::{{{Min Temp Num|}}}{{{Temp Metric|}}}]]
+
  {{!}} [[Temp degree::{{{Min Temp Num|}}}{{{Temp Metric|}}}]]
|- class{{{min_zone|}}}="hiddenStructure"
+
}}{{#if: {{{min_zone|}}} |<nowiki/>
! USDA Zones:
+
  {{!}}-
|
+
  ! USDA Zones:
| [[Min zone::{{{min_zone|}}}]] <span class="hiddenStructure{{{max_zone|}}}"> to [[Max zone::{{{max_zone|}}}]]</span>
+
  {{!}}
|- class{{{sunset_zones|}}}="hiddenStructure"
+
  {{!}} [[Min zone::{{{min_zone|}}}]] {{#if: {{{max_zone|}}} to [[Max zone::{{{max_zone|}}}]] }}
! [Sunset Zones:
+
}}{{#if: {{{sunset_zones|}}} |<nowiki/>
|
+
  {{!}}-
| [[Sunset zones::{{{sunset_zones|}}}]]
+
  ! Sunset Zones:
|- class{{{flowers|}}}="hiddenStructure"
+
  {{!}}
! Flower features:
+
  {{!}} [[Sunset zones::{{{sunset_zones|}}}]]
| ❀  
+
}}{{#if: {{{flowers|}}} |<nowiki/>
| {{#arraymap:{{{flowers|}}}|,|x|[[Flowers::x]]}}
+
  {{!}}-
 +
  ! Flower features:
 +
  {{!}} ❀  
 +
  {{!}} {{#arraymap:{{{flowers|}}}|,|x|[[Flowers::x]]}}
 +
}}
 
|} <!-- End included CULTIVATION table -->
 
|} <!-- End included CULTIVATION table -->
|-
+
<!-- Start included CLASSIFICATION table -->
| 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:250px;" border="0" cellpadding="0"
{| style="margin:0 auto; text-align:left; background:none;" cellpadding="2"
+
|+ Scientific Names
| class="hiddenStructure{{{familia|}}}" | <small> [[{{{familia|}}}]] > </small>
+
|{{#if: {{{familia|}}} |<nowiki/>
| class="hiddenStructure{{{genus|}}}" | <small> [[{{{genus|}}}]] </small>
+
<small> [[{{{familia|}}}]] > </small>
| class="hiddenStructure{{{species|}}}" | <small> {{{species|}}} </small>
+
}}
| class="hiddenStructure{{{subspecies|}}}" | <small> {{{subspecies|}}} </small>
+
|{{#if: {{{genus|}}} |<nowiki/>
| class="hiddenStructure{{{cultivar|}}}" | <small> var. {{{cultivar|}}} </small>
+
<small> [[{{{genus|}}}]] > </small>
 +
}}
 +
|{{#if: {{{species|}}} |<nowiki/>
 +
<small> [[{{{species|}}}]] > </small>
 +
}}
 +
|{{#if: {{{subspecies|}}} |<nowiki/>
 +
<small> [[{{{subspecies|}}}]] > </small>
 +
}}
 +
|{{#if: {{{cultivar|}}} |<nowiki/>
 +
<small> [[{{{cultivar|}}}]] > </small>
 +
}}
 +
|{{#if: {{{taxo_author|}}} |<nowiki/>
 +
<small> [[{{{taxo_author|}}}]] > </small>
 +
}}
 
|} <!-- End included CLASSIFICATION table -->
 
|} <!-- End included CLASSIFICATION table -->
<span class="hiddenStructure{{{jumpin|}}}"><br>{{#arraymap:{{{jumpin|}}}|,|x|[[Jump in::x]]}}</span>
+
{{#if: {{{jumpin|}}} |
|}
+
{{{!}} style="background: Beige; position:relative; margin: 0 0 0.5em 1em; border-collapse: collapse; float:left; clear:right; width:300px;" border="0" cellpadding="0"
 +
<br>{{#arraymap:{{{jumpin|}}}|,|x|[[Jump in::x]]}}
 +
{{!}}}
 +
}}
 +
 
 +
<!-- set schematic wiki properties -->
 +
[[genus::{{{genus|}}}| ]]
 +
[[familia::{{{familia|}}}| ]]
 +
[[Min Temp Num::{{{Min Temp Num|}}}| ]]
 +
[[Temp Metric::{{{Temp Metric|}}}| ]]
 +
<!-- set categories -->
 
[[Category:Plant]]
 
[[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.