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 |
add an example |
||
| Line 198: | Line 198: | ||
|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 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 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 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 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 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 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]] | ||
Revision as of 18:28, 5 May 2023
- Main article: LifeWiki:LifeViewer cheatsheet for LifeWiki articles
| This article is a stub. You can help LifeWiki by expanding it. |
Examples of galleries.
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.
galleryContainer+galleryItem
Result
| 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 in the following way,
<div class="galleryContainer"> <div class="galleryItem">viewer</div> <div class="galleryItem">viewer</div> <div class="galleryItem">viewer</div> <div class="galleryItem">viewer</div> <div class="galleryItem">viewer</div> </div>
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 [[ THUMBSIZE 4 ZOOM 40 HEIGHT 500 ]]
|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;"
| viewer
| viewer
| viewer
|-
| 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 [[ THUMBSIZE 4 ZOOM 40 HEIGHT 500 ]]
|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 [[ THUMBSIZE 3 ZOOM 30 HEIGHT 500 ]]
|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 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 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 THUMBSIZE 3 ZOOM 48 Y 3/2 GPS 2 AUTOSTART TRACKLOOP 4 1/2 0/2 ]]
|position = center
|caption = [[heavyweight spaceship]]
|apgcode = xq4_27deee6
}}
|}