Template:Plant: Difference between revisions
Jump to navigation
Jump to search
m (Reverting accidental submit) |
(Improved documentation (visible codesamples, table for parameters) and a typofix) |
||
(One intermediate revision 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]]| | |'''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}} | ||
|} | |} | ||
{{#if:{{{processHide|}}}||{{PlantProcessing|processDry={{{processDry|}}}|processDistill={{{processDistill|}}}|processGrind={{{processGrind|}}}|processJuice={{{processJuice|}}}|processChop={{{processChop|}}}|processCrafting={{{processCrafting|}}}|processActivation={{{processActivation|}}}}}}} | |||
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
Line 21: | 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 === | |||
<pre>{{Plant | |||
|processHide=yes | |||
}}</pre> | |||
{{Plant | |||
|processHide=yes | |||
}} | |||
=== 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 | ||
Line 75: | 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}}
|
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 }}
|