Template:Hidden: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
m 1 revision imported
No edit summary
Line 1:
{|border=1" cellspacing=0" cellpadding="2" class="mw-collapsible mw-{{{state|collapsed}}}" style="width:100%;margin:0;padding:0;border:1px solid #999999;border-collapse:collapse;background:#FFFFFF"
{{#if:{{{1}}}<!--
|-
THEN-->|<div class="mw-collapsible<!--
! style="text-align:{{{ta1|center}}};" | <div style="font-weight:{{{fw1|bold}}};background-color:{{{bg1|#CCCCFF}}};{{{headercss|}}}">{{{header|{{{1}}}}}}&nbsp;</div>
-->{{#if: {{{not collapsed|}}}||<nowiki></nowiki> mw-collapsed}}<!--
|-
-->{{#if: {{{class|}}}|<nowiki></nowiki> {{{class}}}}}<!--
|style="font-weight:{{{fw2|normal}}};background-color:{{{bg2|transparent}}};text-align:{{{ta2|left}}};{{{contentcss|}}}"|
-->{{#ifeq: {{{toggle position|}}}|left|<nowiki></nowiki> force-toggle-float-left|}}" style="clear:both;text-align:left;{{{headerstyle|}}}" data-expandtext="{{#if: {{{toggle text|}}} | {{#explode: {{{toggle text|}}} |/|0}} | {{int:show}} }}" data-collapsetext="{{#if: {{{toggle text|}}} | {{#explode: {{{toggle text|}}} |/|1}} | {{int:hide}} }}" ><!--
-->{{#if: {{{header|{{{1}}}}}}<!--
then-->|<nowiki></nowiki>
{{{header|{{{1}}}}}}
}}<!--
--><div class="mw-collapsible-content{{#if: {{{contentclass|}}}|<nowiki></nowiki> {{{contentclass}}}}}" style="padding:3px;text-align:left;{{{contentstyle|}}}" >
{{{content|{{{2}}}}}}
}|}
</div>
<noinclude>Content that should not be hidden.[[Category:Templates]]
</div><!--
<templatedata>
ELSE-->|{{TemplateError
{
| text =
"description": "This hides",
This template creates a collapsible part. Template parameter are:
"params": {
# 1 or header
"1": {},
# 2 or content
"2": {},
# headerstyle → CSS for the header
"state": {},
# contentstyle → - CSS for the content
"fw1": {},
Usage:
"bg1": {},
* <nowiki>{{Hidden | header= header text | content = content text}}</nowiki>
"ta1": {},
* <nowiki>{{Hidden | toggle text = Show representation as UML diagram / Hide representation as UML diagram | content = content text}}</nowiki>
"headercss": {},
* <nowiki>{{Hidden | headerstyle= text-align:center; | header= header text | content = content text}}</nowiki>
"header": {},
* <nowiki>{{Hidden | header= header text | content = content text | contentstyle= text-align:justify; }}</nowiki>
"fw2": {},
}}
"bg2": {},
}}
"ta2": {},
"contentcss": {},
"content": {}
} }
}
</templatedata>
 
</noinclude>