v50 Steam/Premium information for editors
- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.
Difference between revisions of "Template:Crop"
Jump to navigation
Jump to search
(include 23a also) |
(Now that DF includes real plants, add a wikipedia link, cloned from Template:CreatureInfo v0.40) |
||
(32 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{{infostart|{{{name}}}}} |
− | {| | + | {{infocell|{{Crop/picture|character={{{character|?}}}|color={{{color}}}|seed_color={{{seed_color|{{{color}}}}}}}}}} |
− | + | {{#if:{{{pref|}}}|{{infopref|{{{pref}}}}}}} | |
− | + | {{infoheader|Seed}} | |
− | + | {{inforow|{{{seed|{{{name}}} seed}}}|{{Raw Tile|·|{{{seed_color|{{{color}}}}}}}}}} | |
− | { | + | {{infoheader|Seasons}} |
− | + | {{infocell|{{seasons|{{{spring|}}}|{{{summer|}}}|{{{autumn|}}}|{{{winter|}}}}}}} | |
− | + | {{#if:{{{biome|}}}|{{infoheader|Biome}} | |
− | + | {{infocell|{{{biome|}}}}} | |
− | + | {{infocell|{{wetdry|{{{wet|}}}|{{{dry|}}}}}}} | |
− | + | {{#if:{{{alignment|}}}|{{infoheader|Alignment}} | |
− | + | {{infocell|{{{alignment}}}|style=text-align:center}}}}}} | |
− | + | {{infoheader|Properties}} | |
− | + | {{#if:{{{habitat|}}}|{{inforow|[[Biome|Habitat]]|{{{habitat}}}}}}} | |
− | + | {{inforow|[[Food|Edible]]|{{{edible|No}}}}} | |
− | + | {{inforow|[[Kitchen|Cookable]]|{{{cookable|No}}}}} | |
− | + | {{inforow|[[Still|Alcohol]]|{{{alcohol|None}}}}} | |
− | + | {{#if:{{{uses|}}}|{{infoheader|Uses}} | |
− | + | {{infocell|{{{uses}}}}}}} | |
− | + | {{#if:{{{other_products|}}}|{{infoheader|Other products}} | |
− | + | {{infocell|{{{other_products}}}}}}} | |
− | + | {{#ifexpr:{{#if:{{{wiki|}}}|1|0}} and {{#ifeq:{{{wiki|}}}|no|0|1}}|{{infocell|style=text-align:center; background-color: #eee; border-top: 1px solid #aaa|1=[[wikipedia:{{#ifeq:{{{wiki|}}}|yes|{{{name}}}|{{{wiki|}}}}}|Wikipedia article]]}}|{{!-}}}} | |
− | + | {{infoend}}{{#switch:{{NAMESPACE}}|#default|23a|40d|v0.31|DF2012= | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | | | ||
− | | | ||
− | |||
− | |||
− | {{# | ||
− | { | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{! | ||
− | |||
− | {{ | ||
− | |||
{{Category|Crops}} | {{Category|Crops}} | ||
{{#if:{{{spring|}}}|{{Category|Spring crops}}}} | {{#if:{{{spring|}}}|{{Category|Spring crops}}}} | ||
Line 85: | Line 27: | ||
{{#if:{{{autumn|}}}|{{Category|Autumn crops}}}} | {{#if:{{{autumn|}}}|{{Category|Autumn crops}}}} | ||
{{#if:{{{winter|}}}|{{Category|Winter crops}}}} | {{#if:{{{winter|}}}|{{Category|Winter crops}}}} | ||
− | {{#ifeq:{{{habitat|}}}|Subterranean|{{Category|Subterranean crops}}|{{Category|Surface crops}}}} | + | {{#switch:{{NAMESPACE}}|40d|v0.31|DF2012= |
+ | {{#ifeq:{{{habitat|}}}|Subterranean|{{Category|Subterranean crops}}|{{Category|Surface crops}}}}|23a={{Category|Cave crops}}}} | ||
+ | {{#ifeq:{{{edible|!}}}{{{cookable|!}}}|!!|{{Category|Inedible plants}}}} | ||
+ | {{#ifeq:{{{alcohol|!}}}|!|{{Category|Non-brewable plants}}}} | ||
|Template=}}</includeonly><noinclude> | |Template=}}</includeonly><noinclude> | ||
− | {{Crop|color= | + | {{Crop|color=5:0|seed_color=4:1|character=♠|name=Plump Helmet|seed=Plump Helmet Spawn |
|edible=Yes | |edible=Yes | ||
|cookable=Yes | |cookable=Yes | ||
Line 98: | Line 43: | ||
* [[Food]] | * [[Food]] | ||
* [[Alcohol]] | * [[Alcohol]] | ||
+ | |wiki=yes | ||
}} | }} | ||
Usage: | Usage: | ||
<pre><nowiki> | <pre><nowiki> | ||
− | {{Crop|color= | + | {{Crop|color=5:0|seed_color=4:1|character=♠|name=Plump Helmet|seed=Plump Helmet Spawn |
|edible=Yes | |edible=Yes | ||
|cookable=Yes | |cookable=Yes | ||
Line 111: | Line 57: | ||
* [[Food]] | * [[Food]] | ||
* [[Alcohol]] | * [[Alcohol]] | ||
+ | |wiki=yes | ||
}} | }} | ||
</nowiki></pre> | </nowiki></pre> |
Latest revision as of 23:47, 19 September 2014
| ||||||||||||||||||||||||||||||||||||
Seed | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Plump Helmet Spawn | · | |||||||||||||||||||||||||||||||||||
Seasons | ||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||
Properties | ||||||||||||||||||||||||||||||||||||
Habitat | Subterranean | |||||||||||||||||||||||||||||||||||
Edible | Yes | |||||||||||||||||||||||||||||||||||
Cookable | Yes | |||||||||||||||||||||||||||||||||||
Alcohol | Dwarven wine | |||||||||||||||||||||||||||||||||||
Uses | ||||||||||||||||||||||||||||||||||||
Usage:
{{Crop|color=5:0|seed_color=4:1|character=♠|name=Plump Helmet|seed=Plump Helmet Spawn |edible=Yes |cookable=Yes |alcohol=[[Dwarven wine]] |rarity=Common |spring=1|summer=1|autumn=1|winter=1 |habitat=Subterranean |uses= * [[Food]] * [[Alcohol]] |wiki=yes }}