Difference between revisions of "Template:Sawtooth"

From LifeWiki
Jump to: navigation, search
m (Correct category)
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{zip|}}}{{{mc|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}} | | {{requestpatternfile}} }}</includeonly>
+
<!--
<table class="infobox">
+
 
<tr><td colspan="2" class="infobox_head"> {{{name|Pattern Name}}} </td></tr>
+
Begin infobox
<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> }}
+
-->{{InfoboxStart
<!-- {{#if: {{{rle|}}} | <tr><td colspan="2" class="infobox_link"> [http://www.conwaylife.com?p={{{pname|name}}} Manipulate via Java] </td></tr> }} -->
+
|typename      = Sawtooth
<tr>
+
|defaultconfig = sawtooth
 +
|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
 +
 
 +
--><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><!--
<tr>
+
 
<th> Number of [[cell]]s </th>
+
Display population and bounding box. Passing catextra= ensures we also get conduit-specific categories, e.g. "Conduits with ... cells".
<td> {{#if: {{{c|}}} | {{#ifexpr: {{{c|}}} >= 1000 | [[:Category:Patterns with 1000 or more cells|{{{c}}}]] | [[:Category:Patterns with {{{c}}} cells|{{{c}}}]] }} | Unknown }} </td></tr>
+
 
<tr>
+
-->{{PatternPopulationAndBoundingBox
<th> [[Bounding box]] </th>
+
|c        = {{{c|}}}
<td> {{#if: {{{bx|}}} | {{{bx}}}&times;{{{by}}} | Unknown }} </td></tr>
+
|bx      = {{{bx|}}}
 +
|by      = {{{by|}}}
 +
|catextra = Sawtooths
 +
}}<!--
 +
 
 +
Display an infobox divider
 +
 
 +
-->{{InfoboxDivider}}
 
<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> Discovered by </th>
+
<td> {{#if: {{{discoverer|}}} | [[{{{discoverer|}}}]] | Unknown }} </td></tr>
+
<tr>
+
<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|}}}|mc={{{mc|}}}|rle={{{rle|}}}|pname={{{pname|}}}|rulespecial={{{rulespecial|}}}|rulemax={{{rulemax|}}}|rulemin={{{rulemin|}}} }} </table>
+
<noinclude>
+
This is an infobox template for '''[[sawtooth]]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 [[Cord puller]].
+
  
==Special parameters==
+
Display an infobox divider
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).
+
  
 +
-->{{InfoboxDivider}}<!--
 +
 +
Display discoverers and year of discovery
 +
 +
-->{{PatternDiscovery
 +
|discoverer  = {{{discoverer|}}}
 +
|discoverer2  = {{{discoverer2|}}}
 +
|discoverer3  = {{{discoverer3|}}}
 +
|discoverer4  = {{{discoverer4|}}}
 +
|discoverer5  = {{{discoverer5|}}}
 +
|discoveryear = {{{discoveryear|}}}
 +
}}<!--
 +
 +
Display "Rules", "Glider synthesis", "Pattern files" sections
 +
 +
-->{{PatternDownload
 +
|synthesis    = {{{synthesis|}}}
 +
|synthesisRLE = {{{synthesisRLE|}}}
 +
|life105      = {{{life105|}}}
 +
|life106      = {{{life106|}}}
 +
|plaintext    = {{{plaintext|}}}
 +
|zip          = {{{zip|}}}
 +
|mc          = {{{mc|}}}
 +
|rle          = {{{rle|}}}
 +
|pname        = {{{pname|}}}
 +
|rulespecial  = {{{rulespecial|}}}
 +
|rulemax      = {{{rulemax|}}}
 +
|rulemin      = {{{rulemin|}}}
 +
|isorulemax  = {{{isorulemax|}}}
 +
|isorulemin  = {{{isorulemin|}}}
 +
}}<!--
 +
 +
Display "Identifiers" section
 +
 +
-->{{PatternIdentifiers
 +
|apgcode          = {{{apgcode|}}}
 +
|niemiecid        = {{{niemiecid|}}}
 +
|pentadecathlonid = {{{pentadecathlonid|}}}
 +
}}<!--
 +
 +
End infobox
 +
 +
--></table><!--
 +
 +
Transcluded documentation
 +
 +
--><noinclude>{{Sawtooth/Doc}}
 
{{PatternTemplates}}
 
{{PatternTemplates}}
</noinclude>
+
</noinclude><!--
<includeonly>
+
 
 +
Categories
 +
 
 +
--><includeonly>
 +
{{#ifeq:{{NAMESPACE}}|User||
 
[[Category:Patterns]]
 
[[Category:Patterns]]
[[Category:Oscillators]]{{#if: {{{type|}}} | [[Category:{{{type|}}}s]] }}
+
[[Category:Sawtooths]]
{{#if: {{{c|}}} | {{#iferror: {{#expr: floor({{{c}}})}} | | {{#ifexpr: {{{c|}}} >= 1000 | [[Category:Patterns with 1000 or more cells]] [[Category:Sawtooths with 1000 or more cells]] | [[Category:Patterns with {{{c}}} cells]] [[Category:Sawtooths with {{{c}}} cells]] }} }} }}{{#if: {{{e|}}} | {{#iferror: {{#expr: floor({{{e}}})}} | | [[Category:Sawtooths with expansion factor {{#expr: floor({{{e}}})}}]] }} }}{{#if: {{{discoverer|}}} | [[Category:Patterns found by {{{discoverer|}}}]] }}{{#if: {{{discoveryear|}}} | [[Category:Patterns found in {{{discoveryear|}}}]] }}
+
[[Category:Infinite growth]]
 +
{{#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}}})}}]] }} }} }}
 +
}}
 
</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