Difference between revisions of "Template:Stilllife"

From LifeWiki
Jump to navigation Jump to search
(Add type2 parameter. This'll help keep eater 5 (which is an eater, but not a strict still life) out of Category:Still lifes with no apgcode infobox parameter.)
(Periodic objects with more than 1000 cells put in that category)
(22 intermediate revisions by 4 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|}}} | {{#ifexist:RLE:{{{pname}}}|{{LV:Viewer|{{RLE:{{{pname}}}}}
-->{{InfoboxStart
{{LifeViewer config/stilllife}}
|typename      = Still Life
{{#tag:nowiki|{{{viewerconfig|}}}}}|[[Image:{{{pname|}}}.png|{{{name}}} image]]}}|[[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> }}
|defaultconfig = stilllife
<tr><td colspan="2" class="infobox_animlink"> [[Media:{{{pname|name}}}.png|View static image]]</td></tr>
|viewerconfig  = {{{viewerconfig|}}}
<!-- {{#if: {{{rle|}}} | <tr><td colspan="2" class="infobox_link"> [http://www.conwaylife.com?p={{{pname|name}}} Manipulate via Java] </td></tr> }} -->
|name          = {{{name|}}}
<tr>
|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|}}} | constellation | [[Constellation]] | {{#ifeq: {{{type|}}} | eater | [[Eater]] | [[still life#Strict still lifes|Strict still life]] }} }} }} {{#if: {{{type2|}}} | {{#ifeq: {{{type2|}}} | pseudo | [[still life#Pseudo still lifes|Pseudo still life]] | {{#ifeq: {{{type2|}}} | constellation | [[Constellation]] | {{#ifeq: {{{type2|}}} | eater | [[Eater]] | {{{type2}}} }} }} }} }}</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|}}} |  
{{#if: {{{family|}}} |  
<tr>
<tr>
<th> Family </th>
<th> Family </th>
<td> [[:Category:{{{family}}} variants|{{{family}}}]] </td></tr>
<td> {{{family|}}} </td></tr>
}}
}}<!--
<tr>
 
<th> Number of [[cell]]s </th>
Display population and bounding box
<td> {{#if: {{{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|}}}
<tr>
|by      = {{{by|}}}
<th> Discovered by </th>
|fc      = {{{fc|}}}
<td> {{#if: {{{discoverer|}}} | [[:Category:Patterns found by {{{discoverer|}}}|{{{discoverer|}}}]] | Unknown }} </td></tr>
|periodic = true
<tr>
}}<!--
<th> Year of discovery </th>
 
<td> {{#if: {{{discoveryear|}}} | [[:Category:Patterns found in {{{discoveryear|}}}|{{{discoveryear|}}}]] | Unknown }} </td></tr>{{PatternDownload|apgcode={{{apgcode|}}}|synthesis={{{synthesis|}}}|synthesisRLE={{{synthesisRLE|}}}|life105={{{life105|}}}|life106={{{life106|}}}|zip={{{zip|}}}|plaintext={{{plaintext|}}}|mc={{{mc|}}}|rle={{{rle|}}}|pname={{{pname|}}}|rulespecial={{{rulespecial|}}}|rulemax={{{rulemax|}}}|rulemin={{{rulemin|}}} }}{{PatternIdentifiers|apgcode={{{apgcode|}}}|niemiecid={{{niemiecid|}}}|pentadecathlonid={{{pentadecathlonid|}}} }}</table>
Display an infobox divider
<noinclude>
 
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]].
-->{{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 "constellation" (without the quotes) which refer to [[strict still life]]s, [[pseudo still life]]s, [[eater]]s, or constellations, respectively. If omitted, it will default to strict still life.
*'''type2''': like '''type'''; should only be specified if type is not empty.


--><noinclude>{{Stilllife/Doc}}
{{PatternTemplates}}
{{PatternTemplates}}
</noinclude>
</noinclude><!--
<includeonly>
 
[[Category:Patterns]]
Categories
{{#ifeq: {{{type|}}} | pseudo | [[Category:Still lifes]][[Category:Pseudo still lifes]] {{#if: {{{c|}}} | [[Category:Pseudo still lifes with {{{c}}} cells]] }} | {{#ifeq: {{{type|}}} | constellation | [[Category:Still lifes]] {{#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]] }} }} }} }}{{#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: {{{c|}}} | [[Category:Patterns with {{{c}}} cells]] }}{{#if: {{{discoverer|}}} | [[Category:Patterns found by {{{discoverer|}}}]] }}{{#if: {{{discoveryear|}}} | [[Category:Patterns found in {{{discoveryear|}}}]] }}{{#if: {{{family|}}} | [[Category:{{{family|}}} variants]] }}{{#ifexist:RLE:{{{pname}}}|{{#if:{{{viewerconfig|}}}||[[Category:Patterns with RLE snippets but no LifeViewer configuration]]}}}}{{#if: {{{apgcode|}}} | | {{#ifeq: {{{type|}}} | constellation | | {{#ifeq: {{{type|}}} | pseudo | | {{#ifeq: {{{type2|}}} | constellation | | {{#ifeq: {{{type2|}}} | pseudo | | [[Category:Still lifes with no apgcode infobox parameter]] }} }} }} }} }}
 
--><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