Difference between revisions of "Template:Crawler"

From LifeWiki
Jump to navigation Jump to search
(Don't display bounding box if not specified)
(Maintainability tweaks, etc etc pp)
Line 1: Line 1:
<includeonly>{{#if: {{{zip|}}}{{{mc|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}} | | {{requestpatternfile}} }}</includeonly>
+
<!--
<table class="infobox">
+
 
 +
Display "request pattern file" box if no pattern files exist and "nofile" was not passed to suppress this
 +
 
 +
--> <includeonly>{{#if: {{{zip|}}}{{{mc|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}} | | {{requestpatternfile}} }}</includeonly><!--
 +
 
 +
Begin infobox
 +
 
 +
--> <table class="infobox">
 
<tr><td colspan="2" class="infobox_head"> {{{name|Crawler Name}}} </td></tr>
 
<tr><td colspan="2" class="infobox_head"> {{{name|Crawler Name}}} </td></tr>
 
<tr>
 
<tr>
Line 25: Line 32:
 
<tr>
 
<tr>
 
<th> Year of discovery </th>
 
<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|}}}|mc={{{mc|}}}|rle={{{rle|}}}|pname={{{pname|}}}|rulespecial={{{rulespecial|}}}|rulemax={{{rulemax|}}}|rulemin={{{rulemin|}}} }}{{PatternIdentifiers|apgcode={{{apgcode|}}}|niemiecid={{{niemiecid|}}}|pentadecathlonid={{{pentadecathlonid|}}} }} </table>
+
<td> {{{discoveryear|Unknown}}} </td></tr><!--
<noinclude>
+
 
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]].
+
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|}}}  
 +
}}<!--
 +
 
 +
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>
+
 
[[Category:Patterns]]
+
Categories
[[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]]}}
+
--><includeonly>
 +
[[Category:Patterns]] [[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]]}}
 
</includeonly>
 
</includeonly>

Revision as of 11:34, 18 February 2018

Crawler Name
{{{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