Difference between revisions of "Template:Show"

From Sugar Labs
Jump to navigation Jump to search
(Created page with '<includeonly><div class="NavFrame {{{collapsed|collapsed}}}"><div class="NavHead">{{{1}}} </div><div class="NavContent">{{{2}}}</div></div></includeonly> This template produces …')
 
Line 4: Line 4:
  
 
==Usage==
 
==Usage==
<big><code><nowiki>{{show|collapsed=collapsed|headline|content}}</nowiki></code></big>
+
<big><code><nowiki>{{Show|collapsed=collapsed|headline|content}}</nowiki></code></big>
  
 
Required parameters:
 
Required parameters:
Line 18: Line 18:
  
 
<big>
 
<big>
<pre>{{show|[http://activities.sugarlabs.org Sugar Activity Library]|{{#widget:Iframe
+
<pre>{{Show|[http://activities.sugarlabs.org Sugar Activity Library]|{{#widget:Iframe
 
|url=http://activities.sugarlabs.org
 
|url=http://activities.sugarlabs.org
 
|width=900
 
|width=900
Line 25: Line 25:
 
}}}}
 
}}}}
 
</pre></big>
 
</pre></big>
{{show|[http://activities.sugarlabs.org Sugar Activity Library]|{{#widget:Iframe
+
{{Show|[http://activities.sugarlabs.org Sugar Activity Library]|{{#widget:Iframe
 
|url=http://activities.sugarlabs.org
 
|url=http://activities.sugarlabs.org
 
|width=900
 
|width=900

Revision as of 23:48, 13 April 2010


This template produces a [show]/[hide] frame that can be hidden or shown on initial display of a wiki page.

Usage

{{Show|collapsed=collapsed|headline|content}}

Required parameters:

  1. headline - the line of wiki text, for example, a link to remote content or just a header
  2. content - the content wiki text. It may be another template for transclusion of a page or embedding of an external page, or just plain content that you user to be able to expand or collapse.

Optional, named parameter:

  1. collapsed -- may have one of 2 possible values:
    • 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.

Example

{{Show|[http://activities.sugarlabs.org Sugar Activity Library]|{{#widget:Iframe
|url=http://activities.sugarlabs.org
|width=900
|height=342
|border=1
}}}}

This template produces a [show]/[hide] frame that can be hidden or shown on initial display of a wiki page.

Usage

{{Show|collapsed=collapsed|headline|content}}

Required parameters:

  1. headline - the line of wiki text, for example, a link to remote content or just a header
  2. content - the content wiki text. It may be another template for transclusion of a page or embedding of an external page, or just plain content that you user to be able to expand or collapse.

Optional, named parameter:

  1. collapsed -- may have one of 2 possible values:
    • 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.

Example

{{Show|[http://activities.sugarlabs.org Sugar Activity Library]|{{#widget:Iframe
|url=http://activities.sugarlabs.org
|width=900
|height=342
|border=1
}}}}

Template loop detected: Template:Show