Template:PosDefVal: Difference between revisions
Jump to navigation
Jump to search
imported>Aggelakis (documentation) |
imported>Baalus Seth mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>Def'''(''' {{#ifeq:{{{1|0|}}} | 0 ||{{color|#3b89a0;font-weight: bold|M{{#if: {{{m|}}} |{{color|red;font-weight: normal|-'''{{{1|0}}}'''}}|{{{1|0}}}}}}}}} {{#ifeq:{{{2|0|}}} | 0 ||{{color|#3e3ea0;font-weight: bold|R{{#if: {{{r|}}} |{{color|red;font-weight: normal|-'''{{{2|0}}}'''}}|{{{2|0}}}}}}}}} {{#ifeq:{{{3|0|}}} | 0 ||{{color|#c62167;font-weight: bold|A{{#if: {{{a|}}} |{{color|red;font-weight: normal|-'''{{{3|0}}}'''}}|{{{3|0}}}}}}}}}''')'''</includeonly><noinclude>{{documentation}}</noinclude> | <includeonly>Def'''(''' {{#ifeq:{{{1|0|}}} | 0 ||{{color|#3b89a0;font-weight: bold|M{{#if: {{{m|}}} |{{color|red;font-weight: normal|-'''{{{1|0}}}'''}}|{{{1|0}}}}}}}}} {{#ifeq:{{{2|0|}}} | 0 ||{{color|#3e3ea0;font-weight: bold|R{{#if: {{{r|}}} |{{color|red;font-weight: normal|-'''{{{2|0}}}'''}}|{{{2|0}}}}}}}}} {{#ifeq:{{{3|0|}}} | 0 ||{{color|#c62167;font-weight: bold|A{{#if: {{{a|}}} |{{color|red;font-weight: normal|-'''{{{3|0}}}'''}}|{{{3|0}}}}}}}}} ''')'''</includeonly><noinclude>{{documentation}}</noinclude> |
Latest revision as of 16:16, 14 January 2009
[edit] [ ] Documentation
Usage
Defense Template
This template is meant to show the positional defense values of a power in a condensed yet readable format
Parameters
- First 3 parameters are numbered accordingly, values of 0 will prevent the parameter from displaying
- List the defenses in order:
- Melee absolute value
- Ranged absolute value
- Area of Effect absolute value
- Trailing 0s are unnecessary.
- m, r, a, if defined will add a minus sign before their respective values and turn them red.
Example
Code | Result |
---|---|
{{PosDefVal|1|2|3}} | Def( M1 R2 A3 ) |
{{PosDefVal|10|10|m=-}} | Def( M-10 R10 ) |
{{PosDefVal|10|m=-|10|r=-|20}} | Def( M-10 R-10 A20 ) |
{{PosDefVal|2=10|3=25|a=-}} | Def( R10 A-25 ) |
x=-
denotes the x defense as a debuff. The first letter of the defense type is used.