Template:Item/CoreStats: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (fix fractional values) |
||
Line 50: | Line 50: | ||
|<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 {{#ifeq: {{{currency|no}}}|yes|symbol-dram-trade|symbol-dram}}">$</div><!-- | --><div class="qud-item-stat-symbol {{#ifeq: {{{currency|no}}}|yes|symbol-dram-trade|symbol-dram}}">$</div><!-- | ||
--><div class="qud-item-stat-value">{{{value}}}.00</div><!-- | --><div class="qud-item-stat-value">{{#if:{{#pos:{{{value}}}|.}}|{{{value}}}|{{{value}}}.00}}</div><!-- | ||
--><span class="qud-tooltip-text">{{#ifeq: {{{currency|no}}}|yes|[[:Category:Trade_Goods|Trade Value]]|[[Commerce|Commerce Value]]}}</span><!-- | --><span class="qud-tooltip-text">{{#ifeq: {{{currency|no}}}|yes|[[:Category:Trade_Goods|Trade Value]]|[[Commerce|Commerce Value]]}}</span><!-- | ||
--></div></div> | --></div></div> | ||
Line 150: | Line 150: | ||
}} | }} | ||
</div> | </div> | ||
=== {{favilink|campfire}} === | |||
<div style="width: 270px;font-size:90%;margin:1em 1em 4em 1em;color:var(--qud-color-y);"> | |||
{{Item/CoreStats | |||
| weight = 30 | |||
| value = 0.01 | |||
}} | |||
</div> | |||
</noinclude> | </noinclude> |
Revision as of 21:58, 11 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 -->
| 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