Template:GearProcess: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
(added no option for armor absorption and protection)
Line 264: Line 264:
}}
}}
|prot|protection={{#switch:{{lc:{{{1}}}}}
|prot|protection={{#switch:{{lc:{{{1}}}}}
|no=0
|poor=1
|poor=1
|low=2
|low=2
Line 279: Line 280:
|amazing=14
|amazing=14
|unbelievable=15
|unbelievable=15
|0=No
|1=Poor
|1=Poor
|2=Low
|2=Low
Line 296: Line 298:
}}{{#switch:{{{t}}}|y=]]/15}}
}}{{#switch:{{{t}}}|y=]]/15}}
|prot2|protection2={{#switch:{{#sub:{{{1|}}}|0|2}}
|prot2|protection2={{#switch:{{#sub:{{{1|}}}|0|2}}
|0|0-|00=00- no
|1|1-|01=01- poor
|1|1-|01=01- poor
|2|2-|02=02- low
|2|2-|02=02- low
Line 312: Line 315:
|15=15- unbelievable
|15=15- unbelievable
|{{#switch:{{lc:{{{1|}}}}}
|{{#switch:{{lc:{{{1|}}}}}
|no=00- no
|poor=01- poor
|poor=01- poor
|low=02- low
|low=02- low
Line 331: Line 335:
}}
}}
|abs|absorption={{#switch:{{lc:{{{1}}}}}
|abs|absorption={{#switch:{{lc:{{{1}}}}}
|no=0
|very poor|v.poor=1
|very poor|v.poor=1
|poor=2
|poor=2
Line 349: Line 354:
|amazing=17
|amazing=17
|unbelievable=18
|unbelievable=18
|0=No
|1=Very Poor
|1=Very Poor
|2=Poor
|2=Poor
Line 369: Line 375:
}}{{#switch:{{{t}}}|y=]]/18}}
}}{{#switch:{{{t}}}|y=]]/18}}
|abs2|absorption2={{#switch:{{#sub:{{{1|}}}|0|2}}
|abs2|absorption2={{#switch:{{#sub:{{{1|}}}|0|2}}
|0|0-|00=00- no
|0|1-|01=01- v.poor
|0|1-|01=01- v.poor
|2|2-|02=02- poor
|2|2-|02=02- poor
Line 388: Line 395:
|18=18- unbelievable
|18=18- unbelievable
|{{#switch:{{lc:{{{1|}}}}}
|{{#switch:{{lc:{{{1|}}}}}
|no=00- no
|very poor|v.poor=01- v.poor
|very poor|v.poor=01- v.poor
|poor=02- poor
|poor=02- poor

Revision as of 16:50, 20 December 2015

This is a plug in for converting text values of equipment to numbers, or numbers to text. Variable one is the rating to be converted to number, and variable 2 is type of number it is: damage, foi, balance, suitedness, hindrance, protection, absorption, sprotection (shield protection), construction, speed, quality.

If t is set to "y", then the output of a text conversion will include semantic close brackets and the total number of levels. Example: "]]/18"

If the text needs to be lower case, for semantic tagging for example, use {{lc:}}.