Template:Hidden: Difference between revisions

From Vigyanwiki
(undo for now, will rewrite this as a frontend for hidden begin / hidden end instead)
(rewrote as a frontend for hidden begin/hidden end (tested in sandbox); which will help keep two in sync and allow use of toggle here :))
Line 1: Line 1:
<div class="NavFrame {{#if:{{{expanded|}}}||collapsed}} {{{class|}}}" style="border:{{{border|none}}}; {{{style|{{{css|}}}}}}"><div class="NavHead"
{{hidden begin|toggle={{{showhide|}}}{{{toggle|}}}|expanded={{{expanded|}}}|class={{{class|}}}|border={{{border|none}}}|style={{{style|{{{css|}}}}}}
style="font-weight:{{{fw1|bold}}}; background:{{{bg1|transparent}}};
|bg1={{{bg1|transparent}}}|ta1={{{ta1|center}}}|titlestyle={{#ifeq:{{{fw1|bold}}}|bold||font-weight:{{{fw1|bold}}};}}{{{headercss|{{{headerstyle|{{{titlestyle|}}}}}}}}}
text-align:{{{ta1|center}}}; {{{headercss|{{{headerstyle|{{{titlestyle|}}}}}}}}}">{{{title|{{{header|{{{1}}}}}}}}} </div>
|title={{{title|{{{header|{{{1}}}}}}}}}
<div class="NavContent" style="font-weight:{{{fw2|normal}}};
|bg2={{{bg2|transparent}}}|ta2={{{ta2|left}}}|contentstyle={{#ifeq:{{{fw2|normal}}}|normal||font-weight:{{{fw2|normal}}};}}{{{contentcss|{{{contentstyle|}}}}}} }}
background-color:{{{bg2|transparent}}}; text-align:{{{ta2|left}}};  
{{{content|{{{contents|{{{2}}}}}}}}}{{hidden end}}{{#if:{{{bg1|}}}{{{bg2|}}}{{{ta1|}}}{{{ta2|}}}{{{fw1|}}}{{{fw2|}}}|[[Category:Hidden templates using styles|{{NAMESPACE}}{{PAGENAME}}]]}}<noinclude>
{{{contentcss|{{{contentstyle|}}}}}}">
{{{content|{{{contents|{{{2}}}}}}}}}
</div></div>{{#if:{{{bg1|}}}{{{bg2|}}}{{{ta1|}}}{{{ta2|}}}{{{fw1|}}}{{{fw2|}}}|[[Category:Hidden templates using styles|{{NAMESPACE}}{{PAGENAME}}]]}}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 04:47, 23 December 2014

{{{1}}}
{{{2}}}
Template documentation