Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Widget:Juxtapose: Difference between revisions

From Battlestar Wiki, the free, open content Battlestar Galactica encyclopedia and episode guide
Joe Beaudoin Jr. (talk | contribs)
No edit summary
Joe Beaudoin Jr. (talk | contribs)
No edit summary
Line 15: Line 15:
[[Category:Image Widget]]
[[Category:Image Widget]]
</noinclude><includeonly>
</noinclude><includeonly>
<!--{if $style eq 'landscape'}
<!--
     {assign var=width value=1535}
{if $style eq 'landscape'}
     {assign var=height value=1080}
     {assign var="width" value="1535"}
{elseif $style eq 'portrait'}
     {assign var="height" value="1080"}
     {assign var=width value=1080}
{elseif $style eq portrait'}
     {assign var=height value=1535}
     {assign var=width value="1080"}
     {assign var=height value="1535"}
{elseif $style eq 'square'}
{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 *}
     {* 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:23, 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