Template:Hidden begin: Difference between revisions

From E-neutrons wiki
Jump to navigation Jump to search
m (1 revision imported)
No edit summary
 
Line 1: Line 1:
<includeonly><!--
<includeonly><div class="mw-collapsible {{#ifeq:{{{showhide|}}}{{{toggle|}}}|left|mw-collapsible-leftside-toggle}} {{#if:{{{expanded|}}} | |mw-collapsed}} {{{class|}}}" style="box-sizing:border-box;width:100%;font-size:95%;padding:4px;border:{{{border|none}}};{{{style|}}}"><!--
-->{{#ifeq:{{{toggle|}}}|left
          --><div style="font-size:100%;line-height:1.6;font-weight:bold;background:{{{bg1|transparent}}};text-align:{{{ta1|left}}};{{{extra1|}}};{{{titlestyle|{{{headercss|}}}}}}">{{{header|}}}{{{title|}}}</div><!--
  | <!------------------------------------------------------------
          --><div class="mw-collapsible-content" style="background:{{{bg2|transparent}}};text-align:{{{ta2|left}}};{{{extra2|}}};{{{bodystyle|{{{contentstyle|{{{contentcss|}}}}}}}}}"></includeonly><noinclude>
      toggle=left, so format [hide/show] link on lefthand side:
{{hatnote|Templates {{noredirect|Template:Begin hidden|Begin hidden}}, {{noredirect|Template:Start hidden|Start hidden}} and {{noredirect|Template:Start hidden section|Start hidden section}} redirect here.}}
      -------------------------------------------------------------
{{Documentation}}
      --><div class="NavFrame {{#if:{{{expanded|}}}||collapsed}}" style="width:100%; position:relative; border:{{{border|none}}};"><!--
      --><div class="NavHead" style="width:2.8em; background:transparent; position:absolute;"></div><!--
      --><div style="height:1.6em; background:transparent; text-align:left; padding-left:2.3em; font-size:110%; font-weight:bold; {{{titlestyle|}}}"><!--
      -->&nbsp;&nbsp;
<!--(deprecated:)-->{{{header|}}}<!--
-->{{{title|}}}</div><!--
      --><div class="NavContent" style="text-align:left; padding-left:0.3em; font-size:105%; {{{bodystyle|}}}"><!--
 
-->| <!------------------------------------------------------------
      toggle/=left, so format [hide/show] link on righthand side:
      -------------------------------------------------------------
      --><div class="NavFrame {{#if:{{{expanded|}}}||collapsed}}" style="border:{{{border|none}}};"><!--
      --><div class="NavHead" style="background:{{{bg1|transparent}}}; text-align:{{{ta1|left}}}; {{{extra1|}}} {{{titlestyle|}}}"><!--
      <!--(deprecated:)-->{{{header|}}}<!--
--> {{{title|}}}&nbsp;</div><!--
      --><div class="NavContent" style="font-size:105%; background:{{{bg2|#eeeeee}}}; text-align:{{{ta2|left}}}; {{{extra2|}}} {{{bodystyle|}}}"><!--
 
-->}}</includeonly><noinclude><!--
 
 
--><!--{{documentation}}-->
<!--- Please add metadata to the <includeonly> section at the bottom of Template:Hidden begin-end/doc --->
Use the command
:<nowiki>{{hidden begin|toggle=right|title=Title shown in hiding bar|titlestyle=background:#ccccff}}</nowiki>
before the thing that should be hidden, and the command
:<nowiki>{{hidden end}}</nowiki>
afterwards.
 
You can read more at the Wikipedia page for this template: http://en.wikipedia.org/wiki/Template:Hidden_begin
 
 
Extra: In this wiki, the background of the hidden/shown box has a color. In order to have a transparent background, use
:<nowiki>{{hidden begin|toggle=right|title=Title shown in hiding bar|titlestyle=background:#ccccff|bg2=transparent}}</nowiki>
</noinclude>
</noinclude>

Latest revision as of 10:09, 6 April 2020

{{#invoke:Hatnote|hatnote}} {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Documentation|noshift=1}}