Template:GearProcess: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
(test)
Line 2: Line 2:
|damage=
|damage=
{{#switch:{{lc:{{{1}}}}}
{{#switch:{{lc:{{{1}}}}}
|no|none=0|dismal=1|poor=2|low=3|somewhat fair|s.fair=4|fair=5|somewhat moderate|s.moderate=6 |moderate=7|somewhat heavy|s.heavy=8|heavy=9|very heavy|v.heavy=10|great=11|very great|v.great=12|severe=13|very severe|v.severe=14|extreme=15|very extreme|v.extreme=16|mighty=17|very mighty|v.mighty=18|bone-crushing|bonecrushing=19|very bone-crushing|v.bone-crushing|very bonecrushing|v.bonecrushing=20|devastating=21|very devastating|v.devastating=22|overwhelming=23|annihilating=24|obliterating=25|catastrophic=26|0=No|1=Dismal|2=Poor|3=Low|4=Somewhat Fair|5=Fair|6=Somewhat Moderate|7=Moderate|8=Somewhat Heavy|9=Heavy|10=Very Heavy|11=Great|12=Very Great|13=Severe|14=Very Severe|15=Extreme|16=Very Extreme|17=Mighty|18=Very Mighty|19=Bone-crushing|20=Very Bone-crushing|21=Devastating|22=Very Devastating|23=Overwhelming|24=Annihilating|25=Obliterating|26=Catastrophic}}{{#switch:{{{t}}}|y=]]/26}}
|no|none=0
|dismal=1
|poor=2
|low=3
|somewhat fair|s.fair=4
|fair=5
|somewhat moderate|s.moderate=6
|moderate=7
|somewhat heavy|s.heavy=8
|heavy=9
|very heavy|v.heavy=10
|great=11
|very great|v.great=12
|severe=13
|very severe|v.severe=14
|extreme=15
|very extreme|v.extreme=16
|mighty=17
|very mighty|v.mighty=18
|bone-crushing|bonecrushing=19
|very bone-crushing|v.bone-crushing|very bonecrushing|v.bonecrushing=20
|devastating=21
|very devastating|v.devastating=22
|overwhelming=23
|annihilating=24
|obliterating=25
|catastrophic=26
|0=None
|1=Dismal
|2=Poor
|3=Low
|4=Somewhat Fair
|5=Fair
|6=Somewhat Moderate
|7=Moderate
|8=Somewhat Heavy
|9=Heavy
|10=Very Heavy
|11=Great
|12=Very Great
|13=Severe
|14=Very Severe
|15=Extreme
|16=Very Extreme
|17=Mighty
|18=Very Mighty
|19=Bone-crushing
|20=Very Bone-crushing
|21=Devastating
|22=Very Devastating
|23=Overwhelming
|24=Annihilating
|25=Obliterating
|26=Catastrophic
}}{{#switch:{{{t}}}|y=]]/26}}
|foi|balance|suitability|suitedness=
|foi|balance|suitability|suitedness=
{{#switch:{{lc:{{{1}}}}}
{{#switch:{{lc:{{{1}}}}}

Revision as of 21:02, 18 March 2013

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.

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:}}.