Difference between revisions of "Template:Reflector"

From LifeWiki
Jump to navigation Jump to search
m (added note and changed how 'angle' parameter works just a bit)
m (changed "recovery time" to "repeat time")
Line 23: Line 23:
| {{#if: {{{a|}}} | [[:Category:{{{a}}}_degree_reflectors|{{{a}}}°]] | Unknown}}
| {{#if: {{{a|}}} | [[:Category:{{{a}}}_degree_reflectors|{{{a}}}°]] | Unknown}}
|-
|-
! {{#ifeq:{{lc:{{{type|}}}}}|stable|[[Recovery time]]|[[Period]]}}
! {{#ifeq:{{lc:{{{type|}}}}}|stable|[[Repeat time]]|[[Period]]}}
| {{#if:{{{p|}}}|[[:Category:{{#ifeq:{{lc:{{{type|}}}}}|stable|Stable_reflectors_with_recovery_time_{{{p}}}|Reflectors_with_period}}_{{{p}}}|{{{p}}}]]|Unknown}}
| {{#if:{{{p|}}}|[[:Category:{{#ifeq:{{lc:{{{type|}}}}}|stable|Stable_reflectors_with_repeat_time_{{{p}}}|Reflectors_with_period}}_{{{p}}}|{{{p}}}]]|Unknown}}
{{#ifeq:{{lc:{{{type|}}}}}|stable||{{!}}-
{{#ifeq:{{lc:{{{type|}}}}}|stable||{{!}}-
! [[Heat]]
! [[Heat]]
Line 40: Line 40:
===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 recovery time.
*'''p''' is simply the period of an oscillating reflector; however, for [[stable reflector]]s 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).
*'''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.
*'''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.
Line 55: Line 55:
[[Category:Patterns]]
[[Category:Patterns]]
[[Category:Reflectors]]
[[Category:Reflectors]]
{{#ifeq: {{lc:{{{type|}}}}} | stable | [[Category:Stable_reflectors]] {{#if: {{{p|}}} | [[Category:Stable_reflectors_with_recovery_time_{{{p}}}]]}} |{{#ifeq:{{lc:{{{isosc|}}}}}|false||[[Category:Oscillators]] {{#if: {{{h|}}} | {{#iferror: {{#expr: floor({{{h}}})}} | | [[Category:Oscillators with heat {{#expr: floor({{{h}}})}}]] }} }} }} {{#if: {{{p|}}} | [[Category:Reflectors_with_period_{{{p}}}]] {{#ifeq:{{lc:{{{isosc|}}}}}|false||[[Category:Oscillators_with_period_{{{p}}}]]}} }} }}{{#if: {{{c|}}} | {{#ifexpr: {{{c|}}} >= 1000 | [[Category:Patterns with 1000 or more cells|{{{c}}}]] | [[Category:Patterns with {{{c}}} cells|{{{c}}}]] }} }}{{#if: {{{a|}}} | [[Category:{{{a}}}_degree_reflectors]]}}{{#if: {{{discoverer|}}} | [[Category:Patterns found by {{{discoverer|}}}]] }}{{#if: {{{discoveryear|}}} | [[Category:Patterns found in {{{discoveryear|}}}]] }}
{{#ifeq: {{lc:{{{type|}}}}} | stable | [[Category:Stable_reflectors]] {{#if: {{{p|}}} | [[Category:Stable_reflectors_with_repeat_time_{{{p}}}]]}} |{{#ifeq:{{lc:{{{isosc|}}}}}|false||[[Category:Oscillators]] {{#if: {{{h|}}} | {{#iferror: {{#expr: floor({{{h}}})}} | | [[Category:Oscillators with heat {{#expr: floor({{{h}}})}}]] }} }} }} {{#if: {{{p|}}} | [[Category:Reflectors_with_period_{{{p}}}]] {{#ifeq:{{lc:{{{isosc|}}}}}|false||[[Category:Oscillators_with_period_{{{p}}}]]}} }} }}{{#if: {{{c|}}} | {{#ifexpr: {{{c|}}} >= 1000 | [[Category:Patterns with 1000 or more cells|{{{c}}}]] | [[Category:Patterns with {{{c}}} cells|{{{c}}}]] }} }}{{#if: {{{a|}}} | [[Category:{{{a}}}_degree_reflectors]]}}{{#if: {{{discoverer|}}} | [[Category:Patterns found by {{{discoverer|}}}]] }}{{#if: {{{discoveryear|}}} | [[Category:Patterns found in {{{discoveryear|}}}]] }}
</includeonly>
</includeonly>

Revision as of 04:30, 29 April 2009

Pattern Name
{{{name}}} 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.
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).
  • 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

A buckaroo reflecting a glider
View animated image