Difference between revisions of "Template:Iframe"

From Sugar Labs
Jump to navigation Jump to search
(update collapsible code. See Wiki Team/Guide/Collapsible content.)
Line 8: Line 8:
 
This template is used to dynamically reveal another web page within a wiki page. It is wrapped in a collapsible frame so that the retrieved page can be hidden or revealed through a [show ▼]/[hide ▲] frame on the wiki page.
 
This template is used to dynamically reveal another web page within a wiki page. It is wrapped in a collapsible frame so that the retrieved page can be hidden or revealed through a [show ▼]/[hide ▲] frame on the wiki page.
  
See [[Widget:Iframe]] for information on the wiki extension enabling this feature.
+
See [[Widget:Iframe]] (page temporarily hidden by a bug --[[User:FGrose|FGrose]] ([[User talk:FGrose|talk]]) 12:55, 20 December 2013 (EST)) and http://www.mediawikiwidgets.org/Iframe for information on the wiki extension enabling this feature.
  
 
==Usage==
 
==Usage==

Revision as of 13:55, 20 December 2013

This template is used to dynamically reveal another web page within a wiki page. It is wrapped in a collapsible frame so that the retrieved page can be hidden or revealed through a [show ▼]/[hide ▲] frame on the wiki page.

See Widget:Iframe (page temporarily hidden by a bug --FGrose (talk) 12:55, 20 December 2013 (EST)) and http://www.mediawikiwidgets.org/Iframe for information on the wiki extension enabling this feature.

Usage

{{Iframe|collapsed=mw-collapsed|headline|URI|width|height|border}}

Required parameters:

  1. headline - the line of wiki text, for example, a link to remote content or just a header
  2. URI - the web page to be retrieved.

Optional, named parameter:

  1. collapsed -- may have one of 2 possible values:
    • mw-collapsed -- (the default) -- hides the content and produces a [show ▼] link after the headline
    •               -- (nothing) entered as |collapsed=| -- the content will show below the header, which will have a [hide ▲] link next to it.

Optional, positional parameters:

  1. width - frame width in pixels
  2. height - frame height
  3. border - number - representing
    • 0 - no border
    • 1 - indented border

Example

Using an aliased link as the headline:

{{Iframe|[http://activities.sugarlabs.org Sugar Activity Library] |http://activities.sugarlabs.org
|900|600|1}}

Result