Difference between revisions of "Template:Sawtooth"

From LifeWiki
Jump to: navigation, search
(Use Template:PatternPopulationAndBoundingBox; group "generic" parameters at top of infobox)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!--  
+
<!--
  
Display "request pattern file" box if no pattern files exist and "nofile" was not passed to suppress this
+
Begin infobox
  
--> <includeonly>{{#if: {{{zip|}}}{{{mc|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}} | | {{requestpatternfile}} }}</includeonly><!--
+
-->{{InfoboxStart
 +
|typename      = Sawtooth
 +
|defaultconfig = sawtooth
 +
|viewerconfig  = {{{viewerconfig|}}}
 +
|name          = {{{name|}}}
 +
|zip          = {{{zip|}}}
 +
|mc            = {{{mc|}}}
 +
|life105      = {{{life105|}}}
 +
|life106      = {{{life106|}}}
 +
|plaintext    = {{{plaintext|}}}
 +
|rle          = {{{rle|}}}
 +
|nofile        = {{{nofile|}}}
 +
|pname        = {{{pname|}}}
 +
|animated      = {{{animated|}}}
 +
}}<!--
  
Begin infobox
+
Display pattern type
  
--> <table class="infobox">
+
--><tr>
<tr><td colspan="2" class="infobox_head"> {{{name|Sawtooth Name}}} </td></tr>
+
<tr>
+
<td colspan="2" class="infobox_img"><table class="img_border" cellpadding="0"><tr><td>{{#if: {{{zip|}}}{{{mc|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}} | [[Image:{{{pname|}}}.png|{{{name}}} image]]|[[Image:UnknownPattern.png|{{{name}}} image]]}}</td></tr></table></td></tr>{{#if: {{{animated|}}} | <tr><td colspan="2" class="infobox_animlink"> [[Media:{{{pname|name}}}.gif|View animated image]] </td></tr> }}
+
<!-- {{#if: {{{rle|}}} | <tr><td colspan="2" class="infobox_link"> [http://www.conwaylife.com?p={{{pname|name}}} Manipulate via Java] </td></tr> }} -->
+
<tr>
+
 
<th> Pattern type </th>
 
<th> Pattern type </th>
 
<td> {{#if: {{{type|}}} | [[{{{type|}}}]]<br /> }}[[Sawtooth]] </td></tr><!--
 
<td> {{#if: {{{type|}}} | [[{{{type|}}}]]<br /> }}[[Sawtooth]] </td></tr><!--
Line 62: Line 71:
 
|rulemax      = {{{rulemax|}}}
 
|rulemax      = {{{rulemax|}}}
 
|rulemin      = {{{rulemin|}}}  
 
|rulemin      = {{{rulemin|}}}  
 +
|isorulemax  = {{{isorulemax|}}}
 +
|isorulemin  = {{{isorulemin|}}}
 
}}<!--
 
}}<!--
  
Line 85: Line 96:
  
 
--><includeonly>
 
--><includeonly>
 +
{{#ifeq:{{NAMESPACE}}|User||
 
[[Category:Patterns]]
 
[[Category:Patterns]]
 
[[Category:Sawtooths]]
 
[[Category:Sawtooths]]
 +
[[Category:Infinite growth]]
 
{{#if: {{{type|}}} | [[Category:{{{type|}}}s]] }}
 
{{#if: {{{type|}}} | [[Category:{{{type|}}}s]] }}
 
{{#if: {{{e|}}} | {{#ifeq: {{{e|}}} | n/a | [[Category:Sawtooths with no expansion factor]] | {{#iferror: {{#expr: floor({{{e}}})}} | | [[Category:Sawtooths with expansion factor {{#expr: floor({{{e}}})}}]] }} }} }}
 
{{#if: {{{e|}}} | {{#ifeq: {{{e|}}} | n/a | [[Category:Sawtooths with no expansion factor]] | {{#iferror: {{#expr: floor({{{e}}})}} | | [[Category:Sawtooths with expansion factor {{#expr: floor({{{e}}})}}]] }} }} }}
 +
}}
 
</includeonly>
 
</includeonly>

Latest revision as of 18:03, 31 March 2019

Sawtooth Name
image
Pattern type Sawtooth
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