User:Ian07/Test/Template: Difference between revisions
< User:Ian07 | Test
No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
}} | }} | ||
{{#if: {{{animated|}}} | <tr> | {{#if: {{{animated|}}} | <tr> | ||
<td colspan="2" class="infobox_animlink">[[Media:{{{imgname|}}}.gif|View animated image]]</td> | <td colspan="2" class="infobox_animlink"> [[Media:{{{imgname|maze}}}.gif|View animated image]]</td> | ||
</tr> | </tr> | ||
}} | }} | ||
Revision as of 23:11, 4 January 2022
| Apples | |
| View static image | |
| View animated image | |
| Number | ω - 1 |
|---|---|
| Computation | |
| Character | Tasty |
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.
- 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.
Example
An example can been seen to the right; it was generated with the following invocation:
{{Rule1D
|name = Apples
|imgname = apples
|number = ω - 1
|char = Tasty
|animated = true
}}