Difference between revisions of "Template:Item/detail/ColorStat"
From Shin Megami Tensei IMAGINE Wiki
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{{#iferror: <!-- |
− | {{#iferror: | + | -->{{#switch: {{{1}}} <!-- |
− | + | --> | Cool-down Time = <!-- | |
− | + | --> {{#ifexpr: {{#replace:{{{2}}}|%|}} > 0 <!-- | |
− | + | --> | <span style="color:red;">{{{2}}}</span> <!-- | |
− | + | --> |{{#ifexpr: {{#replace:{{{2}}}|%|}} < 0 <!-- | |
− | + | --> | <span style="color:lightgreen;">{{{2}}}</span> <!-- | |
− | + | --> | {{{2}}} <!-- | |
− | + | --> }} <!-- | |
− | + | --> }} <!-- | |
− | + | --> | Close-Range Damage Received <!-- | |
− | + | --> | Long-Range Damage Received <!-- | |
− | + | --> | Magic Damage Received <!-- | |
− | + | --> | #default = <!-- | |
− | + | -->}} <!-- | |
− | + | -->| {{{2}}} <!-- | |
− | + | -->}}</includeonly><noinclude> | |
− | }} | + | {{Template:Item/detail/ColorStat|Cool-down Time|-10}} {{Template:Item/detail/ColorStat|Cool-down Time|-10%}} {{Template:Item/detail/ColorStat|Cool-down Time|+10}} {{Template:Item/detail/ColorStat|Cool-down Time|+10%}} {{Template:Item/detail/ColorStat|Cool-down Time|foo}} {{Template:Item/detail/ColorStat|Cool-down Time|bar}} |
− | </includeonly><noinclude> | + | |
− | {{Template:Item/detail/ColorStat|Cool-down Time|-10}} | + | |
− | {{Template:Item/detail/ColorStat|Cool-down Time|-10%}} | + | |
− | {{Template:Item/detail/ColorStat|Cool-down Time|+10}} | + | |
− | {{Template:Item/detail/ColorStat|Cool-down Time|+10%}} | + | |
− | {{Template:Item/detail/ColorStat|Cool-down Time|foo}} | + | |
</noinclude> | </noinclude> |
Revision as of 03:32, 9 September 2012
Cool-down Time: -10 Cool-down Time: -10% Cool-down Time: +10 Cool-down Time: +10% Cool-down Time: foo Cool-down Time: bar