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"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m
(Now that DF includes real plants, add a wikipedia link, cloned from Template:CreatureInfo v0.40)
 
(34 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>{{infostart|{{{name}}}}}
{| class="infobox" style="float: right; border: 1px solid #aaa; margin: 0 0 0.5em 0.5em; border-spacing: 0; width: 17em"
+
{{infocell|{{Crop/picture|character={{{character|?}}}|color={{{color}}}|seed_color={{{seed_color|{{{color}}}}}}}}}}
|+ style="font-weight: bold" | {{Raw Tile|{{{character}}}|{{{color}}}|{{#ifeq:{{{color}}}|#fff|black|white}}}} {{{name}}}
+
{{#if:{{{pref|}}}|{{infopref|{{{pref}}}}}}}
|-
+
{{infoheader|Seed}}
| colspan="2" |
+
{{inforow|{{{seed|{{{name}}} seed}}}|{{Raw Tile|·|{{{seed_color|{{{color}}}}}}}}}}
{| style="border-spacing: 0; background: black; padding: 0.2em; border: 1px solid white; margin: 0.5em auto"
+
{{infoheader|Seasons}}
|-
+
{{infocell|{{seasons|{{{spring|}}}|{{{summer|}}}|{{{autumn|}}}|{{{winter|}}}}}}}
|style="padding: 0"|{{Raw Tile|≈|#880|black}}
+
{{#if:{{{biome|}}}|{{infoheader|Biome}}
|style="padding: 0"|{{Raw Tile|{{{character}}}|{{{color}}}|black}}
+
{{infocell|{{{biome|}}}}}
|style="padding: 0"|{{Raw Tile|{{{character}}}|{{{color}}}|black}}
+
{{infocell|{{wetdry|{{{wet|}}}|{{{dry|}}}}}}}
|style="padding: 0"|{{Raw Tile|═|#880|black}}
+
{{#if:{{{alignment|}}}|{{infoheader|Alignment}}
|style="padding: 0"|{{Raw Tile|≈|#880|black}}
+
{{infocell|{{{alignment}}}|style=text-align:center}}}}}}
|style="padding: 0"|{{Raw Tile|·|{{{seed_color|{{{color}}}}}}|black}}
+
{{infoheader|Properties}}
|style="padding: 0"|{{Raw Tile|·|{{{seed_color|{{{color}}}}}}|black}}
+
{{#if:{{{habitat|}}}|{{inforow|[[Biome|Habitat]]|{{{habitat}}}}}}}
|-
+
{{inforow|[[Food|Edible]]|{{{edible|No}}}}}
|style="padding: 0"|{{Raw Tile|≈|#880|black}}
+
{{inforow|[[Kitchen|Cookable]]|{{{cookable|No}}}}}
|style="padding: 0"|{{Raw Tile|{{{character}}}|{{{color}}}|black}}
+
{{inforow|[[Still|Alcohol]]|{{{alcohol|None}}}}}
|style="padding: 0"|{{Raw Tile|═|#880|black}}
+
{{#if:{{{uses|}}}|{{infoheader|Uses}}
|style="padding: 0"|{{Raw Tile|═|#880|black}}
+
{{infocell|{{{uses}}}}}}}
|style="padding: 0"|{{Raw Tile|═|#880|black}}
+
{{#if:{{{other_products|}}}|{{infoheader|Other products}}
|style="padding: 0"|{{Raw Tile|·|{{{seed_color|{{{color}}}}}}|black}}
+
{{infocell|{{{other_products}}}}}}}
|style="padding: 0"|{{Raw Tile|·|{{{seed_color|{{{color}}}}}}|black}}
+
{{#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=
|style="padding: 0"|{{Raw Tile|{{{character}}}|{{{color}}}|black}}
 
|style="padding: 0"|{{Raw Tile|{{{character}}}|{{{color}}}|black}}
 
|style="padding: 0"|{{Raw Tile|═|#880|black}}
 
|style="padding: 0"|{{Raw Tile|═|#880|black}}
 
|style="padding: 0"|{{Raw Tile|═|#880|black}}
 
|style="padding: 0"|{{Raw Tile|·|{{{seed_color|{{{color}}}}}}|black}}
 
|style="padding: 0"|{{Raw Tile|&#x3D;|#444|black}}
 
|-
 
|style="padding: 0"|{{Raw Tile|{{{character}}}|{{{color}}}|black}}
 
|style="padding: 0"|{{Raw Tile|{{{character}}}|{{{color}}}|black}}
 
|style="padding: 0"|{{Raw Tile|═|#880|black}}
 
|style="padding: 0"|{{Raw Tile|═|#880|black}}
 
|style="padding: 0"|{{Raw Tile|≈|#880|black}}
 
|style="padding: 0"|{{Raw Tile|&#x3D;|#444|black}}
 
|style="padding: 0"|{{Raw Tile|&#x3D;|#444|black}}
 
|-
 
|style="padding: 0"|{{Raw Tile|{{{character}}}|{{{color}}}|black}}
 
|style="padding: 0"|{{Raw Tile||#880|black}}
 
|style="padding: 0"|{{Raw Tile|═|#880|black}}
 
|style="padding: 0"|{{Raw Tile|═|#880|black}}
 
|style="padding: 0"|{{Raw Tile||#880|black}}
 
|style="padding: 0"|{{Raw Tile|.|#880|black}}
 
|style="padding: 0"|{{Raw Tile|.|#880|black}}
 
|}
 
|-
 
! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | Seed
 
|-
 
| colspan="2" style="padding: 0.25em" | <span style="float: right">{{Raw Tile|·|{{{seed_color}}}|{{#ifeq:{{{seed_color}}}|#fff|black|white}}}}</span> {{{seed|{{{name}}} seed}}}
 
|-
 
! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | Seasons
 
|-
 
| colspan="2" |{{seasons|{{{spring|}}}|{{{summer|}}}|{{{autumn|}}}|{{{winter|}}}}}
 
|-
 
! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | Properties
 
|-
 
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{L|Biome|Habitat}}
 
| style="text-align: right; padding: 0.1em 0.25em" | {{{habitat}}}
 
|-
 
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{L|Food|Edible}}
 
| style="text-align: right; padding: 0.1em 0.25em" | {{{edible|No}}}
 
|-
 
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{L|Kitchen|Cookable}}
 
| style="text-align: right; padding: 0.1em 0.25em" | {{{cookable|No}}}
 
|-
 
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{L|Still|Alcohol}}
 
| style="text-align: right; padding: 0.1em 0.25em" | {{{alcohol|None}}}
 
{{#if: {{{uses|}}}|
 
{{!}}-
 
! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" {{!}} Uses
 
{{!}}-
 
{{!}} colspan="2" style="padding: 0.25em" {{!}}
 
{{{uses}}} |}}
 
{{!}}-
 
! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" {{!}} Other products
 
{{!}}-
 
{{!}} colspan="2" style="padding: 0.25em" {{!}}
 
{{{other_products|<div style="text-align: center">''None''</div>}}}
 
|}{{#switch:{{NAMESPACE}}|#default|40d|DF2010=
 
 
{{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}}}}
+
{{#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=#909|seed_color=#f00|character=♠|name=Plump Helmet|seed=Plump Helmet Spawn
+
{{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=#909|seed_color=#f00|character=♠|name=Plump Helmet|seed=Plump Helmet Spawn
+
{{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


Plump Helmet
· ·
· ·
· =
= =
. .
Seed
Plump Helmet Spawn ·
Seasons
Spring Summer Autumn Winter
Properties
Habitat Subterranean
Edible Yes
Cookable Yes
Alcohol Dwarven wine
Uses

Wikipedia article

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
}}