A Wiki in the Desert
Log in

Difference between revisions of "Template:HerbTableBody"

From A Wiki in the Desert
 
(One intermediate revision 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}}{{!}}-
 
{{#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]]}}
 
{{!}} {{#if: {{{7}}}|[[{{{7}}}|thumb|250x250px]]}}
Line 15: Line 16:
 
{{!}} {{AttributeSign | {{#explode:{{#arrayindex:herbtidy|{{#arraysearch:herbtidy|/Perception/}}}}| |1}}}}
 
{{!}} {{AttributeSign | {{#explode:{{#arrayindex:herbtidy|{{#arraysearch:herbtidy|/Perception/}}}}| |1}}}}
 
{{!}}-
 
{{!}}-
 +
</includeonly>
 
<noinclude>
 
<noinclude>
 
<templatedata>
 
<templatedata>
Line 20: Line 22:
 
"params": {
 
"params": {
 
"1": {
 
"1": {
"label": "Herb"
+
"label": "Herb",
 +
"type": "string",
 +
"required": true
 
},
 
},
 
"2": {
 
"2": {
"label": "Requires"
+
"label": "Requires",
 +
"type": "string",
 +
"required": true
 
},
 
},
 
"3": {
 
"3": {
"label": "Has leaf"
+
"label": "Has leaf",
 +
"type": "string",
 +
"required": true
 
},
 
},
 
"4": {
 
"4": {
"label": "Has stem"
+
"label": "Has stem",
 +
"type": "string",
 +
"required": true
 
},
 
},
 
"5": {
 
"5": {
"label": "Has color"
+
"label": "Has color",
 +
"type": "string",
 +
"required": true
 
},
 
},
 
"6": {
 
"6": {
"label": "Is similar to"
+
"label": "Is similar to",
 +
"type": "string",
 +
"required": true
 
},
 
},
 
"7": {
 
"7": {
"label": "Has image"
+
"label": "Has image",
 +
"type": "string",
 +
"required": true
 
}
 
}
 
},
 
},

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.

Template parameters

ParameterDescriptionTypeStatus
Herb1

no description

Stringrequired
Requires2

no description

Stringrequired
Has leaf3

no description

Stringrequired
Has stem4

no description

Stringrequired
Has color5

no description

Stringrequired
Is similar to6

no description

Stringrequired
Has image7

no description

Stringrequired