Template:Rule1D

From LifeWiki
Jump to navigation Jump to search
The current OCA infobox infrastructure is inadequate in several ways; see forum thread 166744 for related discussion of what could/should be done with infoboxes
Example rule
x=0, y = 0, rule = Wω - 1 ! #C [[ THEME Inverse ]] #C [[ RANDOMIZE2 THUMBLAUNCH THUMBNAIL THUMBSIZE 2 GRID ZOOM 6 WIDTH 600 HEIGHT 600 LABEL 90 -20 2 "#G" AUTOSTART PAUSE 2 GPS 8 LOOP 256 ]]
LifeViewer-generated pseudorandom soup
Number ω - 1
Computation
Character Stablosive

The rule template is an infobox template for rules for one-dimensional cellular automata. It takes the following parameters:

  • name: the name of the rule.
  • imgname: the name of the image (of a typical pattern) to display in the infobox; .png and .gif are appended automatically for the still and animated versions. The File: prefix should not be specified.
  • animated: should be set to true if an animated image for this rule has been uploaded.
  • number: the rule's number.
  • computation: the rule's minimal known logic gate configuration (as a function of p, q and r)
Can be given in either bitwise or formal logical form, at your discretion, but monospacing makes wedge shapes look thin and strange
ie. rule 110's is ~p&q|q^r or ¬p∧q∨q⊕r.
  • char: the rule's character. Should be one of:
    • 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.
    • Class 4: rules with "a mixture of order and randomness," under which only the conjugacy classes of rules 54, 110 and 120 fall.
  • dualities
    • reversal: black/white reversal (reflect order of bits and flip them all)
    • reflection: left/right reflection (move each bit to the index formed by reflecting its index's representation)
    • The following are only provided if self-complementary under black/white reversal
      • strobing: strobing dual (reflect order of bits, or equivalently flip them all)
      • checkerboard: checkerboard dual (either XOR bits' indexes' representations with 010 and invert bit values, or with 101 and keep values)

Example

An example can been seen to the right; it was generated with the following invocation:

{{Rule1D
 |name        = Example rule
 |imgname     = examplerule
 |number      = ω - 1
 |char        = Stablosive
 |animated    = true
}}