Difference between revisions of "Template:SPlantbox"

From Gardenology.org - Plant Encyclopedia and Gardening Wiki
Jump to navigationJump to search
Line 6: Line 6:
 
{| 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="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="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: center;"  
| 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>
+
| &nbsp;{{{genus|}}} {{#if: {{{species|}}} | {{{species|}}} }}{{#if: {{{subspecies|}}} |subsp. {{{subspecies|}}} }} {{#if: {{{cultivar|}}} |var. {{{cultivar|}}}}}
|- class{{{image|}}}="hiddenStructure"
+
| style="background-color: IndianRed; text-align: left; width:600px;" colspan=2 | {{#if: {{{common_name|}}} | '''&nbsp;{{#arraymap:{{{common_name|}}}|,|x|[[Common name::x]]}}'''}}
| style="cellpadding=0 text-align: center;" rowspan=2| [[Image:{{{image|}}}|{{{image_width|}}}px|{{{image_caption|}}}]]
+
{{#if: {{{image|}}} |
 +
{{!}}-
 +
{{!}} style="cellpadding=0 text-align: center;" rowspan=2| [[Image:{{{image|}}}|{{{image_width|}}}px|{{{image_caption|}}}]]
 
|<!-- Start included PLANT CHARACTERISTICS table -->
 
|<!-- Start included PLANT CHARACTERISTICS table -->
 
{| style="margin:0 auto; text-align:left; background:none;" cellpadding="2"
 
{| style="margin:0 auto; text-align:left; background:none;" cellpadding="2"
Line 129: Line 131:
 
! USDA Zones:
 
! USDA Zones:
 
{{!}}  
 
{{!}}  
{{!}} [[Min zone::{{{min_zone|}}}]] <span class="hiddenStructure{{{max_zone|}}}"> to [[Max zone::{{{max_zone|}}}]]</span>
+
{{!}} [[Min zone::{{{min_zone|}}}]] {{#if: {{{max_zone|}}} to [[Max zone::{{{max_zone|}}}]] }}
 
}}
 
}}
 
<!--  -->
 
<!--  -->

Revision as of 09:46, 24 June 2021

This is the 'SPlantbox' template.

Edit the page to see the template text.