Difference between revisions of "Template:Conduit"
Jump to navigation
Jump to search
Apple Bottom (talk | contribs) (Remove discovery-related categories; handled by Template:PatternDiscovery now) |
(fix attempt) |
||
(35 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<!-- | <!-- | ||
Begin infobox | |||
-- | -->{{InfoboxStart | ||
|typename = Conduit | |||
|defaultconfig = conduit | |||
|viewerconfig = {{{viewerconfig|}}} | |||
|name = {{{name|}}} | |||
|zip = {{{zip|}}} | |||
|mc = {{{mc|}}} | |||
|life105 = {{{life105|}}} | |||
|life106 = {{{life106|}}} | |||
|plaintext = {{{plaintext|}}} | |||
|rle = {{{rle|}}} | |||
|nofile = {{{nofile|}}} | |||
|pname = {{{pname|}}} | |||
|animated = {{{animated|}}} | |||
}}<!-- | |||
Display pattern type and related information | |||
--> | --><tr> | ||
<tr> | |||
<th valign="top"> Pattern type </th> | <th valign="top"> Pattern type </th> | ||
<td> [[Conduit]] </td></tr> | <td> [[Conduit]] </td></tr> | ||
Line 22: | Line 30: | ||
}}{{#if: {{{conduitfor|}}} | | }}{{#if: {{{conduitfor|}}} | | ||
<tr> | <tr> | ||
<th> | <th> Input </th> | ||
<td> [[{{{conduitfor|}}}]] </td></tr> | <td> [[{{{conduitfor|}}}]] </td></tr> | ||
}}{{#if: {{{convertsto|}}} | | }}{{#if: {{{convertsto|}}} | | ||
<tr> | <tr> | ||
<th> | <th> Output </th> | ||
<td> [[{{{convertsto|}}}]] </td></tr> | <td> [[{{{convertsto|}}}]] </td></tr> | ||
}}< | }}<!-- | ||
Display population and bounding box. | |||
-->{{PatternPopulationAndBoundingBox | |||
|c = {{{c|}}} | |||
|bx = {{{bx|}}} | |||
|by = {{{by|}}} | |||
}}<!-- | |||
Display an infobox divider | |||
{{#ifexpr: ({{isSpaceship|{{{conduitfor|}}}}} + {{isSpaceship|{{{convertsto}}}}}) > 0 | | {{#if: {{{m|}}} | | -->{{InfoboxDivider}}<!-- | ||
Display conduit-/converter-specific information | |||
-->{{#ifexpr: ({{isSpaceship|{{{conduitfor|}}}}} + {{isSpaceship|{{{convertsto}}}}}) > 0 | | {{#if: {{{m|}}} | | |||
<tr> | <tr> | ||
<th> Output orientation </th> | <th> Output orientation </th> | ||
<td> {{#switch: {{{m|}}} | R = Turned right | L = Turned left | B = Turned back | F = Unturned | Rf = Turned right, flipped | Lf = Turned left, flipped | Bf = Turned back, flipped | Ff = Unturned, flipped | | <td> {{#switch: {{{m|}}} | ||
| R = [[:Category:Conduits with output orientation R|Turned right]] | |||
| L = [[:Category:Conduits with output orientation L|Turned left]] | |||
| B = [[:Category:Conduits with output orientation B|Turned back]] | |||
| F = [[:Category:Conduits with output orientation F|Unturned]] | |||
| Rf | |||
| Rx = [[:Category:Conduits with output orientation Rx|Turned right, flipped]] | |||
| Lx | |||
| Lf = [[:Category:Conduits with output orientation Lx|Turned left, flipped]] | |||
| Bx | |||
| Bf = [[:Category:Conduits with output orientation Bx|Turned back, flipped]] | |||
| Fx | |||
| Ff = [[:Category:Conduits with output orientation Fx|Unturned, flipped]] | |||
| T = [[:Category:Conduits with output orientation T|Turned]] | |||
| Unknown | |||
}} </td></tr> | |||
}}{{#if: {{{dx|}}}{{{dy|}}} | | }}{{#if: {{{dx|}}}{{{dy|}}} | | ||
<tr> | <tr> | ||
<th> Output offset </th> | <th> Output offset </th> | ||
<td> ({{{dx}}}, {{{dy}}}) </td></tr> | <td> [[:Category:Conduits with output offset ({{{dx}}}, {{{dy}}})|({{{dx}}}, {{{dy}}})]] </td></tr> | ||
}} | }} | ||
<tr> | <tr> | ||
<th> Step </th> | <th> Step </th> | ||
<td> {{#if: {{{step|}}} | {{{step}}} ticks | Unknown }} </td></tr> | <td> {{#if: {{{step|}}} | {{{step}}} ticks | Unknown }} </td></tr> | ||
<tr> | |||
<th> [[Recovery time]] </th> | <th> [[Recovery time]]<br>(ignoring [[FNG]] if any) </th> | ||
<td> {{#if: {{{recovery|}}} | {{{recovery}}} ticks | Unknown }} </td></tr> | <td> {{#if: {{{recovery|}}} | {{{recovery}}} ticks | Unknown }} </td></tr> | ||
{{#if: {{{spartan|}}} | <tr> | <tr> | ||
<th> Minimum [[overclock]] period<br>(ignoring [[FNG]] if any) </th> | |||
<td> {{#if: {{{overclock|}}} | {{{overclock}}} ticks | Unknown }} </td></tr> | |||
}}<!-- | |||
-->{{#if: {{{spartan|}}} | <tr> | |||
<th> [[Spartan]]? </th> | <th> [[Spartan]]? </th> | ||
<td> {{#switch: {{{spartan|}}} | yes = Yes | no = No | Unknown }} </td></tr> | <td> {{#switch: {{{spartan|}}} | yes = [[:Category:Spartan conduits|Yes]] | no = [[:Category:Non-Spartan conduits|No]] | Unknown }} </td></tr> | ||
}}{{#if: {{{dependent|}}} | | }}{{#if: {{{dependent|}}} | | ||
<tr> | <tr> | ||
<th> [[Dependent conduit|Dependent]]? </th> | <th> [[Dependent conduit|Dependent]]? </th> | ||
<td> {{#switch: {{{dependent|}}} | yes = Yes | no = No | Unknown }} </td></tr> | <td> {{#switch: {{{dependent|}}} | yes = [[:Category:Dependent conduits|Yes]] | no = [[:Category:Independent conduits|No]] | Unknown }} </td></tr> | ||
{{#if: {{{edgeshooter|}}} | | |||
<tr> | <tr> | ||
<th> [[Edge shooter]]? </th> | <th> [[Edge shooter]]? </th> | ||
<td> {{#switch: {{{edgeshooter|}}} | yes = Yes | no = No | Unknown }} </td></tr> | <td> {{#switch: {{{edgeshooter|}}} | yes = [[:Category:Edge shooters|Yes]] | no = No | Unknown }} </td></tr> | ||
{{#ifeq: {{{edgeshooter}}} | yes | <tr> | {{#ifeq: {{{edgeshooter}}} | yes | <tr> | ||
<th> Clearance </th> | <th> Clearance </th> | ||
<td> {{{clearance|}}} </td></tr> | <td> {{#if: {{{clearance|}}} | [[:Category:Edge shooters with {{{clearance}}} clearance|{{{clearance}}}]] | Unknown }} </td></tr> | ||
}} }}< | }} }} }}<!-- | ||
Display an infobox divider | |||
-->{{InfoboxDivider}}<!-- | |||
Display discoverers and year of discovery | Display discoverers and year of discovery | ||
Line 102: | Line 134: | ||
|rulemax = {{{rulemax|}}} | |rulemax = {{{rulemax|}}} | ||
|rulemin = {{{rulemin|}}} | |rulemin = {{{rulemin|}}} | ||
|isorulemax = {{{isorulemax|}}} | |||
|isorulemin = {{{isorulemin|}}} | |||
}}<!-- | }}<!-- | ||
Line 125: | Line 159: | ||
--><includeonly> | --><includeonly> | ||
{{#ifeq:{{NAMESPACE}}|User|| | |||
[[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]] | [[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]] }} }}{{#ifexpr: ({{isSpaceship|{{{conduitfor|}}}}} + {{isSpaceship|{{{convertsto}}}}}) > 0 | | {{#if: {{{m|}}} | [[Category:Conduits with output orientation {{canonicalOutputOrientation|{{{m|}}}}}]] {{#ifeq: {{{m|}}} | {{canonicalOutputOrientation|{{{m|}}}}} | | [[Category:Conduits using legacy output orientation designations]] }} | [[Category:Conduits with unknown output orientation]] }}{{#if: {{{dx|}}}{{{dy|}}} | [[Category:Conduits with output offset ({{{dx|}}}, {{{dy|}}})]] | [[Category:Conduits with unknown output offset]] }} }}{{#if: {{{recovery|}}} | [[Category:Conduits with recovery time {{{recovery}}}]] | [[Category:Conduits with unknown recovery time]] }}{{#if: {{{overclock|}}} | [[Category:Conduits with minimum overclock time {{{overclock}}}]] | [[Category:Conduits with unknown minimum overclock time]] }}{{#if: {{{spartan|}}} | {{#ifeq: {{{spartan|}}} | yes | [[Category:Spartan conduits]] | {{#ifeq: {{{spartan|}}} | no | [[Category:Non-Spartan conduits]] }} }} | [[Category:Conduits of unknown Spartan-ness]] }}{{#ifeq: {{{edgeshooter|}}} | yes | [[Category:Edge shooters]] {{#if: {{{clearance|}}} | [[Category:Edge shooters with {{{clearance|}}} clearance]] | [[Category:Edge shooters with unknown clearance]] }} }}{{#ifeq: {{{dependent|}}} | yes | [[Category:Dependent conduits]] | {{#ifeq: {{{dependent|}}} | no | [[Category:Independent conduits]] }} }}{{#ifexist:RLE:{{{pname}}} | {{#if: {{{viewerconfig|}}} | | [[Category:Patterns with RLE snippets but no LifeViewer configuration]] }} }} | |||
}}</includeonly> |
Revision as of 15:22, 4 October 2019
Conduit Name | ||
View static image | ||
Pattern type | Conduit | |
---|---|---|
Step | Unknown | |
Recovery time (ignoring FNG if any) |
Unknown | |
Minimum overclock period (ignoring FNG if any) |
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").
- recovery: recovery time (in ticks, ignore FNG)
- overclock: minimum overclock time (in ticks, ignore FNG)
- spartan: whether the conduit is Spartan (yes/no).
- Also use "yes" if the conduit can (easily) be made Spartan, e.g. by replacing a snake with an eater.
- dependent: whether the conduit is a dependent conduit (yes/no).
- Should only be passed for Herschel conduits; leave out for all others.
- edgeshooter: whether the conduit is an edge shooter (yes/no).
- clearance: clearance, measured in hd (e.g. "27hd" for the Fx119 inserter); should only be passed for edge shooters (i.e. if edgeshooter=yes).
The following parameters should only be specified if neither the input pattern nor the output pattern is a spaceship:
- m: output orientation (one of R, L, B, F, Rx, Lx, Bx, Fx, T)
- Rf, Lf, Bf and Ff are accepted as alternatives to Rx, Lx, Bx, Fx, but the latter, which are more in line with current terminology, are preferred.
- T, B, F can be used when the input signal has a horizontal line of symmetry -- e.g., P (pi-heptomino) or Q (queen bee).
- F* = F or Fx
- B* = B or Bx
- step: time taken to move the pattern (in ticks)
- dx / dy: output offset.
- This is measured in reference to the somewhat arbitrarily-defined "centers" of the input/output pattern:
Input/output pattern "center" cells (click above to open LifeViewer) |
References
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