Difference between revisions of "Template:DataDropDown"
m (Zocky moved page DataSelect to DataDropDown without leaving a redirect) |
|||
Line 1: | Line 1: | ||
{{#eval:html | {{#eval:html | ||
|<select name="{{{name}}}" style="width:100%"> | |<select name="{{{name}}}" style="width:100%"> | ||
− | {{#if:{{{empty|}}}|<option value="" {{#ifeq:{{{value}}}||selected}}>{{{empty}}}</option>}} | + | {{#if:{{{empty|}}}|<option value="" {{#ifeq:{{{value|}}}||selected}}>{{{empty}}}</option>}} |
{{#arr:loop | {{#arr:loop | ||
| k = v | | k = v | ||
| {{{options}}} | | {{{options}}} | ||
− | | each = {{#if:{{{v|}}}|<option value="{{{v}}}" {{#ifeq:{{{v}}}|{{{value}}}|selected}}>{{#title:pagename|{{{v}}}}}</option>}} | + | | each = {{#if:{{{v|}}}|<option value="{{{v}}}" {{#ifeq:{{{v}}}|{{{value|}}}|selected}}>{{#title:pagename|{{{v}}}}}</option>}} |
}} | }} | ||
</select> | </select> | ||
}} | }} |
Revision as of 20:54, 12 August 2015