Difference between revisions of "Template:Sawtooth"

From LifeWiki
Jump to navigation Jump to search
(Remove discovery-related categories; handled by Template:PatternDiscovery now)
Line 77: Line 77:
 
[[Category:Sawtooths]]
 
[[Category:Sawtooths]]
 
{{#if: {{{type|}}} | [[Category:{{{type|}}}s]] }}
 
{{#if: {{{type|}}} | [[Category:{{{type|}}}s]] }}
{{#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|}}} | {{#ifeq: {{{e|}}} | n/a | [[Category:Sawtooths with no expansion factor]] | {{#iferror: {{#expr: floor({{{e}}})}} | | [[Category:Sawtooths with expansion factor {{#expr: floor({{{e}}})}}]] }} }} }}{{#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|}}}]] }}
+
{{#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|}}} | {{#ifeq: {{{e|}}} | n/a | [[Category:Sawtooths with no expansion factor]] | {{#iferror: {{#expr: floor({{{e}}})}} | | [[Category:Sawtooths with expansion factor {{#expr: floor({{{e}}})}}]] }} }} }}
 
</includeonly>
 
</includeonly>

Revision as of 19:45, 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