Template:Plant: Difference between revisions
Jump to navigation
Jump to search
(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]]| | |'''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 == | ||
{| class="wikitable" | |||
!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 [[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 |
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}}
|
Bare - Hidden Processing-Options
{{Plant |processHide=yes }}
|
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 }}
|
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 }}
|