Template:Hidden begin: Difference between revisions
From Vigyanwiki
(marked "toggle" as deprecated, CSS style order) |
(Amended width/padding-left so that left-aligned "[show]" within background) |
||
Line 2: | Line 2: | ||
-->{{#ifeq:{{{showhide|}}}<!--deprecated:-->{{{toggle|}}}|left | -->{{#ifeq:{{{showhide|}}}<!--deprecated:-->{{{toggle|}}}|left | ||
| <!------------------------------------------------------------------------ | | <!------------------------------------------------------------------------ | ||
showhide = left, so place [hide | showhide = left, so place [show/hide] link on lefthand side: | ||
------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ||
--><div class="NavFrame {{#if:{{{expanded|}}} | |collapsed}}" style="position:relative; width:100%; border:{{{border|none}}};"><!-- | --><div class="NavFrame {{#if:{{{expanded|}}} | |collapsed}}" style="position:relative; width:100%; border:{{{border|none}}};"><!-- | ||
--><div class="NavHead" style="position:absolute; width: | --><div class="NavHead" style="position:absolute; width:3.2em;<!--(to accommodate "[show]")--> background:transparent;"></div><!-- | ||
--><div style="font-size:100%;height:1.6em; background:transparent; padding-left:2. | --><div style="font-size:100%; height:1.6em; background:transparent; padding-left:2.8em;<!--(should place text just after [show/hide])--> | ||
text-align:left; font-weight:bold; {{{titlestyle|}}}"> <!--deprecated:-->{{{header|}}}<!---->{{{title|}}}</div><!-- | |||
--><div class="NavContent" style="padding-left:0.3em; text-align:left; {{{bodystyle|}}}"><!-- | --><div class="NavContent" style="padding-left:0.3em; text-align:left; {{{bodystyle|}}}"><!-- | ||
-->| <!------------------------------------------------------------------------ | -->| <!------------------------------------------------------------------------ | ||
showhide /= left, so place [hide | showhide /= left, so place [show/hide] link on righthand side: | ||
------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ||
--><div class="NavFrame {{#if:{{{expanded|}}} | |collapsed}}" style="border:{{{border|none}}};"><!-- | --><div class="NavFrame {{#if:{{{expanded|}}} | |collapsed}}" style="border:{{{border|none}}};"><!-- | ||
--><div class="NavHead" style="background:{{{bg1|transparent}}}; text-align:{{{ta1|left}}}; {{{extra1|}}} {{{titlestyle|}}}"><!-- | --><div class="NavHead" style="background:{{{bg1|transparent}}}; text-align:{{{ta1|left}}}; {{{extra1|}}} {{{titlestyle|}}}"><!-- | ||
deprecated:-->{{{header|}}}<!---->{{{title|}}} </div><!-- | |||
--><div class="NavContent" style="background:{{{bg2|transparent}}}; text-align:{{{ta2|left}}}; {{{extra2|}}} {{{bodystyle|}}}"><!-- | --><div class="NavContent" style="background:{{{bg2|transparent}}}; text-align:{{{ta2|left}}}; {{{extra2|}}} {{{bodystyle|}}}"><!-- | ||
-->}}</includeonly><noinclude>{{Documentation}}</noinclude> | -->}}</includeonly><noinclude>{{Documentation}}</noinclude> |
Revision as of 07:44, 19 June 2014
Template documentation
[create]