Difference between revisions of "Template:Agar"

From LifeWiki
Jump to navigation Jump to search
(If p=1, link to Category:Stable agars)
 
(11 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|Agar Name}}} </td></tr>
+
 
<tr>
+
Begin infobox
<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> }} -->
+
-->{{InfoboxStart
<tr>
+
|typename      = Agar
 +
|defaultconfig = agar
 +
|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 period
 +
 
 +
--><tr>
 
<th> Pattern type </th>
 
<th> Pattern type </th>
 
<td> [[Agar]] </td></tr>
 
<td> [[Agar]] </td></tr>
 
<tr>
 
<tr>
 
<th> [[Period#Oscillators|Period]] </th>
 
<th> [[Period#Oscillators|Period]] </th>
<td> {{#if: {{{p|}}} | {{{p}}} | Unknown }} </td></tr>
+
<td> {{#if: {{{p|}}} | {{#ifeq: {{{p|}}} | 1 | [[:Category:Stable agars|1]] | {{{p}}} }} | Unknown }} </td></tr>
 
<tr>
 
<tr>
<th> Discovered by </th>
+
<th> [[Density]] </th>
<td> {{#if: {{{discoverer|}}} | [[{{{discoverer|}}}]] | Unknown }} </td></tr>
+
<td> {{#if: {{{d|}}} | {{{d}}} | Unknown }} </td></tr><!--
<tr>
+
 
<th> Year of discovery </th>
+
Display an infobox divider
<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|}}} }}{{PatternIdentifiers|apgcode={{{apgcode|}}}|niemiecid={{{niemiecid|}}}|pentadecathlonid={{{pentadecathlonid|}}} }} </table><noinclude>
+
 
This is an infobox template for '''[[agar]]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 [[Venetian blinds]].
+
-->{{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><!--
  
==Special parameters==
+
Transcluded documentation
The following parameter is optional and should only be specified if its value is known.
 
*'''p''': the period of the agar (e.g. p=2).
 
  
 +
--><noinclude>{{Agar/Doc}}
 
{{PatternTemplates}}
 
{{PatternTemplates}}
</noinclude><includeonly>[[Category:Patterns]] [[Category:Agars]] {{#if: {{{discoverer|}}} | [[Category:Patterns found by {{{discoverer|}}}]] }}{{#if: {{{discoveryear|}}} | [[Category:Patterns found in {{{discoveryear|}}}]] }}</includeonly>
+
</noinclude><!--
 +
 
 +
Categories
 +
 
 +
--><includeonly>
 +
{{#ifeq:{{NAMESPACE}}|User||
 +
[[Category:Patterns]]
 +
[[Category:Agars]]
 +
{{#ifeq: {{{p|}}} | 1 | [[Category:Stable agars]] }}
 +
}}
 +
</includeonly>

Latest revision as of 03:07, 11 July 2019

Agar Name
image
Pattern type Agar
Period Unknown
Density Unknown
Discovered by Unknown
Year of discovery Unknown

This is an infobox template for agars. 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 Venetian blinds.

Special parameters

The following parameter is optional and should only be specified if its value is known.

  • p: the period of the agar (e.g. p=2).
  • d: the density of the agar (e.g. d=0.5).

Pattern templates