Template:Plant: Difference between revisions

112 bytes removed ,  11:16, 13 April 2020
Bit of tidying up, Adjustment for use of Template:PlantProcessing to introduce optional display of processing-options (Option processHide=yes)
m (Reverting accidental submit)
(Bit of tidying up, Adjustment for use of Template:PlantProcessing to introduce optional display of processing-options (Option processHide=yes))
Line 10: Line 10:
|{{#if:{{{description|}}}|{{{description}}}|No description}}
|{{#if:{{{description|}}}|{{{description}}}|No description}}
|}
|}
{|width="100%" cellspacing="0" cellpadding="2"
{{#if:{{{processHide|}}}||{{PlantProcessing|processDry={{{processDry|}}}|processDistill={{{processDistill|}}}|processGrind={{{processGrind|}}}|processJuice={{{processJuice|}}}|processChop={{{processChop|}}}|processCrafting={{{processCrafting|}}}|processActivation={{{processActivation|}}}}}}}
| style="background-color:{{{bgcolor2|#FFDD66}}};" |'''Processing-Options'''
|-
|{{#if:{{{processActivation|}}}|* '''Activation:''' {{{processActivation}}}|}}{{#if:{{{processCrafting|}}}|* '''Crafting:''' {{{processCrafting}}}|}}{{#if:{{{processJuice|}}}|* '''Juicing:''' {{{processJuice}}}|}}{{#if:{{{processDistill|}}}|* '''Distillation:''' {{{processDistill}}}|}}{{#if:{{{processGrind|}}}|* '''Grinding:''' {{{processGrind}}}|}}{{#if:{{{processDry|}}}|* '''Drying:''' {{{processDry}}}|}}{{#if:{{{processChop|}}}|* '''Chopping:''' {{{processChop}}}|}}
|}
|}</includeonly><noinclude>
|}</includeonly><noinclude>


Line 21: Line 17:


== Parameter-Usage ==
== Parameter-Usage ==
* '''bgcolor1:''' table color 1 (main header)
* '''bgcolor2:''' table color 2 (section headers)
* '''name:''' Name of the plant
* '''name:''' Name of the plant
* '''tablelink:''' Linkanchor of the plant in the [[Guide_to_plants#Comparative_table|comparative table]]
* '''tablelink:''' Linkanchor of the plant in the [[Guide_to_plants#Comparative_table|comparative table]]
Line 36: Line 34:
* '''processCrafting:''' Optional, possibilities for crafting with and without the crafting-menu
* '''processCrafting:''' Optional, possibilities for crafting with and without the crafting-menu
* '''processActivation:''' Optional, possibilities for activating the plant in the hand
* '''processActivation:''' Optional, possibilities for activating the plant in the hand
* '''processHide:''' No processing options, hides section for processing-options


== Examples ==
== Examples ==
Line 41: Line 40:
{{Plant}}
{{Plant}}


 
=== Bare - Hidden Processing-Options ===
{{Plant
|processHide=yes
}}


=== Half-missing data===
=== Half-missing data===
[[Category:Templates]]
Test Plant:
{{Plant
{{Plant
|name=Egg-plant
|name=Egg-plant
Line 56: Line 56:


=== Normal ===
=== Normal ===
[[Category:Templates]]
Test Plant:
{{Plant
{{Plant
|name=Egg-plant
|name=Egg-plant
Line 75: Line 73:
|processActivation=Extracts an egg
|processActivation=Extracts an egg
}}
}}
[[Category:Templates]]
</noinclude>
</noinclude>
1,133

edits