User:Sokwe/Template:Image link: Difference between revisions
Jump to navigation
Jump to search
m Removing all content from page |
m testing some template stuff |
||
| Line 1: | Line 1: | ||
{| class="infobox" | |||
|- | |||
| colspan="2" class="infobox_head" | {{{name|Spaceship Name}}} | |||
|- | |||
| colspan="2" class="infobox_img" | <table class="img_border" cellpadding="0"><tr><td>[[Image:{{PAGENAME}}.png|{{PAGENAME}} image]]</td></tr></table> | |||
{{#ifexist: Media:{{PAGENAME}}.gif | {{!}}- | |||
{{!}} colspan="2" class="infobox_animlink" {{!}} [[Media:{{PAGENAME}}.gif|View animated image]] | |||
}} | |||
{{#if: {{{rle|}}} | {{!}}- | |||
{{!}} colspan="2" class="infobox_link" {{!}} [http://www.conwaylife.com?p={{PAGENAME}} Manipulate via Java] | |||
}} | |||
|- | |||
! Pattern type | |||
| [[{{{type}}}]] | |||
|- | |||
! Number of [[cell]]s | |||
| {{#if: {{{c|}}} | {{#ifexpr: {{{c|}}} >= 1000 | [[:Category:Patterns with 1000 or more cells|{{{c}}}]] | [[:Category:Patterns with {{{c}}} cells|{{{c}}}]] }} | Unknown }} | |||
|- | |||
! [[Bounding box]] | |||
| {{#if: {{{bx|}}} | {{{bx}}}×{{{by}}} | Unknown }} | |||
{{#ifeq: {{{type}}} | Still life || {{!}}- | |||
! [[Period]] | |||
| {{#if: {{{p|}}} | [[:Category:{{{type}}}s with period {{{p}}}|{{{p}}}]] | Unknown }}}} | |||
{{#ifeq: {{{type}}} | Puffer | {{!}}- | |||
! Direction | |||
{{!}} {{#ifexpr: {{{dx|0}}}>>0 | {{#ifexpr: {{{dy|0}}}>>0|Diagonal|Orthogonal}}|Unknown}} | |||
{{#ifeq: {{{type}}} | Spaceship | {{!}}- | |||
! Direction | |||
{{!}} {{#ifexpr: {{{dx|0}}}>>0 | {{#ifexpr: {{{dy|0}}}>>0|Diagonal|Orthogonal}}|Unknown}} | |||
{{#ifeq: {{{type}}} | Rake | {{!}}- | |||
! Direction | |||
{{!}} {{#ifexpr: {{{dx|0}}}>>0 | {{#ifexpr: {{{dy|0}}}>>0|Diagonal|Orthogonal}}|Unknown}} | |||
{{#if: {{{dx}}} | {{!}}- | |||
![[Speed]] | |||
{{!}} | |||
{{#ifexpr: {{{dx}}}/{{{p}}}==1/2 |[[:Category:{{{type}}}s with speed 1c/2|1c/2]]|}} | |||
{{#ifexpr: {{{dx}}}/{{{p}}}==1/3 |[[:Category:{{{type}}}s with speed 1c/3|1c/3]]|}} | |||
{{#ifexpr: {{{dx}}}/{{{p}}}==1/4 |[[:Category:{{{type}}}s with speed 1c/4|1c/4]]|}} | |||
{{#ifexpr: {{{dx}}}/{{{p}}}==1/5 |[[:Category:{{{type}}}s with speed 1c/5|1c/5]]|}} | |||
{{#ifexpr: {{{dx}}}/{{{p}}}==1/6 |[[:Category:{{{type}}}s with speed 1c/6|1c/6]]|}} | |||
{{#ifexpr: {{{dx}}}/{{{p}}}==2/5 |[[:Category:{{{type}}}s with speed 2c/5|2c/5]]|}} | |||
{{#ifexpr: {{{dx}}}/{{{p}}}==2/7 |[[:Category:{{{type}}}s with speed 2c/7|2c/7]]|}} | |||
{{#ifexpr: {{{dx}}}/{{{p}}}==1/12 |[[:Category:{{{type}}}s with speed 1c/12|1c/12]]|}} | |||
{{#ifexpr: {{{dx}}}/{{{p}}}==17/45 |[[:Category:{{{type}}}s with speed 17c/45|17c/45]]|}} | |||
|}} | |||
{{#if: {{{h|}}} |{{!}}- | |||
! [[Heat]] | |||
| {{#iferror: {{#expr: floor({{{h}}})}} | {{{h}}} | [[:Category:Spaceships with heat {{#expr: floor({{{h}}})}}|{{{h}}}]] }}|}} | |||
|- | |||
! Discovered by | |||
| {{#if: {{{discoverer|}}} | [[:Category:Patterns found by {{{discoverer|}}}|{{{discoverer|}}}]] | Unknown }} | |||
|- | |||
! Year of discovery | |||
| {{#if: {{{discoveryear|}}} | [[:Category:Patterns found in {{{discoveryear|}}}|{{{discoveryear|}}}]] | Unknown }} | |||
{{PatternDownload|pname={{PAGENAME}}|life105={{{life105|}}}|life106={{{life106|}}}|plaintext={{{plaintext|}}}|rle={{{rle|}}}}} | |||
<noinclude> | |||
Test | |||
</noinclude> | |||
<noinclude> | |||
[[Category:Patterns]] | |||
[[Category:Spaceships]]{{#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:Spaceships with period {{{p}}}]] }}{{#if: {{{s|}}} | [[Category:Spaceships with speed {{{s}}}]] }}{{#if: {{{h|}}} | {{#iferror: {{#expr: floor({{{h}}})}} | | [[Category:Spaceships with heat {{#expr: floor({{{h}}})}}]] }} }}{{#if: {{{discoverer|}}} | [[Category:Patterns found by {{{discoverer|}}}]] }}{{#if: {{{discoveryear|}}} | [[Category:Patterns found in {{{discoveryear|}}}]] }} | |||
</noinclude> | |||
Revision as of 05:27, 22 April 2009
| Spaceship Name | ||||||
| ||||||
| Pattern type | [[{{{type}}}]] | |||||
|---|---|---|---|---|---|---|
| Number of cells | Unknown | |||||
| Bounding box | Unknown | |||||
| Period
{{#ifeq: {{{type}}} | Puffer | |- |
Direction | Expression error: Unexpected > operator.
{{#ifeq: {{{type}}} | Spaceship | |- |
Direction | Expression error: Unexpected > operator.
{{#ifeq: {{{type}}} | Rake | |- |
Direction | Expression error: Unexpected > operator. |
| Speed |
Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{". {{{h}}} | |||||
| Discovered by | Unknown | |||||
| Year of discovery | Unknown
|
|||||