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)
m Joe Beaudoin Jr. moved page Widgets:Juxtapose to Widget:Juxtapose
Joe Beaudoin Jr. (talk | contribs)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><iframe style="border:none;" class="juxtapose" width="<!--{$width|escape:'html'|default:'500'}-->"height="<!--{$height|escape:'html'|default:500}-->" src="https://cdn.knightlab.com/libs/juxtapose/latest/embed/index.html?uid=<!--{$id|escape:'urlpathinfo'}-->"></iframe></includeonly>
<noinclude>To insert this widget, use the following code:
 
<syntaxhighlight><nowiki>{{#widget:Juxtapose|id=182c39d0-b552-11e9-b9b8-0edaf8f81e27}}</nowiki></syntaxhighlight>
 
== Parameters ==
* '''id''' - juxtapose id (everything after "''uid=''")
* '''style''' - select either ''landscape'', ''portrait'', or ''square''
** If you leave '''style''' blank, use '''height''' and '''width''' define view dimensions. Otherwise, it defaults to 500x500 px.
 
== Sample result ==
; Syntax
<syntaxhighlight><nowiki>{{#widget:Juxtapose|id=069cbd34-e738-11ef-9397-d93975fe8866|style=landscape}}</nowiki></syntaxhighlight>
; Result
{{#widget:Juxtapose|id=069cbd34-e738-11ef-9397-d93975fe8866}}
 
[[Category:Image Widget]]
</noinclude><includeonly>
<!--
{if $style eq 'landscape'}
    {assign var="width" value="1535"}
    {assign var="height" value="1080"}
{elseif $style eq portrait'}
    {assign var=width value="1080"}
    {assign var=height value="1535"}
{elseif $style eq 'square'}
    {assign var=width value="800"}
    {assign var=height value="800"}
{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>

Latest revision as of 23:26, 9 February 2025

To insert this widget, use the following code:

<syntaxhighlight>{{#widget:Juxtapose|id=182c39d0-b552-11e9-b9b8-0edaf8f81e27}}</syntaxhighlight>

Parameters

  • id - juxtapose id (everything after "uid=")
  • style - select either landscape, portrait, or square
    • If you leave style blank, use height and width define view dimensions. Otherwise, it defaults to 500x500 px.

Sample result

Syntax

<syntaxhighlight>{{#widget:Juxtapose|id=069cbd34-e738-11ef-9397-d93975fe8866|style=landscape}}</syntaxhighlight>

Result