Difference between revisions of "Template:Sawtooth"

From LifeWiki
Jump to: navigation, search
m
Line 23: Line 23:
 
<tr>
 
<tr>
 
<th> [[Expansion factor]] </th>
 
<th> [[Expansion factor]] </th>
<td> {{#if: {{{e|}}} | {{#iferror: {{#expr: floor({{{e}}})}} | {{{e}}} | [[:Category:Sawtooths with expansion factor {{#expr: floor({{{e}}})}}|{{{e}}}]] }} | Unknown }} </td></tr>
+
<td> {{#if: {{{e|}}} | {{#iferror: {{#expr: floor({{{e}}})}} | {{{e}}} | [[:Category:Sawtooths with expansion factor {{#expr: floor({{{e}}})}}|{{{e}}}]] }} | Unknown }} </td></tr><!--
<tr>
+
 
<th valign="top"> Discovered by </th>
+
Display discoverers and year of discovery
<td> {{#if: {{{discoverer|}}} | [[{{{discoverer|}}}]] | Unknown }}{{#if: {{{discoverer2|}}} | <br />[[{{{discoverer2|}}}]] | }}{{#if: {{{discoverer3|}}} | <br />[[{{{discoverer3|}}}]] | }}{{#if: {{{discoverer4|}}} | <br />[[{{{discoverer4|}}}]] | }}{{#if: {{{discoverer5|}}} | <br />[[{{{discoverer5|}}}]] | }} </td></tr>
+
 
<tr>
+
-->{{PatternDiscovery
<th> Year of discovery </th>
+
|discoverer   = {{{discoverer|}}}
<td> {{#if: {{{discoveryear|}}} | [[:Category:Patterns found in {{{discoveryear|}}}|{{{discoveryear|}}}]] | Unknown }} </td></tr><!--
+
|discoverer2 = {{{discoverer2|}}}
 +
|discoverer3 = {{{discoverer3|}}}
 +
|discoverer4 = {{{discoverer4|}}}
 +
|discoverer5 = {{{discoverer5|}}}
 +
|discoveryear = {{{discoveryear|}}}
 +
}}<!--
  
 
Display "Rules", "Glider synthesis", "Pattern files" sections
 
Display "Rules", "Glider synthesis", "Pattern files" sections

Revision as of 19:32, 18 February 2018

Pattern Name
{{{name}}} image
Pattern type Sawtooth
Number of cells Unknown
Bounding box Unknown
Expansion factor Unknown
Discovered by Unknown
Year of discovery Unknown
This is an infobox template for sawtooths. 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 Cord puller.

Special parameters

The following parameter is optional and should only be specified if it is relevant.

  • e: the expansion factor of the sawtooth (e.g. e=11). For sawtooths with no expansion factor in the usual sense, specify e=n/a.

Pattern templates