A Wiki in the Desert
Log in

Difference between revisions of "Template:HerbQuery"

From A Wiki in the Desert
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#arraydefine:color|{{{color}}}}}{{#arrayprint:color}}{{HerbTable |
+
<includeonly>{{HerbTable |
 
   [[Category:Herb]]
 
   [[Category:Herb]]
 
   {{#if: {{{name|}}}|[[~*{{{name}}}*]]}}
 
   {{#if: {{{name|}}}|[[~*{{{name}}}*]]}}
Line 5: Line 5:
 
   {{#if: {{{leaf|}}}|[[Has leaf::{{{leaf}}}]]}}
 
   {{#if: {{{leaf|}}}|[[Has leaf::{{{leaf}}}]]}}
 
   {{#if: {{{stem|}}}|[[Has stem::{{{stem}}}]]}}
 
   {{#if: {{{stem|}}}|[[Has stem::{{{stem}}}]]}}
   {{#if: {{{color|}}}|{{#arraydefine:color|{{{color}}}}}{{#arrayprint:color||@@@@|[[Has color::@@@@]]}}}}
+
   {{#if: {{{color|}}}|{{#arraydefine:color|{{{color}}}}}{{#arrayprint:color||@@@@|[[Has color::Herb/Color/@@@@]]}}}}
 
   {{#switch: {{{strength|}}}| + = [[Has subobject::<q>[[Affects attribute::Attribute/Strength]][[Has magnitude::>>0]]</q>]] | - = [[Has subobject::<q>[[Affects attribute::Attribute/Strength]][[Has magnitude::<<0]]</q>]] |}}
 
   {{#switch: {{{strength|}}}| + = [[Has subobject::<q>[[Affects attribute::Attribute/Strength]][[Has magnitude::>>0]]</q>]] | - = [[Has subobject::<q>[[Affects attribute::Attribute/Strength]][[Has magnitude::<<0]]</q>]] |}}
 
   {{#switch: {{{dexterity|}}}| + = [[Has subobject::<q>[[Affects attribute::Attribute/Dexterity]][[Has magnitude::>>0]]</q>]] | - = [[Has subobject::<q>[[Affects attribute::Attribute/Dexterity]][[Has magnitude::<<0]]</q>]] |}}
 
   {{#switch: {{{dexterity|}}}| + = [[Has subobject::<q>[[Affects attribute::Attribute/Dexterity]][[Has magnitude::>>0]]</q>]] | - = [[Has subobject::<q>[[Affects attribute::Attribute/Dexterity]][[Has magnitude::<<0]]</q>]] |}}

Latest revision as of 17:23, 26 May 2021