Template:Oscillator: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
m Reverted edits by Codeholic (talk) to last revision by Nathaniel
added category, oscillators with specific number of cells - second try
Line 43: Line 43:
[[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:Patterns with {{{c}}} cells]] }} }} }}{{#if: {{{p|}}} | [[Category:Oscillators with period {{{p}}}]] }}{{#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: {{{p|}}} | [[Category:Oscillators with period {{{p}}}]] }}{{#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|}}}]] }}
</includeonly>
</includeonly>

Revision as of 23:29, 26 November 2014

Oscillator Name
{{{name}}} image
Pattern type Oscillator
Number of cells Unknown
Bounding box Unknown
Period 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 Achim's p4.

Special parameters

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).
  • v: the volatility of the oscillator (e.g. v=0.50). Include 2 digits after the decimal place.

Pattern templates