Template:EExpand: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class="expandable-container" data-namespace="Ability" data-name="{{PAGENAME:{{{1}}} }}"> | |||
<div class="toccolours mw-collapsible {{#if:{{{expanded|{{{3|}}}}}}||mw-collapsed}}" style="overflow:auto;" | |||
<div class=expandable- | data-expandtext="{{Trim| {{{1}}} {{#if:{{{limited| }}}|(Limited)}} {{#if:{{{improved| }}}|(Improved)}} }}" | ||
{{ | data-collapsetext="{{Trim| {{{1}}} {{#if:{{{limited| }}}|(Limited)}} {{#if:{{{improved| }}}|(Improved)}} }}"> | ||
<div class="mw-collapsible-content"> | |||
{{ | <div class="expandable-content-container"> | ||
{{#if:{{{limited| }}}| | |||
<div class="expandable-sub-box expandable-sub-modifier limited-modifier"> | |||
'''''{{L|Keyword|Limited|Limitation|u=1}}:''''' ''<span class="limitation-text">{{{limited}}}</span>'' | |||
</div> | |||
}} | |||
{{#if:{{{improved| }}}| | |||
<div class="expandable-sub-box expandable-sub-modifier improvement-modifier"> | |||
'''''{{L|Keyword|Improved|Improvement|u=1}}:''''' ''<span class="improvement-text">{{{improved}}}</span>'' | |||
</div> | |||
}} | |||
<div class="expandable-sub-box expandable-sub-main">{{{2}}}</div> | |||
</div> | |||
</div> | </div> | ||
</div> | |||
<templatestyles src="Template:Expand/styles.css" /> | |||
</div> | |||
</includeonly> | |||
<templatestyles src="Template:Expand/styles.css" /></div> | |||
<noinclude> | <noinclude> | ||
Call this template in the following format: | Call this template in the following format: | ||
<pre> | <pre> | ||
{{Expand | {{Expand | ||
|Box Name | | Box Name | ||
|Box Content | | Box Content | ||
|expanded | | expanded=1 <!-- or leave out to start collapsed --> | ||
| limited=... <!-- optional --> | |||
| improved=... <!-- optional --> | |||
}} | }} | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> | ||
Revision as of 06:48, 28 August 2025
Call this template in the following format:
{{Expand
| Box Name
| Box Content
| expanded=1 <!-- or leave out to start collapsed -->
| limited=... <!-- optional -->
| improved=... <!-- optional -->
}}