Template:Oscillator: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
No edit summary
Confocal (talk | contribs)
The changes are pushed without seeking consensus, only a few hours after the start of Tiki bar discussion. Revert to old existing state; hopefully further changes (if any) will be made by someone else who does not have a strong preference one way or another. See LifeWiki:Tiki_bar#Alien_pattern_pages and https://conwaylife.com/forums/viewtopic.php?p=166635#p166635
Tag: Manual revert
Line 56: Line 56:
<tr>
<tr>
<th> [[Period#Oscillators|Period]] </th>
<th> [[Period#Oscillators|Period]] </th>
<td> {{#if: {{{p|}}} | {{#if: {{NAMESPACE}} | {{{p}}} | [[:Category:Oscillators with period {{{p}}}|{{{p}}}]] }} | Unknown }} </td></tr>
<td> {{#if: {{{p|}}} | [[:Category:Oscillators with period {{{p}}}|{{{p}}}]] | Unknown }} </td></tr>
<tr>
<tr>
<th> [[Mod]] </th>
<th> [[Mod]] </th>
<td> {{#if: {{{m|}}} | {{#if: {{NAMESPACE}} | {{{m}}} | [[:Category:Oscillators with mod {{{m}}}|{{{m}}}]] }} | Unknown }} </td></tr>
<td> {{#if: {{{m|}}} | [[:Category:Oscillators with mod {{{m}}}|{{{m}}}]] | Unknown }} </td></tr>
<tr>
<tr>
<th> [[Heat]] </th>
<th> [[Heat]] </th>
<td> {{#if: {{{h|}}} | {{#iferror: {{#expr: floor({{{h}}})}} | {{{h}}} | {{#if: {{NAMESPACE}} | {{{h}}} | [[:Category:Oscillators with heat {{CellsCategoryName|{{#expr: floor({{{h}}})}}}}|{{{h}}}]] }} }} | Unknown }} </td></tr>
<td> {{#if: {{{h|}}} | {{#iferror: {{#expr: floor({{{h}}})}} | {{{h}}} | [[:Category:Oscillators with heat {{CellsCategoryName|{{#expr: floor({{{h}}})}}}}|{{{h}}}]] }} | Unknown }} </td></tr>
<tr>
<tr>
<th> [[Volatility]] </th>
<th> [[Volatility]] </th>
<td> {{#if: {{{v|}}} | {{#if: {{NAMESPACE}} | {{{v}}} | [[:Category:Oscillators with volatility {{{v}}}|{{{v}}}]] }} | Unknown }} </td></tr>
<td> {{#if: {{{v|}}} |[[:Category:Oscillators with volatility {{{v}}}|{{{v}}}]] | Unknown }} </td></tr>
<tr>
<tr>
<th> [[Strict volatility]] </th>
<th> [[Strict volatility]] </th>
<td> {{#if: {{{sv|}}} | {{#if: {{NAMESPACE}} | {{{sv}}} | [[:Category:Oscillators with strict volatility {{{sv}}}|{{{sv}}}]] }} | {{#if: {{{v|}}} | {{#if: {{isPrime|{{{p|}}}}} | {{#if: {{NAMESPACE}} | {{{v}}} | [[:Category:Oscillators with strict volatility {{{v}}}|{{{v}}}]] }} | Unknown }} | Unknown }} | Unknown }} </td></tr>
<td> {{#if: {{{sv|}}} |[[:Category:Oscillators with strict volatility {{{sv}}}|{{{sv}}}]] | {{#if: {{{v|}}} | {{#if: {{isPrime|{{{p|}}}}} | [[:Category:Oscillators with strict volatility {{{v}}}|{{{v}}}]] | Unknown }} | Unknown }} | Unknown }} </td></tr>
{{#if: {{{rotor|}}} |  
{{#if: {{{rotor|}}} |  
<tr>
<tr>
<th> [[Rotor]] type </th>
<th> [[Rotor]] type </th>
<td> {{#if: {{NAMESPACE}} | {{{rotor}}} | [[:Category:Oscillators with rotor {{{rotor}}}|{{{rotor}}}]] }} </td></tr>
<td> [[:Category:Oscillators with rotor {{{rotor}}}|{{{rotor}}}]] </td></tr>
}}<!--
}}<!--


Line 134: Line 134:


--><includeonly>
--><includeonly>
{{#if:{{NAMESPACE}}||
{{#ifeq:{{NAMESPACE}}|User||
[[Category:Patterns]]
[[Category:Patterns]]
{{#ifeq: {{{type|}}} | constellation | [[Category:Constellations]] {{#if: {{{c|}}} | [[Category:Constellations with {{{c}}} cells]] }} | [[Category:Oscillators]] }}
{{#ifeq: {{{type|}}} | constellation | [[Category:Constellations]] {{#if: {{{c|}}} | [[Category:Constellations with {{{c}}} cells]] }} | [[Category:Oscillators]] }}

Revision as of 14:02, 8 September 2023

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