Template:Oscillator: Difference between revisions
Jump to navigation
Jump to search
Apple Bottom (talk | contribs) No edit summary |
Apple Bottom (talk | contribs) Use Template:pluralize. |
||
| Line 12: | Line 12: | ||
<tr> | <tr> | ||
<th> Oscillator type </th> | <th> Oscillator type </th> | ||
<td> [[:Category:{{{f1}}} | <td> [[:Category:{{pluralize|{{{f1}}}}}|{{{f1}}}]] </td></tr> | ||
}}{{#if: {{{f2|}}} | | }}{{#if: {{{f2|}}} | | ||
<tr> | <tr> | ||
<th> </th> | <th> </th> | ||
<td> [[:Category:{{{f2}}} | <td> [[:Category:{{pluralize|{{{f2}}}}}|{{{f2}}}]] </td></tr> | ||
}}{{#if: {{{family|}}} | | }}{{#if: {{{family|}}} | | ||
<tr> | <tr> | ||
| Line 67: | Line 67: | ||
<includeonly> | <includeonly> | ||
[[Category:Patterns]] | [[Category:Patterns]] | ||
[[Category:Oscillators]]{{#if: {{{type|}}} | [[Category:{{{type|}}} | [[Category:Oscillators]]{{#if: {{{type|}}} | [[Category:{{pluralize|{{{type|}}}}}]] }} | ||
{{#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|}}} | {{#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:{{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: {{{rotor|}}} | [[Category:Oscillators with rotor {{{rotor|}}}]] }}{{#if: {{{discoverer|}}} | [[Category:Patterns found by {{{discoverer|}}}]] }}{{#if: {{{discoveryear|}}} | [[Category:Patterns found in {{{discoveryear|}}}]] }}{{#ifexist:RLE:{{{pname}}}|{{#if:{{{viewerconfig|}}}||[[Category:Patterns with RLE snippets but no LifeViewer configuration]]}}}} | ||
</includeonly> | </includeonly> | ||
Revision as of 11:20, 30 June 2017
| Oscillator Name | ||
| ||
| View static image | ||
| 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.
- f1: one category this oscillator falls under (e.g. f1=Muttering moat).
- f2: any other categories (e.g. f2=Billiard table).
Pattern templates
- Template:Agar
- Template:Conduit
- Template:Crawler
- Template:Fuse
- Template:GrowingSpaceship
- Template:Gun
- Template:Methuselah
- Template:MovingBreeder
- Template:Oscillator
- Template:OscillatorComponent
- Template:Pattern
- Template:Puffer
- Template:Reflector
- Template:Rotor
- Template:Sawtooth
- Template:Spaceship
- Template:StillLifeComponent
- Template:Stilllife
- Template:UnitCell
- Template:Wave
- Template:Wick
- Template:Wickstretcher
