Template:Character/CoreStats: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(attempt to fix icons being turned into emojis on android (adds unicode variation selector to icons))
(replace symbols with images for better cross-device rendering)
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">♥&#xFE0E;</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|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">♦&#xFE0E;</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|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">○&#xFE0E;</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|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 14:46, 13 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