Difference between revisions of "Template:HerbTableBody"
From A Wiki in the Desert
Tag: Undo |
|||
(54 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | <includeonly> | ||
+ | {{#ask:[[-Has subobject::{{{1}}}]]|?Affects attribute#=|?Has magnitude#=|format=array|name=herb|mainlabel=-}}{{#arraysearcharray:herbtidy|herb|/^.*?\/(.+)<PROP>(.+).*$/|0|-1|$1 $2}}{{!}}- | ||
+ | {{!}} {{#if: {{{7}}}|[[{{{7}}}|thumb|250x250px]]}} | ||
+ | {{!}} [[{{{1}}}|{{#replace:{{{1}}}|Herb/}}]] | ||
+ | {{!}} {{#if: {{{2|}}}|[[{{{2}}}|{{#replace:{{{2}}}|Action/|}}]]|Unknown}} | ||
+ | {{!}} {{#if: {{{3|}}}|[[{{{3}}}|{{#replace:{{{3}}}|Herb/Leaf/|}}]]|Unknown}} | ||
+ | {{!}} {{#if: {{{4|}}}|[[{{{4}}}|{{#replace:{{{4}}}|Herb/Stem/|}}]]|Unknown}} | ||
+ | {{!}} {{#arraydefine:colors|{{#replace:{{{5}}}|Herb/Color/|}}}}{{#ifeq:{{#arraysize:colors}}|0|Unknown|{{#arrayprint:colors|, |@@@@|[[Herb/Color/@@@@|@@@@]]}}}} | ||
+ | {{!}} {{#arraydefine:similar|{{#replace:{{{6}}}|Herb/|}}}}{{#arrayprint:similar|, |@@@@|[[Herb/@@@@|@@@@]]}} | ||
+ | {{!}} {{AttributeSign | {{#explode:{{#arrayindex:herbtidy|{{#arraysearch:herbtidy|/Strength/}}}}| |1}}}} | ||
+ | {{!}} {{AttributeSign | {{#explode:{{#arrayindex:herbtidy|{{#arraysearch:herbtidy|/Dexterity/}}}}| |1}}}} | ||
+ | {{!}} {{AttributeSign | {{#explode:{{#arrayindex:herbtidy|{{#arraysearch:herbtidy|/Endurance/}}}}| |1}}}} | ||
+ | {{!}} {{AttributeSign | {{#explode:{{#arrayindex:herbtidy|{{#arraysearch:herbtidy|/Speed/}}}}| |1}}}} | ||
+ | {{!}} {{AttributeSign | {{#explode:{{#arrayindex:herbtidy|{{#arraysearch:herbtidy|/Constitution/}}}}| |1}}}} | ||
+ | {{!}} {{AttributeSign | {{#explode:{{#arrayindex:herbtidy|{{#arraysearch:herbtidy|/Focus/}}}}| |1}}}} | ||
+ | {{!}} {{AttributeSign | {{#explode:{{#arrayindex:herbtidy|{{#arraysearch:herbtidy|/Perception/}}}}| |1}}}} | ||
{{!}}- | {{!}}- | ||
− | { | + | </includeonly> |
− | + | <noinclude> | |
− | + | <templatedata> | |
− | + | { | |
− | + | "params": { | |
− | + | "1": { | |
− | + | "label": "Herb", | |
− | + | "type": "string", | |
− | + | "required": true | |
− | + | }, | |
− | + | "2": { | |
− | + | "label": "Requires", | |
− | + | "type": "string", | |
− | + | "required": true | |
− | + | }, | |
+ | "3": { | ||
+ | "label": "Has leaf", | ||
+ | "type": "string", | ||
+ | "required": true | ||
+ | }, | ||
+ | "4": { | ||
+ | "label": "Has stem", | ||
+ | "type": "string", | ||
+ | "required": true | ||
+ | }, | ||
+ | "5": { | ||
+ | "label": "Has color", | ||
+ | "type": "string", | ||
+ | "required": true | ||
+ | }, | ||
+ | "6": { | ||
+ | "label": "Is similar to", | ||
+ | "type": "string", | ||
+ | "required": true | ||
+ | }, | ||
+ | "7": { | ||
+ | "label": "Has image", | ||
+ | "type": "string", | ||
+ | "required": true | ||
+ | } | ||
+ | }, | ||
+ | "paramOrder": [ | ||
+ | "1", | ||
+ | "2", | ||
+ | "3", | ||
+ | "4", | ||
+ | "5", | ||
+ | "6", | ||
+ | "7" | ||
+ | ], | ||
+ | "description": "This template is used as part of a semantic media wiki query to generate the body of a query for herb data." | ||
+ | } | ||
+ | </templatedata> | ||
+ | </noinclude> |
Latest revision as of 18:50, 25 May 2021
This template is used as part of a semantic media wiki query to generate the body of a query for herb data.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Herb | 1 | no description | String | required |
Requires | 2 | no description | String | required |
Has leaf | 3 | no description | String | required |
Has stem | 4 | no description | String | required |
Has color | 5 | no description | String | required |
Is similar to | 6 | no description | String | required |
Has image | 7 | no description | String | required |