Template:EmbedViewer/Doc: Difference between revisions
Jump to navigation
Jump to search
extract template documentation |
update, formatting |
||
| Line 4: | Line 4: | ||
|caption = [[Rich's p16]] | |caption = [[Rich's p16]] | ||
}} | }} | ||
The {{tl|EmbedViewer}} template can be used to embed a floating [[LifeViewer]] applet in an article, using an [[RLE]] code snippet (either from the <tt>RLE:</tt> namespace, or specified directly as a parameter). | |||
== Parameters == | |||
The template takes the following parameters: | |||
Pattern: '''one''' of: | Pattern: '''one''' of: | ||
* rle: RLE snippet. | * rle: RLE snippet. | ||
* pname: name of the RLE snippet in the <tt>RLE:</tt> namespace (without the <tt>RLE:</tt> prefix). | * pname: name of the RLE snippet stored in the <tt>RLE:</tt> namespace (without the <tt>RLE:</tt> prefix). | ||
Other: | Other: | ||
| Line 22: | Line 25: | ||
** This may include waypoint animation commands, theme or color settings, labels, arrows or polylines, etc. | ** This may include waypoint animation commands, theme or color settings, labels, arrows or polylines, etc. | ||
** See LifeViewer Help for details - click on LifeViewer, type '''h''', then choose '''Scripts'''. | ** See LifeViewer Help for details - click on LifeViewer, type '''h''', then choose '''Scripts'''. | ||
** To prevent cell distortion, even integer values may be preferable for ZOOM parameters.<ref>See the discussion for more details:{{br}}{{LinkForumThread|p=153028|title=Re: Pattern viewer for forum threads|format=ref}}</ref> | ** To prevent cell distortion, even integer values may be preferable for ZOOM parameters assuming THUMBSIZE 2 (more generally, multiples of THUMBSIZE).<ref>See the discussion for more details:{{br}}{{LinkForumThread|p=153028|title=Re: Pattern viewer for forum threads|format=ref}}</ref> | ||
* caption: the caption to use. | * caption: the caption to use. | ||
* apgcode: adds a [[Catagolue]] link at the bottom to a specific apgcode. | * apgcode: adds a [[Catagolue]] link at the bottom to a specific apgcode. | ||
Revision as of 00:42, 25 April 2023
The {{EmbedViewer}} template can be used to embed a floating LifeViewer applet in an article, using an RLE code snippet (either from the RLE: namespace, or specified directly as a parameter).
Parameters
The template takes the following parameters:
Pattern: one of:
- rle: RLE snippet.
- pname: name of the RLE snippet stored in the RLE: namespace (without the RLE: prefix).
Other:
- position: position.
- Possible values are left (floating left), right (floating right) and center. Default: right.
- style: additional CSS styling. Default:
- position = right: margin-left: 1em; margin-bottom: 1em
- position = left: margin-right: 1em; margin-bottom: 1em
- position = center: (none)
- viewerconfig: additional LifeViewer configuration to use.
- This may include waypoint animation commands, theme or color settings, labels, arrows or polylines, etc.
- See LifeViewer Help for details - click on LifeViewer, type h, then choose Scripts.
- To prevent cell distortion, even integer values may be preferable for ZOOM parameters assuming THUMBSIZE 2 (more generally, multiples of THUMBSIZE).[1]
- caption: the caption to use.
- apgcode: adds a Catagolue link at the bottom to a specific apgcode.
- Defaults to B3/S23; for other rules, append a slash followed by the rulestring e.g. xq48_07z8ca7zy1e531/b36s23 for the HighLife bomber
Example: the viewer at the right was created using the following call:
{{EmbedViewer
|pname = richsp16
|viewerconfig = #C [[ AUTOSTART GPS 4 THUMBSIZE 2 ]]
|caption = [[Rich's p16]]
}}
It could also have been created directly without defining the "richsp16" pname and adding the RLE to the RLE:richsp16 article, as follows:
{{EmbedViewer
|rle = 3bo5bo$2b3o3b3o$bobobobobobo$2obobobobob2o$ob4ob4obo$5o3b5o3$4b2ob2o$
3bobobobo$4bo3bo!
|position = right
|viewerconfig = #C [[ AUTOSTART GPS 4 THUMBSIZE 2 ]]
|caption = [[Rich's p16]]
}}
References
- ↑ See the discussion for more details:
Re: Pattern viewer for forum threads (discussion thread) at the ConwayLife.com forums