Difference between revisions of "Template:Conduit"

From LifeWiki
Jump to navigation Jump to search
(Link directly to Dependent conduit article)
(Maintenance tweaks, cmp. Template:Agar and Template:Stilllife)
Line 1: Line 1:
<includeonly>{{#if: {{{zip|}}}{{{mc|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}} | | {{requestpatternfile}} }}</includeonly>
+
<!--
<table class="infobox">
+
 
 +
Display "request pattern file" box if no pattern files exist and "nofile" was not passed to suppress this
 +
 
 +
--> <includeonly>{{#if: {{{zip|}}}{{{mc|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}} | | {{requestpatternfile}} }}</includeonly><!--
 +
 
 +
Begin infobox
 +
 
 +
--> <table class="infobox">
 
<tr><td colspan="2" class="infobox_head"> {{{name|Conduit Name}}} </td></tr>
 
<tr><td colspan="2" class="infobox_head"> {{{name|Conduit Name}}} </td></tr>
 
<tr>
 
<tr>
Line 73: Line 80:
 
<tr>
 
<tr>
 
<th> Year of discovery </th>
 
<th> Year of discovery </th>
<td> {{#if: {{{discoveryear|}}} | [[:Category:Patterns_found_in_{{{discoveryear|}}}|{{{discoveryear|}}}]] | Unknown }} </td></tr>{{PatternDownload|synthesis={{{synthesis|}}}|synthesisRLE={{{synthesisRLE|}}}|life105={{{life105|}}}|life106={{{life106|}}}|plaintext={{{plaintext|}}}|zip={{{zip|}}}|rle={{{rle|}}}|mc={{{mc|}}}|pname={{{pname|}}}|rulespecial={{{rulespecial|}}}|rulemax={{{rulemax|}}}|rulemin={{{rulemin|}}}|apgcode={{{apgcode|}}}|niemiecid={{{niemiecid|}}}|pentadecathlonid={{{pentadecathlonid|}}} }}{{PatternIdentifiers|apgcode={{{apgcode|}}}|niemiecid={{{niemiecid|}}}|pentadecathlonid={{{pentadecathlonid|}}} }}</table>
+
<td> {{{discoveryear|Unknown}}} </td></tr><!--
<noinclude>
 
This is an infobox template for '''[[conduit]]s''', e.g. '''[[Herschel conduit]]s''' and '''[[converter]]s'''. 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==
+
Display "Rules", "Glider synthesis", "Pattern files" sections
The following parameters are optional and should only be specified if their values are known.
 
  
* '''type''': "elementary", "composite" or "converter".
+
-->{{PatternDownload
* '''conduitfor''': pattern moved (e.g. "Herschel").
+
|synthesis    = {{{synthesis|}}}
* '''convertsto''': output pattern, if different from input pattern (e.g. "B-heptomino").
+
|synthesisRLE = {{{synthesisRLE|}}}
* '''recovery''': recovery time (in ticks)
+
|life105      = {{{life105|}}}
* '''spartan''': whether the conduit is [[Spartan]] (yes/no).
+
|life106      = {{{life106|}}}
** Also use "yes" if the conduit can (easily) be made Spartan, e.g. by replacing a snake with an eater.
+
|plaintext    = {{{plaintext|}}}
* '''dependent''': whether the conduit is a [[dependent conduit]] (yes/no).
+
|zip          = {{{zip|}}}
** Should only be passed for [[Herschel conduit]]s; leave out for all others.
+
|mc          = {{{mc|}}}
* '''edgeshooter''': whether the conduit is an [[edge shooter]] (yes/no).
+
|rle          = {{{rle|}}}
* '''clearance''': [[clearance]], measured in [[hd]] (e.g. "27hd" for the [[Fx119 inserter]]); should only be passed for edge shooters (i.e. if <tt>edgeshooter=yes</tt>).
+
|pname        = {{{pname|}}}
 +
|rulespecial  = {{{rulespecial|}}}
 +
|rulemax      = {{{rulemax|}}}
 +
|rulemin      = {{{rulemin|}}}
 +
}}<!--
  
The following paramaters should only be specified if neither the input pattern nor the output pattern is a spaceship:
+
Display "Identifiers" section
  
* '''m''': output orientation (one of R, L, B, F, Rx, Lx, Bx, Fx)
+
-->{{PatternIdentifiers
** 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.
+
|apgcode          = {{{apgcode|}}}
* '''step''': time taken to move the pattern (in ticks)
+
|niemiecid        = {{{niemiecid|}}}
* '''dx''' / '''dy''': output offset.
+
|pentadecathlonid = {{{pentadecathlonid|}}}
** This is measured in reference to the somewhat arbitrarily-defined "centers" of the input/output pattern:
+
}}<!--
  
{{EmbedViewer|
+
End infobox
|position    = center
+
 
|caption      = Input/output pattern "center" cells
+
--></table><!--
|viewerconfig = #C [[ HEIGHT 240 NOGUI ]]
+
 
|rle          =
+
Transcluded documentation
x = 84, y = 21, rule = LifeHistory
 
.3D7.3D6.D2.D7.2D7.3D7.3D8.2D7.D3.D6.2D$.D2.D6.D2.D5.D2.D6.D2.D6.D2.D
 
6.D2.D6.D2.D6.D3.D5.D2.D$.D2.D6.D2.D5.D2.D6.D9.D2.D6.D2.D6.D2.D6.D3.D
 
5.D$.3D7.3D6.4D6.D9.D2.D6.D2.D6.D2.D6.D3.D5.D.2D$.D2.D6.D2.D5.D2.D6.D
 
9.D2.D6.3D7.D2.D6.D.D.D5.D2.D$.D2.D6.D2.D5.D2.D6.D2.D6.D2.D6.D9.D.D7.
 
2D.2D5.D2.D$.D2.D6.3D6.D2.D7.2D7.3D7.D10.D.D6.D3.D6.2D3$.4B$6B$8B$10B
 
$10B4.2B2.2B40.D$2BD10BD7BD38.2D$2BCD10BD6BDBD7.3D8.2D6.3D8.2D9.2D7.D
 
$B2D7B2.2BCD5BDCDB7.CD7.DCD7.CD8.DCD8.CD7.CD$10B2.B2D8BD6.D.2D6.D2.D
 
6.3D8.2D8.2D7.3D$13BD8B8.2D8.D.D17.2D9.D$15B.B24.D18.D$5B.B3.B!
 
}}
 
  
 +
--><noinclude>{{Conduit/Doc}}
 
{{PatternTemplates}}
 
{{PatternTemplates}}
</noinclude>
+
</noinclude><!--
<includeonly>
+
 
 +
Categories
 +
 
 +
--><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]] }} }} }}{{#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: {{{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]] }}{{#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]] }} }}{{#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>
 
[[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]] }} }} }}{{#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: {{{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]] }}{{#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]] }} }}{{#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 11:26, 18 February 2018

Conduit Name
{{{name}}} image
Pattern type Conduit
Number of cells Unknown
Step Unknown
Recovery time Unknown
Discovered by Unknown
Year of discovery Unknown
Ambox notice.png This template needs to be fixed so that some of the parameters are not reliant on output offset in order to appear.

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).
  • 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 paramaters 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:
x = 83, y = 21, rule = LifeHistory .3D7.3D6.D2.D7.2D7.3D7.3D7.2D7.D3.D6.2D$.D2.D6.D2.D5.D2.D6.D2.D6.D2.D 6.D2.D5.D2.D6.D3.D5.D2.D$.D2.D6.D2.D5.D2.D6.D9.D2.D6.D2.D5.D2.D6.D3.D 5.D$.3D7.3D6.4D6.D9.D2.D6.D2.D5.D2.D6.D3.D5.D.2D$.D2.D6.D2.D5.D2.D6.D 9.D2.D6.3D6.D2.D6.D.D.D5.D2.D$.D2.D6.D2.D5.D2.D6.D2.D6.D2.D6.D8.D.D7. 2D.2D5.D2.D$.D2.D6.3D6.D2.D7.2D7.3D7.D9.D.D6.D3.D6.2D3$.4B$6B$8B$10B$ 10B4.2B2.2B39.D$2BD18BD37.2D$2BCD9B2D6BDBD7.3D8.2D6.3D7.2D9.2D7.D$B2D 11BCD5BDCDB7.CD7.DCD7.CD7.DCD8.CD7.CD$13B2D8BD6.D.2D6.D2.D6.3D7.2D8. 2D7.3D$13BD8B8.2D8.D.D16.2D9.D$15B.B24.D17.D$5B.B3.B! #C [[ THUMBSIZE 2 THEME 6 GRID GRIDMAJOR 0 SUPPRESS THUMBLAUNCH ]] #C [[ THEME 0 HEIGHT 240 NOGUI ]]
Input/output pattern "center" cells (click above to open LifeViewer)

References

Pattern templates