Template:Ability card v2/Card/UpgradeBox: Difference between revisionsGive feedback
Jump to navigation
Jump to search
No edit summary |
Note why container-type is set inline here (with help from vergir-bot LLM) |
||
| (24 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> | |||
<div>{{Ap|{{{cost}}}}}</div> | <!-- container-type is inline because TemplateStyles strips it; the description's cqw size measures against this box. --> | ||
<div style="font-size: | <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> | ||
</div> | <div>{{#if: {{{scale_type|}}}|{{Ability card v2/Card/Scaling|{{{scale_value}}}|scale_type={{{scale_type}}}}}}}</div> | ||
</includeonly> | </div></includeonly> | ||
<noinclude> | |||
{{#invoke:Abilities/card|get_ability_card|Wraith|2|false}} | |||
Button functionality is handled by [[MediaWiki:Gadget-ability-upgrades.js]]. | |||
</noinclude> | </noinclude> | ||