Jump to content

Template:Truth table auto: Difference between revisions

From Logic World Wiki
No edit summary
fix empty space above table
Line 65: Line 65:
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude><includeonly>{{#invoke:LogicUtils|truth_table_auto}}</includeonly>
<includeonly>{{#invoke:LogicUtils|truth_table_auto}}</includeonly>

Revision as of 22:56, 8 September 2025

Renders a truth table with any number of inputs and outputs

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
captioncaption

Title to show above the table

Lineoptional
inputsinputs

Number of inputs or list of input names

Example
"3", "A B C"
Linerequired
outputsoutputs

Number of outputs or list of output names

Example
"2", "X Y"
Linerequired
expr1expr1

Expression for output #1

Example
(a & b) | c ^ d
Lineoptional
expr2expr2

Expression for output #2

Example
(a & b) | c ^ d
Lineoptional
expr3expr3

Expression for output #3

Example
(a & b) | c ^ d
Lineoptional
expr4expr4

Expression for output #4

Example
(a & b) | c ^ d
Lineoptional
expr5expr5

Expression for output #5

Example
(a & b) | c ^ d
Lineoptional
expr6expr6

Expression for output #6

Example
(a & b) | c ^ d
Lineoptional