Difference between revisions of "Template:SPlantbox"

From Gardenology.org - Plant Encyclopedia and Gardening Wiki
Jump to navigationJump to search
 
(60 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|}}} |<nowiki/>
 +
  {{!}}-
 +
  ! 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]]}}
 +
}}
 +
|} <!-- 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 -->
 +
|+ Cultivation
 +
{{#if: {{{exposure|}}} |<nowiki/>
 +
  {{!}}-
 +
  ! {{#ask:[[Category:Plant]]|[[Exposure::+]]| ?Exposure| limit=0|searchlabel=Exposure}}:
 +
  {{!}} ☼
 +
  {{!}} {{#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 -->
 +
<!-- 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"
 +
|+ Scientific Names
 +
|{{#if: {{{familia|}}} |<nowiki/>
 +
<small> [[{{{familia|}}}]] > </small>
 +
}}
 +
|{{#if: {{{genus|}}} |<nowiki/>
 +
<small> [[{{{genus|}}}]] > </small>
 
}}
 
}}
|-
+
|{{#if: {{{species|}}} |<nowiki/>
!abc
+
<small> [[{{{species|}}}]] > </small>
|def
 
|ghi
 
{{#if: {{{max_height|}}} |  
 
{{!}}-
 
! Height:
 
{{!}} ⇕
 
{{!}} [[Min height::{{{min_height|}}}]] to [[Max height::{{{max_height|}}}]]
 
 
}}
 
}}
<!-- -->
+
|{{#if: {{{subspecies|}}} |<nowiki/>
|-
+
<small> [[{{{subspecies|}}}]] > </small>
!abc
 
|def
 
|ghi
 
{{#if: {{{max_width|}}} |  
 
{{!}}-
 
! Width:
 
{{!}} ⇔
 
{{!}} [[Min width::{{{min_width|}}}]] to </span> [[Max width::{{{max_width|}}}]]
 
 
}}
 
}}
<!-- -->
+
|{{#if: {{{cultivar|}}} |<nowiki/>
|-class="hiddenStructure"
+
<small> [[{{{cultivar|}}}]] > </small>
!
 
| [[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}}:
 
| ⌛
 
| {{#arraymap:{{{lifespan|}}}|,|x|[[Lifespan::x]]}}
 
<!--  -->
 
|- class{{{origin|}}}="hiddenStructure"
 
! Origin:
 
| ✈
 
| [[Origin::{{{origin|}}}]]
 
<!--  -->
 
{{#if: {{{poisonous|}}} |
 
{{!}}-
 
! Poisonous:
 
{{!}} ☠
 
{{!}} [[Poisonous::{{{poisonous|}}}]]
 
 
}}
 
}}
<!--  -->
+
|{{#if: {{{taxo_author|}}} |<nowiki/>
{{#if: {{{flower_season|}}} |  
+
<small> [[{{{taxo_author|}}}]] > </small>
{{!}}-
 
! Bloom:
 
{{!}} ❀
 
{{!}} [[flower_season::{{{flower_season|}}}]]
 
{{!}} {{#arraymap:{{{flower_season|}}}|,|x|[[Flower season::x]]}}
 
 
}}
 
}}
<!--  -->
 
|} <!-- End included PLANT CHARACTERISTICS table -->
 
|<!-- Start included CULTIVATION table -->
 
{| style="margin:0 auto; text-align:left; background:none;" cellpadding="2"
 
|- class{{{exposure|}}}="hiddenStructure"
 
! {{#ask:searchlabel=Exposure|[[Category:Plant]]|[[Exposure::+]]| ?Exposure| limit=0}}:
 
| ☼
 
| {{#arraymap:{{{exposure|}}}|,|y|[[Exposure::y]]}}
 
|- class{{{water|}}}="hiddenStructure"
 
! {{#ask:searchlabel=Water|[[Category:Plant]]|[[Water::+]]| ?Water| limit=0}}:
 
| ◍
 
| {{#arraymap:{{{water|}}}|,|x|[[Water::x]]}}
 
|- class{{{features|}}}="hiddenStructure"
 
! Features:
 
| ✓
 
| {{#arraymap:{{{features|}}}|,|x|[[Features::x]]}}
 
|- class="hiddenStructure"
 
! Hidden fields, interally pass variables to right place
 
| [[Min Temp Num::{{{Min Temp Num|}}}| ]]
 
| [[Temp Metric::{{{Temp Metric|}}}| ]]
 
|- class{{{Min Temp Num|}}}="hiddenStructure"
 
! Minimum Temp:
 
| ☃
 
| [[Temp degree::{{{Min Temp Num|}}}{{{Temp Metric|}}}]]
 
|- class{{{min_zone|}}}="hiddenStructure"
 
! USDA Zones:
 
|
 
| [[Min zone::{{{min_zone|}}}]] <span class="hiddenStructure{{{max_zone|}}}"> to [[Max zone::{{{max_zone|}}}]]</span>
 
|- class{{{sunset_zones|}}}="hiddenStructure"
 
! Sunset Zones:
 
|
 
| [[Sunset zones::{{{sunset_zones|}}}]]
 
|- class{{{flowers|}}}="hiddenStructure"
 
! Flower features:
 
| ❀
 
| {{#arraymap:{{{flowers|}}}|,|x|[[Flowers::x]]}}
 
|} <!-- End included CULTIVATION table -->
 
|-
 
| colspan=2 | <!-- Start included CLASSIFICATION table -->
 
{| style="margin:0 auto; text-align:left; background:none;" cellpadding="2"
 
| class="hiddenStructure{{{familia|}}}" | <small> [[{{{familia|}}}]] > </small>
 
| class="hiddenStructure{{{genus|}}}" | <small> [[{{{genus|}}}]] </small>
 
| class="hiddenStructure{{{species|}}}" | <small> {{{species|}}} </small>
 
| class="hiddenStructure{{{subspecies|}}}" | <small> {{{subspecies|}}} </small>
 
| class="hiddenStructure{{{cultivar|}}}" | <small> var. {{{cultivar|}}} </small>
 
| class="hiddenStructure{{{taxo_author|}}}" | <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|}}}| ]]
 
[[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.