Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:EExpand: Difference between revisions

Template page
Content deleted Content added
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>{{#ifeq: {{{3| }}}|expanded
<div class="expandable-container" data-namespace="Ability" data-name="{{PAGENAME:{{{1}}} }}">
|<div class="expandable-container round-box" data-namespace="Ability" data-name="{{PAGENAME:{{{1}}}}}">
<div class="toccolours mw-collapsible {{#if:{{{expanded|{{{3|}}}}}}||mw-collapsed}}" style="overflow:auto;"
<div class="toccolours mw-collapsible" style="overflow:auto;">
<div class=expandable-header></div>
data-expandtext="{{Trim| {{{1}}} {{#if:{{{limited| }}}|(Limited)}} {{#if:{{{improved| }}}|(Improved)}} }}"
{{Spacer}}
data-collapsetext="{{Trim| {{{1}}} {{#if:{{{limited| }}}|(Limited)}} {{#if:{{{improved| }}}|(Improved)}} }}">
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
{{Spacer}}
<div class="expandable-content-container">
{{#if:{{{limited| }}}|
{{{2}}}
</div>
<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>
</div>
|<div class="expandable-container round-box" data-namespace="{{NAMESPACE:{{{1}}}}}" data-name="{{PAGENAME:{{{1}}} }}">
<templatestyles src="Template:Expand/styles.css" />
<div class="toccolours mw-collapsible mw-collapsed" style="overflow:auto;" data-expandtext="{{Trim| {{{1}}} {{#if:{{{gifted| }}}|(Gifted)}} {{#if:{{{limited| }}}|(Limited)}} {{#if:{{{improved| }}}|(Improved)}} }}" data-collapsetext="{{Trim| {{{1}}} {{#if:{{{gifted| }}}|(Gifted)}} {{#if:{{{limited| }}}|(Limited)}} {{#if:{{{improved| }}}|(Improved)}} }}">
</div>
<div class="mw-collapsible-content round-box">
</includeonly>
<div class="expandable-content-container round-box">
{{#if:{{{gifted| }}}|<div class="expandable-sub-box expandable-sub-modifier gifted-modifier">'''''{{Gifted}}:''''' ''This costs 1 additional {{MP}} per use. If it is {{L|Category|Passive abilities|Passive}}, then it takes a {{L|Category|Single action abilities|Single Action}} to execute and has a duration of 1 minute.''</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 (optional, makes the box expanded by default)
| expanded=1 <!-- or leave out to start collapsed -->
| limited=... <!-- optional -->
| improved=... <!-- optional -->
}}
}}
</pre>
</pre>

Revision as of 16:22, 5 September 2025


Call this template in the following format:

{{Expand
|Box Name
|Box Content
|expanded (optional, makes the box expanded by default)
}}