Difference between revisions of "Template:Crawler"

From LifeWiki
Jump to navigation Jump to search
(Support up to 5 discoverers.)
(Links)
 
(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|Crawler 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      = Crawler
<tr>
+
|defaultconfig = crawler
 +
|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> Pattern type </th>
 
<th> Pattern type </th>
<td> [[Crawler]] </td></tr>
+
<td> [[Crawler]] </td></tr><!--
 +
 
 +
Display bounding box
 +
 
 +
-->{{PatternPopulationAndBoundingBox
 +
|bx      = {{{bx|}}}
 +
|by      = {{{by|}}}
 +
}}<!--
 +
 
 +
Display an infobox divider
 +
 
 +
-->{{InfoboxDivider}}
 
<tr>
 
<tr>
 
<th> [[Speed]] </th>
 
<th> [[Speed]] </th>
<td> {{{s|Unknown}}} </td></tr>
+
<td> {{#if: {{{s|}}} | [[:Category:Crawlers with speed {{{s}}}|{{{s}}}]] | Unknown }} </td></tr>
 
<tr>
 
<tr>
 
<th> [[Direction]] </th>
 
<th> [[Direction]] </th>
<td> {{{d|Unknown}}} </td></tr>
+
<td> {{#if: {{{d|}}} | [[:Category:{{{d}}} crawlers|{{{d}}}]] | Unknown }} </td></tr>
 
<tr>
 
<tr>
 
<th> Crawls on </th>
 
<th> Crawls on </th>
<td> {{{v|Unknown}}} </td></tr>
+
<td> {{#if: {{{v|}}} | [[:Category:{{{v}}}-crawling crawlers|{{{v}}}]] | Unknown }} </td></tr><!--
<tr>
+
 
<th> [[Bounding box]] </th>
+
Display an infobox divider
<td> {{#if: {{{bx|}}} | {{{bx}}}&times;{{{by}}} | Unknown }} </td></tr>
+
 
<tr>
+
-->{{InfoboxDivider}}<!--
<th> Discovered by </th>
+
 
<td> {{#if: {{{discoverer|}}} | [[{{{discoverer|}}}]] | Unknown }}{{#if: {{{discoverer2|}}} | <br />[[{{{discoverer2|}}}]] | }}{{#if: {{{discoverer3|}}} | <br />[[{{{discoverer3|}}}]] | }}{{#if: {{{discoverer4|}}} | <br />[[{{{discoverer4|}}}]] | }}{{#if: {{{discoverer5|}}} | <br />[[{{{discoverer5|}}}]] | }} </td></tr>
+
Display discoverers and year of discovery
<tr>
+
 
<th> Year of discovery </th>
+
-->{{PatternDiscovery
<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>
+
|discoverer   = {{{discoverer|}}}
<noinclude>
+
|discoverer2 = {{{discoverer2|}}}
This is an infobox template for '''[[crawler]]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 [[17c/45 reaction]].
+
|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.
 
*'''s''': the speed of the crawler (e.g. p=17c/45).
 
*'''d''': the direction of the crawler (e.g. d=orthogonal).
 
*'''v''': what the crawler crawls on (e.g. v=blinker).
 
  
 +
--><noinclude>{{Crawler/Doc}}
 
{{PatternTemplates}}
 
{{PatternTemplates}}
</noinclude>
+
</noinclude><!--
<includeonly>
+
 
 +
Categories
 +
 
 +
--><includeonly>
 +
{{#ifeq:{{NAMESPACE}}|User||
 
[[Category:Patterns]]
 
[[Category:Patterns]]
 
[[Category:Crawlers]]
 
[[Category:Crawlers]]
{{#if: {{{discoveryear|}}} | [[Category:Patterns found in {{{discoveryear|}}}]] }} {{#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:{{{s|}}}|[[Category:Crawlers with speed {{{s|}}}]]|[[Category:Crawlers with unknown speed]]}}{{#if:{{{d|}}}|[[Category:{{{d|}}} crawlers]]}}{{#if:{{{v|}}}|[[Category:{{{v|}}}-crawling crawlers]]}}
+
{{#if: {{{s|}}} | [[Category:Crawlers with speed {{{s|}}}]] | [[Category:Crawlers with unknown speed]] }}{{#if: {{{d|}}} |[[Category:{{{d|}}} crawlers]] }}{{#if: {{{v|}}} | [[Category:{{{v|}}}-crawling crawlers]] }}
 +
}}
 
</includeonly>
 
</includeonly>

Latest revision as of 03:25, 11 July 2019

Crawler Name
image
Pattern type Crawler
Speed Unknown
Direction Unknown
Crawls on Unknown
Discovered by Unknown
Year of discovery Unknown

This is an infobox template for crawlers. 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 17c/45 reaction.

Special parameters

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

  • s: the speed of the crawler (e.g. p=17c/45).
  • d: the direction of the crawler (e.g. d=orthogonal).
  • v: what the crawler crawls on (e.g. v=blinker).

Pattern templates