Template:Logicalconnective: Difference between revisions

From Vigyanwiki
(Created page with "{| style="border-collapse: collapse; margin-left: auto; margin-right: auto; border: 1px solid black; margin-bottom: 1em;" class="wikitable" |- |+ style="text-align: center; ba...")
 
m (1 revision imported from alpha:Template:Logicalconnective)
 
(No difference)

Latest revision as of 11:07, 16 March 2023

[[{{{main}}}|{{{main}}}]]
Notation Equivalent
formulas
Truth table Venn diagram
{{{notation}}} {{{equivalents}}}
  Q
0 1
P 0    {{{truthtable-00}}}   {{{truthtable-01}}} 
1    {{{truthtable-10}}}   {{{truthtable-11}}} 
[[Image:{{{image}}}|100px]]


Template documentation

Usage

This template is intended for the logical connective article. The syntax is as follows:

{{logicalconnective
  |main=Sheffer stroke
  |title=Alternative denial
  |notation=''P''&nbsp;NAND&nbsp;''Q''<br/>''P''&nbsp;&#124;&nbsp;''Q''
  |equivalents=''P''&nbsp;&rarr;&nbsp;¬''Q'' <br/> ¬''P''&nbsp;&larr;&nbsp;''Q''<br/>¬''P''&nbsp;OR&nbsp;¬''Q''
  |truthtable-00=1
  |truthtable-01=1
  |truthtable-10=1
  |truthtable-11=0
  |image=Venn1110.svg
}}

which produces this output:

Alternative denial
Notation Equivalent
formulas
Truth table Venn diagram
P NAND Q
P | Q
P → ¬Q
¬P ← Q
¬P OR ¬Q
  Q
0 1
P 0    1   1 
1    1   0 
Venn1110.svg


Note that the pipe symbol (|) must be represented as &#124; or otherwise escaped.

[[Category:Template documentation pages{{#translation:}}]]