Template:Item: Difference between revisions

Jump to navigation Jump to search
445 bytes removed ,  21:50, 11 October 2020
Use new core stats template for items
mNo edit summary
(Use new core stats template for items)
Line 99: Line 99:
| imagearea = {{#switch: {{{image|none}}} | none = {{#if: {{{renderstr|}}} | <div class{{=}}"qud-displaychar-standin-for-image">{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr}}}}}</div> | }} | #default = {{#ifexist: File:{{#switch: {{{image|none}}} | none = Caves_of_qud_logo.png | #default = {{{image}}} }} || {{#if: {{{renderstr|}}} | <div class{{=}}"qud-displaychar-standin-for-image">{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr}}}}}</div> | }} }} }}
| imagearea = {{#switch: {{{image|none}}} | none = {{#if: {{{renderstr|}}} | <div class{{=}}"qud-displaychar-standin-for-image">{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr}}}}}</div> | }} | #default = {{#ifexist: File:{{#switch: {{{image|none}}} | none = Caves_of_qud_logo.png | #default = {{{image}}} }} || {{#if: {{{renderstr|}}} | <div class{{=}}"qud-displaychar-standin-for-image">{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr}}}}}</div> | }} }} }}
| rows =  
| rows =  
<!--lists the max pv, with a default base pv of 4. if you want to change the base pv, set pv to(number)-->
{{#if: {{{pv|}}}{{{maxpv|}}}{{{vibro|}}}{{{damage|}}}{{{av|}}}{{{dv|}}}{{{weight|}}}{{{commerce|}}} |
<!--if you set vibro to yes, it will replace the pv with the match armor value symbol-->
  {{infobox row|field=
{{#if: {{{pv|}}}{{{vibro|}}}{{{maxpv|}}} | {{infobox row|[[PV]]{{#ifeq: {{{vibro|}}} | yes ||{{Tooltip|Base PV{{Color|K|/Max PV}}}}}}|{{PV}}{{#ifeq: {{{vibro|}}} | yes |{{Tooltip|The penetration of this weapon matches the enemy's armor value.|≈|centered}}|{{{pv|4}}}{{Color | K |/{{{maxpv|{{{pv|4}}} }}} }} }} }} }}
    {{Item/CoreStats
      | pv = {{{pv|}}}
      | maxpv = {{{maxpv|}}}
      | vibro = {{{vibro|}}}
      | missile = {{{ismissile|no}}}
      | damage = {{{damage|}}}
      | av = {{{av|}}}
      | dv = {{{dv|}}}
      | weight = {{{weight|}}}
      | value = {{{commerce|}}}
      | currency = {{{iscurrency|no}}}
    }}
  }}
}}
<!--does the object have no penetration when unpowered?-->
<!--does the object have no penetration when unpowered?-->
{{#ifeq: {{{pvpowered|}}}|yes| {{infobox row|PV (Unpowered)|{{PV}}4{{Color | K |/4}} }} }}
{{#ifeq: {{{pvpowered|}}}|yes| {{infobox row|PV (Unpowered)|{{PV}}4{{Color | K |/4}} }} }}
{{#if: {{{damage|}}}  | {{infobox row|Damage|{{heart}}{{dice tooltip|{{{damage}}}}} }} }}
{{#if: {{{elementaldamage|}}}  | {{infobox row|Elemental Damage|{{heart}}{{dice tooltip|{{{elementaldamage}}}}} {{{elementaltype}}} }} }}
{{#if: {{{elementaldamage|}}}  | {{infobox row|Elemental Damage|{{heart}}{{dice tooltip|{{{elementaldamage}}}}} {{{elementaltype}}} }} }}
{{#if: {{{unpowereddamage|}}}|{{infobox row|Damage(Unpowered)|{{heart}}{{{unpowereddamage|}}} }} }}
{{#if: {{{unpowereddamage|}}}|{{infobox row|Damage(Unpowered)|{{heart}}{{{unpowereddamage|}}} }} }}
{{#if: {{{hp|}}}      | {{infobox row|HP|{{{hp}}} }} }}
{{#if: {{{hp|}}}      | {{infobox row|HP|{{{hp}}} }} }}
{{#if: {{{av|}}}      | {{infobox row|Base [[AV]]|{{AV}}{{{av}}} }} }}
{{#if: {{{dv|}}}      | {{infobox row|Base [[DV]]|{{DV}}{{{dv}}} }} }}
{{#if: {{{ma|}}}      | {{infobox row|Base [[MA]]|{{{ma}}} }} }}
{{#if: {{{ma|}}}      | {{infobox row|Base [[MA]]|{{{ma}}} }} }}
<!-- a number to hit-->
<!-- a number to hit-->
Line 135: Line 145:
{{#if: {{{imprintchargecost|}}} | {{infobox row|Imprint Cost{{Tooltip|Charge cost to program a<br>location into this recoiler}}|{{{imprintchargecost}}} }} }}
{{#if: {{{imprintchargecost|}}} | {{infobox row|Imprint Cost{{Tooltip|Charge cost to program a<br>location into this recoiler}}|{{{imprintchargecost}}} }} }}
{{#if: {{{chargeperdram|}}}| {{infobox row|Charge per Dram|{{{chargeperdram}}} }} }}
{{#if: {{{chargeperdram|}}}| {{infobox row|Charge per Dram|{{{chargeperdram}}} }} }}
{{#if: {{{weight|}}}  | {{infobox row|Weight|{{{weight}}}{{pounds}} }} }}
<!--tinkering-->
<!--tinkering-->
{{#if: {{{commerce|}}} | {{infobox row |[[Commerce|Commerce]]|{{{commerce}}} }} }}
{{#if: {{{complexity|}}}| {{infobox row|Complexity|{{{complexity}}} }} }}
{{#if: {{{complexity|}}}| {{infobox row|Complexity|{{{complexity}}} }} }}
{{#if: {{{tier|}}}    | {{#vardefine:TIER|{{{tier}}}}} |
{{#if: {{{tier|}}}    | {{#vardefine:TIER|{{{tier}}}}} |

Navigation menu