Template:Ability card v2/Card/UpgradeBox: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Created page with "<includeonly> <div style="display:flex; flex-direction:column; background-color: #2A2A2A; width: 150px; padding: 20px 1px 20px 1px; margin: 3px; text-align: center; border: 3px solid {{#ifeq: {{{scale_type}}} | spirit | #583D6F | #2A2A2A}}; box-shadow: 0 0 10px {{#ifeq: {{{scale_type}}} | spirit | #583D6F | #2A2A2A}}; border-radius: 1px"> <div style="font-weight: bold;">{{{value}}}{{#ifeq: {{{scale_type}}}|spirit|{{ss|{{{scale_value}}}}}}}</div> <div>{{Lang|key={{{ke..." |
Note why container-type is set inline here (with help from vergir-bot LLM) |
||
| (29 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div | <div id="ability-upgrade-{{{cost}}}" data-index="{{{index}}}" tabindex=0 class="cdx-button cdx-button--action-progressive ability-upgrade"> | ||
<div class="ability-upgrade-header">{{Ap|{{{cost}}}|icon_size=15px}}</div> | |||
<!-- container-type is inline because TemplateStyles strips it; the description's cqw size measures against this box. --> | |||
</div> | <div class="ac-upgrade-descwrap" style="container-type: inline-size;"><div class="ac-upgrade-desc" style="font-size: {{{fontsize|0.9rem}}}; line-height: {{{lineheight|1.4}}};">{{{description}}}</div></div> | ||
</includeonly> | <div>{{#if: {{{scale_type|}}}|{{Ability card v2/Card/Scaling|{{{scale_value}}}|scale_type={{{scale_type}}}}}}}</div> | ||
</div></includeonly> | |||
<noinclude> | |||
{{#invoke:Abilities/card|get_ability_card|Wraith|2|false}} | |||
Button functionality is handled by [[MediaWiki:Gadget-ability-upgrades.js]]. | |||
</noinclude> | </noinclude> | ||