Template:Collapsible box/s: Difference between revisions

From Ekatra Wiki
Jump to navigation Jump to search
m (1 revision imported)
m (1 revision imported: Importing Custome Rule Template)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly><templatestyles src="Template:Collapsible box/styles.css" /><div
<templatestyles src="Template:Collapsible box/styles.css" /><div class="mw-collapsible {{yesno|{{{collapsed|}}}|yes=mw-collapsed|def=}} wst-collapsible-box wst-collapsible-box-{{#if:{{{title|}}}|with|without}}-title {{{class_outer|}}}" {{optional style|style={{{style_outer|}}}}} {{{attribs_outer|}}}>
class="mw-collapsible {{#switch:{{yesno|{{{collapsed|}}}}}|yes=mw-collapsed|}} wst-collapsible-box wst-collapsible-box-{{#if:{{{title|}}}|with|without}}-title {{{class_outer|}}}"
<div class="wst-collapsible-box-title {{{class_title|}}}" {{Optional style|style={{{style_title|}}}}}>
{{optional style|style={{{style_outer|}}}}}
{{{title|}}}
><p><!-- force a <p> so we can zero out the top margin
</div>
 
<div class="mw-collapsible-content wst-collapsible-box-content {{{class_content|}}}" {{optional style|style={{{style_content|}}}}}><noinclude>
    # title if given
{{Collapsible box/e}}
    -->{{#if:{{{title|}}}|<span {{optional CSS attribute|attribute=class|class={{{class_title|}}}}} {{optional style|style={{{style_title|}}}}}>{{{title}}}</span>}}<!--
 
# and close the title p, then do the actual content
--></p><div class="mw-collapsible-content {{{class_content|}}}" {{optional style|style={{{style_content|}}}}}></includeonly><noinclude>
{{documentation|Template:Collapsible box/doc}}
{{documentation|Template:Collapsible box/doc}}
</noinclude>
</noinclude>

Latest revision as of 01:25, 24 July 2024