Template:Collapsible box/s: Difference between revisions

From Ekatra Wiki
Jump to navigation Jump to search
m (1 revision imported)
ENWS>CalendulaAsteraceae
No edit summary
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>

Revision as of 06:27, 22 October 2023