Template:Plant: Difference between revisions

976 bytes added ,  18:53, 19 April 2020
Improved documentation (visible codesamples, table for parameters) and a typofix
(Bit of tidying up, Adjustment for use of Template:PlantProcessing to introduce optional display of processing-options (Option processHide=yes))
(Improved documentation (visible codesamples, table for parameters) and a typofix)
 
Line 3: Line 3:
{|width="100%" cellspacing="0" cellpadding="2"
{|width="100%" cellspacing="0" cellpadding="2"
|align=center width="200" style="background-color:{{{bgcolor1|#FFEE88}}}"|{{#if:{{{imageSeed|}}}|[[File:{{{imageSeed|Unknown.png}}}|64px]]|}}{{#if:{{{imageGrowth|}}}|[[File:{{{imageGrowth|Unknown.png}}}|64px]]|}}{{#if:{{{imageProduct|}}}|[[File:{{{imageProduct|Unknown.png}}}|64px]]|}}<br>'''{{{name|Item}}}'''
|align=center width="200" style="background-color:{{{bgcolor1|#FFEE88}}}"|{{#if:{{{imageSeed|}}}|[[File:{{{imageSeed|Unknown.png}}}|64px]]|}}{{#if:{{{imageGrowth|}}}|[[File:{{{imageGrowth|Unknown.png}}}|64px]]|}}{{#if:{{{imageProduct|}}}|[[File:{{{imageProduct|Unknown.png}}}|64px]]|}}<br>'''{{{name|Item}}}'''
|'''Stats:''' {{#if:{{{tablelink|}}}|[[Guide_to_plants#{{{tablelink}}}|Check here]]|missing}}<br>'''Rating: '''{{{rating|Unclassified}}}<br>'''Used for:''' {{{usedfor|Unknown}}}<br>
|'''Stats:''' {{#if:{{{tablelink|}}}|[[Guide_to_plants#{{{tablelink}}}|Check here]]|Missing}}<br>'''Rating: '''{{{rating|Unclassified}}}<br>'''Used for:''' {{{usedfor|Unknown}}}<br>
|}
|}
{|width="100%" cellspacing="0" cellpadding="2"
{|width="100%" cellspacing="0" cellpadding="2"
Line 17: Line 17:


== Parameter-Usage ==
== Parameter-Usage ==
* '''bgcolor1:''' table color 1 (main header)
{| class="wikitable"
* '''bgcolor2:''' table color 2 (section headers)
!Parameter
* '''name:''' Name of the plant
!Example
* '''tablelink:''' Linkanchor of the plant in the [[Guide_to_plants#Comparative_table|comparative table]]
!Description
* '''imageSeed:''' Imagefile for the seed
|-
* '''imageGrowth:''' Imagefile for the growstages
!bgcolor1
* '''imageProduct:''' Imagefile for the product
|#aa55dd
* '''rating:''' Rough rating of the plant like Harmless, Illegal, Dangerous, Deadly etc.
|table color 1 (main header)
* '''usedfor:''' Short description of the main uses, like medicine and cooking
|-
* '''description:''' Long descriptive text
!bgcolor2
* '''processDry:''' Optional, possibilities for drying
|red
* '''processDistill:''' Optional, possibilities for winemaking and distillation
|table color 2 (section headers)
* '''processGrind:''' Optional, possibilities for grinding
|-
* '''processJuice:''' Optional, possibilities for juicing
!name
* '''processChop:''' Optional, possibilities for chopping with a hatchet, relevant for wood
|Egg-plant
* '''processCrafting:''' Optional, possibilities for crafting with and without the crafting-menu
|Name of the plant
* '''processActivation:''' Optional, possibilities for activating the plant in the hand
|-
* '''processHide:''' No processing options, hides section for processing-options
!tablelink
|Egg-plant
|Linkanchor of the plant in the [[Guide_to_plants#Comparative_table|comparative table]]
|-
!imageSeed
|Eggyseed.png
|Imagefile for the seed
|-
!imageGrowth
|Eggygrowth.gif
|Imagefile for the growstages
|-
!imageProduct
|Begg.png
|Imagefile for the product
|-
!rating
|Harmless
|Rough rating of the plant like Harmless, Illegal, Dangerous, Deadly etc.
|-
!usedfor
|Getting eggs for that sweet omlette
|Short description of the main uses, like medicine and cooking
|-
!description
|These seeds grow to produce...
|Long descriptive text
|-
!processDry
|Extracts an egg
|Optional, possibilities for drying
|-
!processDistill
|Extracts an egg
|Optional, possibilities for winemaking and distillation
|-
!processGrind
|Extracts an egg
|Optional, possibilities for grinding
|-
!processJuice
|Extracts an egg
|Optional, possibilities for juicing
|-
!processChop
|Extracts an egg
|Optional, possibilities for chopping with a hatchet, relevant for wood
|-
!processCrafting
|Extracts an egg
|Optional, possibilities for crafting with and without the crafting-menu
|-
!processActivation
|Extracts an egg
|Optional, possibilities for activating the plant in the hand
|-
!processHide
|Yes
|No processing options, hides section for processing-options
|}


== Examples ==
== Examples ==
=== Bare ===
=== Bare ===
<pre>{{Plant}}</pre>
{{Plant}}
{{Plant}}


=== Bare - Hidden Processing-Options ===
=== Bare - Hidden Processing-Options ===
<pre>{{Plant
|processHide=yes
}}</pre>
{{Plant
{{Plant
|processHide=yes
|processHide=yes
Line 46: Line 109:


=== Half-missing data===
=== Half-missing data===
<pre>{{Plant
|name=Egg-plant
|imageSeed=Eggyseed.png
|imageGrowth=Eggygrowth.gif
|rating=Harmless
|usedfor=Getting eggs for that sweet omlette
|processActivation=Extracts an egg
}}</pre>
{{Plant
{{Plant
|name=Egg-plant
|name=Egg-plant
Line 56: Line 127:


=== Normal ===
=== Normal ===
<pre>{{Plant
|name=Egg-plant
|tablelink=Egg-plant
|imageSeed=Eggyseed.png
|imageGrowth=Eggygrowth.gif
|imageProduct=Begg.png
|rating=Harmless
|usedfor=Getting eggs for that sweet omlette
|description=These seeds grow to produce berries that look a lot like eggs. There MUST be a chicken inside.
|processDry=
|processDistill=[[Guide_to_drinks#Eggnog|Eggnog]]
|processGrind=
|processJuice=
|processChop=
|processCrafting=
|processActivation=Extracts an egg
}}</pre>
{{Plant
{{Plant
|name=Egg-plant
|name=Egg-plant
1,133

edits