Template:Rule: Difference between revisions
Jump to navigation
Jump to search
add hideimg parameter |
DroneBetter (talk | contribs) m Add checkerboard duals, clarify explanation |
||
| Line 27: | Line 27: | ||
{{#if: {{{strobing|}}} | | {{#if: {{{strobing|}}} | | ||
<tr> | <tr> | ||
<th> [[ | <th> [[Strobing dual]] </th> | ||
<td> {{{strobing|}}} </td> | <td> {{{strobing|}}} </td> | ||
</tr> | |||
}} | |||
}} | |||
{{#if: {{{checkerboard|}}} | | |||
<tr> | |||
<th> [[Checkerboard dual]] </th> | |||
<td> {{{checkerboard|}}} </td> | |||
</tr> | </tr> | ||
}} | }} | ||
| Line 79: | Line 86: | ||
** <tt>Explosive</tt>: rules in which patterns tend to grow without bound. | ** <tt>Explosive</tt>: rules in which patterns tend to grow without bound. | ||
* <tt>ruleinteger</tt>: the rule's [[rule integer]] (if any). | * <tt>ruleinteger</tt>: the rule's [[rule integer]] (if any). | ||
* <tt>reversal</tt>: (optional) the rule's [[black/white reversal]]. | *Duals: | ||
* <tt>strobing</tt>: the rule's [[ | :* <tt>reversal</tt>: (optional) the rule's [[black/white reversal]]. | ||
::The following should only be specified for [[self-complementary]] rules. (For others, they are an alternating pair of rules, switching over time and space respectively.) | |||
::* <tt>strobing</tt>: the rule's [[strobing dual]]. (Should additionally only be specified for those with S8 and not B0.) | |||
::* <tt>checkerboard</tt>: The rule's [[checkerboard dual]]. | |||
==Example== | ==Example== | ||
Revision as of 20:27, 11 August 2023
}}
| Maze | |
| View static image | |
| View animated image | |
| Rulestring | 12345/3 B3/S12345 |
|---|---|
| Rule integer | 31752 |
| Character | Explosive |
| Black/white reversal | B0128/S01234678 |
The rule template is an infobox template for rules for cellular automata. It takes the following parameters:
- name: (optional) the name of the rule. If not specified, the infobox head will be a rulestring.
- imgname: (optional) the name of the image (of a typical pattern) to link in the infobox; .png and .gif are appended automatically for the still and animated versions. Should be set if an image (static or animated) for this rule has been uploaded. The File: prefix should not be specified.
- animated: (optional) should be set to true if an animated image for this rule has been uploaded.
- b: the rule's birth (B) conditions.
- s: the rule's survival (S) conditions.
- Note the use of comma in Higher-range outer-totalistic cellular automata.
- f: for BSFKL rules, the rule's forcing (F) conditions.
- k: for BSFKL rules, the rule's killing (K) conditions.
- l: for BSFKL rules, the rule's living (L) conditions.
- c: for Generations rules and Higher-range outer-totalistic cellular automata, the total number of cell states. The parameter may also be specified as g.
- r: for Higher-range outer-totalistic cellular automata, the range.
- n: for Higher-range outer-totalistic cellular automata and weighted rules, the neighbourhood type. It should be one of ABCDFGHLMNWX23*+#@.
- NM for Moore neighbourhood.
- NN for von Neumann neighbourhood.
- NC for Circular neighborhood.
- N2 for L2/Euclidean neighborhood.
- NB for Checkerboard neighborhood.
- N# for Hash neighborhood.
- N+ for Cross neighborhood.
- NX for Saltire neighborhood.
- N* for Star neighborhood.
- NH for Hexagonal neighborhood.
- NA for Asterisk neighborhood.
- N3 for Tripod neighborhood.
- NL for Triangular neighborhood.
- ND for Aligned Checkerboard neighborhood.
- NF for Far Corners/Edges neighborhood. Optionally, override r by specifying C<number> and/or E<number>.
- N@ for custom neighborhood. @ is followed by hexadecimal digits that defines neighborhood.
- NW for custom weighted neighborhood. W is followed by hexadecimal digits that defines neighborhood.
- NG for Gaussian-weighted neighborhood.
- char: the rule's character/behaviour in sufficiently large soups with ~0.5 density. Like Wolfram's classification, the description is not strict. Suggested options:
- Stable: rules in which patterns tend to stabilize quickly and show little activity.
- Chaotic: rules in which patterns tend to show complex behavior, but do not generally explode.
- Explosive: rules in which patterns tend to grow without bound.
- ruleinteger: the rule's rule integer (if any).
- Duals:
- reversal: (optional) the rule's black/white reversal.
- The following should only be specified for self-complementary rules. (For others, they are an alternating pair of rules, switching over time and space respectively.)
- strobing: the rule's strobing dual. (Should additionally only be specified for those with S8 and not B0.)
- checkerboard: The rule's checkerboard dual.
Example
An example can been seen to the right; it was generated with the following invocation:
{{Rule
|name = Maze
|imgname = maze
|b = 3
|s = 12345
|char = Explosive
|ruleinteger = 31752
|reversal = B0128/S01234678
|animated = true
}}