Template:Game of Life/doc
Appearance
This is a documentation subpage for Template:Game of Life. It may contain usage information, categories and other content that is not part of the original template page. |
Use this template to create an interactive, JavaScript-based widget of Conway's Game of Life.
Usage
[edit source]Calling this template with no parameters inserts an empty instance of the game. To make it more interesting, specify some initial conditions. For example:
{{Game of Life
| cells = 0,0; 0,1; 0,-1; -1,0; 1,1
}}
Template data
[edit source]Use this template to create an interactive widget of Conwat's Game of Life.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Autoplay | autoplay | Start the game as soon as it loads
| Boolean | optional |
Width | width | Width of the widget, in pixels
| String | optional |
Height | height | Height of the widget, in pixels
| String | optional |
Zoom | zoom | Initial zoom of the widget
| Number | optional |
Grid | grid | Enable the grid by default
| Boolean | optional |
Cells | cells | Coordinates of the live cells in the starting position
| String | optional |