Template:Reflector: Difference between revisions
Jump to navigation
Jump to search
Reflector template |
m fixed category functionality and added isosc parameter |
||
| Line 12: | Line 12: | ||
|- | |- | ||
! Pattern type | ! Pattern type | ||
| {{#ifeq:{{{type}}}|stable|[[Stable reflector]]|[[Reflector]]}} | | {{#ifeq:{{{type}}}|stable|[[Stable reflector]]|[[Reflector]]{{#ifeq:{{{isosc|}}}|false||<br/>[[Oscillator]]}}}} | ||
|- | |- | ||
! Number of [[cell]]s | ! Number of [[cell]]s | ||
| Line 33: | Line 33: | ||
{{PatternDownload|synthesis={{{synthesis|}}}|synthesisRLE={{{synthesisRLE|}}}|life105={{{life105|}}}|life106={{{life106|}}}|plaintext={{{plaintext|}}}|rle={{{rle|}}}|pname={{{pname|}}}}} |} | {{PatternDownload|synthesis={{{synthesis|}}}|synthesisRLE={{{synthesisRLE|}}}|life105={{{life105|}}}|life106={{{life106|}}}|plaintext={{{plaintext|}}}|rle={{{rle|}}}|pname={{{pname|}}}}} |} | ||
<noinclude> | <noinclude> | ||
This is an infobox template for [[reflector]]s. | This is an infobox template for [[reflector]]s. An example can be seen to the right. | ||
'''Special Parameters''' | '''Special Parameters''' | ||
| Line 39: | Line 39: | ||
*'''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 recovery 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. | |||
</noinclude> | </noinclude> | ||
[[Category:Patterns]]{{#ifeq: {{{type|}}} | stable | [[Category:Stable_reflectors]] {{#if: {{{p|}}} | [[Category:Stable_reflectors_with_recovery_time_{{{p}}}]] | | [[Category:Patterns]] | ||
[[Category:Reflectors]] | |||
{{#ifeq: {{lc:{{{type|}}}}} | stable | [[Category:Stable_reflectors]] {{#if: {{{p|}}} | [[Category:Stable_reflectors_with_recovery_time_{{{p}}}]]}} | {{#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:{{{isosc|}}}}}|false||[[Category:Oscillators]]}} | |||
Revision as of 00:38, 29 April 2009
| Pattern Name | ||
| ||
| Pattern type | Reflector Oscillator | |
|---|---|---|
| Number of cells | Unknown | |
| Bounding box | Unknown | |
| Period | Unknown | |
| Angle | Unknown | |
| Discovered by | Unknown | |
| Year of discovery | Unknown
| |
This is an infobox template for reflectors. An example can be seen to the right.
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 recovery 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.
