A Wiki in the Desert
Log in

Difference between revisions of "Template:HerbTableBody"

From A Wiki in the Desert
Line 5: Line 5:
 
{{!}} {{#ifeq: {{{3}}}|Herb/Leaf/|Unknown|[[{{{3}}}|{{#replace:{{{3}}}|Herb/Leaf/|}}]]}}
 
{{!}} {{#ifeq: {{{3}}}|Herb/Leaf/|Unknown|[[{{{3}}}|{{#replace:{{{3}}}|Herb/Leaf/|}}]]}}
 
{{!}} {{#ifeq: {{{4}}}|Herb/Stem/|Unknown|[[{{{4}}}|{{#replace:{{{4}}}|Herb/Stem/|}}]]}}
 
{{!}} {{#ifeq: {{{4}}}|Herb/Stem/|Unknown|[[{{{4}}}|{{#replace:{{{4}}}|Herb/Stem/|}}]]}}
{{!}} {{#arraydefine:colors|{{#replace:{{{5}}}|Herb/Color/|}}}}{{#if:{{#arraysize:colors}}|{{#arrayprint:colors|, |@@@@|[[Herb/Color/@@@@|@@@@]]}}|Unknown}}{{#arraysize:colors}}
+
{{!}} {{#arraydefine:colors|{{#replace:{{{5}}}|Herb/Color/|}}}}{{#ifeq:{{#arraysize:colors}}|0|Unknown|{{#arrayprint:colors|, |@@@@|[[Herb/Color/@@@@|@@@@]]}}}}
 
{{!}} {{#arraydefine:similar|{{#replace:{{{6}}}|Herb/|}}}}{{#arrayprint:similar|, |@@@@|[[Herb/@@@@|@@@@]]}}
 
{{!}} {{#arraydefine:similar|{{#replace:{{{6}}}|Herb/|}}}}{{#arrayprint:similar|, |@@@@|[[Herb/@@@@|@@@@]]}}
 
{{!}} {{AttributeSign | {{#explode:{{#arrayindex:herbtidy|{{#arraysearch:herbtidy|/Strength/}}}}| |1}}}}
 
{{!}} {{AttributeSign | {{#explode:{{#arrayindex:herbtidy|{{#arraysearch:herbtidy|/Strength/}}}}| |1}}}}

Revision as of 18:19, 13 May 2021

|- | [[Image:Herbs_{{{1}}}.jpg|thumb|250x250px]] | [[{{{1}}}|{{{1}}}]] | [[{{{2}}}|{{{2}}}]] | [[{{{3}}}|{{{3}}}]] | [[{{{4}}}|{{{4}}}]] | [[Herb/Color/Template:(({5Template:))}|Template:(({5Template:))}]] | [[Herb/Template:(({6Template:))}|Template:(({6Template:))}]] | Expression error: Unexpected > operator. | Expression error: Unexpected > operator. | Expression error: Unexpected > operator. | Expression error: Unexpected > operator. | Expression error: Unexpected > operator. | Expression error: Unexpected > operator. | Expression error: Unexpected > operator. |-