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
(+cats)
(clean up)
Line 34: Line 34:
 
{{#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:{{{seed|}}}|{{infoheader|Seed Properties}}
+
{{#if:{{{seed|}}}|{{infoheader|Seed Properties}}{{Category|Crops}}
 
{{#if:{{{seed_edible|}}}|{{inforow|[[Food|Edible]]|{{{seed_edible}}}}}}}
 
{{#if:{{{seed_edible|}}}|{{inforow|[[Food|Edible]]|{{{seed_edible}}}}}}}
 
{{#if:{{{seed_cookable|}}}|{{inforow|[[Kitchen|Cookable]]|{{{seed_cookable}}}}}}}|{{!-}}}}
 
{{#if:{{{seed_cookable|}}}|{{inforow|[[Kitchen|Cookable]]|{{{seed_cookable}}}}}}}|{{!-}}}}
Line 40: Line 40:
 
{{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]]}}|{{!-}}}}
 
{{#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=
+
{{infoend}}
{{Category|Crops}}
+
{{#if:{{{spring|}}}|{{Category|Spring plants}}}}
{{#if:{{{spring|}}}|{{Category|Spring crops}}}}
+
{{#if:{{{summer|}}}|{{Category|Summer plants}}}}
{{#if:{{{summer|}}}|{{Category|Summer crops}}}}
+
{{#if:{{{autumn|}}}|{{Category|Autumn plants}}}}
{{#if:{{{autumn|}}}|{{Category|Autumn crops}}}}
+
{{#if:{{{winter|}}}|{{Category|Winter plants}}}}
{{#if:{{{winter|}}}|{{Category|Winter crops}}}}
+
{{#ifeq:{{{habitat|}}}|Subterranean|{{Category|Subterranean plants}}|{{Category|Surface plants}}}}
{{#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:{{{edible|!}}}{{{cookable|!}}}|!!|{{Category|Inedible plants}}}}
 
{{#ifeq:{{{alcohol|!}}}|!|{{Category|Non-brewable plants}}}}
 
{{#ifeq:{{{alcohol|!}}}|!|{{Category|Non-brewable plants}}}}

Revision as of 21:04, 6 February 2015