Template:Truth table auto: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 50: | Line 50: | ||
} | } | ||
}, | }, | ||
"description": "Renders a truth table with any number of inputs and outputs", | "description": "Renders a truth table with any number of inputs and outputs.\n\nIMPORTANT: Make sure to use \"+\" instead of \"|\" as the OR operator. Wikitest parses the \"|\" as a property separator unless you instead use \"{{!}}\", but the plus sign is better for readability.", | ||
"paramOrder": [ | "paramOrder": [ | ||
"caption", | "caption", |
Latest revision as of 19:00, 9 September 2025
Renders a truth table with any number of inputs and outputs. IMPORTANT: Make sure to use "+" instead of "|" as the OR operator. Wikitest parses the "|" as a property separator unless you instead use "{{!}}", but the plus sign is better for readability.
Parameter | Description | Type | Status | |
---|---|---|---|---|
caption | caption | Title to show above the table | Line | optional |
inputs | inputs | Number of inputs or list of input names
| Line | required |
outputs | outputs | Number of outputs or list of output names
| Line | required |
expr1 | expr1 | Expression for output #1
| Line | optional |
expr2 | expr2 | Expression for output #2
| Line | optional |
expr3 | expr3 | Expression for output #3
| Line | optional |
expr4 | expr4 | Expression for output #4
| Line | optional |
expr5 | expr5 | Expression for output #5
| Line | optional |
expr6 | expr6 | Expression for output #6
| Line | optional |