Difference between revisions of "Template:Apparel Protection Chart/Quality Generator"
Jump to navigation
Jump to search
(Created page with "<includeonly>{{#vardefineecho: baseArmor|{{Q|{{{1|}}}|Armor - {{#ucfirst:{{{2|Sharp}}}}}}}}} |set1name= Awful {{{1|}}} ({{{2|}}}) | set1armor1= {{#expr:0.60 * {{#vardefi...") |
|||
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefineecho: baseArmor|{{Q|{{{1|}}}|Armor - {{ | + | <includeonly><!-- |
+ | --> set1name= Awful {{{1|}}} ({{{2|}}}) | set1armor1= {{#expr:0.60 * {{#vardefineecho: baseArmor|{{Q|{{{1|}}}|Armor - {{ucfirst:{{{2|Sharp}}}}}}}}}}}<!-- | ||
+ | -->|set2name= Poor {{{1|}}} ({{{2|}}}) | set2armor1= {{#expr:0.80 * {{#var: baseArmor}} }}<!-- | ||
+ | -->|set3name= Normal {{{1|}}} ({{{2|}}}) | set3armor1= {{#var: baseArmor}}<!-- | ||
+ | -->|set4name= Good {{{1|}}} ({{{2|}}}) | set4armor1= {{#ifexpr: {{#vardefineecho: tempArmor|{{#expr:1.15 * {{#var: baseArmor}} }}}} > 200|200|{{#var:tempArmor}}}}<!-- | ||
+ | -->|set5name= Excellent {{{1|}}} ({{{2|}}}) | set5armor1= {{#ifexpr: {{#vardefineecho: tempArmor|{{#expr:1.30 * {{#var: baseArmor}} }}}} > 200|200|{{#var:tempArmor}}}}<!-- | ||
+ | -->|set6name= Masterwork {{{1|}}} ({{{2|}}}) | set6armor1= {{#ifexpr: {{#vardefineecho: tempArmor|{{#expr:1.45 * {{#var: baseArmor}} }}}} > 200|200|{{#var:tempArmor}}}}<!-- | ||
+ | -->|set7name= Legendary {{{1|}}} ({{{2|}}}) | set7armor1= {{#ifexpr: {{#vardefineecho: tempArmor|{{#expr:1.80 * {{#var: baseArmor}} }}}} > 200|200|{{#var:tempArmor}}}}</includeonly><noinclude>This is setup to to create the input and not call the Apparel Protection Chart template for future proofing and flexibility - this way if another item needs to be displayed, the Chart template can be expanded to allow more than 7 sets and this template can still be used alongside a manually set 8th set or beyond. Further, it is current set up to take a single item, but can be extended to take a set of items | ||
− | + | {{Apparel Protection Chart/Quality Generator|Flak vest|Sharp}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | {{Apparel Protection Chart|{{Apparel Protection Chart/Quality Generator|Flak vest|Sharp}} }} | |
− | {{Apparel Protection Chart | + | |
− | + | ||
+ | {{Apparel Protection Chart|set1name= Awful Flak vest (Sharp) | set1armor1= 60 |set2name= Poor Flak vest (Sharp) | set2armor1= 80 |set3name= Normal Flak vest (Sharp) | set3armor1= 100 |set4name= Good Flak vest (Sharp) | set4armor1= 115 |set5name= Excellent Flak vest (Sharp) | set5armor1= 130 |set6name= Masterwork Flak vest (Sharp) | set6armor1= 145 |set7name= Legendary Flak vest (Sharp) | set7armor1= 180 }} | ||
</noinclude> | </noinclude> |
Revision as of 01:27, 19 July 2022
This is setup to to create the input and not call the Apparel Protection Chart template for future proofing and flexibility - this way if another item needs to be displayed, the Chart template can be expanded to allow more than 7 sets and this template can still be used alongside a manually set 8th set or beyond. Further, it is current set up to take a single item, but can be extended to take a set of items
set1name= Awful Flak vest (Sharp) | set1armor1= 60|set2name= Poor Flak vest (Sharp) | set2armor1= 80|set3name= Normal Flak vest (Sharp) | set3armor1= 100|set4name= Good Flak vest (Sharp) | set4armor1= 115|set5name= Excellent Flak vest (Sharp) | set5armor1= 130|set6name= Masterwork Flak vest (Sharp) | set6armor1= 145|set7name= Legendary Flak vest (Sharp) | set7armor1= 180