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
(fix errant template)
(more clean up)
Line 39: Line 39:
 
{{#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}}}|no|{{!-}}|{{infocell|style=text-align:center; background-color: #eee; border-top: 1px solid #aaa|1=[[wikipedia:{{#ifeq:{{{wiki|}}}|yes|{{{name}}}|{{{wiki|}}}}}|Wikipedia article]]}}}}
 
{{infoend}}
 
{{infoend}}
 
{{#if:{{{spring|}}}|{{Category|Spring plants}}}}
 
{{#if:{{{spring|}}}|{{Category|Spring plants}}}}
Line 46: Line 46:
 
{{#if:{{{winter|}}}|{{Category|Winter plants}}}}
 
{{#if:{{{winter|}}}|{{Category|Winter plants}}}}
 
{{#ifeq:{{{habitat|}}}|Subterranean|{{Category|Subterranean plants}}|{{Category|Surface plants}}}}
 
{{#ifeq:{{{habitat|}}}|Subterranean|{{Category|Subterranean plants}}|{{Category|Surface plants}}}}
{{#ifeq:{{{edible|!}}}{{{cookable|!}}}|!!|{{Category|Inedible plants}}}}
 
{{#ifeq:{{{alcohol|!}}}|!|{{Category|Non-brewable plants}}}}
 
 
</includeonly><noinclude>
 
</includeonly><noinclude>
[[Category:Materials templates]]
+
[[Category:Infobox templates]]
 
</noinclude>
 
</noinclude>

Revision as of 19:26, 7 February 2015