Template:Hidden begin: Difference between revisions

From Vigyanwiki
(copy state to second (redundant?) namframe)
m (111 revisions imported from alpha:Template:Hidden_begin)
 
(75 intermediate revisions by 21 users not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><templatestyles src="Template:Hidden begin/styles.css"/><div class="hidden-begin mw-collapsible {{#ifeq:{{{showhide|{{{toggle}}}}}}|left|mw-collapsible-leftside-toggle}} {{#if:{{{expanded|}}}||mw-collapsed}} {{{class|}}}" style="{{#if:{{{width|}}}|width:{{{width}}};}} {{#if:{{{border|}}}|border:{{{border}}};}} {{#if:{{{bgcolor|}}}|background-color:{{{bgcolor}}};}} {{{style|}}}"><!--
--><div class="NavFrame {{{state|autocollapse}}}" style="border:{{{border|none}}};"><!--
--><div class="hidden-title" style="{{#if:{{{ta1|}}}|text-align:{{{ta1}}};}} {{#if:{{{titlebgcolor|}}}|background-color:{{{titlebgcolor}}};}} {{{titlestyle|}}}">{{{title|{{{header|}}}}}}</div><!--
--><div class="NavFrame {{{state|autocollapse}}}" style="border:{{{border|none}}};"><!--
--><div class="hidden-content mw-collapsible-content" style="{{#if:{{{ta2|}}}|text-align:{{{ta2}}};}} {{#if:{{{contentbgcolor|}}}|background-color:{{{contentbgcolor}}};}} {{{contentstyle|{{{bodystyle|}}}}}}"><!--
--><div class="NavHead" style="background-color:{{{bg1|transparent}}}; text-align:{{{ta1|left}}}; {{{extra1|}}}">{{{header|}}}{{{title|}}}&nbsp;</div>
Content added after the template
<div class="NavContent" style="background-color:{{{bg2|transparent}}}; text-align:{{{ta2|left}}}; {{{extra2|}}}"></includeonly><noinclude>
--></includeonly><noinclude>
 
{{Documentation}}
===Parameters===
{| class="wikitable"
! Parameter !! Description !! Default<tr/>
| ''state''  || State of the collapse: <code>collapsed</code> or <code>expanded</code> or <code>autocollapse</code><br />autocollapse will collapse if 2 or more collapseable are used || <code>autocollapse</code></tr>
| ''border'' || Border width and type (style="border:<nowiki>{{{border|}}}</nowiki>;") || none</tr>
| ''bg1''    || Titlebar background color              || transparent</tr>
| ''ta1''    || Titlebar text-alignment                || left</tr>
| ''extra1'' || Any extra styles to apply to titlebar  || (nothing)</tr>
| ''header'' || (or ''title'') Title shown on titlebar || (nothing)</tr>
| ''bg2''    || Body background color                  || transparent</tr>
| ''ta2''    || Body text-alignment                    || left</tr>
| ''extra2'' || Any extra styles to apply to body      || (nothing)</tr>
|}
 
[[Category:Formatting templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Latest revision as of 18:48, 31 December 2022

Template documentation