Jump to content

Help:Widgets/Iframe

From UBC Wiki

This widget allows you to add any multimedia content with embed code to UBC Wiki.

Get an embed code from the multimedia content

You can get the URL from the embed code by copying the part that appears after src="…" (or url="…", depending on the code).

Using Visual Editor

  1. Go to Insert>Template
  2. type "iframe"
  3. In the "URL", add the embed URL (or source) of the multimedia content
  4. Insert the Widget and save page.

Using Wikitext

To insert this widget, use the following code:

{{#widget:Iframe
|url=https://open.spotify.com/embed/track/4eO5rdg0DuNFrchGcHSc0s?utm_source=generator
|width=410
|height=342
|border=0
}}

Parameters

  • url - URL of page being inserted
  • width - width of the iframe (default is 400)
  • height - height of the iframe (default is 300)
  • border - border width (default is 1)


Sample result