Difference between revisions of "Template:Iframe"
Jump to navigation
Jump to search
(hidden widget page has been fixed) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><div class=" | + | <includeonly><div class="mw-collapsible {{{collapsed|mw-collapsed}}}" data-collapsetext="hide ▲" data-expandtext="show ▼">{{{1}}} <div class="mw-collapsible-content">{{#widget:Iframe |
|url={{{2}}} | |url={{{2}}} | ||
|width={{{3}}} | |width={{{3}}} | ||
|height={{{4}}} | |height={{{4}}} | ||
|border={{{5|1}}} | |border={{{5|1}}} | ||
− | }}</div></div></includeonly><noinclude> | + | }}</div></div></includeonly><noinclude>__TOC__ |
− | This template is used to dynamically reveal another web page within a wiki page. It is wrapped in a collapsible frame so that | + | 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]] and http://www.mediawikiwidgets.org/Iframe for information on the wiki extension enabling this feature. |
==Usage== | ==Usage== | ||
− | <big><code><nowiki>{{Iframe|collapsed=collapsed|headline|URI|width|height|border}}</nowiki></code></big> | + | <big><code><nowiki>{{Iframe|collapsed=mw-collapsed|headline|URI|width|height|border}}</nowiki></code></big> |
Required parameters: | Required parameters: | ||
Line 19: | Line 19: | ||
Optional, named parameter: | Optional, named parameter: | ||
# collapsed -- may have one of 2 possible values: | # collapsed -- may have one of 2 possible values: | ||
− | #* collapsed -- (the default) -- hides the content and produces a [show] link after the headline | + | #* mw-collapsed -- (the default) -- hides the content and produces a [show ▼] link after the headline |
− | #* -- (nothing) entered as <big><code>|collapsed=|</code></big> -- the content will show below the header, which will have a [hide] link next to it. | + | #* -- (nothing) entered as <big><code>|collapsed=|</code></big> -- the content will show below the header, which will have a [hide ▲] link next to it. |
Optional, positional parameters: | Optional, positional parameters: |
Latest revision as of 08:56, 22 May 2014
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 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:
- headline - the line of wiki text, for example, a link to remote content or just a header
- URI - the web page to be retrieved.
Optional, named parameter:
- 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:
- width - frame width in pixels
- height - frame height
- 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