Difference between revisions of "User:Sokwe/Sandbox"

From LifeWiki
Jump to navigation Jump to search
m
m
(8 intermediate revisions by the same user not shown)
Line 2: Line 2:
===Normal===
===Normal===
{{User:Sokwe/Template:main_test|spaceship}}
{{User:Sokwe/Template:main_test|spaceship}}
===Alternate Title===
===Alternate title===
{{User:Sokwe/Template:main_test|spaceship|Alternate title}}
{{User:Sokwe/Template:main_test|spaceship|Alternate title}}
===Broken Link===
===Broken link===
{{User:Sokwe/Template:main_test|Broken Link}}
{{User:Sokwe/Template:main_test|Broken Link}}
===Empty Second Parameter===
===Empty second parameter===
{{User:Sokwe/Template:main_test|Spaceship|}}
{{User:Sokwe/Template:main_test|Spaceship|}}
===No Parameters===
===No parameters===
{{User:Sokwe/Template:main_test}}
{{User:Sokwe/Template:main_test}}


==Template information check==
==Template information check==
{{User:Sokwe/Template:info search}}
{{User:Sokwe/Template:info search}}
==Page count==
<code><nowiki>{{User:Sokwe/Template:pagecount|category=Spaceships|template=Spaceship|param=c|value=5[^0-z]}}</nowiki></code>
:{{User:Sokwe/Template:pagecount|category=Spaceships|template=Spaceship|param=c|value=5[^0-z]}}
This is the number of spaceships: {{User:Sokwe/Template:pagecount|category=Spaceships}}<br/>
This is the number of spaceships that have a glider synthesis: {{User:Sokwe/Template:pagecount|category=Spaceships|template=Spaceship|param=synthesisRLE|value=true}}
No results:
{{User:Sokwe/Template:pagecount|category=notcat}}
Number of glider syntheses:
{{#expr:{{#dpl:uses=Template:PatternDownload|namespace=Template|format=,{{,pagecount{{!}}uses=%TITLE%{{!}}template=%TITLE%{{!}}param=synthesisRLE{{!}}value=true}}+,0}}}}
Another (better) method: {{#dpl:categorymatch=Patterns_that_can_be_constructed_with%|resultsheader=%TOTALPAGES%|format={{#if,:,,:|}}}}
==oscillator navigator==
<code><nowiki>{{User:Sokwe/Template:osc_num|p=144}}</nowiki></code>
{{User:Sokwe/Template:osc_num|p=144}}
<code><nowiki>{{User:Sokwe/Template:osc_num2|p=144}}</nowiki></code>
{{User:Sokwe/Template:osc_num2|p=3}}

Revision as of 20:10, 7 June 2009

Main article template test

Normal

Main article: spaceship

Alternate title

Main article: Alternate title

Broken link

Main article: Broken Link

Empty second parameter

Main article: Spaceship

No parameters

you must specify an article title


Template information check

{{#form:{{#input: type = hidden | name = content | value = <h2>{{#request:cat}}s without parameter: {{#request:param}}</h2>{{#dpl:uses=Template:{{#request:cat}}|include={{User:Sokwe/Template:btest}}{{#request:cat}}}:%PAGE%|includenotmatch = /s*{{#request:param}}*/s|format = ,\n*[[,]]|noresultsheader=No patterns match these criteria.}} }}

Search for...
Patterns in:{{#input: type = select| name = cat|
  • Wick
  • Agar
  • StillLifeComponent
  • Fuse
  • UnitCell
  • Wickstretcher
  • MovingBreeder
  • Pattern
  • OscillatorComponent
  • GrowingSpaceship
  • Rotor
  • Crawler
  • Gun
  • Sawtooth
  • Methuselah
  • Puffer
  • Wave
  • Stilllife
  • Reflector
  • Spaceship
  • Oscillator
  • Conduit}}
 Without parameter:{{#input: type = select |name=param|*bx
  • by
  • c
  • dir
  • discoverer
  • discoveryear
  • h
  • l
  • p
  • s
  • animated
  • life105
  • life106
  • plaintext
  • rle
  • synthesis
  • synthesisRLE
  • }}
    {{#input: type = ajax | value = Search | update = search}}

    }}


    Page count

    {{User:Sokwe/Template:pagecount|category=Spaceships|template=Spaceship|param=c|value=5[^0-z]}}

    1

    This is the number of spaceships: 176
    This is the number of spaceships that have a glider synthesis: 40

    No results: 0

    Number of glider syntheses: 456

    Another (better) method: 958

    oscillator navigator

    {{User:Sokwe/Template:osc_num|p=144}}

    Period 40894 - Period 40894 - Period 40894Expression error: Unexpected < operator.Expression error: Unexpected < operator.

    {{User:Sokwe/Template:osc_num2|p=144}}


    Period 40894 - Period 40894 Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{".