Difference between revisions of "Template:Rotor"

From LifeWiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#if: {{{zip|}}}{{{mc|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}} | | {{requestpatternfile}} }}</includeonly> <table class="infobox">...")
 
(Remove user pages from categories)
 
(8 intermediate revisions by one other user 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|Rotor 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/oscillator}}
+
|typename      = Rotor
{{#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]]}}<tr><td colspan="2" class="infobox_animlink"> [[Media:{{{pname|name}}}.png|View static image]] </td></tr>
+
|defaultconfig = oscillator
<tr>
+
|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 valign="top"> Pattern type </th>
 
<th valign="top"> Pattern type </th>
<td> {{#if: {{{type|}}} | [[{{{type|}}}]]<br /> }}[[Rotor]] </td></tr>
+
<td> {{#if: {{{type|}}} | [[{{{type|}}}]]<br /> }}[[Rotor]] </td></tr><!--
<tr>
+
 
<th> Number of [[cell]]s </th>
+
Display population and bounding box. Passing catextra= ensures we also get rotor-specific categories, e.g. "Rotors with ... cells".
<td> {{#if: {{{c|}}} | {{#iferror: {{#expr: floor({{{c}}})}} | {{{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 = Rotors
 +
}}<!--
 +
 
 +
Display an infobox divider
 +
 
 +
-->{{InfoboxDivider}}
 
<tr>
 
<tr>
 
<th> [[Period#Oscillators|Period]] </th>
 
<th> [[Period#Oscillators|Period]] </th>
Line 26: Line 48:
 
<tr>
 
<tr>
 
<th> [[Volatility]] </th>
 
<th> [[Volatility]] </th>
<td> {{#if: {{{v|}}} |[[:Category:Rotors with volatility {{{v}}}|{{{v}}}]] | Unknown }} </td></tr>{{PatternDownload|synthesis={{{synthesis|}}}|synthesisRLE={{{synthesisRLE|}}}|life105={{{life105|}}}|life106={{{life106|}}}|plaintext={{{plaintext|}}}|zip={{{zip|}}}|rle={{{rle|}}}|mc={{{mc|}}}|pname={{{pname|}}}|rulespecial={{{rulespecial|}}}|rulemax={{{rulemax|}}}|rulemin={{{rulemin|}}} }} </table>
+
<td> {{#if: {{{v|}}} |[[:Category:Rotors with volatility {{{v}}}|{{{v}}}]] | Unknown }} </td></tr><!--
<noinclude>
+
 
This is an infobox template for '''[[rotor]]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 [[Diagonal on-off]].
+
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|}}}
 +
|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 parameters are optional and should only be specified if their values are known.
 
*'''p''': the period of the rotor (e.g. p=4).
 
*'''m''': the mod of the rotor (e.g. m=2).
 
*'''h''': the heat of the rotor (e.g. h=4). Decimal values are allowed, though it is most common not to include more than 1 decimal place.
 
*'''v''': the [[volatility]] of the rotor (e.g. v=0.50). Include 2 digits after the decimal place.
 
  
 +
--><noinclude>{{Rotor/Doc}}
 
{{PatternTemplates}}
 
{{PatternTemplates}}
</noinclude>
+
</noinclude><!--
<includeonly>
+
 
 +
Categories
 +
 
 +
--><includeonly>
 +
{{#ifeq:{{NAMESPACE}}|User||
 
[[Category:Patterns]]
 
[[Category:Patterns]]
 
[[Category:Rotors]]{{#if: {{{type|}}} | [[Category:{{{type|}}}s]] }}
 
[[Category:Rotors]]{{#if: {{{type|}}} | [[Category:{{{type|}}}s]] }}
{{#if: {{{c|}}} | {{#iferror: {{#expr: floor({{{c}}})}} | | {{#ifexpr: {{{c|}}} >= 1000 | [[Category:Patterns with 1000 or more cells]] [[Category:Rotors with 1000 or more cells]] | [[Category:Patterns with {{{c}}} cells]] [[Category:Rotors with {{{c}}} cells]] }} }} }}{{#if: {{{p|}}} | [[Category:Rotors with period {{{p}}}]] }}{{#if: {{{m|}}} | [[Category:Rotors with mod {{{m|}}}]] }}{{#if: {{{h|}}} | {{#iferror: {{#expr: floor({{{h}}})}} | | [[Category:Rotors with heat {{#expr: floor({{{h}}})}}]] }} }}{{#if: {{{v|}}} | [[Category:Rotors with volatility {{{v}}}]] }}
+
{{#if: {{{p|}}} | [[Category:Rotors with period {{{p}}}]] }}{{#if: {{{m|}}} | [[Category:Rotors with mod {{{m|}}}]] }}{{#if: {{{h|}}} | {{#iferror: {{#expr: floor({{{h}}})}} | | [[Category:Rotors with heat {{#expr: floor({{{h}}})}}]] }} }}{{#if: {{{v|}}} | [[Category:Rotors with volatility {{{v}}}]] }}
 +
}}
 
</includeonly>
 
</includeonly>

Latest revision as of 01:33, 10 December 2018

Rotor Name
image
Pattern type Rotor
Period Unknown
Mod Unknown
Heat Unknown
Volatility Unknown
Discovered by Unknown
Year of discovery Unknown

This is an infobox template for rotors. 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 Diagonal on-off.

Special parameters

The following parameters are optional and should only be specified if their values are known.

  • p: the period of the rotor (e.g. p=4).
  • m: the mod of the rotor (e.g. m=2).
  • h: the heat of the rotor (e.g. h=4). Decimal values are allowed, though it is most common not to include more than 1 decimal place.
  • v: the volatility of the rotor (e.g. v=0.50). Include 2 digits after the decimal place.

Pattern templates