Template:Item/CoreStats: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(account for thrown weapons)
mNo edit summary
Line 10: Line 10:
|<div class="qud-item-stats-entry-wrap"><div class="qud-item-stats-entry qud-tooltip"><!--
|<div class="qud-item-stats-entry-wrap"><div class="qud-item-stats-entry qud-tooltip"><!--
--><div class="qud-item-stat-symbol">{{PV}}</div><!--
--><div class="qud-item-stat-symbol">{{PV}}</div><!--
--><div class="qud-item-stat-value">{{#ifeq: {{{vibro|}}} | yes | <span class="symbol-vibro">≈</span> | {{{pv|4}}}{{#ifeq:{{{missile|no}}}|yes||{{#ifeq:{{{thrown|no}}}|yes||<span class="qud-max-pv">/{{{maxpv|4}}}</span>}}}} }}</div><!--
--><div class="qud-item-stat-value">{{#ifeq: {{{vibro|}}} | yes | <span class="symbol-vibro">≈</span> | {{{pv|4}}}{{#ifeq:{{{missile|no}}}|yes||{{#ifeq:{{{thrown|no}}}|yes|<span class="qud-thrown-pv-txt">&nbsp;(thrown)</span>|<span class="qud-max-pv">/{{{maxpv|4}}}</span>}}}} }}</div><!--
--><span class="qud-tooltip-text">{{#ifeq: {{{vibro|}}} | yes | Adaptive PV<br>([[Vibro]]) | <span class="qud-pv-tooltip-text">[[PV]]{{#ifeq:{{{missile|no}}}|yes||{{#ifeq:{{{thrown|no}}}|yes||<span class="qud-max-pv">/Max PV</span>}}}}</span>}}</span><!--
--><span class="qud-tooltip-text">{{#ifeq: {{{vibro|}}} | yes | Adaptive PV<br>([[Vibro]]) | <span class="qud-pv-tooltip-text">[[PV]]{{#ifeq:{{{missile|no}}}|yes||{{#ifeq:{{{thrown|no}}}|yes|<span class="qud-thrown-pv-txt">&nbsp;(thrown)</span>|<span class="qud-max-pv">/Max PV</span>}}}}</span>}}</span><!--
--></div></div>
--></div></div>
}}<!--
}}<!--

Revision as of 13:35, 13 October 2020

Outputs an item's core stats. Intended for use in [[Template:Item].

All parameters are optional.

{{Item/CoreStats
| pv = 4
| maxpv = 6              <!-- if not specified, but pv is specified, 4 is used for this by default -->
| vibro = no             <!-- if yes, vibro penetration symbol is shown and pv/maxpv are ignored -->
| missile = no           <!-- if yes, maxpv won't be shown, because it's not applicable to missile weapons -->
| thrown = no            <!-- if yes, maxpv won't be shown, because it's not applicable to thrown weapons -->
| damage = 2d3
| av = 3
| dv = 2
| weight = 10
| value = 50
| currency = no          <!-- if yes, currency symbol is yellow and tooltip link goes to the Trade Goods page instead of the Commerce page -->
}}
4/6
PV/Max PV
♥
2d3
average: 4range: 2-6
♦
3
Armor Value
○
2
Dodge Value
$
50.00
Commerce Value
10
lbs.
Weight



other examples

copper nugget

$
10.00
Trade Value
1
lb.
Weight

ceremonial vibrokhopesh

Adaptive PV
(Vibro)
♥
1d10+2
average: 7.5range: 3-12
$
255.00
Commerce Value
5
lbs.
Weight

swarm rack

17
PV
♥
3d6
average: 10.5range: 3-18
$
300.00
Commerce Value
1500
lbs.
Weight

point-defense drone

9
PV
♥
1d10
average: 5.5range: 1-10
♦
0
Armor Value
○
0
Dodge Value
$
800.00
Commerce Value
5
lbs.
Weight

campfire

$
0.01
Commerce Value
30
lbs.
Weight