Difference between revisions of "Template:SPlantbox"

From Gardenology.org - Plant Encyclopedia and Gardening Wiki
Jump to navigationJump to search
 
(44 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;"
+
<div style="cellpadding=0 text-align: center;"> [[Image:{{{image|}}}|{{{image_width|}}}px|{{{image_caption|}}}]]</div>
| &nbsp;{{{genus|}}} {{#if: {{{species|}}} | {{{species|}}} }}{{#if: {{{subspecies|}}} |subsp. {{{subspecies|}}} }} {{#if: {{{cultivar|}}} |var. {{{cultivar|}}}}}
+
}}
| style="background-color: IndianRed; text-align: left; width:600px;" colspan=2 | {{#if: {{{common_name|}}} | '''&nbsp;{{#arraymap:{{{common_name|}}}|,|x|[[Common name::x]]}}'''}}
+
 
{{#if: {{{image|}}} |  
+
 
{{!}}-
+
{| 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="cellpadding=0 text-align: center;" rowspan=2| [[Image:{{{image|}}}|{{{image_width|}}}px|{{{image_caption|}}}]]
+
|+ Plant Characteristics
|<!-- Start included PLANT CHARACTERISTICS table -->
+
{{#if: {{{habit|}}} |<nowiki/>
{| style="margin:0 auto; text-align:left; background:none;" cellpadding="2"
+
  {{!}}-
<!-- -->
+
  !{{#ask:
{{#if: {{{habit|}}} |  
 
{{!}}-
 
!{{#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|}}}]]
 
}}
 
|-
 
|abc
 
|x
 
|def
 
{{#if: {{{max_height|}}} |
 
{{!}}-
 
! Height:
 
{{!}} ⇕
 
{{!}} [[Min height::{{{min_height|}}}]] to [[Max height::{{{max_height|}}}]]
 
}}
 
<!-- -->
 
{{#if: {{{max_width|}}} |
 
{{!}}-
 
! Width:
 
{{!}} ⇔
 
{{!}} [[Min width::{{{min_width|}}}]] to </span> [[Max width::{{{max_width|}}}]]
 
}}
 
<!-- -->
 
|-
 
|abc
 
|x
 
|def
 
{{#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|}}}]]
 
}}
 
<!-- -->
 
|-
 
|abc
 
|x
 
|def
 
{{#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: {{{max_height|}}} |<nowiki/>
{{#if: {{{poisonous|}}} |  
+
  {{!}}-
{{!}}-
+
  ! Height:
! Poisonous:
+
  {{!}} ⇕
{{!}} ☠
+
  {{!}} [[Min height::{{{min_height|}}}]] to [[Max height::{{{max_height|}}}]]
{{!}} [[Poisonous::{{{poisonous|}}}]]
+
}}{{#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: {{{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}}:
{{#if: {{{water|}}} |
+
  {{!}} ◍
{{!}}-
+
  {{!}} {{#arraymap:{{{water|}}}|,|x|[[Water::x]]}}
! {{#ask:[[Category:Plant]]|[[Water::+]]| ?Water| limit=0 |searchlabel=Water}}:
+
}}{{#if: {{{features|}}} |<nowiki/>
{{!}} ◍
+
  {{!}}-
{{!}} {{#arraymap:{{{water|}}}|,|x|[[Water::x]]}}
+
  ! Features:
}}
+
  {{!}} ✓
<!--  -->
+
  {{!}} {{#arraymap:{{{features|}}}|,|x|[[Features::x]]}}
{{#if: {{{features|}}} |
+
}}{{#if: {{{Min Temp Num|}}} |<nowiki/>
{{!}}-
+
  {{!}}-
! Features:
+
  ! Minimum Temp:
{{!}} ✓
+
  {{!}} ☃
{{!}} {{#arraymap:{{{features|}}}|,|x|[[Features::x]]}}
+
  {{!}} [[Temp degree::{{{Min Temp Num|}}}{{{Temp Metric|}}}]]
}}
+
}}{{#if: {{{min_zone|}}} |<nowiki/>
<!-- was Hidden fields, interally pass variables to right place  -->
+
  {{!}}-
<!--  -->
+
  ! USDA Zones:
{{#if: {{{Min Temp Num|}}} |
+
  {{!}}  
{{!}}-
+
  {{!}} [[Min zone::{{{min_zone|}}}]] {{#if: {{{max_zone|}}} |  to [[Max zone::{{{max_zone|}}}]] }}
! Minimum Temp:
+
}}{{#if: {{{sunset_zones|}}} |<nowiki/>
{{!}} ☃
+
  {{!}}-
{{!}} [[Temp degree::{{{Min Temp Num|}}}{{{Temp Metric|}}}]]
+
  ! Sunset Zones:
}}
+
  {{!}}  
<!--  -->
+
  {{!}} [[Sunset zones::{{{sunset_zones|}}}]]
{{#if: {{{min_zone|}}} |
+
}}{{#if: {{{flowers|}}} |<nowiki/>
{{!}}-
+
  {{!}}-
! USDA Zones:
+
  ! Flower features:
{{!}}  
+
  {{!}} ❀  
{{!}} [[Min zone::{{{min_zone|}}}]] {{#if: {{{max_zone|}}} |  to [[Max zone::{{{max_zone|}}}]] }}
+
  {{!}} {{#arraymap:{{{flowers|}}}|,|x|[[Flowers::x]]}}
}}
 
<!--  -->
 
{{#if: {{{sunset_zones|}}} |
 
{{!}}-
 
! Sunset Zones:
 
{{!}}  
 
{{!}} [[Sunset zones::{{{sunset_zones|}}}]]
 
}}
 
<!--  -->
 
{{#if: {{{flowers|}}} |
 
{{!}}-
 
! 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
|{{#if: {{{familia|}}} |
+
|{{#if: {{{familia|}}} |<nowiki/>
 
<small> [[{{{familia|}}}]] > </small>
 
<small> [[{{{familia|}}}]] > </small>
 
}}
 
}}
|{{#if: {{{genus|}}} |
+
|{{#if: {{{genus|}}} |<nowiki/>
 
<small> [[{{{genus|}}}]] > </small>
 
<small> [[{{{genus|}}}]] > </small>
 
}}
 
}}
|{{#if: {{{species|}}} |
+
|{{#if: {{{species|}}} |<nowiki/>
 
<small> [[{{{species|}}}]] > </small>
 
<small> [[{{{species|}}}]] > </small>
 
}}
 
}}
|{{#if: {{{subspecies|}}} |
+
|{{#if: {{{subspecies|}}} |<nowiki/>
 
<small> [[{{{subspecies|}}}]] > </small>
 
<small> [[{{{subspecies|}}}]] > </small>
 
}}
 
}}
|{{#if: {{{cultivar|}}} |
+
|{{#if: {{{cultivar|}}} |<nowiki/>
 
<small> [[{{{cultivar|}}}]] > </small>
 
<small> [[{{{cultivar|}}}]] > </small>
 
}}
 
}}
|{{#if: {{{taxo_author|}}} |
+
|{{#if: {{{taxo_author|}}} |<nowiki/>
 
<small> [[{{{taxo_author|}}}]] > </small>
 
<small> [[{{{taxo_author|}}}]] > </small>
 
}}
 
}}
<!--  -->
 
 
|} <!-- End included CLASSIFICATION table -->
 
|} <!-- End included CLASSIFICATION table -->
<!--  -->
 
 
{{#if: {{{jumpin|}}} |
 
{{#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]]}}
 
<br>{{#arraymap:{{{jumpin|}}}|,|x|[[Jump in::x]]}}
 +
{{!}}}
 
}}
 
}}
|}
+
 
 +
<!-- set schematic wiki properties -->
 
[[genus::{{{genus|}}}| ]]
 
[[genus::{{{genus|}}}| ]]
 
[[familia::{{{familia|}}}| ]]
 
[[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.