Changes

1,435 bytes added ,  22:39, 13 April 2010
Created page with '<includeonly><div class="NavFrame {{{collapsed|collapsed}}}"><div class="NavHead">{{{1}}} </div><div class="NavContent">{{{2}}}</div></div></includeonly> This template produces …'
<includeonly><div class="NavFrame {{{collapsed|collapsed}}}"><div class="NavHead">{{{1}}} </div><div class="NavContent">{{{2}}}</div></div></includeonly>

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

==Usage==
<big><code><nowiki>{{show|collapsed=collapsed|headline|content}}</nowiki></code></big>

Required parameters:
# headline - the line of wiki text, for example, a link to remote content or just a header
# 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:
# collapsed -- may have one of 2 possible values:
#* collapsed -- (the default) -- hides the content and produces a [show] link after the headline
#* &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- (nothing) entered as <big><code>|collapsed=|</code></big> -- the content will show below the header, which will have a [hide] link next to it.

==Example==

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

*