LifeWiki:LifeViewer cheatsheet for LifeWiki articles/Galleries: Difference between revisions
split to subpage from https://conwaylife.com/w/index.php?title=LifeWiki:LifeViewer_cheatsheet_for_LifeWiki_articles&oldid=130175#Multiple_small_patterns |
consistent viewerconfigs |
||
| (8 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{main|LifeWiki:LifeViewer cheatsheet for LifeWiki articles}} | {{main|LifeWiki:LifeViewer cheatsheet for LifeWiki articles}} | ||
{{stub}} | {{stub}} | ||
If a caption below the pattern does not fit on a single line, the vertical size of the box containing the viewer increases. When possible, it is better to keep captions in galleries short, and put more detailed explanations / descriptions of the patterns in the surrounding text. | If a caption below the pattern does not fit on a single line, the vertical size of the box containing the viewer increases. When possible, it is better to keep captions in galleries short, and put more detailed explanations / descriptions of the patterns in the surrounding text. | ||
== | == Using templates == | ||
{{main|Template:gallery item/Doc}} | |||
=== Result === | === Result === | ||
Example of a gallery: | |||
{{gallery top}} | |||
{{gallery item|{{EmbedViewer | |||
|rle = 2bo$2o$2bobobo$4bobo! | |rle = 2bo$2o$2bobobo$4bobo! | ||
|viewerconfig = #C [[ THUMBSIZE 4 ZOOM 40 | |viewerconfig = #C [[ HEIGHT 500 WIDTH 600 THUMBSIZE 4 ZOOM 40 ]] | ||
|position = center | |position = center | ||
|caption = Herschel parent | |caption = Herschel parent | ||
|style = width:100px; | |style = width:100px; | ||
}} | }}}} | ||
{{gallery item|{{EmbedViewer | |||
|rle = 4bobo$obo$o$obo3bo$3b2obo! | |rle = 4bobo$obo$o$obo3bo$3b2obo! | ||
|viewerconfig = #C [[ THUMBSIZE 4 ZOOM 40 | |viewerconfig = #C [[ HEIGHT 500 WIDTH 600 THUMBSIZE 4 ZOOM 40 ]] | ||
|position = center | |position = center | ||
|caption = Herschel grandparent | |caption = Herschel grandparent | ||
|style = width:100px; | |style = width:100px; | ||
}} | }}}} | ||
{{gallery item|{{EmbedViewer | |||
|rle = 4b2o$b2ob3o$3ob2o$b2ob3o$5b2o! | |rle = 4b2o$b2ob3o$3ob2o$b2ob3o$5b2o! | ||
|viewerconfig = #C [[ THUMBSIZE 4 ZOOM 40 | |viewerconfig = #C [[ HEIGHT 500 WIDTH 600 THUMBSIZE 4 ZOOM 40 ]] | ||
|position = center | |position = center | ||
|caption = Herschel great-grandparent | |caption = Herschel great-grandparent | ||
|style = width:100px; | |style = width:100px; | ||
}} | }}}} | ||
{{gallery item|{{EmbedViewer | |||
|rle = x = 3, y = 4, rule = B3/S23 | |rle = x = 3, y = 4, rule = B3/S23 | ||
o$2o$b2o$2o! | o$2o$b2o$2o! | ||
|viewerconfig = #C [[ THUMBSIZE 4 ZOOM 40 | |viewerconfig = #C [[ HEIGHT 500 WIDTH 600 THUMBSIZE 4 ZOOM 40 ]] | ||
|position = center | |position = center | ||
|caption = B-heptomino | |caption = B-heptomino | ||
|style = width:100px; | |style = width:100px; | ||
}} | }}}} | ||
{{gallery item|{{EmbedViewer | |||
|rle = x = 3, y = 5, rule = B3/S23 | |rle = x = 3, y = 5, rule = B3/S23 | ||
o$2o$b2o$bo$o! | o$2o$b2o$bo$o! | ||
|viewerconfig = #C [[ THUMBSIZE 4 ZOOM 40 | |viewerconfig = #C [[ HEIGHT 500 WIDTH 600 THUMBSIZE 4 ZOOM 40 ]] | ||
|position = center | |position = center | ||
|caption = B-heptaplet | |caption = B-heptaplet | ||
|style = width:100px; | |style = width:100px; | ||
}} | }}}} | ||
{{gallery bottom}} | |||
===Explanation=== | ===Explanation=== | ||
The above example is formatted in the following way, | The above example is formatted using templates {{tl|gallery item}}, {{tl|gallery top}}, {{tl|gallery bottom}} in the following way, | ||
<pre> | <pre>Example of a gallery: | ||
{{gallery top}} | |||
{{gallery item|viewer}} | |||
{{gallery item|viewer}} | |||
{{gallery item|viewer}} | |||
{{gallery item|viewer}} | |||
{{gallery item|viewer}} | |||
{{gallery bottom}} | |||
</pre> | </pre> | ||
| Line 67: | Line 69: | ||
<pre>{{EmbedViewer | <pre>{{EmbedViewer | ||
|rle = (paste RLE here) | |rle = (paste RLE here) | ||
|viewerconfig = #C [[ THUMBSIZE 4 ZOOM 40 | |viewerconfig = #C [[ HEIGHT 500 WIDTH 600 THUMBSIZE 4 ZOOM 40 ]] | ||
|position = center | |position = center | ||
|caption = (displayed caption) | |caption = (displayed caption) | ||
| Line 78: | Line 80: | ||
{|style="margin:auto;width:300px;" | {|style="margin:auto;width:300px;" | ||
|- style="vertical-align:top;" | |||
|{{EmbedViewer | |{{EmbedViewer | ||
|rle = 2bo$2o$2bobobo$4bobo! | |rle = 2bo$2o$2bobobo$4bobo! | ||
|viewerconfig = #C [[ THUMBSIZE 4 ZOOM 40 | |viewerconfig = #C [[ HEIGHT 500 WIDTH 600 THUMBSIZE 4 ZOOM 40 ]] | ||
|position = center | |position = center | ||
|caption = Herschel parent | |caption = Herschel parent | ||
| Line 86: | Line 89: | ||
|{{EmbedViewer | |{{EmbedViewer | ||
|rle = 4bobo$obo$o$obo3bo$3b2obo! | |rle = 4bobo$obo$o$obo3bo$3b2obo! | ||
|viewerconfig = #C [[ THUMBSIZE 4 ZOOM 40 | |viewerconfig = #C [[ HEIGHT 500 WIDTH 600 THUMBSIZE 4 ZOOM 40 ]] | ||
|position = center | |position = center | ||
|caption = Herschel grandparent | |caption = Herschel grandparent | ||
| Line 92: | Line 95: | ||
|{{EmbedViewer | |{{EmbedViewer | ||
|rle = 4b2o$b2ob3o$3ob2o$b2ob3o$5b2o! | |rle = 4b2o$b2ob3o$3ob2o$b2ob3o$5b2o! | ||
|viewerconfig = #C [[ THUMBSIZE 4 ZOOM 40 | |viewerconfig = #C [[ HEIGHT 500 WIDTH 600 THUMBSIZE 4 ZOOM 40 ]] | ||
|position = center | |position = center | ||
|caption = Herschel great-grandparent | |caption = Herschel great-grandparent | ||
}} | }} | ||
|- | |- style="vertical-align:top;" | ||
|{{EmbedViewer | |{{EmbedViewer | ||
|rle = x = 3, y = 4, rule = B3/S23 | |rle = x = 3, y = 4, rule = B3/S23 | ||
o$2o$b2o$2o! | o$2o$b2o$2o! | ||
|viewerconfig = #C [[ THUMBSIZE 4 ZOOM 40 | |viewerconfig = #C [[ HEIGHT 500 WIDTH 600 THUMBSIZE 4 ZOOM 40 ]] | ||
|position = center | |position = center | ||
|caption = B-heptomino | |caption = B-heptomino | ||
| Line 107: | Line 110: | ||
|rle = x = 3, y = 5, rule = B3/S23 | |rle = x = 3, y = 5, rule = B3/S23 | ||
o$2o$b2o$bo$o! | o$2o$b2o$bo$o! | ||
|viewerconfig = #C [[ THUMBSIZE 4 ZOOM 40 | |viewerconfig = #C [[ HEIGHT 500 WIDTH 600 THUMBSIZE 4 ZOOM 40 ]] | ||
|position = center | |position = center | ||
|caption = B-heptaplet | |caption = B-heptaplet | ||
| Line 119: | Line 122: | ||
<pre>{|style="margin:auto;width:300px;" | <pre>{|style="margin:auto;width:300px;" | ||
| viewer | |- style="vertical-align:top;" | ||
| viewer | |viewer | ||
| viewer | |viewer | ||
|- | |viewer | ||
| viewer | |- style="vertical-align:top;" | ||
| viewer | |viewer | ||
|viewer | |||
|}</pre> | |}</pre> | ||
| Line 132: | Line 136: | ||
<pre>{{EmbedViewer | <pre>{{EmbedViewer | ||
|rle = (paste RLE here) | |rle = (paste RLE here) | ||
|viewerconfig = #C [[ THUMBSIZE 4 ZOOM 40 | |viewerconfig = #C [[ HEIGHT 500 WIDTH 600 THUMBSIZE 4 ZOOM 40 ]] | ||
|position = center | |position = center | ||
|caption = (displayed caption) | |caption = (displayed caption) | ||
| Line 145: | Line 149: | ||
|rle = x = 11, y = 11, rule = B3/S23 | |rle = x = 11, y = 11, rule = B3/S23 | ||
8bo$3b2o4b2o$b3ob2o2b2o$o8bo$bob2o$bobo3bobo$6b2obo$bo8bo$2o2b2ob3o$2o4b2o$2bo! | 8bo$3b2o4b2o$b3ob2o2b2o$o8bo$bob2o$bobo3bobo$6b2obo$bo8bo$2o2b2ob3o$2o4b2o$2bo! | ||
|viewerconfig = #C [[ THUMBSIZE 3 ZOOM 30 | |viewerconfig = #C [[ HEIGHT 500 WIDTH 600 THUMBSIZE 3 ZOOM 30 ]] | ||
|position = center | |position = center | ||
|caption = [[Meatball]] | |caption = [[Meatball]] | ||
| Line 153: | Line 157: | ||
|rle = x = 10, y = 5, rule = B3/S23 | |rle = x = 10, y = 5, rule = B3/S23 | ||
4b2o$2obo2bob2o$o4bo2b2o$4bo$bobo! | 4b2o$2obo2bob2o$o4bo2b2o$4bo$bobo! | ||
|viewerconfig = #C [[ THUMBSIZE 3 ZOOM 30 | |viewerconfig = #C [[ HEIGHT 500 WIDTH 600 THUMBSIZE 3 ZOOM 30 ]] | ||
|position = center | |position = center | ||
|caption = [[Blocker]] | |caption = [[Blocker]] | ||
| Line 162: | Line 166: | ||
|rle = x = 9, y = 9, rule = B3/S23 | |rle = x = 9, y = 9, rule = B3/S23 | ||
6ob2o$6ob2o$7b2o$2o5b2o$2o5b2o$2o5b2o$2o$2ob6o$2ob6o! | 6ob2o$6ob2o$7b2o$2o5b2o$2o5b2o$2o5b2o$2o$2ob6o$2ob6o! | ||
|viewerconfig = #C [[ THUMBSIZE 3 ZOOM 30 | |viewerconfig = #C [[ HEIGHT 500 WIDTH 600 THUMBSIZE 3 ZOOM 30 ]] | ||
|position = center | |position = center | ||
|caption = [[Kok's galaxy]] | |caption = [[Kok's galaxy]] | ||
| Line 170: | Line 174: | ||
|rle = x = 12, y = 6, rule = B3/S23 | |rle = x = 12, y = 6, rule = B3/S23 | ||
2o2bobo$2o2bo$4bo2bo$5b2o$6b2o2b2o$10b2o! | 2o2bobo$2o2bo$4bo2bo$5b2o$6b2o2b2o$10b2o! | ||
|viewerconfig = #C [[ THUMBSIZE 3 ZOOM 30 | |viewerconfig = #C [[ HEIGHT 500 WIDTH 600 THUMBSIZE 3 ZOOM 30 ]] | ||
|position = center | |position = center | ||
|caption = [[Coe's p8]] | |caption = [[Coe's p8]] | ||
| Line 193: | Line 197: | ||
<pre>{{EmbedViewer | <pre>{{EmbedViewer | ||
|rle = (paste RLE here) | |rle = (paste RLE here) | ||
|viewerconfig = #C [[ THUMBSIZE 3 ZOOM 30 | |viewerconfig = #C [[ HEIGHT 500 WIDTH 600 THUMBSIZE 3 ZOOM 30 ]] | ||
|position = center | |position = center | ||
|caption = (displayed caption) | |caption = (displayed caption) | ||
|apgcode = (apgcode) | |apgcode = (apgcode) | ||
}}</pre> | }}</pre> | ||
== Viewers on the right == | |||
One or several viewers can be shown on the right side: | |||
{|style="float:right;margin-left:16px;margin-bottom:8px;width:300px;" | |||
|{{EmbedViewer | |||
|rle = x = 5, y = 4, rule = B3/S23 | |||
o2bo$4bo$o3bo$b4o! | |||
|viewerconfig = #C [[ HEIGHT 450 WIDTH 600 THUMBSIZE 3 ZOOM 48 Y 1/2 GPS 2 AUTOSTART TRACKLOOP 4 1/2 0/2 ]] | |||
|position = center | |||
|caption = [[lightweight spaceship]] | |||
|apgcode = xq4_6frc | |||
}} | |||
|- | |||
|{{EmbedViewer | |||
|rle = x = 6, y = 5, rule = B3/S23 | |||
2bo$o3bo$5bo$o4bo$b5o! | |||
|viewerconfig = #C [[ HEIGHT 450 WIDTH 600 THUMBSIZE 3 ZOOM 48 Y 3/2 GPS 2 AUTOSTART TRACKLOOP 4 1/2 0/2 ]] | |||
|position = center | |||
|caption = [[middleweight spaceship]] | |||
|apgcode = xq4_27dee6 | |||
}} | |||
|- | |||
|{{EmbedViewer | |||
|rle = x = 7, y = 5, rule = B3/S23 | |||
2b2o$o4bo$6bo$o5bo$b6o! | |||
|viewerconfig = #C [[ HEIGHT 450 WIDTH 600 THUMBSIZE 3 ZOOM 48 Y 3/2 GPS 2 AUTOSTART TRACKLOOP 4 1/2 0/2 ]] | |||
|position = center | |||
|caption = [[heavyweight spaceship]] | |||
|apgcode = xq4_27deee6 | |||
}} | |||
|} | |||
<pre>{|style="float:right;margin-left:16px;margin-bottom:8px;width:300px;" | |||
|{{EmbedViewer | |||
|rle = x = 5, y = 4, rule = B3/S23 | |||
o2bo$4bo$o3bo$b4o! | |||
|viewerconfig = #C [[ HEIGHT 450 WIDTH 600 THUMBSIZE 3 ZOOM 48 Y 1/2 GPS 2 AUTOSTART TRACKLOOP 4 1/2 0/2 ]] | |||
|position = center | |||
|caption = [[lightweight spaceship]] | |||
|apgcode = xq4_6frc | |||
}} | |||
|- | |||
|{{EmbedViewer | |||
|rle = x = 6, y = 5, rule = B3/S23 | |||
2bo$o3bo$5bo$o4bo$b5o! | |||
|viewerconfig = #C [[ HEIGHT 450 WIDTH 600 THUMBSIZE 3 ZOOM 48 Y 3/2 GPS 2 AUTOSTART TRACKLOOP 4 1/2 0/2 ]] | |||
|position = center | |||
|caption = [[middleweight spaceship]] | |||
|apgcode = xq4_27dee6 | |||
}} | |||
|- | |||
|{{EmbedViewer | |||
|rle = x = 7, y = 5, rule = B3/S23 | |||
2b2o$o4bo$6bo$o5bo$b6o! | |||
|viewerconfig = #C [[ HEIGHT 450 WIDTH 600 THUMBSIZE 3 ZOOM 48 Y 3/2 GPS 2 AUTOSTART TRACKLOOP 4 1/2 0/2 ]] | |||
|position = center | |||
|caption = [[heavyweight spaceship]] | |||
|apgcode = xq4_27deee6 | |||
}} | |||
|}</pre> | |||
[[Category:Tutorials]] | [[Category:Tutorials]] | ||
Latest revision as of 02:20, 17 September 2023
- Main article: LifeWiki:LifeViewer cheatsheet for LifeWiki articles
| This article is a stub. You can help LifeWiki by expanding it. |
If a caption below the pattern does not fit on a single line, the vertical size of the box containing the viewer increases. When possible, it is better to keep captions in galleries short, and put more detailed explanations / descriptions of the patterns in the surrounding text.
Using templates
- Main article: Template:gallery item/Doc
Result
Example of a gallery:
| Herschel parent (click above to open LifeViewer) |
| Herschel grandparent (click above to open LifeViewer) |
| Herschel great-grandparent (click above to open LifeViewer) |
| B-heptomino (click above to open LifeViewer) |
| B-heptaplet (click above to open LifeViewer) |
Explanation
The above example is formatted using templates {{gallery item}}, {{gallery top}}, {{gallery bottom}} in the following way,
Example of a gallery:
{{gallery top}}
{{gallery item|viewer}}
{{gallery item|viewer}}
{{gallery item|viewer}}
{{gallery item|viewer}}
{{gallery item|viewer}}
{{gallery bottom}}
where each occurrence of "viewer" is replaced by an invocation of the {{EmbedViewer}} template. Viewers in this example are formatted as follows:
{{EmbedViewer
|rle = (paste RLE here)
|viewerconfig = #C [[ HEIGHT 500 WIDTH 600 THUMBSIZE 4 ZOOM 40 ]]
|position = center
|caption = (displayed caption)
|style = width:100px;
}}
Three columns
Result
|
|
| ||||||
|
|
Explanation
- See also: Help:Tables
The above example is formatted as a table,
{|style="margin:auto;width:300px;"
|- style="vertical-align:top;"
|viewer
|viewer
|viewer
|- style="vertical-align:top;"
|viewer
|viewer
|}
where each occurrence of "viewer" is replaced by an invocation of the {{EmbedViewer}} template. Viewers in this example are formatted as follows:
{{EmbedViewer
|rle = (paste RLE here)
|viewerconfig = #C [[ HEIGHT 500 WIDTH 600 THUMBSIZE 4 ZOOM 40 ]]
|position = center
|caption = (displayed caption)
}}
An example with two columns and apgcodes
Result
|
| ||||
|
|
Explanation
Table:
{|style="margin:auto;width:300px;"
|viewer
|viewer
|-
|viewer
|viewer
|}
Viewers:
{{EmbedViewer
|rle = (paste RLE here)
|viewerconfig = #C [[ HEIGHT 500 WIDTH 600 THUMBSIZE 3 ZOOM 30 ]]
|position = center
|caption = (displayed caption)
|apgcode = (apgcode)
}}
Viewers on the right
One or several viewers can be shown on the right side:
| ||
| ||
|
{|style="float:right;margin-left:16px;margin-bottom:8px;width:300px;"
|{{EmbedViewer
|rle = x = 5, y = 4, rule = B3/S23
o2bo$4bo$o3bo$b4o!
|viewerconfig = #C [[ HEIGHT 450 WIDTH 600 THUMBSIZE 3 ZOOM 48 Y 1/2 GPS 2 AUTOSTART TRACKLOOP 4 1/2 0/2 ]]
|position = center
|caption = [[lightweight spaceship]]
|apgcode = xq4_6frc
}}
|-
|{{EmbedViewer
|rle = x = 6, y = 5, rule = B3/S23
2bo$o3bo$5bo$o4bo$b5o!
|viewerconfig = #C [[ HEIGHT 450 WIDTH 600 THUMBSIZE 3 ZOOM 48 Y 3/2 GPS 2 AUTOSTART TRACKLOOP 4 1/2 0/2 ]]
|position = center
|caption = [[middleweight spaceship]]
|apgcode = xq4_27dee6
}}
|-
|{{EmbedViewer
|rle = x = 7, y = 5, rule = B3/S23
2b2o$o4bo$6bo$o5bo$b6o!
|viewerconfig = #C [[ HEIGHT 450 WIDTH 600 THUMBSIZE 3 ZOOM 48 Y 3/2 GPS 2 AUTOSTART TRACKLOOP 4 1/2 0/2 ]]
|position = center
|caption = [[heavyweight spaceship]]
|apgcode = xq4_27deee6
}}
|}