Template:Character/CoreStats: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(replace symbols with images for better cross-device rendering)
m (improve sizing on initial mobile load)
Line 1: Line 1:
<includeonly><div class="qud-core-stats-wrapper">
<includeonly><div class="qud-core-stats-wrapper">
<div class="qud-core-stats-entry qud-stats-health qud-tooltip"><div class="qud-stat-icon">[[File:Hp_symbol.png|link=]]</div><div class="qud-stat-value">{{{hp}}}</div><span class="qud-tooltip-text">Hit points: {{{hp}}}</span></div>
<div class="qud-core-stats-entry qud-stats-health qud-tooltip"><div class="qud-stat-icon">[[File:Hp_symbol.png|16px|link=]]</div><div class="qud-stat-value">{{{hp}}}</div><span class="qud-tooltip-text">Hit points: {{{hp}}}</span></div>
<div class="qud-core-stats-entry qud-stats-av qud-tooltip"><div class="qud-stat-icon">[[File:Av_symbol.png|link=]]</div><div class="qud-stat-value">{{{av}}}</div><span class="qud-tooltip-text">Armor value: {{{av}}}</span></div>
<div class="qud-core-stats-entry qud-stats-av qud-tooltip"><div class="qud-stat-icon">[[File:Av_symbol.png|16px|link=]]</div><div class="qud-stat-value">{{{av}}}</div><span class="qud-tooltip-text">Armor value: {{{av}}}</span></div>
<div class="qud-core-stats-entry qud-stats-dv qud-tooltip"><div class="qud-stat-icon">[[File:Dv_symbol.png|link=]]</div><div class="qud-stat-value">{{{dv}}}</div><span class="qud-tooltip-text">Dodge value: {{{dv}}}</span></div>
<div class="qud-core-stats-entry qud-stats-dv qud-tooltip"><div class="qud-stat-icon">[[File:Dv_symbol.png|16px|link=]]</div><div class="qud-stat-value">{{{dv}}}</div><span class="qud-tooltip-text">Dodge value: {{{dv}}}</span></div>
</div></includeonly><noinclude>
</div></includeonly><noinclude>
Outputs a character's core stats. Intended for use in [[Template:Character]].
Outputs a character's core stats. Intended for use in [[Template:Character]].

Revision as of 16:59, 19 August 2019

Outputs a character's core stats. Intended for use in Template:Character.

All three parameters are required.

{{Character/CoreStats
| hp = 84
| av = 7
| dv = 3
}}
Hp symbol.png
84
Hit points: 84
Av symbol.png
7
Armor value: 7
Dv symbol.png
3
Dodge value: 3