Template:EExpand: Difference between revisions
Template page
More actions
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" style="overflow:auto;"> | |||
<div class=expandable-header></div> | |||
{{Spacer}} | |||
<div class="mw-collapsible-content"> | |||
{{Spacer}} | |||
{{{2}}} | |||
</div> | |||
{{ | |||
</div> | </div> | ||
<templatestyles src="Template:Expand/styles.css" /></div> | |||
|<div class="expandable-container round-box" data-namespace="{{NAMESPACE:{{{1}}}}}" data-name="{{PAGENAME:{{{1}}} }}"> | |||
</div> | <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)}} }}"> | ||
</includeonly> | <div class="mw-collapsible-content round-box"> | ||
<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 | |expanded (optional, makes the box expanded by default) | ||
}} | }} | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> | ||
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)
}}