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:PlantInfo/DF2014"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(-extra properties)
 
(63 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly>{{infostart|{{{name}}}}}
 
<includeonly>{{infostart|{{{name}}}}}
{{infocell|{{Crop/picture|character={{{character|?}}}|color={{{color}}}|seed_color={{{seed_color|{{{color}}}}}}}}}}
+
{{infocell|{{{{#if:{{{seed|}}}|Crop|Shrub}}/picture|character={{{character|?}}}|color={{{color}}}|seed_color={{{seed_color|{{{color}}}}}}}}}}
 
{{#if:{{{pref|}}}|{{infopref|{{{pref}}}}}}}
 
{{#if:{{{pref|}}}|{{infopref|{{{pref}}}}}}}
 
{{#if:{{{seed|}}}|{{infoheader|Seed}}
 
{{#if:{{{seed|}}}|{{infoheader|Seed}}
{{inforow|{{{seed|{{{name}}} seed}}}|{{Raw Tile|·|{{{seed_color|{{{color}}}}}}}}}}}}
+
{{infocell|{{Raw Tile|·|{{{seed_color|{{{color}}}}}}}} {{#if:{{{seedimage|}}}| / [[File:{{{seedimage}}}]]|}} {{{seed|{{{name}}} seed}}}}}}}
 +
{{infoheader|Graphic}}
 +
{{infocell|{{#if:{{{graphic|}}}|[[File:{{{graphic}}}|center]]|No graphic}}}}
 
{{infoheader|Seasons}}
 
{{infoheader|Seasons}}
 
{{infocell|{{seasons|{{{spring|}}}|{{{summer|}}}|{{{autumn|}}}|{{{winter|}}}}}}}
 
{{infocell|{{seasons|{{{spring|}}}|{{{summer|}}}|{{{autumn|}}}|{{{winter|}}}}}}}
Line 12: Line 14:
 
{{infocell|{{{alignment}}}|style=text-align:center}}}}}}
 
{{infocell|{{{alignment}}}|style=text-align:center}}}}}}
 
{{infoheader|Products}}
 
{{infoheader|Products}}
{{#if:{{{fruit|}}}|{{inforow|[[Fruit]]|{{{fruit}}}}}
+
{{#if:{{{alcohol|}}}|{{inforow|[[Alcohol]]|{{{alcohol}}}{{Category|Brewable}}|}}|{{!-}}}}
{{#if:{{{alcohol|}}}|{{inforow|[[Alcohol]]|{{{alcohol}}}|}}}}
+
{{#if:{{{bud|}}}|{{inforow|[[Flower|Bud]]|{{{bud}}}}}{{Category|Flowers}}|{{!-}}}}
{{#if:{{{mill|}}}|{{inforow|[[Powder]]|{{{mill}}}|}}}}
+
{{#if:{{{bulb|}}}|{{inforow|[[Bulb]]|{{{bulb}}}}}{{Category|Bulbs}}|{{!-}}}}
{{#if:{{{oil|}}}|{{inforow|[[Oil]]|{{{oil}}}|}}}}
+
{{#if:{{{extract|}}}|{{inforow|[[Extract]]|[[{{{extract}}}]]}}{{Category|Extractable}}|{{!-}}}}
{{#if:{{{process|}}}|{{inforow|[[Thresher|Processed to]]|{{{process}}}]]|}}}}
+
{{#if:{{{flower|}}}|{{inforow|[[Flower]]|{{{flower}}}}}{{Category|Flowers}}|{{!-}}}}
{{#if:{{{other_products|}}}|{{infocell|{{{other_products}}}}}}}
+
{{#if:{{{fruit|}}}|{{inforow|[[Fruit]]|{{{fruit}}}}}{{Category|Fruit}}|{{!-}}}}
 +
{{#if:{{{heart|}}}|{{inforow|[[Flower|Heart]]|{{{heart}}}}}{{Category|Flowers}}|{{!-}}}}
 +
{{#if:{{{leaf|}}}|{{inforow|[[Leaf]]|{{{leaf}}}}}{{Category|Leaves}}|{{!-}}}}
 +
{{#if:{{{oil|}}}|{{inforow|[[Oil]]|{{{oil}}}}}{{Category|Pressable}}|{{!-}}}}
 +
{{#if:{{{paper|}}}|{{inforow|[[Paper]]|{{{paper}}}}}{{Category|Papers}}|{{!-}}}}
 +
{{#if:{{{pod|}}}|{{inforow|[[Pod]]|{{{pod}}}}}{{Category|Pods}}|{{!-}}}}
 +
{{#if:{{{mill|}}}|{{inforow|[[Powder]]|{{{mill}}}|}}{{Category|Millable}}|{{!-}}}}
 +
{{#if:{{{process|}}}|{{inforow|[[Thresher|Processed to]]|[[{{{process}}}]]|}}{{Category|Processable}}|{{!-}}}}
 +
{{#if:{{{other_products|}}}|{{infocell|{{{other_products}}}}}{{Category|Other products}}|{{!-}}}}
 
{{infoheader|Plant Properties}}
 
{{infoheader|Plant Properties}}
 
{{#if:{{{habitat|}}}|{{inforow|[[Biome|Habitat]]|{{{habitat}}}}}}}
 
{{#if:{{{habitat|}}}|{{inforow|[[Biome|Habitat]]|{{{habitat}}}}}}}
 
{{inforow|[[Food|Edible]]|{{{edible|No}}}}}
 
{{inforow|[[Food|Edible]]|{{{edible|No}}}}}
{{#if:{{{cookable|}}}|{{inforow|[[Kitchen|Cookable]]|{{{cookable|No}}}}}}}}}
+
{{#if:{{{cookable|}}}|{{inforow|[[Kitchen|Cookable]]|{{{cookable|No}}}}}}}
 +
{{#if:{{{leaf|}}}|{{infoheader|Leaf Properties}}
 +
{{#if:{{{leaf_edible|}}}|{{inforow|[[Food|Edible]]|{{{leaf_edible}}}}}}}
 +
{{#if:{{{leaf_cookable|}}}|{{inforow|[[Kitchen|Cookable]]|{{{leaf_cookable}}}}}}}|{{!-}}}}
 +
{{#if:{{{flower|}}}|{{infoheader|Flower Properties}}
 +
{{#if:{{{flower_edible|}}}|{{inforow|[[Food|Edible]]|{{{flower_edible}}}}}}}
 +
{{#if:{{{flower_cookable|}}}|{{inforow|[[Kitchen|Cookable]]|{{{flower_cookable}}}}}}}|{{!-}}}}
 +
{{#if:{{{bud|}}}|{{infoheader|Bud Properties}}
 +
{{#if:{{{bud_edible|}}}|{{inforow|[[Food|Edible]]|{{{bud_edible}}}}}}}
 +
{{#if:{{{bud_cookable|}}}|{{inforow|[[Kitchen|Cookable]]|{{{bud_cookable}}}}}}}|{{!-}}}}
 +
{{#if:{{{bulb|}}}|{{infoheader|Bulb Properties}}
 +
{{#if:{{{bulb_edible|}}}|{{inforow|[[Food|Edible]]|{{{bulb_edible}}}}}}}
 +
{{#if:{{{bulb_cookable|}}}|{{inforow|[[Kitchen|Cookable]]|{{{bulb_cookable}}}}}}}|{{!-}}}}
 
{{#if:{{{fruit|}}}|{{infoheader|Fruit Properties}}
 
{{#if:{{{fruit|}}}|{{infoheader|Fruit Properties}}
 
{{#if:{{{fruit_edible|}}}|{{inforow|[[Food|Edible]]|{{{fruit_edible}}}}}}}
 
{{#if:{{{fruit_edible|}}}|{{inforow|[[Food|Edible]]|{{{fruit_edible}}}}}}}
{{#if:{{{fruit_cookable|}}}|{{inforow|[[Kitchen|Cookable]]|{{{fruit_cookable}}}}}}}}}
+
{{#if:{{{fruit_cookable|}}}|{{inforow|[[Kitchen|Cookable]]|{{{fruit_cookable}}}}}}}|{{!-}}}}
 +
{{#if:{{{heart|}}}|{{infoheader|Heart Properties}}
 +
{{#if:{{{heart_edible|}}}|{{inforow|[[Food|Edible]]|{{{heart_edible}}}}}}}
 +
{{#if:{{{heart_cookable|}}}|{{inforow|[[Kitchen|Cookable]]|{{{heart_cookable}}}}}}}|{{!-}}}}
 +
{{#if:{{{seed|}}}|{{infoheader|Seed Properties}}
 +
{{#if:{{{seed_edible|}}}|{{inforow|[[Food|Edible]]|{{{seed_edible}}}}}}}
 +
{{#if:{{{seed_cookable|}}}|{{inforow|[[Kitchen|Cookable]]|{{{seed_cookable}}}}}}}|{{!-}}}}
 
{{#if:{{{uses|}}}|{{infoheader|Uses}}
 
{{#if:{{{uses|}}}|{{infoheader|Uses}}
 
{{infocell|{{{uses}}}}}}}
 
{{infocell|{{{uses}}}}}}}
{{#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]]}}|{{!-}}}}
+
{{#ifeq:{{{wiki|}}}|no|{{!-}}|{{infocell|style=text-align:center; background-color: #eee; border-top: 1px solid #aaa|1=[[wikipedia:{{#if:{{{wiki|}}}|{{{wiki|}}}|{{{name}}}}}|Wikipedia article]]}}|{{!-}}}}
{{infoend}}{{#switch:{{NAMESPACE}}|#default|23a|40d|v0.31|DF2012=
+
{{infoend}}
{{Category|Crops}}
+
{{#if:{{{seed|}}}|{{Category|Crops}}|{{Category|Shrubs}}}}
{{#if:{{{spring|}}}|{{Category|Spring crops}}}}
+
{{#if:{{{spring|}}}|{{Category|Spring plants}}}}
{{#if:{{{summer|}}}|{{Category|Summer crops}}}}
+
{{#if:{{{summer|}}}|{{Category|Summer plants}}}}
{{#if:{{{autumn|}}}|{{Category|Autumn crops}}}}
+
{{#if:{{{autumn|}}}|{{Category|Autumn plants}}}}
{{#if:{{{winter|}}}|{{Category|Winter crops}}}}
+
{{#if:{{{winter|}}}|{{Category|Winter plants}}}}
{{#switch:{{NAMESPACE}}|40d|v0.31|DF2012=
+
{{#if:{{{underground|}}}|{{Category|Subterranean plants}}|{{Category|Surface plants}}}}
{{#ifeq:{{{habitat|}}}|Subterranean|{{Category|Subterranean crops}}|{{Category|Surface crops}}}}|23a={{Category|Cave crops}}}}
+
</includeonly><noinclude>
{{#ifeq:{{{edible|!}}}{{{cookable|!}}}|!!|{{Category|Inedible plants}}}}
+
[[Category:Infobox templates]]
{{#ifeq:{{{alcohol|!}}}|!|{{Category|Non-brewable plants}}}}
 
|Template=}}</includeonly><noinclude>
 
 
 
{{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
 
}}
 
Usage:
 
<pre><nowiki>
 
{{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
 
}}
 
</nowiki></pre>
 
 
 
[[Category:Materials templates]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 10:28, 28 April 2024