Template:LotS/ItemRow: Difference between revisions

From zoywiki.com
Jump to navigation Jump to search
(Undo revision 71725 by Simon (talk))
(Attempt to use variables)
Line 1: Line 1:
{{#vardefine:procRate|{{#varpull:LotS/{{{1}}}|LotS Item|procRate}}}}
{{#vardefine:attack|{{#varpull:LotS/{{{1}}}|LotS Item|attack}}}}
{{#vardefine:defense|{{#varpull:LotS/{{{1}}}|LotS Item|defense}}}}
{{#vardefine:procDmgCap|{{#varpull:LotS/{{{1}}}|LotS Item|procDmgCap}}}}
{{#vardefine:procDmgMin|{{#varpull:LotS/{{{1}}}|LotS Item|procDmgMin}}}}
|-  
|-  
|[[File:LotS_{{{1}}}.png|40px|{{{1}}}|link=LotS/{{{1}}}]]
|[[File:LotS_{{{1}}}.png|40px|{{{1}}}|link=LotS/{{{1}}}]]
|'''[[LotS/{{{1}}}|<span style="color:{{LotS/Color{{#varpull:LotS/{{#if: {{{1| }}} |{{{1}}} |null}}|LotS Item|color}}}};">{{{1}}}</span>]]'''
|'''[[LotS/{{{1}}}|<span style="color:{{LotS/Color{{#varpull:LotS/{{#if: {{{1| }}} |{{{1}}} |null}}|LotS Item|color}}}};">{{{1}}}</span>]]'''
|<span style="color:#00BFFF">{{#varpull:LotS/{{#if: {{{1| }}} |{{{1}}} |null}}|LotS Item|attack}}</span>
|<span style="color:#00BFFF">{{#var:attack}}</span>
|<span style="color:#00BFFF">{{#varpull:LotS/{{#if: {{{1| }}} |{{{1}}} |null}}|LotS Item|defense}}</span>
|<span style="color:#00BFFF">{{#var:defense}}</span>
|<span style="color:#1E90FF">{{#expr: {{#varpull:LotS/{{#if: {{{1| }}} |{{{1}}} |null}}|LotS Item|attack}} * 4 + {{#varpull:LotS/{{#if: {{{1| }}} |{{{1}}} |null}}|LotS Item|defense}} }}</span>
|<span style="color:#1E90FF">{{#expr: {{#var:attack}} * 4 + {{#var:defense}} }}</span>


|<span style="color:#00FF7F">{{#if: {{#varpull:LotS/{{{1}}}|LotS Item|procRate}} | {{#expr: {{#varpull:LotS/{{{1}}}|LotS Item|procRate}} / 100 * {{#if: {{#varpull:LotS/{{{1}}}|LotS Item|procDmgCap}} | {{#varpull:LotS/{{{1}}}|LotS Item|procDmgCap}} | {{#varpull:LotS/{{{1}}}|LotS Item|procDmgMin}} }} }} |0}}</span>
|<span style="color:#00FF7F">{{#if: | {{#expr: {{#var:procRate}} / 100 * {{#if: {{#var:procDmgCap}} | {{#var:procDmgCap}} | {{#var:procDmgMin}} }} }} |0}}</span>


|<span style="color:#3CB371 ">{{#if: {{#varpull:LotS/{{{1}}}|LotS Item|procRate}} | {{#expr: {{#varpull:LotS/{{{1}}}|LotS Item|procRate}} / 100 * {{#varpull:LotS/{{{1}}}|LotS Item|procDmgMin}} }} |0}}</span>
|<span style="color:#3CB371 ">{{#if: {{#var:procRate}} | {{#expr: {{#var:procRate}} / 100 * {{#var:procDmgMin}} }} |0}}</span>


|<span style="color:{{LotS/ColorBurntOrange}};">{{#varpull:LotS/{{#if: {{{1| }}} |{{{1}}} |null}}|LotS Item|ability}}</span>
|<span style="color:{{LotS/ColorBurntOrange}};">{{#varpull:LotS/{{#if: {{{1| }}} |{{{1}}} |null}}|LotS Item|ability}}</span>
|{{#varpull:LotS/{{#if: {{{1| }}} |{{{1}}} |null}}|LotS Item|obtained}}
|{{#varpull:LotS/{{#if: {{{1| }}} |{{{1}}} |null}}|LotS Item|obtained}}

Revision as of 04:07, 24 April 2014

{{#vardefine:procRate|{{#varpull:LotS/{{{1}}}|LotS Item|procRate}}}} {{#vardefine:attack|{{#varpull:LotS/{{{1}}}|LotS Item|attack}}}} {{#vardefine:defense|{{#varpull:LotS/{{{1}}}|LotS Item|defense}}}} {{#vardefine:procDmgCap|{{#varpull:LotS/{{{1}}}|LotS Item|procDmgCap}}}} {{#vardefine:procDmgMin|{{#varpull:LotS/{{{1}}}|LotS Item|procDmgMin}}}} |- |[[File:LotS_{{{1}}}.png|40px|{{{1}}}|link=LotS/{{{1}}}]] |[[LotS/{{{1}}}|{{{1}}}]] |{{#var:attack}} |{{#var:defense}} |Expression error: Unrecognized punctuation character "{".

|0

|Expression error: Unrecognized punctuation character "{".

|{{#varpull:LotS/null|LotS Item|ability}} |{{#varpull:LotS/null|LotS Item|obtained}}