More actions
m (fix logic) |
m (stripped illegal characters (colons and spaces) from option names) |
||
Line 1: | Line 1: | ||
<includeonly>["{{{1|}}}", "{{#if:{{{2|}}}|disabled}}"]</includeonly><noinclude> | <includeonly>["{{#replace:{{#replace:{{{1|}}}|:|}}| |}}", "{{#if:{{{2|}}}|disabled}}"]</includeonly><noinclude> | ||
Creates the JSON for a specified option for [[Template:DropdownFilter]]. | Creates the JSON for a specified option for [[Template:DropdownFilter]]. | ||
Revision as of 23:45, 23 March 2021
Creates the JSON for a specified option for Template:DropdownFilter.
Usage
{{DropdownFilter/Option | selection-option | disabled (optional, put any value to disable the option)) }}
Code | Produces |
---|---|
{{DropdownFilter/Option|BBCS}}
|
["BBCS", ""] |
{{DropdownFilter/Option|BBCS|anything}}
|
["BBCS", "disabled"] |