Template:ItemTemplate: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(added {{{maxcharge}}} for cells)
m (added hover info to the vibro symbol)
Line 6: Line 6:
<!--lists the max pv, with a default base pv of 4. if you want to change the base pv, set pv to(number)-->
<!--lists the max pv, with a default base pv of 4. if you want to change the base pv, set pv to(number)-->
<!--if you set vibro to true, it will replace the pv with the match armor value symbol-->
<!--if you set vibro to true, it will replace the pv with the match armor value symbol-->
{{#if: {{{pv|}}}{{{vibro|}}}{{{maxpv|}}} | {{infobox row|Base [[PV]]|{{Color | C |→}}{{#ifeq: {{{vibro|}}} | true |≈|{{{pv|4}}}{{Color | K |/{{{maxpv|{{{pv}}} }}} }} }} }} }}
{{#if: {{{pv|}}}{{{vibro|}}}{{{maxpv|}}} | {{infobox row|Base [[PV]]|{{Color | C |→}}{{#ifeq: {{{vibro|}}} | true |{{Tooltip|The penetration of this weapon matches the enemy's armor value.|≈}}|{{{pv|4}}}{{Color | K |/{{{maxpv|{{{pv}}} }}} }} }} }} }}
<!--does the object have no penetration when unpowered?-->
<!--does the object have no penetration when unpowered?-->
{{#ifeq: {{{pvpowered|}}}|true| {{infobox row|PV (Unpowered)|{{Color | C |→}}4{{Color | K |/4}} }} }}
{{#ifeq: {{{pvpowered|}}}|true| {{infobox row|PV (Unpowered)|{{Color | C |→}}4{{Color | K |/4}} }} }}

Revision as of 19:57, 26 June 2019