Difference between revisions of "Template:Conduit"
Jump to navigation
Jump to search
Apple Bottom (talk | contribs) ("Release candidate" fix for "no step if at least one of input/output pattern is a spaceship") |
Apple Bottom (talk | contribs) (Remove "bestrecovery" parameter; relevant info should go in article text instead. See Talk Page.) |
||
Line 48: | Line 48: | ||
<th> [[Recovery time]] </th> | <th> [[Recovery time]] </th> | ||
<td> {{#if: {{{recovery|}}} | {{{recovery}}} ticks | Unknown }} </td></tr> | <td> {{#if: {{{recovery|}}} | {{{recovery}}} ticks | Unknown }} </td></tr> | ||
<tr> | <tr> | ||
<th> [[Spartan]]? </th> | <th> [[Spartan]]? </th> | ||
Line 82: | Line 79: | ||
* '''step''': time taken to move the pattern (in ticks) | * '''step''': time taken to move the pattern (in ticks) | ||
* '''recovery''': recovery time (in ticks) | * '''recovery''': recovery time (in ticks) | ||
* '''spartan''': whether the conduit is [[Spartan]] (one of yes, no, possibly). "possibly" indicates the conduit is not Spartan, but can be made so. | * '''spartan''': whether the conduit is [[Spartan]] (one of yes, no, possibly). "possibly" indicates the conduit is not Spartan, but can be made so. | ||
* '''dependent''': whether the conduit is a [[dependent conduit]]. | * '''dependent''': whether the conduit is a [[dependent conduit]]. | ||
Line 90: | Line 86: | ||
<includeonly> | <includeonly> | ||
[[Category:Patterns]] | [[Category:Patterns]] | ||
[[Category:Conduits]]{{#if: {{{type|}}} | {{#ifeq: {{lc:{{{type|}}}}} | converter | [[Category:Converters]] | [[Category:{{{type}}} conduits|{{ucfirst:{{{type}}}}}]] }} }}{{#if: {{{conduitfor|}}} | [[Category:{{{conduitfor|}}} conduits]] {{#if: {{{convertsto|}}} | [[Category:{{{conduitfor|}}}-to-{{{convertsto}}} converters]] }} }}{{#if: {{{c|}}} | {{#iferror: {{#expr: floor({{{c}}})}} | | {{#ifexpr: {{{c|}}} >= 1000 | [[Category:Patterns with 1000 or more cells]] [[Category:Conduits with 1000 or more cells]] | [[Category:Conduits with {{{c}}} cells]] [[Category:Conduits with {{{c}}} cells]] }} }} }}{{#if: {{{m|}}} | [[Category:Conduits with output orientation {{{m|}}}]] | [[Category:Conduits with unknown output orientation]] }}{{#if: {{{dx|}}}{{{dy|}}} | [[Category:Conduits with output offset ({{{dx|}}}, {{{dy|}}})]] | [[Category:Conduits with unknown output offset]] }}{{#ifexpr: ({{isspaceship|{{{conduitfor|}}}}} + {{isspaceship|{{{convertsto}}}}}) > 0 | | {{#if: {{{step|}}} | [[Category:Conduits with step {{{step}}}]] | [[Category:Conduits with unknown step]] }} }}{{#if: {{{recovery|}}} | [[Category:Conduits with recovery time {{{recovery}}}]] | [[Category:Conduits with unknown recovery time | [[Category:Conduits]]{{#if: {{{type|}}} | {{#ifeq: {{lc:{{{type|}}}}} | converter | [[Category:Converters]] | [[Category:{{{type}}} conduits|{{ucfirst:{{{type}}}}}]] }} }}{{#if: {{{conduitfor|}}} | [[Category:{{{conduitfor|}}} conduits]] {{#if: {{{convertsto|}}} | [[Category:{{{conduitfor|}}}-to-{{{convertsto}}} converters]] }} }}{{#if: {{{c|}}} | {{#iferror: {{#expr: floor({{{c}}})}} | | {{#ifexpr: {{{c|}}} >= 1000 | [[Category:Patterns with 1000 or more cells]] [[Category:Conduits with 1000 or more cells]] | [[Category:Conduits with {{{c}}} cells]] [[Category:Conduits with {{{c}}} cells]] }} }} }}{{#if: {{{m|}}} | [[Category:Conduits with output orientation {{{m|}}}]] | [[Category:Conduits with unknown output orientation]] }}{{#if: {{{dx|}}}{{{dy|}}} | [[Category:Conduits with output offset ({{{dx|}}}, {{{dy|}}})]] | [[Category:Conduits with unknown output offset]] }}{{#ifexpr: ({{isspaceship|{{{conduitfor|}}}}} + {{isspaceship|{{{convertsto}}}}}) > 0 | | {{#if: {{{step|}}} | [[Category:Conduits with step {{{step}}}]] | [[Category:Conduits with unknown step]] }} }}{{#if: {{{recovery|}}} | [[Category:Conduits with recovery time {{{recovery}}}]] | [[Category:Conduits with unknown recovery time]] }}{{#ifeq: {{{spartan|}}} | yes | [[Category:Spartan conduits]] | {{#ifeq: {{{spartan|}}} | possibly | [[Category:Possibly Spartan conduits]] | {{#ifeq: {{{spartan|}}} | no | [[Category:Non-Spartan conduits]] }} }} }}{{#ifeq: {{{dependent|}}} | yes | [[Category:Dependent conduits]] | {{#ifeq: {{{dependent|}}} | no | [[Category:Non-dependent conduits]] }} }}{{#if: {{{discoverer|}}} | [[Category:Patterns found by {{{discoverer|}}}]] }}{{#if: {{{discoverer2|}}} | [[Category:Patterns found by {{{discoverer2|}}}]] }}{{#if: {{{discoverer3|}}} | [[Category:Patterns found by {{{discoverer3|}}}]] }}{{#if: {{{discoverer4|}}} | [[Category:Patterns found by {{{discoverer4|}}}]] }}{{#if: {{{discoverer5|}}} | [[Category:Patterns found by {{{discoverer5|}}}]] }}{{#if: {{{discoveryear|}}} | [[Category:Patterns found in {{{discoveryear|}}}]] }}{{#ifexist:RLE:{{{pname}}}|{{#if:{{{viewerconfig|}}}||[[Category:Patterns with RLE snippets but no LifeViewer configuration]]}}}}</includeonly> |
Revision as of 12:40, 16 January 2018
Conduit Name | ||
View static image | ||
Pattern type | Conduit | |
---|---|---|
Number of cells | Unknown | |
Step | Unknown | |
Recovery time | Unknown | |
Spartan? | Unknown | |
Dependent? | Unknown | |
Discovered by | Unknown | |
Year of discovery | Unknown |
This is an infobox template for conduits, e.g. Herschel conduits and converters. 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 F116 and BFx59H.
Special parameters
The following parameters are optional and should only be specified if their values are known.
- type: "elementary", "composite" or "converter".
- conduitfor: pattern moved (e.g. "Herschel").
- convertsto: output pattern, if different from input pattern (e.g. "B-heptomino").
- m: output orientation (one of R, L, B, F, Rf, Lf, Bf, Ff)
- dx / dy: output offset
- step: time taken to move the pattern (in ticks)
- recovery: recovery time (in ticks)
- spartan: whether the conduit is Spartan (one of yes, no, possibly). "possibly" indicates the conduit is not Spartan, but can be made so.
- dependent: whether the conduit is a dependent conduit.
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