Widget:Juxtapose: Difference between revisions
From Battlestar Wiki, the free, open content Battlestar Galactica encyclopedia and episode guide
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<noinclude>To insert this widget, use the following code: | <noinclude>To insert this widget, use the following code: | ||
<syntaxhighlight | <syntaxhighlight>{{#widget:Juxtapose|id=182c39d0-b552-11e9-b9b8-0edaf8f81e27}}</syntaxhighlight> | ||
== Parameters == | == Parameters == | ||
| Line 9: | Line 9: | ||
== Sample result == | == Sample result == | ||
; Syntax | ; Syntax | ||
<syntaxhighlight | <syntaxhighlight>{{#widget:Juxtapose|id=069cbd34-e738-11ef-9397-d93975fe8866|style=landscape}}</syntaxhighlight> | ||
; Result | ; Result | ||
{{#widget:Juxtapose|id=069cbd34-e738-11ef-9397-d93975fe8866}} | {{#widget:Juxtapose|id=069cbd34-e738-11ef-9397-d93975fe8866}} | ||
| Line 21: | Line 21: | ||
{assign var=width value=1080} | {assign var=width value=1080} | ||
{assign var=height value=1535} | {assign var=height value=1535} | ||
{elseif $style eq ' | {elseif $style eq 'square'} | ||
{assign var=width value=800} | {assign var=width value=800} | ||
{assign var=height value=800} | {assign var=height value=800} | ||
{else} | {else} | ||
{* nothing *} | |||
{/if}--><div align="center"><iframe style="border:none;" class="juxtapose" width="<!--{$width|escape:'html'|default:'640'}-->" height="<!--{$height|escape:'html'|default:450}-->" src="https://cdn.knightlab.com/libs/juxtapose/latest/embed/index.html?uid=<!--{$id|escape:'urlpathinfo'}-->"></iframe></div></includeonly> | {/if}--><div align="center"><iframe style="border:none;" class="juxtapose" width="<!--{$width|escape:'html'|default:'640'}-->" height="<!--{$height|escape:'html'|default:450}-->" src="https://cdn.knightlab.com/libs/juxtapose/latest/embed/index.html?uid=<!--{$id|escape:'urlpathinfo'}-->"></iframe></div></includeonly> | ||
Revision as of 23:20, 9 February 2025
To insert this widget, use the following code:
<syntaxhighlight>
</syntaxhighlight>Parameters
- id - juxtapose id (everything after "uid=")
- height and width define view dimensions, defaults to 500x500
Sample result
- Syntax
<syntaxhighlight>
</syntaxhighlight>- Result