Template:Wave: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Support up to 5 discoverers.
No edit summary
 
(12 intermediate revisions by 3 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|Wave Name}}} </td></tr>
Begin infobox
<tr>
 
<td colspan="2" class="infobox_img"><table class="img_border" cellpadding="0"><tr><td>{{#if: {{{zip|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}}{{{mc|}}} | {{#ifexist:RLE:{{{pname}}}|{{LV:Viewer|{{RLE:{{{pname}}}}}
-->{{InfoboxStart
{{LifeViewer config/spaceship}}
|typename      = Wave
{{#tag:nowiki|{{{viewerconfig|}}}}}|{{LifeViewer config/spaceship}}}}|[[Image:{{{pname|Glider}}}.png|{{{name}}} image]]}}|[[Image:{{{pname|Glider}}}.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 = spaceship
<!-- {{#if: {{{rle|}}} | <tr><td colspan="2" class="infobox_link"> [http://www.conwaylife.com?p={{{pname|name}}} Manipulate via Java] </td></tr> }} -->
|viewerconfig  = {{{viewerconfig|}}}
|name          = {{{name|}}}
|zip          = {{{zip|}}}
|mc            = {{{mc|}}}
|life105      = {{{life105|}}}
|life106      = {{{life106|}}}
|plaintext    = {{{plaintext|}}}
|rle          = {{{rle|}}}
|nofile        = {{{nofile|}}}
|pname        = {{{pname|}}}
|animated     = {{{animated|}}}
|hideimg      = {{{hideimg|}}}
}}<!--
 
Display pattern type
 
-->
<tr>
<tr>
<th valign="top"> Pattern type </th>
<th valign="top"> Pattern type </th>
<td> {{#if: {{{type|}}} | [[{{{type|}}}]]<br /> }}[[Wave]] </td></tr>
<td> {{#if: {{{type|}}} | [[{{{type|}}}]]<br /> }}[[Wave]] </td></tr><!--
<tr>
 
<th> Number of [[cell]]s </th>
Display population and bounding box
<td> {{#if: {{{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|}}}
}}<!--
 
Display an infobox divider
 
-->{{InfoboxDivider}}
<tr>
<tr>
<th> [[Direction]] </th>
<th> [[Direction]] </th>
Line 21: Line 43:
{{#if: {{{slope|}}} |  
{{#if: {{{slope|}}} |  
<tr>
<tr>
<th> Slope </th>
<th> [[Slope]] </th>
<td> [[:Category:Waves with slope {{{slope}}}|{{{slope}}}]] </td></tr>
<td> [[:Category:Waves with slope {{{slope}}}|{{{slope}}}]] </td></tr>
}}
}}
Line 38: Line 60:
<tr>
<tr>
<th> Can be supported by </th>
<th> Can be supported by </th>
<td> {{#if: {{{sup|}}} | [[{{{sup}}}]] | None }} </td></tr>
<td> {{#if: {{{sup|}}} | [[{{{sup}}}]] | None }} </td></tr><!--
<tr>
 
<th> Discovered by </th>
Display an infobox divider
<td> {{#if: {{{discoverer|}}} | [[{{{discoverer|}}}]] | Unknown }}{{#if: {{{discoverer2|}}} | <br />[[{{{discoverer2|}}}]] | }}{{#if: {{{discoverer3|}}} | <br />[[{{{discoverer3|}}}]] | }}{{#if: {{{discoverer4|}}} | <br />[[{{{discoverer4|}}}]] | }}{{#if: {{{discoverer5|}}} | <br />[[{{{discoverer5|}}}]] | }} </td></tr>
 
<tr>
-->{{InfoboxDivider}}<!--
<th> Year of discovery </th>
 
<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|}}}|rle={{{rle|}}}|pname={{{pname|}}}|rulespecial={{{rulespecial|}}}|rulemax={{{rulemax|}}}|rulemin={{{rulemin|}}}|mc={{{mc|}}} }}{{PatternIdentifiers|apgcode={{{apgcode|}}}|niemiecid={{{niemiecid|}}}|pentadecathlonid={{{pentadecathlonid|}}} }} </table>
Display discoverers and year of discovery
<noinclude>
 
This is an infobox template for '''[[wave]]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 [[glider]].
-->{{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.
*'''dir''': the direction of the wave (either dir=Orthogonal, dir=Diagonal or dir=Oblique).
*'''slope''': the slope of the wave (for dir=Oblique only, e.g. slope=5).
*'''h''': the [[heat]] of the wave (e.g. h=4).
*'''p''': the period of the wave (e.g. p=28).
*'''m''': the mod of the wave (e.g. m=14).
*'''s''': the speed of the wave (e.g. s=3c/7).
*'''sup''': what [[spaceship]]s can support this wave.


--><noinclude>{{Wave/Doc}}
{{PatternTemplates}}
{{PatternTemplates}}
</noinclude>
</noinclude><!--
<includeonly>
 
Categories
 
--><includeonly>
{{#ifeq:{{NAMESPACE}}|User||
[[Category:Patterns]]
[[Category:Patterns]]
[[Category:Waves]]{{#if: {{{type|}}} | [[Category:{{{type|}}}s]] }}{{#if: {{{c|}}} | {{#ifexpr: {{{c|}}} >= 1000 | [[Category:Patterns with 1000 or more cells|{{{c}}}]] | [[Category:Patterns with {{{c}}} cells|{{{c}}}]] }} }}{{#if: {{{p|}}} | [[Category:Waves with period {{{p}}}]] }}{{#if: {{{dir|}}} | [[Category:{{{dir}}} waves]] }}{{#if: {{{slope|}}} | [[Category:Waves with slope {{{slope}}}]] }}{{#if: {{{s|}}} | [[Category:Waves with speed {{{s}}}]] }}{{#if: {{{h|}}} | {{#iferror: {{#expr: floor({{{h}}})}} | | [[Category:Waves with heat {{#expr: floor({{{h}}})}}]] }} }}{{#if: {{{sup|}}} | [[Category:{{{sup}}}-supported waves]] }}{{#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: {{{m|}}} | [[Category:Waves with mod {{{m|}}}]] }}
[[Category:Waves]]
{{#if: {{{type|}}} | [[Category:{{{type|}}}s]] }}{{#if: {{{p|}}} | [[Category:Waves with period {{{p}}}]] }}{{#if: {{{dir|}}} | [[Category:{{{dir}}} waves]] }}{{#if: {{{slope|}}} | [[Category:Waves with slope {{{slope}}}]] }}{{#if: {{{s|}}} | [[Category:Waves with speed {{{s}}}]] }}{{#if: {{{h|}}} | {{#iferror: {{#expr: floor({{{h}}})}} | | [[Category:Waves with heat {{#expr: floor({{{h}}})}}]] }} }}{{#if: {{{m|}}} | [[Category:Waves with mod {{{m|}}}]] }}
}}
</includeonly>
</includeonly>

Latest revision as of 19:15, 28 April 2023

Wave Name
image
Pattern type Wave
Direction Unknown
Period Unknown
Mod Unknown
Speed Unknown
Heat Unknown
Can be supported by None
Discovered by Unknown
Year of discovery Unknown

This is an infobox template for waves. 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 c/4 wave.

Special parameters

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

  • dir: the direction of the wave (either dir=Orthogonal, dir=Diagonal, or dir=Oblique).
  • slope: the slope of the wave (for dir=Oblique only, e.g. slope=5).
  • h: the heat of the wave (e.g. h=4).
  • p: the period of the wave (e.g. p=28).
  • m: the mod of the wave (e.g. m=14).
  • s: the speed of the wave (e.g. s=3c/7).
  • sup: what spaceships can support this wave.


Pattern templates