Template:EmbedViewer: Difference between revisions
Jump to navigation
Jump to search
Apple Bottom (talk | contribs) New template, for easy embedding of LifeViewers in article bodies. |
Apple Bottom (talk | contribs) Add example |
||
| Line 1: | Line 1: | ||
<includeonly><div class="thumb tnone" style="float: {{{position|right}}}; margin-left: 1em; margin-bottom: 1em {{{style|}}}"><div class="thumbinner"><div class="image">{{LV:Viewer|{{RLE:{{{pname}}}}} {{{viewerconfig|}}}}}</div><div class="thumbcaption">{{{caption|}}} (click to open [[LifeViewer]]).</div></div></div></includeonly><noinclude> | <includeonly><div class="thumb tnone" style="float: {{{position|right}}}; margin-left: 1em; margin-bottom: 1em {{{style|}}}"><div class="thumbinner"><div class="image">{{LV:Viewer|{{RLE:{{{pname}}}}} {{{viewerconfig|}}}}}</div><div class="thumbcaption">{{{caption|}}} (click to open [[LifeViewer]]).</div></div></div></includeonly><noinclude> | ||
This template can be used to embed a floating LifeViewer applet in an article, using an RLE code snippet from the <tt>RLE:</tt> namespace. It takes the following parameters: | {{EmbedViewer | ||
|pname = richsp16 | |||
|viewerconfig = #C [[ THEME 6 GRID GRIDMAJOR 0 THUMBLAUNCH AUTOSTART GPS 4 THUMBSIZE 2 ]] | |||
|caption = [[Rich's p16]] | |||
}} | |||
This template can be used to embed a floating [[Help:LifeViewer|LifeViewer]] applet in an article, using an [[RLE]] code snippet from the <tt>RLE:</tt> namespace. It takes the following parameters: | |||
* position: floating position (default: right). | * position: floating position (default: right). | ||
| Line 7: | Line 12: | ||
* viewerconfig: additional LifeViewer configuration to use. | * viewerconfig: additional LifeViewer configuration to use. | ||
* caption: the caption to use. | * caption: the caption to use. | ||
Example: the viewer at the right was created using the following call: | |||
<nowiki>{{EmbedViewer</nowiki> | |||
<nowiki>|pname = richsp16</nowiki> | |||
<nowiki>|viewerconfig = #C [[ THEME 6 GRID GRIDMAJOR 0 THUMBLAUNCH AUTOSTART GPS 4 THUMBSIZE 2 ]]</nowiki> | |||
<nowiki>|caption = [[Rich's p16]]</nowiki> | |||
<nowiki>}}</nowiki> | |||
</noinclude> | </noinclude> | ||
Revision as of 10:30, 9 October 2016
Rich's p16 (click to open LifeViewer).
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:
- position: floating position (default: right).
- style: additional CSS styling.
- pname: name of the code snippet in the RLE: namespace. Mandatory.
- viewerconfig: additional LifeViewer configuration to use.
- caption: the caption to use.
Example: the viewer at the right was created using the following call:
{{EmbedViewer
|pname = richsp16
|viewerconfig = #C [[ THEME 6 GRID GRIDMAJOR 0 THUMBLAUNCH AUTOSTART GPS 4 THUMBSIZE 2 ]]
|caption = [[Rich's p16]]
}}