Template:Hidden begin

From Blood Wiki
(Difference between revisions)
Jump to: navigation, search
 
(25 intermediate revisions by one user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly><div class="NavFrame {{#if:{{{expanded|}}}||collapsed}}"><div class="NavHead">&nbsp;{{{title|{{{1}}}}}}&nbsp;&nbsp;</div><div class="NavContent"></includeonly><noinclude>
<!--
+
To insert hidden block use the following construction:
-->{{#ifeq:{{{toggle|}}}|left
+
  | <!------------------------------------------------------------
+
      toggle=left, so format [hide/show] link on lefthand side:
+
      -------------------------------------------------------------
+
      --><div class="NavFrame {{#if:{{{expanded|}}}||collapsed}}" style="width:100%; position:relative; border:{{{border|}}};"><!--
+
          --><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:100%; font-weight:bold; {{{titlestyle|}}}"><!--
+
              -->&nbsp;&nbsp;<!--(deprecated:)-->{{{header|}}}<!---->{{{title|}}}</div><!--
+
          --><div class="NavContent" style="text-align:left; padding-left:0.3em; {{{bodystyle|}}}"><!--
+
  
-->| <!------------------------------------------------------------
+
<nowiki>{{</nowiki>hidden begin|'''''Block Caption'''''<nowiki>}}</nowiki>
      toggle/=left, so format [hide/show] link on righthand side:
+
'''''Block Contents'''''
      -------------------------------------------------------------
+
<nowiki>{{</nowiki>hidden end<nowiki>}}</nowiki>
      --><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="background:{{{bg2|transparent}}}; text-align:{{{ta2|left}}}; {{{extra2|}}} {{{bodystyle|}}}"><!--
+
  
-->}}
+
= Advanced parameters =
</includeonly>
+
* expanded=Whether to show hidden block as expanded
  
<noinclude>
+
= Example =
= Syntax =
+
{{hidden begin | Hidden block}}
 +
Hidden block contents
 +
{{hidden end}}
  
<nowiki>{{</nowiki>Hidden begin
 
|toggle=
 
|border=
 
|header=
 
|title=
 
|titlestyle=
 
|bodystyle=
 
|bg1=
 
|bg2=
 
|ta1=
 
|ta2=
 
|extra1=
 
|extra2=
 
<nowiki>}}</nowiki>
 
<!-- content -->
 
{{Hidden end}}
 
  
  
[[Category:Templates]]
+
[[Category:Formatting templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 04:48, 15 July 2012

To insert hidden block use the following construction:

{{hidden begin|Block Caption}}
Block Contents
{{hidden end}}

[edit] Advanced parameters

  • expanded=Whether to show hidden block as expanded

[edit] Example

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox