Template:Plant: Difference between revisions

From Yogstation-13
Jump to navigation Jump to search
No edit summary
(Improved documentation (visible codesamples, table for parameters) and a typofix)
 
(2 intermediate revisions by the same user not shown)
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 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}}}|}}
|}
 
{{#if:{{{processDistill|}}}|{{aa
{|width="100%" cellspacing="0" cellpadding="2"
| 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}}}|}}
|}
aa}}|}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>


Line 29: Line 17:


== Parameter-Usage ==
== Parameter-Usage ==
* '''name:''' Name of the plant
{| class="wikitable"
* '''tablelink:''' Linkanchor of the plant in the [[Guide_to_plants#Comparative_table|comparative table]]
!Parameter
* '''imageSeed:''' Imagefile for the seed
!Example
* '''imageGrowth:''' Imagefile for the growstages
!Description
* '''imageProduct:''' Imagefile for the product
|-
* '''rating:''' Rough rating of the plant like Harmless, Illegal, Dangerous, Deadly etc.
!bgcolor1
* '''usedfor:''' Short description of the main uses, like medicine and cooking
|#aa55dd
* '''description:''' Long descriptive text
|table color 1 (main header)
* '''processDry:''' Optional, possibilities for drying
|-
* '''processDistill:''' Optional, possibilities for winemaking and distillation
!bgcolor2
* '''processGrind:''' Optional, possibilities for grinding
|red
* '''processJuice:''' Optional, possibilities for juicing
|table color 2 (section headers)
* '''processChop:''' Optional, possibilities for chopping with a hatchet, relevant for wood
|-
* '''processCrafting:''' Optional, possibilities for crafting with and without the crafting-menu
!name
* '''processActivation:''' Optional, possibilities for activating the plant in the hand
|Egg-plant
|Name of the plant
|-
!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 ===
<pre>{{Plant
|processHide=yes
}}</pre>
{{Plant
|processHide=yes
}}


=== Half-missing data===
=== Half-missing data===
[[Category:Templates]]
<pre>{{Plant
Test 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 64: Line 127:


=== Normal ===
=== Normal ===
[[Category:Templates]]
<pre>{{Plant
Test 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
Line 83: Line 161:
|processActivation=Extracts an egg
|processActivation=Extracts an egg
}}
}}
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 18:53, 19 April 2020


About

Short details of a plant, intended use in Guide to plants

Parameter-Usage

Parameter Example Description
bgcolor1 #aa55dd table color 1 (main header)
bgcolor2 red table color 2 (section headers)
name Egg-plant Name of the plant
tablelink Egg-plant Linkanchor of the plant in the 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

Bare

{{Plant}}

Item
Stats: Missing
Rating: Unclassified
Used for: Unknown
Description
No description
Processing-Options

Bare - Hidden Processing-Options

{{Plant
|processHide=yes
}}

Item
Stats: Missing
Rating: Unclassified
Used for: Unknown
Description
No description

Half-missing data

{{Plant
|name=Egg-plant
|imageSeed=Eggyseed.png
|imageGrowth=Eggygrowth.gif
|rating=Harmless
|usedfor=Getting eggs for that sweet omlette
|processActivation=Extracts an egg
}}
Eggyseed.pngEggygrowth.gif
Egg-plant
Stats: Missing
Rating: Harmless
Used for: Getting eggs for that sweet omlette
Description
No description
Processing-Options
  • Activation: Extracts an egg

Normal

{{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
}}
Eggyseed.pngEggygrowth.gifBegg.png
Egg-plant
Stats: Check here
Rating: Harmless
Used for: 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.
Processing-Options
  • Activation: Extracts an egg
  • Distillation: Eggnog