Difference between revisions of "Template:Oscillator"

From LifeWiki
Jump to navigation Jump to search
m (Removed colon)
(Pass "periodic" to PatternPopulationAndBoundingBox)
(4 intermediate revisions by the same user not shown)
Line 47: Line 47:
|fc      = {{{fc|}}}
|fc      = {{{fc|}}}
|catextra = Oscillators
|catextra = Oscillators
|periodic = true
}}<!--
}}<!--


Line 93: Line 94:
|synthesis    = {{{synthesis|}}}
|synthesis    = {{{synthesis|}}}
|synthesisRLE = {{{synthesisRLE|}}}
|synthesisRLE = {{{synthesisRLE|}}}
|apgcode      = {{{apgcode|}}}
|life105      = {{{life105|}}}
|life105      = {{{life105|}}}
|life106      = {{{life106|}}}
|life106      = {{{life106|}}}
Line 130: Line 132:
{{#ifeq:{{NAMESPACE}}|User||
{{#ifeq:{{NAMESPACE}}|User||
[[Category:Patterns]]
[[Category:Patterns]]
{{#ifeq: {{{type|}}} | constellation | [[Category:Constellations]] {{#if: {{{c|}}} | [[Category:Constellations with {{{c}}} cells]] }} | [[Category:Oscillators]] {{#if: {{{c|}}} | {{#ifexpr: {{{c|}}} < 1000 | [[Category:Oscillators with {{{c}}} cells|{{{c}}}]] }}[[Category:Periodic objects with minimum population {{{c}}}]] }} }}
{{#ifeq: {{{type|}}} | constellation | [[Category:Constellations]] {{#if: {{{c|}}} | [[Category:Constellations with {{{c}}} cells]] }} | [[Category:Oscillators]] {{#if: {{{c|}}} | {{#ifexpr: {{{c|}}} < 1000 | [[Category:Oscillators with {{{c}}} cells]][[Category:Periodic objects with minimum population {{{c}}}]] }} }} }}
{{#if: {{{type|}}} | [[Category:{{pluralize|{{{type|}}}}}]] {{#if: {{{c|}}} | [[Category:{{pluralize|{{{type|}}}}} with {{{c}}} cells]] }} }}{{#if: {{{family|}}} | [[Category:{{{family|}}} variants]] }}{{#if: {{{f1|}}} | [[Category:{{pluralize|{{{f1|}}}}}]] }}{{#if: {{{f2|}}} | [[Category:{{pluralize|{{{f2|}}}}}]] }}{{#if: {{{p|}}} | [[Category:Oscillators with period {{{p}}}]] | [[Category:Oscillators with unknown period]] }}{{#if: {{{m|}}} | [[Category:Oscillators with mod {{{m|}}}]] | [[Category:Oscillators with unknown mod]] }}{{#if: {{{h|}}} | {{#iferror: {{#expr: floor({{{h}}})}} | | [[Category:Oscillators with heat {{#expr: floor({{{h}}})}}]] }} | [[Category:Oscillators with unknown heat]] }}{{#if: {{{v|}}} | [[Category:Oscillators with volatility {{{v}}}]] | [[Category:Oscillators with unknown volatility]] }}{{#if: {{{sv|}}} | [[Category:Oscillators with strict volatility {{{sv}}}]] | {{#if: {{{v|}}} | {{#if: {{isPrime|{{{p|}}}}} | [[Category:Oscillators with strict volatility {{{v|}}}]] | [[Category:Oscillators with unknown strict volatility]] }} | [[Category:Oscillators with unknown strict volatility]] }} | [[Category:Oscillators with unknown strict volatility]] }}{{#if: {{{rotor|}}} | [[Category:Oscillators with rotor {{{rotor|}}}]] }}{{#ifexist: RLE:{{{pname}}} | {{#if:{{{viewerconfig|}}} | | [[Category:Patterns with RLE snippets but no LifeViewer configuration]] }} }}{{#if: {{{apgcode|}}} | | {{#ifeq: {{{type|}}} | constellation | | [[Category:Oscillators with no apgcode infobox parameter]] }} }}{{#if: {{{pentadecathlonid|}}} | | {{#ifeq: {{{type|}}} | constellation | | [[Category:Oscillators with no Pentadecathlon ID]] }} }}
{{#if: {{{type|}}} | [[Category:{{pluralize|{{{type|}}}}}]] {{#if: {{{c|}}} | [[Category:{{pluralize|{{{type|}}}}} with {{{c}}} cells]] }} }}{{#if: {{{family|}}} | [[Category:{{{family|}}} variants]] }}{{#if: {{{f1|}}} | [[Category:{{pluralize|{{{f1|}}}}}]] }}{{#if: {{{f2|}}} | [[Category:{{pluralize|{{{f2|}}}}}]] }}{{#if: {{{p|}}} | [[Category:Oscillators with period {{{p}}}]] | [[Category:Oscillators with unknown period]] }}{{#if: {{{m|}}} | [[Category:Oscillators with mod {{{m|}}}]] | [[Category:Oscillators with unknown mod]] }}{{#if: {{{h|}}} | {{#iferror: {{#expr: floor({{{h}}})}} | | [[Category:Oscillators with heat {{#expr: floor({{{h}}})}}]] }} | [[Category:Oscillators with unknown heat]] }}{{#if: {{{v|}}} | {{#iferror: {{#expr: floor({{{v}}})}} | | [[Category:Oscillators with volatility {{{v}}}]] }} | [[Category:Oscillators with unknown volatility]] }}{{#if: {{{sv|}}} | {{#iferror: {{#expr: floor({{{sv}}})}} | | [[Category:Oscillators with strict volatility {{{sv}}}]] }} | {{#if: {{{v|}}} | {{#if: {{isPrime|{{{p|}}}}} | [[Category:Oscillators with strict volatility {{{v|}}}]] | [[Category:Oscillators with unknown strict volatility]] }} | [[Category:Oscillators with unknown strict volatility]] }} | [[Category:Oscillators with unknown strict volatility]] }}{{#if: {{{rotor|}}} | [[Category:Oscillators with rotor {{{rotor|}}}]] }}{{#ifexist: RLE:{{{pname}}} | {{#if:{{{viewerconfig|}}} | | [[Category:Patterns with RLE snippets but no LifeViewer configuration]] }} }}{{#if: {{{apgcode|}}} | | {{#ifeq: {{{type|}}} | constellation | | [[Category:Oscillators with no apgcode infobox parameter]] }} }}{{#if: {{{pentadecathlonid|}}} | | {{#ifeq: {{{type|}}} | constellation | | [[Category:Oscillators with no Pentadecathlon ID]] }} }}
}}</includeonly>
}}</includeonly>

Revision as of 17:15, 27 April 2019

Oscillator Name
image
Pattern type Oscillator
Period Unknown
Mod Unknown
Heat Unknown
Volatility Unknown
Strict 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.
  • sv: the strict volatility of the oscillator (e.g. sv=0.50). Include 2 digits after the decimal place, or as many digits as necessary to distinguish a non-zero number from zero.
  • f1: one category this oscillator falls under (e.g. f1=Muttering moat).
  • f2: any other categories (e.g. f2=Billiard table).


Pattern templates