Template:EExpand: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#ifeq: {{{3| }}}|expanded | ||
|<div class="subber expandable-container round-box bounded-container" data-namespace="{{NAMESPACE:{{{1}}}}}" data-name="{{PAGENAME:{{{1}}}}}"> | |||
<div class="toccolours mw-collapsible" style="overflow:auto;"> | |||
<div class=expandable-header></div> | |||
{{Spacer}} | |||
<div class="mw-collapsible | <div class="mw-collapsible-content"> | ||
{{Spacer}} | |||
{{{2}}} | |||
</div> | |||
{{ | |||
</div> | </div> | ||
<templatestyles src="Template:Expand/styles.css" /></div> | |||
|<div class="subber expandable-container round-box bounded-container" data-namespace="{{NAMESPACE:{{{1}}}}}" data-name="{{PAGENAME:{{{1}}} }}"> | |||
</div> | <div class="toccolours mw-collapsible mw-collapsed" style="overflow:auto;" data-expandtext="{{Trim| {{PAGENAME:{{{1}}}}} {{#if:{{{gifted| }}}|(Gifted)}} {{#if:{{{adept| }}}|(Adept)}} {{#if:{{{limited| }}}|(Limited)}} {{#if:{{{improved| }}}|(Improved)}} }}" data-collapsetext="{{Trim| {{PAGENAME:{{{1}}}}} {{#if:{{{gifted| }}}|(Gifted)}} {{#if:{{{adept| }}}|(Adept)}} {{#if:{{{limited| }}}|(Limited)}} {{#if:{{{improved| }}}|(Improved)}} }}"> | ||
</includeonly> | <div class="mw-collapsible-content round-box"> | ||
<div class="expandable-content-container round-box"> | |||
{{#if:{{{adept| }}}|<div class="expandable-sub-box expandable-sub-modifier adept-modifier">'''''{{Adept}}:''''' ''{{TextAdept}}''</div>}}{{#if:{{{gifted| }}}|<div class="expandable-sub-box expandable-sub-modifier gifted-modifier">'''''{{Gifted}}:''''' ''{{TextGifted}}''</div>}}{{#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> | |||
<templatestyles src="Template:Expand/styles.css" /></div> | |||
}}</includeonly> | |||
<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 (optional, makes the box expanded by default) | ||
}} | }} | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 01:50, 5 November 2025
Call this template in the following format:
{{Expand
|Box Name
|Box Content
|expanded (optional, makes the box expanded by default)
}}