Template:Infobox/multichoice yesno

{{ |{{maintenance task|nocat={{{nocat|false}}} |category={{{defaultcategory|}}} |doclink={{{defaultdoclink|}}} |label={{{defaultlabel|unknown}}} |reason={{{defaultreason|None of the parameters are specified}}}} #ifexpr: {{#len:{{#var:arg|}}}} > 1 |{{#if: {{{multicategory|}}} |{{categorizer|nocat={{{nocat|false}}} |category={{{multicategory|}}} |label={{{multilabel|Multiple:}}}}}}} }}{{list|range=4|separator={{#ifexpr: {{#len:{{#var:arg|}}}} <= 1|implode}} |{{#if: {{#pos:{{#var:arg|}}|1}} | {{categorizer|nocat={{{nocat|false}}}|category={{{cat1|}}}|{{{type1|label}}}={{{value1|}}}}}}} |{{#if: {{#pos:{{#var:arg|}}|2}} | {{categorizer|nocat={{{nocat|false}}}|category={{{cat2|}}}|{{{type2|label}}}={{{value2|}}}}}}} |{{#if: {{#pos:{{#var:arg|}}|3}} | {{categorizer|nocat={{{nocat|false}}}|category={{{cat3|}}}|{{{type3|label}}}={{{value3|}}}}}}} |{{#if: {{#pos:{{#var:arg|}}|4}} | {{categorizer|nocat={{{nocat|false}}}|category={{{cat4|}}}|{{{type4|label}}}={{{value4|}}}}}}} }} }} {{Infobox Template |purpose=infobox |singletag=no |multiline=optional |gamerelated=no |suppressible=recursively |choice=multiple |cat1=!depends on cat1 |cat2=!depends on cat2 |cat3=!depends on cat3 |cat4=!depends on cat4 |cat5=!depends on multicategory |cat6=!depends on defaultcategory!maintenance |var1=arg }}
 * 1) ifexpr: {{#len:{{#var:arg|}}}} < 1
 * {{#if: {{{defaultcategory|}}}

This template offers a multiple choice definition for an infobox param. Using this template, with just a few configuration values, another template can allow the pages it is used on, to be automatically categorized. The category or categories under which would be categorized, can be chosen by a simple selection in the form of four yes/no parameters, so multiple choices can be made.

...this template is still under documentation

Parameters

 * 1) Four unnamed parameters, used to make the selection between the specified categories
 * cat1: (up to cat4)
 * type1: (up to type4)
 * value1: (up to value4)
 * defaultcategory:
 * defaultdoclink:
 * defaultlabel:
 * defaultreason:
 * multicategory:
 * multilabel:
 * nocat: Whether or not to suppress auto categorization (defaults to false, which means auto categorization).

Note: this categorizer is multiple choice: you can specify any combination of the four options.

Note: if none of the four parameters are used, the default 'unknown' will be used.

Examples (from Infobox Character/adventure)
Common use include either the lba1 or lba2 parameter to specify the one adventure a character is in (value "yes" is recommended):



You can also specify multiple adventures for one character ( warning : this will force a table cell to split in two, so do not do this outside table cells!):



It doesn't matter which value you use, any nonempty value other than "no" will express a positive value, so these all have the same result:



The only ways to express a negative value is by leaving out the parameter, leaving it empty or specifying "no" (case insensitive), so these all have the same result:



When the in-game content of Little Big Adventure 3 is publicized, it may be specified as the adventure as well:



You may leave the "adventure" undefined (which would raise the Characters from an unknown adventure maintenance task) by not specifying any positive value for any of the options, so these all have the same result:



The nocat parameter may be used to suppress automatic categorization like this (any value will do):

This would render the same result as the first example above, but would not automatically categorize under Category:LBA1 characters. This feature works both on valid values and the maintenance task mentioned above.