Template:Oscillator: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 42: Line 42:
<th> [[Volatility]] </th>
<th> [[Volatility]] </th>
<td> {{#if: {{{v|}}} |[[:Category:Oscillators with volatility {{{v}}}|{{{v}}}]] | Unknown }} </td></tr>
<td> {{#if: {{{v|}}} |[[:Category:Oscillators with volatility {{{v}}}|{{{v}}}]] | Unknown }} </td></tr>
{{#if: {{{rotor|}}} |
<tr>
<th> [[Rotor]] type </th>
<td> [[:Category:Oscillators with rotor {{{rotor}}}|{{{rotor}}}]] </td></tr>
}}
<tr>
<tr>
<th> Discovered by </th>
<th> Discovered by </th>
Line 49: Line 54:
<td> {{#if: {{{discoveryear|}}} | [[:Category:Patterns_found_in_{{{discoveryear|}}}|{{{discoveryear|}}}]] | Unknown }} </td></tr>{{PatternDownload|synthesis={{{synthesis|}}}|synthesisRLE={{{synthesisRLE|}}}|life105={{{life105|}}}|life106={{{life106|}}}|plaintext={{{plaintext|}}}|zip={{{zip|}}}|rle={{{rle|}}}|mc={{{mc|}}}|pname={{{pname|}}}|rulespecial={{{rulespecial|}}}|rulemax={{{rulemax|}}}|rulemin={{{rulemin|}}} }} </table>
<td> {{#if: {{{discoveryear|}}} | [[:Category:Patterns_found_in_{{{discoveryear|}}}|{{{discoveryear|}}}]] | Unknown }} </td></tr>{{PatternDownload|synthesis={{{synthesis|}}}|synthesisRLE={{{synthesisRLE|}}}|life105={{{life105|}}}|life106={{{life106|}}}|plaintext={{{plaintext|}}}|zip={{{zip|}}}|rle={{{rle|}}}|mc={{{mc|}}}|pname={{{pname|}}}|rulespecial={{{rulespecial|}}}|rulemax={{{rulemax|}}}|rulemin={{{rulemin|}}} }} </table>
<noinclude>
<noinclude>
This is an infobox template for '''[[oscillator]]s'''. 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 [[Achim's p4]].
This is an infobox template for '''[[oscillator]]s'''. 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 [[Gray counter]].


==Special parameters==
==Special parameters==
The following parameters are optional and should only be specified if their values are known.
The following parameters are optional and should only be specified if their values are known.
*'''h''': the heat of the oscillator (e.g. h=4). Decimal values are allowed, though it is most common not to include more than 1 decimal place.
*'''p''': the period of the oscillator (e.g. p=4).
*'''p''': the period of the oscillator (e.g. p=4).
*'''m''': the mod of the oscillator (e.g. m=2).
*'''m''': the mod of the oscillator (e.g. m=2).
*'''h''': the heat of the oscillator (e.g. h=4). Decimal values are allowed, though it is most common not to include more than 1 decimal place.
*'''v''': the [[volatility]] of the oscillator (e.g. v=0.50). Include 2 digits after the decimal place.
*'''v''': the [[volatility]] of the oscillator (e.g. v=0.50). Include 2 digits after the decimal place.


Line 63: Line 68:
[[Category:Patterns]]
[[Category:Patterns]]
[[Category:Oscillators]]{{#if: {{{type|}}} | [[Category:{{{type|}}}s]] }}
[[Category:Oscillators]]{{#if: {{{type|}}} | [[Category:{{{type|}}}s]] }}
{{#if: {{{c|}}} | {{#iferror: {{#expr: floor({{{c}}})}} | | {{#ifexpr: {{{c|}}} >= 1000 | [[Category:Patterns with 1000 or more cells]] [[Category:Oscillators with 1000 or more cells]] | [[Category:Patterns with {{{c}}} cells]] [[Category:Oscillators with {{{c}}} cells]] }} }} }}{{#if: {{{family|}}} | [[Category:{{{family|}}} variants]] }}{{#if: {{{f1|}}} | [[Category:{{{f1|}}}s]] }}{{#if: {{{f2|}}} | [[Category:{{{f2|}}}s]] }}{{#if: {{{p|}}} | [[Category:Oscillators with period {{{p}}}]] }}{{#if: {{{m|}}} | [[Category:Oscillators with mod {{{m|}}}]] }}{{#if: {{{h|}}} | {{#iferror: {{#expr: floor({{{h}}})}} | | [[Category:Oscillators with heat {{#expr: floor({{{h}}})}}]] }} }}{{#if: {{{v|}}} | [[Category:Oscillators with volatility {{{v}}}]] }}{{#if: {{{discoverer|}}} | [[Category:Patterns found by {{{discoverer|}}}]] }}{{#if: {{{discoveryear|}}} | [[Category:Patterns found in {{{discoveryear|}}}]] }}
{{#if: {{{c|}}} | {{#iferror: {{#expr: floor({{{c}}})}} | | {{#ifexpr: {{{c|}}} >= 1000 | [[Category:Patterns with 1000 or more cells]] [[Category:Oscillators with 1000 or more cells]] | [[Category:Patterns with {{{c}}} cells]] [[Category:Oscillators with {{{c}}} cells]] }} }} }}{{#if: {{{family|}}} | [[Category:{{{family|}}} variants]] }}{{#if: {{{f1|}}} | [[Category:{{{f1|}}}s]] }}{{#if: {{{f2|}}} | [[Category:{{{f2|}}}s]] }}{{#if: {{{p|}}} | [[Category:Oscillators with period {{{p}}}]] }}{{#if: {{{m|}}} | [[Category:Oscillators with mod {{{m|}}}]] }}{{#if: {{{h|}}} | {{#iferror: {{#expr: floor({{{h}}})}} | | [[Category:Oscillators with heat {{#expr: floor({{{h}}})}}]] }} }}{{#if: {{{v|}}} | [[Category:Oscillators with volatility {{{v}}}]] }}{{#if: {{{rotor|}}} | [[Category:Oscillators with rotor {{{rotor|}}}]] }}{{#if: {{{discoverer|}}} | [[Category:Patterns found by {{{discoverer|}}}]] }}{{#if: {{{discoveryear|}}} | [[Category:Patterns found in {{{discoveryear|}}}]] }}
</includeonly>
</includeonly>

Revision as of 13:26, 8 August 2016


Oscillator Name
Pattern type Oscillator
Number of cells Unknown
Bounding box Unknown
Period Unknown
Mod Unknown
Heat Unknown
Volatility Unknown
Discovered by Unknown
Year of discovery Unknown

This is an infobox template for oscillators. 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 Gray counter.

Special parameters

The following parameters are optional and should only be specified if their values are known.

  • p: the period of the oscillator (e.g. p=4).
  • m: the mod of the oscillator (e.g. m=2).
  • h: the heat of the oscillator (e.g. h=4). Decimal values are allowed, though it is most common not to include more than 1 decimal place.
  • v: the volatility of the oscillator (e.g. v=0.50). Include 2 digits after the decimal place.

Pattern templates