Template:EmbedViewer: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
add second example using direct "rle" parameter, plus some notes about LifeViewer |
||
| Line 31: | Line 31: | ||
** <tt>position = center</tt>: (none) | ** <tt>position = center</tt>: (none) | ||
* viewerconfig: additional LifeViewer configuration to use. | * 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'''. | |||
* caption: the caption to use. | * caption: the caption to use. | ||
| Line 37: | Line 39: | ||
<nowiki>{{EmbedViewer</nowiki> | <nowiki>{{EmbedViewer</nowiki> | ||
<nowiki>|pname = richsp16</nowiki> | <nowiki>|pname = richsp16</nowiki> | ||
<nowiki>|viewerconfig = #C [[ AUTOSTART GPS 4 THUMBSIZE 2 ]]</nowiki> | |||
<nowiki>|caption = [[Rich's p16]]</nowiki> | |||
<nowiki>}}</nowiki> | |||
It could also have been created directly without defining the "richsp16" pname and adding the RLE to the [[RLE:richsp16]] article, as follows: | |||
<nowiki>{{EmbedViewer</nowiki> | |||
<nowiki>|rle = 3bo5bo$2b3o3b3o$bobobobobobo$2obobobobob2o$ob4ob4obo$5o3b5o3$4b2ob2o$</nowiki> | |||
<nowiki> 3bobobobo$4bo3bo!</nowiki> | |||
<nowiki>|position = right</nowiki> | |||
<nowiki>|viewerconfig = #C [[ AUTOSTART GPS 4 THUMBSIZE 2 ]]</nowiki> | <nowiki>|viewerconfig = #C [[ AUTOSTART GPS 4 THUMBSIZE 2 ]]</nowiki> | ||
<nowiki>|caption = [[Rich's p16]]</nowiki> | <nowiki>|caption = [[Rich's p16]]</nowiki> | ||
Revision as of 22:29, 5 April 2019
This template can be used to embed a floating LifeViewer applet in an article, using an RLE code snippet from the RLE: namespace. It takes the following parameters:
Pattern: one of:
- rle: RLE snippet.
- pname: name of the RLE snippet 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.
- caption: the caption to use.
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]]
}}