Difference between revisions of "Template:Testsplantbox"

From Gardenology.org - Plant Encyclopedia and Gardening Wiki
Jump to navigationJump to search
Line 4: Line 4:
 
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|}}}]][[Category:{{{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"
+
<table> style="background: Beige; position:relative; margin: 0 0 0.5em 1em; border-collapse: collapse; float:left; clear:right; width:800px;" border="1" cellpadding="0"<table>
!
 
| [[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"
+
<tr style="text-align:center; width:180px;">
! {{#ask:searchlabel=Lifespan|[[Category:Plant]]|[[Lifespan::+]]| ?Lifespan| limit=0}}:
+
 
|
+
<th style="background-color: IndianRed; text-align: center;">  &nbsp;{{{genus|}}}
| {{#arraymap:{{{lifespan|}}}|,|x|[[Lifespan::x]]}}
+
{{if: {{{species|}}} | {{{species|}}} }}
|- class{{{origin|}}}="hiddenStructure"
+
{{if: {{{subspecies|}}} | subsp. {{{subspecies|}}} }}
! Origin:
+
{{if: {{{cultivar|}}} | var. {{{cultivar|}}} }}
|
+
</th>
| [[Origin::{{{origin|}}}]]
+
 
|- class{{{poisonous|}}}="hiddenStructure"
+
<td style="background-color: IndianRed; text-align: left; width:600px;" colspan=2 >
! Poisonous:
+
{{if: {{#arraymap:{{{common_name|}}}|,|x|[[Common name::x]]}} | '''&nbsp;{{#arraymap:{{{common_name|}}}|,|x|[[Common name::x]]}}'''</td>}}
|
+
</tr>
| [[Poisonous::{{{poisonous|}}}]]
+
 
|- class{{{flower_season|}}}="hiddenStructure"
+
{{if: {{{image|}}} | <tr><td style="cellpadding=0 text-align: center;" rowspan=2>
! Bloom:
+
[[Image:{{{image|}}}|{{{image_width|}}}px|{{{image_caption|}}}]]</td></tr>}}
| ❀  
+
 
| {{#arraymap:{{{flower_season|}}}|,|x|[[Flower season::x]]}}
+
<tr><td>
|} <!-- End included PLANT CHARACTERISTICS table -->
+
<!-- Start included PLANT CHARACTERISTICS table -->
|<!-- Start included CULTIVATION table -->
+
<table style="margin:0 auto; text-align:left; background:none;" cellpadding="2">
{| style="margin:0 auto; text-align:left; background:none;" cellpadding="2"
+
 
|- class{{{exposure|}}}="hiddenStructure"
+
{{if: {{{habit|}}} | <tr><th>{{#ask:searchlabel=Habit|[[Category:Plant]]|[[Growth habit::+]]| ?Growth_habit| limit=0}}:</th>
! {{#ask:searchlabel=Exposure|[[Category:Plant]]|[[Exposure::+]]| ?Exposure| limit=0}}:
+
</td><td></td><td>
|
+
[[Growth habit::{{{habit|}}}]][[Category:{{{habit|}}}]]</td></tr>}}
| {{#arraymap:{{{exposure|}}}|,|y|[[Exposure::y]]}}
+
 
|- class{{{water|}}}="hiddenStructure"
+
{{if: {{{min_height|}}} | <tr><th>Height:</th><td>⇕</td><td>
! {{#ask:searchlabel=Water|[[Category:Plant]]|[[Water::+]]| ?Water| limit=0}}:
+
[[Min height::{{{min_height|}}}]] to [[Max height::{{{max_height|}}}]]</td>
|
+
</tr>
| {{#arraymap:{{{water|}}}|,|x|[[Water::x]]}}
+
}}
|- class{{{features|}}}="hiddenStructure"
+
 
! Features:
+
{{if: {{{min_width|}}} | <tr><th>Width:</th><td>⇔</td><td>
|
+
[[Min width::{{{min_width|}}}]] to </span> [[Max width::{{{max_width|}}}]]</td></tr> }}
| {{#arraymap:{{{features|}}}|,|x|[[Features::x]]}}
+
 
 +
{{if: {{{Min ht box|}}} | <tr><th></th>
 +
<td>[[Min height box::{{{Min ht box|}}}]][[Min height metric::{{{Min ht metric|}}}]][[Max height box::{{{Max ht box|}}}]][[Max height metric::{{{Max ht metric|}}}]]</td>
 +
<td>[[Min width box::{{{Min wd box|}}}]][[Min width metric::{{{Min wd metric|}}}]][[Max width box::{{{Max wd box|}}}]][[Max width metric::{{{Max wd metric|}}}]]</td></tr> }}
 +
 
 +
{{if: {{{Min ht box|}}} | <tr><th>Height:</th><td>⇕</td><td>[[Min height::{{{Min ht box|}}} {{{Min ht metric|}}}]] to [[Max height::{{{Max ht box|}}} {{{Max ht metric|}}}]] </td></tr> }}
 +
 
 +
{{if: {{{Min wd box|}}} | <tr><th>Width:</th><td>⇔</td><td>[[Min width::{{{Min wd box|}}} {{{Min wd metric|}}}]] to [[Max width::{{{Max wd box|}}} {{{Max wd metric|}}}]]</td></tr> }}
 +
 
 +
{{if: {{{lifespan|}}} | <tr><th>
 +
{{#ask:searchlabel=Lifespan|[[Category:Plant]]|[[Lifespan::+]]| ?Lifespan| limit=0}}:</th>
 +
<td></td>
 +
<td>{{#arraymap:{{{lifespan|}}}|,|x|[[Lifespan::x]]}}</td>
 +
</tr> }}
 +
 
 +
{{if: {{{origin|}}} | <tr><th>Origin:</th><td></td><td>[[Origin::{{{origin|}}}]]</td></tr> }}
 +
 
 +
{{if: {{{poisonous|}}} | <tr><th>Poisonous:</th><td></td><td>[[Poisonous::{{{poisonous|}}}]]</td></tr> }}
 +
 
 +
{{if: {{{flower_season|}}} | <tr><th>Bloom:</th><td></td><td>{{#arraymap:{{{flower_season|}}}|,|x|[[Flower season::x]]}}</td></tr>
 +
 
 +
</table> <!-- End included PLANT CHARACTERISTICS table -->
 +
 
 +
<table style="margin:0 auto; text-align:left; background:none;" cellpadding="2"><!-- Start included CULTIVATION table -->
 +
 
 +
{{if: {{{exposure|}}} | <tr><th>{{#ask:searchlabel=Exposure|[[Category:Plant]]|[[Exposure::+]]| ?Exposure| limit=0}}:</th><td></td><td>
 +
{{#arraymap:{{{exposure|}}}|,|y|[[Exposure::y]]}}</td></tr> }}
 +
 
 +
{{if: {{{water|}}} | <tr><th>{{#ask:searchlabel=Water|[[Category:Plant]]|[[Water::+]]| ?Water| limit=0}}:</th><td></td><td>
 +
{{#arraymap:{{{water|}}}|,|x|[[Water::x]]}}</td><tr> }}
 +
 
 +
{{if: {{{features|}}} | <tr><th>Features:</th><td></td><td>
 +
{{#arraymap:{{{features|}}}|,|x|[[Features::x]]}}</td></tr> }}
 +
 
 +
{{if: 0 |
 
|- class="hiddenStructure"
 
|- class="hiddenStructure"
 
! Hidden fields, interally pass variables to right place
 
! Hidden fields, interally pass variables to right place
 
| [[Min Temp Num::{{{Min Temp Num|}}}| ]]
 
| [[Min Temp Num::{{{Min Temp Num|}}}| ]]
 
| [[Temp Metric::{{{Temp Metric|}}}| ]]
 
| [[Temp Metric::{{{Temp Metric|}}}| ]]
|- class{{{Min Temp Num|}}}="hiddenStructure"
+
}}
! Minimum Temp:
+
 
|
+
{{if: {{{Min Temp Num|}}} | <tr><th>Minimum Temp:</th><td></td><td>
| [[Temp degree::{{{Min Temp Num|}}}{{{Temp Metric|}}}]]
+
[[Temp degree::{{{Min Temp Num|}}}{{{Temp Metric|}}}]]</td></tr> }}
|- class{{{min_zone|}}}="hiddenStructure"
+
 
! USDA Zones:
+
{{if: {{{min_zone|}}} | <tr><th>USDA Zones:</th><td>
|
+
[[Min zone::{{{min_zone|}}}]]  
| [[Min zone::{{{min_zone|}}}]] <span class="hiddenStructure{{{max_zone|}}}"> to [[Max zone::{{{max_zone|}}}]]</span>
+
{{if: {{{max_zone|}}} | to [[Max zone::{{{max_zone|}}}]] }} </td></tr> }}
|- class{{{sunset_zones|}}}="hiddenStructure"
+
 
! Sunset Zones:
+
{{if: {{{sunset_zones|}}} } <tr><th>Sunset Zones:</th><td></td><td>
|
+
[[Sunset zones::{{{sunset_zones|}}}]]</td></tr> }}
| [[Sunset zones::{{{sunset_zones|}}}]]
+
 
|- class{{{flowers|}}}="hiddenStructure"
+
{{if: {{{flowers|}}} | <tr><th>Flower features:</th><td></td><td>
! Flower features:
+
{{#arraymap:{{{flowers|}}}|,|x|[[Flowers::x]]}}</td></tr> }}
| ❀  
+
 
| {{#arraymap:{{{flowers|}}}|,|x|[[Flowers::x]]}}
+
</table> <!-- End included CULTIVATION table -->
|} <!-- End included CULTIVATION table -->
+
 
|-
+
<tr>
| colspan=2 | <!-- Start included CLASSIFICATION table -->
+
<td colspan=2 >
{| style="margin:0 auto; text-align:left; background:none;" cellpadding="2"
+
<!-- Start included CLASSIFICATION table -->  
| class="hiddenStructure{{{familia|}}}" | <small> [[{{{familia|}}}]] > </small>
+
<table style="margin:0 auto; text-align:left; background:none;" cellpadding="2">
| class="hiddenStructure{{{genus|}}}" | <small> [[{{{genus|}}}]] </small>
+
 
| class="hiddenStructure{{{species|}}}" | <small> {{{species|}}} </small>
+
{{if: {{{familia|}}} | <tr><td><small> [[{{{familia|}}}]] > </small></td></tr> }}
| class="hiddenStructure{{{subspecies|}}}" | <small> {{{subspecies|}}} </small>
+
{{if: {{{genus|}}}" | <tr><td><small> [[{{{genus|}}}]] </small></td></tr> }}
| class="hiddenStructure{{{cultivar|}}}" | <small> var. {{{cultivar|}}} </small>
+
{{if: {{{species|}}}" | <tr><td><small> {{{species|}}} </small></td></tr> }}
| class="hiddenStructure{{{taxo_author|}}}" | <small>, {{{taxo_author|}}} </small>
+
{{if: {{{subspecies|}}}" | <tr><td><small> {{{subspecies|}}} </small></td></tr> }}
|} <!-- End included CLASSIFICATION table -->
+
{{if: {{{cultivar|}}}" | <tr><td><small> var. {{{cultivar|}}} </small></td></tr> }}
<span class="hiddenStructure{{{jumpin|}}}"><br>{{#arraymap:{{{jumpin|}}}|,|x|[[Jump in::x]]}}</span>
+
{{if: {{{taxo_author|}}}" | <tr><td><small>, {{{taxo_author|}}} </small></td></tr> }}
|}
+
</table> <!-- End included CLASSIFICATION table -->
 +
 
 +
{{if: {{{jumpin|}}} |
 +
<br>{{#arraymap:{{{jumpin|}}}|,|x|[[Jump in::x]]}} }}
 +
</td></tr>
 +
</table>
 
[[Category:Plant]]
 
[[Category:Plant]]
 
<br clear=all>
 
<br clear=all>
 
</includeonly>
 
</includeonly>

Revision as of 04:16, 21 January 2012

This is the 'SPlantbox' template.

Edit the page to see the template text.