A Wiki in the Desert
Log in

Difference between revisions of "Template:HerbTable"

From A Wiki in the Desert
Line 1: Line 1:
{{#arraydefine:herbs|{{{1}}}}}
+
{{#ask:
{| class="wikitable sortable"
+
   {{{1}}}
! Image
+
   |?requires
! Name
+
   |?Has leaf
! Method
+
   |?Has stem
! Leaves
+
   |?Has color
! Stem
+
   |?Is similar to
! Color
+
  |limit = 500
! Similar
+
  |link = none
|-
+
  |format = plainlist
{{#loop: i
+
  |introtemplate = HerbTableHeader
   | 0
+
  |template = HerbTableBody
  | {{ #arraysize:herbs}}
+
   |outrotemplate = HerbTableFooter
  |<nowiki/>
 
  {{!}}-
 
  {{!}}[[Image:Herbs_{{#replace:{{#replace:{{#arrayindex: herbs|{{ #var:i}}}}|Herb/|}}| |}}.jpg|thumb|250x250px]]
 
  {{!}}[[{{#arrayindex: herbs|{{ #var:i}}}}|{{#replace:{{#arrayindex: herbs|{{ #var:i}}}}|Herb/|}}]]
 
   {{!}}{{#replace:{{#ask: [[{{#arrayindex: herbs|{{ #var:i}}}}]] |?requires#= |mainlabel=-}}|Action/|}}
 
   {{!}}{{#replace:{{#ask: [[{{#arrayindex: herbs|{{ #var:i}}}}]] |?Has leaf#= |mainlabel=-}}|Herb/Leaf/|}}
 
   {{!}}{{#replace:{{#ask: [[{{#arrayindex: herbs|{{ #var:i}}}}]] |?Has stem#= |mainlabel=-}}|Herb/Stem/|}}
 
   {{!}}{{#replace:{{#ask: [[{{#arrayindex: herbs|{{ #var:i}}}}]] |?Has color#= |mainlabel=-}}|Herb/Color/|}}
 
   {{!}}{{#replace:{{#ask: [[{{#arrayindex: herbs|{{ #var:i}}}}]] |?Is similar to#= |mainlabel=-}}|Herb/|}}
 
   {{!}}-
 
 
}}
 
}}
|}
 

Revision as of 14:09, 13 May 2021

<ul><li>The part "{{{1}}}" of the query was not understood.Results might not be as expected.</li> <!--br--><li>Some subquery has no valid condition.</li></ul>