Template:DropdownFilter/Option: Difference between revisions

Template page
m (stripped illegal characters (colons and spaces) from option names)
m (reverted changes; changed filter to split on semicolons instead of spaces)
Tag: Undo
 
Line 1: Line 1:
<includeonly>["{{#replace:{{#replace:{{{1|}}}|:|}}| |}}", "{{#if:{{{2|}}}|disabled}}"]</includeonly><noinclude>
<includeonly>["{{{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]].



Latest revision as of 00:22, 24 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"]