Template:Item/CoreStats: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (update links that changed) |
||
Line 11: | Line 11: | ||
--><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-max-pv">/{{{maxpv|4}}}</span>}}}} }}</div><!-- | ||
--><span class="qud-tooltip-text">{{#ifeq: {{{vibro|}}} | yes | Adaptive PV<br>([[Vibro]]){{#ifeq:{{{thrown|no}}}|yes|<br><span class="qud-thrown-pv-txt">when thrown</span>}} | <span class="qud-pv-tooltip-text">[[PV]]{{#ifeq:{{{missile|no}}}|yes||{{#ifeq:{{{thrown|no}}}|yes|<span class="qud-thrown-pv-txt"> (thrown)</span>|<span class="qud-max-pv">/Max PV</span>}}}}</span>}}</span><!-- | --><span class="qud-tooltip-text">{{#ifeq: {{{vibro|}}} | yes | Adaptive PV<br>([[Vibro]]){{#ifeq:{{{thrown|no}}}|yes|<br><span class="qud-thrown-pv-txt">when thrown</span>}} | <span class="qud-pv-tooltip-text">[[Penetration (PV)|PV]]{{#ifeq:{{{missile|no}}}|yes||{{#ifeq:{{{thrown|no}}}|yes|<span class="qud-thrown-pv-txt"> (thrown)</span>|<span class="qud-max-pv">/Max PV</span>}}}}</span>}}</span><!-- | ||
--></div></div> | --></div></div> | ||
}}<!-- | }}<!-- | ||
Line 31: | Line 31: | ||
--><div class="qud-item-stat-symbol">{{AV}}</div><!-- | --><div class="qud-item-stat-symbol">{{AV}}</div><!-- | ||
--><div class="qud-item-stat-value">{{{av}}}</div><!-- | --><div class="qud-item-stat-value">{{{av}}}</div><!-- | ||
--><span class="qud-tooltip-text">[[AV|Armor Value]]</span><!-- | --><span class="qud-tooltip-text">[[Armor (AV)|Armor Value]]</span><!-- | ||
--></div></div> | --></div></div> | ||
}}<!-- | }}<!-- |
Revision as of 19:09, 16 December 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 -->
}}
other examples
copper nugget
1
lb.
Weightceremonial vibrokhopesh
swarm rack
point-defense drone
campfire
30
lbs.
Weight