Template:Upgraded effect: Difference between revisions

From He is Coming Official Wiki
Gave the responsibility of mathematics to the template, made the numbers colored according to the upgrade tint, and broke up the parameterization of upgraded effects so that it is more flexible to future design changes.
Evaluation of 1-parameter has changed from "regionalRow" to not-blank, to permit regionalRow variations such as regionalRow/colWidth.
 
(6 intermediate revisions by 2 users not shown)
Line 9: Line 9:


==Content of Template==
==Content of Template==
</noinclude>{{{2|Base&nbsp;Effect: param&nbsp;"2"}}}<p style="text-align:right;">at&nbsp;<span style="color:#d0851e">Gold</span>: {{{3|(icon param "3")}}}&nbsp;<span style="color:#d0851e">{{#expr:{{{4|10}}}*2}}</span> {{#ifeq:{{{5|<noinclude>demo</noinclude>}}} | | | {{{5|(icon param "5")}}}&nbsp;<span style="color:#d0851e">{{#expr:{{{6|2}}}*2}}</span>}}
</noinclude>{{{2|Base&nbsp;Effect: param&nbsp;"2"}}}{{#ifeq:{{{1|}}} | | <p style="text-align:right;"> | &mdash;&nbsp;}}at&nbsp;<span style="color:#d1851e">Gold</span>: {{{3|(icon param "3")}}}<span style="color:#d1851e">{{#expr:{{{4|10}}}*2}}</span> {{#ifeq:{{{5|<noinclude>demo</noinclude>}}} | | | {{{5|(icon param "5")}}}{{#ifeq:{{{6|<noinclude>demo</noinclude>}}} | | | <span style="color:#d1851e">{{#expr:{{{6|2}}}*2}}</span>}}}}{{#ifeq:{{{1|}}} | | <br> | &comma;&nbsp;}}at&nbsp;<span style="color:#9bf0fd">Diamond</span>: {{{3|(icon param "3")}}}<span style="color:#9bf0fd">{{#expr:{{{4|10}}}*4}}</span> {{#ifeq:{{{5|<noinclude>demo</noinclude>}}} | | | {{{5|(icon param "5")}}}{{#ifeq:{{{6|<noinclude>demo</noinclude>}}} | | | <span style="color:#9bf0fd">{{#expr:{{{6|2}}}*4}}</span>}}}}{{#ifeq:{{{1|}}} | | </p> |}}
<br>
at&nbsp;<span style="color:#9af0fd">Diamond</span>: {{{3|(icon param "3")}}}&nbsp;<span style="color:#9af0fd">{{#expr:{{{4|10}}}*4}}</span> {{#ifeq:{{{5|<noinclude>demo</noinclude>}}} | | | {{{5|(icon param "5")}}}&nbsp;<span style="color:#9af0fd">{{#expr:{{{6|2}}}*4}}</span>}}</span>

Latest revision as of 17:55, 14 August 2025

An initial parameter named "1" allows for future mode-select design, in case additional formatting is needed for specialized contexts.

It is recommended that the Base Effect is described precisely how the game states it. For the Gold and Diamond effects, use attribute and status-effect icons to describe the changes between upgrade levels in as little space as possible.

Parameters "4" and "6" are intended to be numbers that are multiplied by the template 2x and 4x.

Parameters "5" and "6" are OPTIONAL, permitting a second effect to be described in this arithmetic manner.

Content of Template

Base Effect: param "2"

at Gold: (icon param "3")20 (icon param "5")4
at Diamond: (icon param "3")40 (icon param "5")8