Difference between revisions of "Template:Collapse"

From Dharmawiki
Jump to navigation Jump to search
m (1 revision imported)
 
m (1 revision imported)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{| <!-- Template:Collapse --> class="collapsible {{#switch:{{lc:{{{expand|no}}}}}|uncollapse|uncollapsed|expand|expanded|yes|y=uncollapsed|#default=collapsed}}" style="{{{{{|safesubst:}}}#ifeq:{{NAMESPACEE}}|{{ns:0}}|display: none;}}background-color: {{{bg1|transparent}}}; text-align: left; border: {{{border|1px}}} solid {{{b-color|silver}}}; margin: 0.2em auto auto; width:{{{{{|safesubst:}}}#if:{{{width|}}}|{{{width}}}|100%}}; clear: {{{clear|both}}}; padding: 1px;"
+
{| class="mw-collapsible mw-{{#ifeq:{{{expand|no}}}|no||un}}collapsed" style="width:{{{width|100%}}}; margin:{{{margin|auto}}}; clear:{{{clear|both}}}; padding:1px; border:{{{border-w|1px}}} {{{border-s|solid}}} {{{border-c|#bbb}}}; background:{{{background-c|#fff}}};"
 +
!colspan="0" style="padding-left:{{#ifeq:{{{header-align}}}|center|6.4|1}}em; padding-right:.4em; text-align:{{{header-align|center}}}; background-color:{{{header-c|#f0f2f5}}}; font-size:{{{header-fs|{{{font-size|88%}}}}}}; color:{{{header-fc|#000}}};"|{{{title|{{PAGENAME}}}}}
 
|-
 
|-
! style="background-color: {{{background|{{{bg|#F0F2F5}}}}}}; font-size:87%; padding:0.2em 0.3em; text-align: {{{{{|safesubst:}}}#if:{{{left|}}}|left|{{{{{|safesubst:}}}#if:{{{center|}}}|center|left}}}}; {{{{{|safesubst:}}}#if:{{{fc|}}}|color: {{{fc}}};|}}" | <span style="font-size: 115%;">{{{2|{{{title|{{{heading|{{{header|Extended content}}}}}}}}}}}}</span>
+
|style="{{#if:{{{align|}}}|text-align:{{{align|left}}}; }}font-size:{{{font-size|88%}}};" class="mw-collapsible-content"|
|-
+
{{{1}}}
| style="border: solid {{{border2|1px silver}}}; padding: {{{padding|8px}}}; background-color: {{{bg2|white}}};" |
+
|}<noinclude>{{documentation}}</noinclude>
<div>{{{1<noinclude>|{{lorem ipsum|3}}</noinclude>}}}</div>
 
|}{{{{{|safesubst:}}}#ifeq:{{NAMESPACEE}}|{{ns:0}}|<span class="error noprint">[[Template:collapse]] is not available for use in articles (see [[MOS:COLLAPSE]]).</span>}}<noinclude>
 
{{Documentation}}
 
</noinclude>
 

Latest revision as of 22:22, 9 February 2019

Collapse

{{{1}}}

Lua error in mw.lua at line 307: frame:expandTemplate: a title is required.