More actions
(helper template for Template:DropdownFilter) |
m (reverted changes; changed filter to split on semicolons instead of spaces) Tag: Undo |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>["{{{1|}}}", "{{# | <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]]. | ||
Line 6: | Line 6: | ||
{{DropdownFilter/Option | {{DropdownFilter/Option | ||
| selection-option | | selection-option | ||
| disabled (optional, | | disabled (optional, put any value to disable the option)) | ||
}} | }} | ||
</nowiki></pre> | </nowiki></pre> | ||
Line 17: | Line 17: | ||
| {{DropdownFilter/Option|BBCS}} | | {{DropdownFilter/Option|BBCS}} | ||
|- | |- | ||
| <code><nowiki>{{DropdownFilter/Option|BBCS| | | <code><nowiki>{{DropdownFilter/Option|BBCS|anything}}</nowiki></code> | ||
| {{DropdownFilter/Option|BBCS| | | {{DropdownFilter/Option|BBCS|anything}} | ||
|} | |} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
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"] |