Difference between revisions of "Template:Stilllife"

From LifeWiki
Jump to navigation Jump to search
(Added .zip support for pattern files)
(Periodic objects with more than 1000 cells put in that category)
(39 intermediate revisions by 5 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|Still Life 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      = Still Life
<tr>
|defaultconfig = stilllife
|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 and family
 
--><tr>
<th> Pattern type </th>
<th> Pattern type </th>
<td> {{#ifeq: {{{type|}}} | pseudo | [[still life#Pseudo still lifes|Pseudo still life]] | {{#ifeq: {{{type|}}} | fake | [[Still life]] | {{#ifeq: {{{type|}}} | eater | [[Eater]] | [[still life#Strict still lifes|Strict still life]] }} }} }} </td></tr>
<td> {{#switch: {{{type|}}}
    | pseudo       = [[Still life#Pseudo still lifes|Pseudo still life]]  
    | constellation = [[Constellation]]
    | eater        = [[Eater]]
    |                [[Still life#Strict still lifes|Strict still life]]
}} {{#if: {{{type2|}}} | <br />{{#switch: {{{type2|}}}  
    | pseudo        = [[Still life#Pseudo still lifes|Pseudo still life]]
    | constellation = [[Constellation]]
    | eater        = [[Eater]]
    |                {{{type2}}}
}} }}</td></tr>
{{#if: {{{family|}}} |
<tr>
<tr>
<th> Number of [[cell]]s </th>
<th> Family </th>
<td> {{#if: {{{c|}}} | [[:Category:Patterns with {{{c}}} cells|{{{c}}}]] | Unknown }} </td></tr>
<td> {{{family|}}} </td></tr>
<tr>
}}<!--
<th> [[Bounding box]] </th>
 
<td> {{#if: {{{bx|}}} | {{{bx}}}&times;{{{by}}} | Unknown }} </td></tr>
Display population and bounding box
<tr>
 
<th> Discovered by </th>
-->{{PatternPopulationAndBoundingBox
<td> {{#if: {{{discoverer|}}} | [[:Category:Patterns found by {{{discoverer|}}}|{{{discoverer|}}}]] | Unknown }} </td></tr>
|c        = {{{c|}}}
<tr>
|bx      = {{{bx|}}}
<th> Year of discovery </th>
|by      = {{{by|}}}
<td> {{#if: {{{discoveryear|}}} | [[:Category:Patterns found in {{{discoveryear|}}}|{{{discoveryear|}}}]] | Unknown }} </td></tr>{{PatternDownload|synthesis={{{synthesis|}}}|synthesisRLE={{{synthesisRLE|}}}|life105={{{life105|}}}|life106={{{life106|}}}|zip={{{zip|}}}|plaintext={{{plaintext|}}}|mc={{{mc|}}}|rle={{{rle|}}}|pname={{{pname|}}}|rulespecial={{{rulespecial|}}}|rulemax={{{rulemax|}}}|rulemin={{{rulemin|}}} }} </table>
|fc      = {{{fc|}}}
<noinclude>
|periodic = true
This is an infobox template for '''[[still life]]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 [[block]].
}}<!--
 
Display an infobox divider
 
-->{{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|}}}
|apgcode      = {{{apgcode|}}}
|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><!--


==Special parameters==
Transcluded documentation
The following parameter is optional.
*'''type''': any of "strict", "pseudo", "eater", or "fake" (without the quotes) which refer to [[strict still life]]s, [[pseudo still life]]s, [[eater]]s, or other still lifes, respectively. If omitted, it will default to strict still life.


--><noinclude>{{Stilllife/Doc}}
{{PatternTemplates}}
{{PatternTemplates}}
</noinclude>
</noinclude><!--
<includeonly>
 
[[Category:Patterns]]
Categories
{{#ifeq: {{{type|}}} | pseudo | [[Category:Still lifes]][[Category:Pseudo still lifes]] | {{#ifeq: {{{type|}}} | fake | [[Category:Still lifes]] | {{#ifeq: {{{type|}}} | eater | [[Category:Still lifes]][[Category:Eaters]] | [[Category:Still lifes]][[Category:Strict still lifes]]{{#if: {{{c|}}} | [[Category:Strict still lifes with {{{c}}} cells]] }} }} }} }}{{#if: {{{c|}}} | [[Category:Patterns with {{{c}}} cells]] }}{{#if: {{{discoverer|}}} | [[Category:Patterns found by {{{discoverer|}}}]] }}{{#if: {{{discoveryear|}}} | [[Category:Patterns found in {{{discoveryear|}}}]] }}
 
--><includeonly>
{{#ifeq:{{NAMESPACE}}|User||
{{#ifeq: {{{type|}}} | pseudo | [[Category:Still lifes]][[Category:Pseudo still lifes]] {{#if: {{{c|}}} | [[Category:Pseudo still lifes with {{{c}}} cells]] }} | {{#ifeq: {{{type|}}} | constellation | [[Category:Constellations]] {{#if: {{{c|}}} | [[Category:Constellations with {{{c}}} cells]] }} | {{#ifeq: {{{type|}}} | eater | [[Category:Still lifes]][[Category:Eaters]] {{#if: {{{c|}}} | [[Category:Eaters with {{{c}}} cells]] }} | [[Category:Still lifes]][[Category:Strict still lifes]]{{#if: {{{c|}}} | [[Category:Strict still lifes with {{{c}}} cells]][[Category:Periodic objects with minimum population {{{c}}}]] }} }} }} }}{{#ifeq: {{{type2|}}} | pseudo | [[Category:Still lifes]][[Category:Pseudo still lifes]] {{#if: {{{c|}}} | [[Category:Pseudo still lifes with {{{c}}} cells]] }} | {{#ifeq: {{{type2|}}} | constellation | [[Category:Still lifes]] {{#if: {{{c|}}} | [[Category:Constellations with {{{c}}} cells]] }} | {{#ifeq: {{{type2|}}} | eater | [[Category:Still lifes]][[Category:Eaters]] {{#if: {{{c|}}} | [[Category:Eaters with {{{c}}} cells]] }} }} }} }}{{#if: {{{family|}}} | [[Category:{{{family|}}} variants]] }}{{#if: {{{apgcode|}}} | | {{#ifeq: {{{type|}}} | constellation | | {{#ifeq: {{{type|}}} | pseudo | | {{#ifeq: {{{type2|}}} | constellation | | {{#ifeq: {{{type2|}}} | pseudo | | [[Category:Still lifes with no apgcode infobox parameter]] }} }} }} }} }}{{#if: {{{pentadecathlonid|}}} | | {{#ifeq: {{{type|}}} | constellation | | {{#ifeq: {{{type|}}} | pseudo | | {{#ifeq: {{{type2|}}} | constellation | | {{#ifeq: {{{type2|}}} | pseudo | | [[Category:Still lifes with no Pentadecathlon ID]] }} }} }} }} }}
}}
</includeonly>
</includeonly>

Revision as of 17:18, 27 April 2019

Still Life Name
image
Pattern type Strict still life
Discovered by Unknown
Year of discovery Unknown

This is an infobox template for still lifes. 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 block.

Special parameters

The following parameters are optional.


Pattern templates