Template:Hidden begin: Difference between revisions

From Vigyanwiki
m (parameter precedence)
m (111 revisions imported from alpha:Template:Hidden_begin)
 
(69 intermediate revisions by 19 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" 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" 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/>
| ''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>
| ''title''  || (or ''header'') 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