Template:EmbedViewer: Difference between revisions
Jump to navigation
Jump to search
Apple Bottom (talk | contribs) Undo that; CSS is giving me a headache. |
Apple Bottom (talk | contribs) Let's see if we can make this template a bit more versatile. |
||
| Line 1: | Line 1: | ||
<includeonly><div class="thumb tnone" style="float: {{{ | <includeonly>{{#switch: {{{position|right}}} | ||
| right = <div class="thumb tnone" style="float: right; {{{style|margin-left: 1em; margin-bottom: 1em;}}}"><div class="thumbinner"><div class="image">{{LV:Viewer|{{{rle|{{RLE:{{{pname}}}}}}}} {{{viewerconfig|}}}}}</div><div class="thumbcaption">{{{caption|}}} (click to open [[LifeViewer]])</div></div></div> | |||
| left = <div class="thumb tnone" style="float: left; {{{style|margin-right: 1em; margin-bottom: 1em;}}}"><div class="thumbinner"><div class="image">{{LV:Viewer|{{{rle|{{RLE:{{{pname}}}}}}}} {{{viewerconfig|}}}}}</div><div class="thumbcaption">{{{caption|}}} (click to open [[LifeViewer]])</div></div></div> | |||
| center = <table style="margin-left: auto; margin-right: auto; width: fit-content"><tr><td align="center">{{LV:Viewer|{{{rle|{{RLE:{{{pname}}}}}}}} {{{viewerconfig|}}}</td></tr><tr><td align="center">{{{caption|}}} (click to open [[LifeViewer]])</td></tr></table> | |||
}}</includeonly><noinclude> | |||
{{EmbedViewer | {{EmbedViewer | ||
|pname = richsp16 | |pname = richsp16 | ||
Revision as of 19:42, 13 August 2017
{{#switch: right
| right =
Rich's p16 (click to open LifeViewer)
| left =
Rich's p16 (click to open LifeViewer)
| center =
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:
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]]
}}
|