A Wiki in the Desert
Log in

Difference between revisions of "Form:Herb"

From A Wiki in the Desert
 
(6 intermediate revisions by the same user not shown)
Line 15: Line 15:
 
|-
 
|-
 
! Harvest Method:  
 
! Harvest Method:  
| {{{field|method|input type=combobox|mapping template=HerbAction|values={{#arraydefine:f|{{#ask: [[Category:Herb]]|?requires#=|format=plainlist|limit=100|link=none|mainlabel=-}}|, |unique,sort=desc, print=list}} }}}
+
| {{{field
 +
    |method
 +
    |input type=tokens
 +
    |values={{#arraydefine:actions|{{#ask: [[Category:Herb]]|?requires#=|format=array|mainlabel=-}}|, |unique,sort=desc}}{{#arraysearcharray:actions_trim|actions|/^Action\/(.*)$/|0|-1|$1}}{{#arrayprint:actions_trim}}
 +
}}}
 
|-
 
|-
 
! Leaf:  
 
! Leaf:  
| {{{field|leaf|input type=combobox|values from property=Has leaf|mapping template=HerbLeaf}}}
+
| {{{field
 +
    |leaf
 +
    |input type=combobox
 +
    |values={{#arraydefine:leaves|{{#ask: [[Category:Herb]]|?Has leaf#=|format=array|mainlabel=-}}|, |unique,sort=desc}}{{#arraysearcharray:leaves_trim|leaves|/^Herb\/Leaf\/(.*)$/|0|-1|$1}}{{#arrayprint:leaves_trim}}
 +
}}}
 
|-
 
|-
 
! Stem:  
 
! Stem:  
| {{{field|stem|input type=combobox|values from property=Has stem|mapping template=HerbStem}}}
+
| {{{field
 +
    |stem
 +
    |input type=combobox
 +
    |values={{#arraydefine:stems|{{#ask: [[Category:Herb]]|?Has stem#=|format=array|mainlabel=-}}|, |unique,sort=desc}}{{#arraysearcharray:stems_trim|stems|/^Herb\/Stem\/(.*)$/|0|-1|$1}}{{#arrayprint:stems_trim}}
 +
}}}
 
|-
 
|-
 
! Color(s):  
 
! Color(s):  
| {{{field|color|input type=tokens|values from property=Has color|mapping template=HerbColor}}}
+
| {{{field
 +
    |color
 +
    |input type=tokens
 +
    |values={{#arraydefine:color|{{#ask: [[Category:Herb]]|?Has color#=|format=array|manysep=,|mainlabel=-}}|, |unique,sort=desc}}{{#arraysearcharray:color_trim|color|/^Herb\/Color\/(.*)$/|0|-1|$1}}{{#arrayprint:color_trim}}
 +
}}}
 
|-
 
|-
 
! Strength:  
 
! Strength:  

Latest revision as of 19:08, 19 May 2021

This is the "Herb" form. To create a page with this form, enter the page name below; if a page with that name already exists, you will be sent to a form to edit that page.