Template:Langton's ant/doc
This is a documentation subpage for Template:Langton's ant. It contains usage information, categories and other content that is not part of the original Template page. |
Use this template to create an interactive instance of Langton's ant.
See the installation instructions to get it working in your wiki.
Usage
Call this template with no parameters to create a small instance with a single ant in the center, like so:
Markup | Renders as |
---|---|
{{Langton's ant}} |
|
Use the parameters to change the initial conditions. Click on the canvas to introduce additional ants.
Installation
Template:Template gadget installation instructions
Template data
Use this template to create an interactive instance of Langton's ant.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Autoplay | autoplay | Start the game automatically
| Boolean | optional |
Width | width | Width of the instance, in pixels
| Number | optional |
Height | height | Height of the instance, in pixels
| Number | optional |
Zoom | zoom | Initial zoom of the instance
| Number | optional |
Grid | grid | Initial state of the grid
| Boolean | optional |
Ants | ants | Initial ants of the instance, specified by a semicolon-separated list of coordinates
| String | optional |
Cells | cells | Initial cells of the instance, specified by a semicolon-separated list of coordinates
| String | optional |
Fallback | fallback | Fallback file or text, for users with JavaScript disabled or when printing
| Unknown | optional |
See also
- es:Plantilla:Hormiga de Langton - Spanish localization of this template
- Template:Conway's Game of Life - Related template
- User:Sophivorus - Main author of this template