Template:GOL-diagram-s/doc

Usage
This template creates a small diagram as used in Lewis Carroll's The Game of Logic. Usage is as follows:

You can also specify the sections by index:

"special" parameter
The "special" parameter allows for special cases that are used in the text. Allowed values are as follows:


 * label labels the $$x$$, $$y$$, $$m$$, $$x^\prime$$, and $$y^\prime$$ sections. This will override any value placed in positions 3, 4, and 6, but is generally used with no values in any position.






 * xm, x'm, ym&apos;, y'm&apos; puts a 1 or — (red counter) in the respective position. Note that the syntax uses an apostrophe (') not a prime (′). This may or may not override values placed in the positions underneath the special counter. For example, x'm will override any value placed in section 6, but not section 5. The values xm', x'm', ym, and y'm are not currently supported because they are not used in the text.









"hide" parameter
The "hide" parameter is used to hide half of the diagram. Allowed values are x, x&apos;, y, y&apos;. Note that the syntax uses an apostrophe (') not a prime (′).





"inline" parameter
The "inline" parameter allows the diagram to be placed inline. It uses yesno to normalize input. Also, the whole block must be within explicit &lt;div&gt; tags for it to work.


 * &lt;div&gt;The diagram is nice.&lt;/div&gt;

The diagram is nice.

"style" parameter
The template includes a "style" parameter in case you need to modify the styles. The default style is "margin-left:auto;margin-right:auto;text-align:center;", plus the CSS definitions for class="wikitable".

Do not surround the style parameter value in quotation marks.