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
(more clean up)
(simplified wiki logic not behaving as expected; revert)
Line 39: Line 39:
 
{{#if:{{{uses|}}}|{{infoheader|Uses}}
 
{{#if:{{{uses|}}}|{{infoheader|Uses}}
 
{{infocell|{{{uses}}}}}}}
 
{{infocell|{{{uses}}}}}}}
{{#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]]}}}}
+
{{#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}}
 
{{infoend}}
 
{{#if:{{{spring|}}}|{{Category|Spring plants}}}}
 
{{#if:{{{spring|}}}|{{Category|Spring plants}}}}

Revision as of 19:46, 7 February 2015