Template:Ability card v2/Card: Difference between revisions
Appearance
m removed ability_width_ss |
Migrated the ability card to be less invoke-dependent. This enables creation of ability cards manually with the template instead of relying on Data:AbilityCard.json |
||
Line 25: | Line 25: | ||
</div> | </div> | ||
<!-- INFO SECTIONS --> | |||
<div style="margin: 5px 10px 0px 10px; padding: 3px 0 5px 0; width: calc(100% - 18px);"> | <div style="margin: 5px 10px 0px 10px; padding: 3px 0 5px 0; width: calc(100% - 18px);"> | ||
{{# | <!-- Info Section #1 --> | ||
<div style="display:flex; flex-direction:column; align-items: center; width: 100%"> | |||
<div style="padding: 0 10px 0 10px">{{{info1_desc|}}}</div> | |||
<!-- Main Info --> | |||
<div style="display:flex; flex-direction:row; flex-wrap: wrap; justify-content: center; width: calc(97% - 5px); min-width: 280px;"> | |||
{{{info1_mainbox1|}}}{{{info1_mainbox2|}}}{{{info1_mainbox3|}}} | |||
</div> | |||
<!-- Alt Info --> | |||
<div style="display:flex; flex-direction:row; flex-wrap: wrap; justify-content: center; align-items: center; background-color: #2A2A2A; width: calc(97% - 19px); min-width: 267px; padding: 0 4px 0 4px; column-gap: 15px"> | |||
{{{info1_altbox1|}}}{{{info1_altbox2|}}}{{{info1_altbox3|}}}{{{info1_altbox4|}}}{{{info1_altbox5|}}}{{{info1_altbox6|}}} | |||
</div> | |||
</div> | |||
<!-- Info Section #2 --> | |||
<div style="display:flex; flex-direction:column; align-items: center; width: 100%; padding-top: 8px"> | |||
<div style="padding: 0 10px 0 10px">{{{info2_desc|}}}</div> | |||
<!-- Main Info --> | |||
<div style="display:flex; flex-direction:row; flex-wrap: wrap; justify-content: center; width: calc(97% - 5px); min-width: 280px;"> | |||
{{{info2_mainbox1|}}}{{{info2_mainbox2|}}}{{{info2_mainbox3|}}} | |||
</div> | |||
<!-- Alt Info --> | |||
<div style="display:flex; flex-direction:row; flex-wrap: wrap; justify-content: center; align-items: center; background-color: #2A2A2A; width: calc(97% - 19px); min-width: 267px; padding: 0 4px 0 4px; column-gap: 15px"> | |||
{{{info2_altbox1|}}}{{{info2_altbox2|}}}{{{info2_altbox3|}}}{{{info2_altbox4|}}}{{{info2_altbox5|}}}{{{info2_altbox6|}}} | |||
</div> | |||
</div> | |||
</div> | </div> | ||
<!-- UPGRADES --> | <!-- UPGRADES --> | ||
<div style="display:flex; flex-direction:row; flex-wrap: wrap; margin-bottom: 5px; justify-content: center; width: calc(97% - 16px); min-width: 280px;> | <div style="display:flex; flex-direction:row; flex-wrap: wrap; margin-bottom: 5px; justify-content: center; width: calc(97% - 16px); min-width: 280px;> | ||
{{ | {{{upgrade1}}}{{{upgrade2}}}{{{upgrade3}}} | ||
</div> | </div> | ||
<!-- NOTES --> | <!-- NOTES --> | ||
{{#if: {{{notes|}}}| | {{#if: {{{notes|}}}| | ||
Line 50: | Line 77: | ||
{{{notes}}} | {{{notes}}} | ||
</div> | </div> | ||
</div>}}</div></includeonly><noinclude> | |||
</div></includeonly><noinclude> | {{User:Saag/Sandbox/Ability card v2/manual card | ||
< | | name=Some Ability | ||
| icon=Catalyst.png | |||
{{ | | range=99 | ||
| radius=99 | |||
| duration=99 | |||
| num_of_charges=99 | |||
| charge_cooldown=99 | |||
| cooldown=99 | |||
| duration=99 | |||
| info1_desc=This ability does something | |||
| info1_mainbox1= | |||
{{Template:Ability card v2/Card/MainBox | |||
| value=99 | |||
| key=DPS | |||
| icon=AttributeIconTechShieldHealth.png | |||
| icon_color=Purple | |||
}} | |||
| info1_mainbox2= | |||
{{Template:Ability card v2/Card/MainBox | |||
| value=99 | |||
| key=Heal | |||
| type=bullet_damage | |||
| label=Healy | |||
}} | |||
| info1_altbox1= | |||
{{Template:Ability card v2/Card/AltBox | |||
| value=99 | |||
| key=DPS | |||
| type=bullet_damage | |||
| icon_color=Brown | |||
}} | |||
| info2_desc=This ability does something | |||
| info2_mainbox1= | |||
{{Template:Ability card v2/Card/MainBox | |||
| value=99 | |||
| key=DPS | |||
| icon=AttributeIconTechShieldHealth.png | |||
| icon_color=Purple | |||
}} | |||
| info2_mainbox2= | |||
{{Template:Ability card v2/Card/MainBox | |||
| value=99 | |||
| key=Heal | |||
| type=bullet_damage | |||
| label=Healy | |||
}} | |||
| info2_altbox1= | |||
{{Template:Ability card v2/Card/AltBox | |||
| value=99 | |||
| key=DPS | |||
| type=bullet_damage | |||
| icon_color=Brown | |||
}} | |||
| info2_altbox2= | |||
{{Template:Ability card v2/Card/AltBox | |||
| value=99 | |||
| key=DPS | |||
| label=Deeps | |||
| type=tech_damage | |||
}} | |||
| upgrade1= | |||
{{Template:Ability card v2/Card/UpgradeBox | |||
| cost = 1 | |||
| description = An upgrade | |||
| scale_value = 0.123 | |||
| scale_type = spirit | |||
}} | |||
| upgrade2= | |||
{{Template:Ability card v2/Card/UpgradeBox | |||
| cost = 2 | |||
| description = An upgrade | |||
| scale_value = 0.123 | |||
| scale_type = spirit | |||
}} | |||
| upgrade3= | |||
{{Template:Ability card v2/Card/UpgradeBox | |||
| cost = 5 | |||
| description = An upgrade | |||
| scale_value = 0.123 | |||
| scale_type = spirit | |||
}} | |||
}} | |||
<pre><nowiki>Eg. {{ | |||
{{User:Saag/Sandbox/Ability card v2/manual card | |||
| name=Some Ability | |||
| icon=Catalyst.png | |||
| range=99 | |||
| radius=99 | |||
| duration=99 | |||
| num_of_charges=99 | |||
| charge_cooldown=99 | |||
| cooldown=99 | |||
| duration=99 | |||
| info1_desc=This ability does something | |||
| info1_mainbox1= | |||
{{Template:Ability card v2/Card/MainBox | |||
| value=99 | |||
| key=DPS | |||
| label=Deeps | |||
| icon=AttributeIconTechShieldHealth.png | |||
| icon_color=Purple | |||
}} | |||
| info1_mainbox2= | |||
{{Template:Ability card v2/Card/MainBox | |||
| value=99 | |||
| key=DPS | |||
| icon=AttributeIconTechShieldHealth.png | |||
| icon_color=Purple | |||
}} | |||
| info1_altbox1= | |||
{{Template:Ability card v2/Card/AltBox | |||
| value=99 | |||
| key=DPS | |||
| icon=AttributeIconTechShieldHealth.png | |||
| icon_color=Purple | |||
}} | |||
| info1_altbox2= | |||
{{Template:Ability card v2/Card/AltBox | |||
| value=99 | |||
| key=DPS | |||
| icon=AttributeIconTechShieldHealth.png | |||
| icon_color=Purple | |||
}} | |||
| upgrade1= | |||
{{Template:Ability card v2/Card/UpgradeBox | |||
| cost = 1 | |||
| description = An upgrade | |||
| scale_value = 0.123 | |||
| scale_type = spirit | |||
}} | |||
| upgrade2= | |||
{{Template:Ability card v2/Card/UpgradeBox | |||
| cost = 2 | |||
| description = An upgrade | |||
| scale_value = 0.123 | |||
| scale_type = spirit | |||
}} | |||
| upgrade3= | |||
{{Template:Ability card v2/Card/UpgradeBox | |||
| cost = 5 | |||
| description = An upgrade | |||
| scale_value = 0.123 | |||
| scale_type = spirit | |||
}} | |||
}}}} | |||
</nowiki></pre> | |||
</noinclude> | </noinclude> |
Revision as of 20:21, 2 January 2025
Eg. {{ {{User:Saag/Sandbox/Ability card v2/manual card | name=Some Ability | icon=Catalyst.png | range=99 | radius=99 | duration=99 | num_of_charges=99 | charge_cooldown=99 | cooldown=99 | duration=99 | info1_desc=This ability does something | info1_mainbox1= {{Template:Ability card v2/Card/MainBox | value=99 | key=DPS | label=Deeps | icon=AttributeIconTechShieldHealth.png | icon_color=Purple }} | info1_mainbox2= {{Template:Ability card v2/Card/MainBox | value=99 | key=DPS | icon=AttributeIconTechShieldHealth.png | icon_color=Purple }} | info1_altbox1= {{Template:Ability card v2/Card/AltBox | value=99 | key=DPS | icon=AttributeIconTechShieldHealth.png | icon_color=Purple }} | info1_altbox2= {{Template:Ability card v2/Card/AltBox | value=99 | key=DPS | icon=AttributeIconTechShieldHealth.png | icon_color=Purple }} | upgrade1= {{Template:Ability card v2/Card/UpgradeBox | cost = 1 | description = An upgrade | scale_value = 0.123 | scale_type = spirit }} | upgrade2= {{Template:Ability card v2/Card/UpgradeBox | cost = 2 | description = An upgrade | scale_value = 0.123 | scale_type = spirit }} | upgrade3= {{Template:Ability card v2/Card/UpgradeBox | cost = 5 | description = An upgrade | scale_value = 0.123 | scale_type = spirit }} }}}}