Template:Reflector: Difference between revisions
Apple Bottom (talk | contribs) fix vertical alignment for multiple discoverers |
Apple Bottom (talk | contribs) Add px=, colour= parameters |
||
| Line 21: | Line 21: | ||
<th> {{#ifeq:{{lc:{{{type|}}}}}|stable|[[Stable_reflector#Repeat_time|Repeat time]]|[[Period]]}} </th> | <th> {{#ifeq:{{lc:{{{type|}}}}}|stable|[[Stable_reflector#Repeat_time|Repeat time]]|[[Period]]}} </th> | ||
<td> {{#if:{{{p|}}}|{{#ifeq:{{lc:{{{type|}}}}}|stable|{{{p}}}|{{#ifeq:{{lc:{{{isosc|}}}}}|false|{{{p}}}|[[:Category:Oscillators_with_period_{{{p}}}|{{{p}}}]]}}}}|Unknown}} </td></tr> | <td> {{#if:{{{p|}}}|{{#ifeq:{{lc:{{{type|}}}}}|stable|{{{p}}}|{{#ifeq:{{lc:{{{isosc|}}}}}|false|{{{p}}}|[[:Category:Oscillators_with_period_{{{p}}}|{{{p}}}]]}}}}|Unknown}} </td></tr> | ||
{{#ifeq:{{lc:{{{type|}}}}}|stable||<tr> | {{#ifeq: {{lc:{{{type|}}}}} | stable | | <tr> | ||
<th> [[Heat]] </th> | <th> [[Heat]] </th> | ||
<td> {{#if: {{{h|}}} | {{#iferror: {{#expr: floor({{{h}}})}} | {{{h}}} | [[:Category:Oscillators_with_heat_{{#expr: floor({{{h}}})}}|{{{h}}}]] }} | Unknown }} </td></tr> }} | <td> {{#if: {{{h|}}} | {{#iferror: {{#expr: floor({{{h}}})}} | {{{h}}} | [[:Category:Oscillators_with_heat_{{#expr: floor({{{h}}})}}|{{{h}}}]] }} | Unknown }} </td></tr> }} | ||
{{#if: {{{px|}}} | <tr> | |||
<th> Period multiplier </th> | |||
<td> {{{px|}}} </td> | |||
</tr>}}{{#if: {{{colour|{{{color|}}}}}} | <tr> | |||
<th> Colour </th> | |||
<td> {{#switch: {{lc|{{{colour|{{{color}}}}}}}} | |||
| preserving | |||
| preserves | |||
| preserve | |||
| cp = Colour-preserving | |||
| changing | |||
| changes | |||
| change | |||
| cc = Colour-changing | |||
}} </td> | |||
</tr>}} | |||
<tr> | <tr> | ||
<th valign="top"> Discovered by </th> | <th valign="top"> Discovered by </th> | ||
| Line 36: | Line 52: | ||
===Special Parameters=== | ===Special Parameters=== | ||
*'''type''': only supports "stable"; if it is an oscillating reflector leave this parameter undefined. | * '''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 reflector]]s this is the [[ | * '''p''': is simply the period of an oscillating reflector; however, for [[stable reflector]]s this is the [[Stable reflector#Repeat time|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). | * '''a''': is the angle of the output glider in relation to the input glider (should be one of two values: 90 or 180). | ||
*'''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. | * '''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]]. | |||
* '''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. | |||
===Images=== | ===Images=== | ||
Revision as of 20:24, 27 January 2018
| Reflector Name | ||
| ||
| View static image | ||
| Pattern type | Reflector Oscillator | |
|---|---|---|
| Number of cells | Unknown | |
| Bounding box | Unknown | |
| Angle | Unknown | |
| Period | Unknown | |
| Heat | Unknown | |
| Discovered by | Unknown | |
| Year of discovery | Unknown | |
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 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.
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:
Example image gallery
![]() View animated image |
Pattern templates
- Template:Agar
- Template:Conduit
- Template:Crawler
- Template:Fuse
- Template:GrowingSpaceship
- Template:Gun
- Template:Methuselah
- Template:MovingBreeder
- Template:Oscillator
- Template:OscillatorComponent
- Template:Pattern
- Template:Puffer
- Template:Reflector
- Template:Rotor
- Template:Sawtooth
- Template:Spaceship
- Template:StillLifeComponent
- Template:Stilllife
- Template:UnitCell
- Template:Wave
- Template:Wick
- Template:Wickstretcher

