Template:Reflector/Doc: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Factored out from Template:Reflector
 
mNo edit summary
 
(7 intermediate revisions by 5 users not shown)
Line 10: Line 10:
* '''px''': is the period multiplier of the reflector, e.g. "4" for the [[Quadri-Snark]].
* '''px''': is the period multiplier of the reflector, e.g. "4" for the [[Quadri-Snark]].
* '''colour''': indicates whether the reflector preserves or changes a glider's [[colour of a glider|colour]].
* '''colour''': indicates whether the reflector preserves or changes a glider's [[colour of a glider|colour]].
* '''isosc''': tells whether the reflector can function as an oscillator on its own (some reflectors require a constant stream of gliders). If the pattern can not function as an oscillator on its own this parameter should be "false", otherwise leave it undefined.
* '''isosc''': tells whether the reflector can function as an oscillator / still life on its own ([[dependent reflector]]s require a constant stream of gliders). If the pattern can not function as an oscillator on its own this parameter should be "false", otherwise leave it undefined.


===Images===
===Images===
The image in this infobox should '''NOT''' include the glider that is to be reflected (except in the case of reflectors that require a constant stream of gliders); this can be added below in an image gallery. The animation for an oscillating reflector should '''NOT''' show the reflection capabilities of the pattern but merely the oscillator itself (except in the case of patterns that need a constant stream of gliders). Stable reflectors should not have an animated image in this infobox. Instead, an animation of the reflection capabilities (for both stable and oscillating reflectors) can be ''linked to'' in the image gallery. Do '''NOT''' place animated images directly onto the page; instead, consider using a static image of the reflector with a caption that links to the animation. An example is shown below:
The pattern in this infobox should include the glider that is to be reflected -- optionally, two input gliders separated by the mechanism's minimum recovery time, and an output glider if that allows a smoother LifeViewer animation. However, the bounding box and population count should be calculated with these gliders removed.
 
If animations are needed, a LifeViewer thumbnail is often a good solution, since it allows the pattern information to be copied directly from LifeViewer if needed.  A LifeViewer thumbnail example is shown below. Please do not place animated GIF images directly onto the page; instead, consider using a static image of the reflector with a caption that links to the animation. An example static image is shown below.  LifeViewer can also produce static images, simply by leaving out the AUTOSTART keyword from the associated viewerconfig string.


==Example image gallery==
==Example image gallery==
{|
{|
|-
|-
|[[Image:Buckarooprereflection.png|framed|left|A [[buckaroo]] reflecting a glider<br />[[Media:Buckarooreflect.gif|View animated image]] ]]
|[[Image:Buckarooprereflection.png|framed|left|A [[buckaroo]] reflecting a glider{{br}}[[Media:Buckarooreflect.gif|View animated image]] ]]
| {{EmbedViewer
|pname        = buckaroo
|viewerconfig = #C [[ AUTOSTART THUMBSIZE 2 HEIGHT 320 WIDTH 480 X -2 Z 16 GPS 10 LOOP 60 ]]
|position    = center
|caption      = A [[buckaroo]] reflecting a glider {{nowrap|(LifeViewer thumbnail version)}}
|style        = width:300px;
}}
|}
|}
<noinclude>[[Category:Template documentation pages]]</noinclude>

Latest revision as of 06:25, 13 October 2023

This is an infobox template for reflectors. An example can be seen to the right. For general information about how to use pattern templates, see LifeWiki:Style guide/Pattern layout. To see a live example of this template in action, see buckaroo.

Note: This template was only designed for glider reflectors. If other types of reflectors are to be included then the template will need to be updated to provide this information.

Special Parameters

  • type: only supports "stable"; if it is an oscillating reflector leave this parameter undefined.
  • p: is simply the period of an oscillating reflector; however, for stable reflectors this is the repeat time.
  • a: is the angle of the output glider in relation to the input glider (should be one of two values: 90 or 180).
  • px: is the period multiplier of the reflector, e.g. "4" for the Quadri-Snark.
  • colour: indicates whether the reflector preserves or changes a glider's colour.
  • isosc: tells whether the reflector can function as an oscillator / still life on its own (dependent reflectors require a constant stream of gliders). If the pattern can not function as an oscillator on its own this parameter should be "false", otherwise leave it undefined.

Images

The pattern in this infobox should include the glider that is to be reflected -- optionally, two input gliders separated by the mechanism's minimum recovery time, and an output glider if that allows a smoother LifeViewer animation. However, the bounding box and population count should be calculated with these gliders removed.

If animations are needed, a LifeViewer thumbnail is often a good solution, since it allows the pattern information to be copied directly from LifeViewer if needed. A LifeViewer thumbnail example is shown below. Please do not place animated GIF images directly onto the page; instead, consider using a static image of the reflector with a caption that links to the animation. An example static image is shown below. LifeViewer can also produce static images, simply by leaving out the AUTOSTART keyword from the associated viewerconfig string.

A buckaroo reflecting a glider
View animated image
x = 27, y = 17, rule = B3/S23 8b3o$8bo17bo$9bo14b2o$25b2o5$9bo$7bobo$6bobo$2o3bo2bo$2o4bobo$7bobo9b 2o$9bo9bobo$21bo$21b2o! #C [[ THUMBSIZE 2 THEME 6 GRID GRIDMAJOR 0 SUPPRESS THUMBLAUNCH ]] #C [[ AUTOSTART THUMBSIZE 2 HEIGHT 320 WIDTH 480 X -2 Z 16 GPS 10 LOOP 60 ]]
A buckaroo reflecting a glider (LifeViewer thumbnail version)
(click above to open LifeViewer)
RLE: here Plaintext: here