Template:Character/Attribute: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(Created page with "<includeonly><div class="qud-attribute-entry qud-tooltip"><div class="qud-attribute-label qud-attribute-{{lc:{{{label}}}}}">{{{label}}}:</div><div class="qud-attribute-value {...")
 
mNo edit summary
Line 1: Line 1:
<includeonly><div class="qud-attribute-entry qud-tooltip"><div class="qud-attribute-label qud-attribute-{{lc:{{{label}}}}}">{{{label}}}:</div><div class="qud-attribute-value {{{value_class|}}}">{{#invoke:dice/Format | diceStats | roll = {{{value|}}} | template = Dice_mean_truncated}}</div>{{#if: {{{value|}}} | <!-- create hover tooltip if a value was specified for the attribute: --><span class="qud-tooltip-text delayed-tooltip">[[{{{link|Attributes}}}|{{{name}}}]]: {{#invoke:dice/Format | diceStats | roll = {{{value|}}} | template = Dice_mean_truncated}}{{#invoke:dice/Format | diceStats | roll = {{{value|}}} | template = Tooltip_dice_range_string}}</span> | }}</div></includeonly><noinclude>
<includeonly><div class="qud-attribute-entry qud-tooltip"><div class="qud-attribute-label qud-attribute-{{lc:{{{label}}}}}">{{{label}}}:</div><div class="qud-attribute-value">{{#invoke:dice/Format | diceStats | roll = {{{value|}}} | template = Dice_mean_truncated}}</div>{{#if: {{{value|}}} | <!-- create hover tooltip if a value was specified for the attribute: --><span class="qud-tooltip-text delayed-tooltip">[[{{{link|Attributes}}}|{{{name}}}]]: {{#invoke:dice/Format | diceStats | roll = {{{value|}}} | template = Dice_mean_truncated}}{{#invoke:dice/Format | diceStats | roll = {{{value|}}} | template = Tooltip_dice_range_string}}</span> | }}</div></includeonly><noinclude>
Outputs a single character attribute. Intended for use in [[Template:Character]].
Outputs a single character attribute. Intended for use in [[Template:Character]].


Line 7: Line 7:
| link = Attributes
| link = Attributes
| value = 17
| value = 17
| value_class = qud-cyan
}}</syntaxhighlight>
}}</syntaxhighlight>


Line 17: Line 16:
| link = Attributes
| link = Attributes
| value = 17
| value = 17
| value_class = qud-cyan
}}
}}
</div>
</div>


</noinclude>
</noinclude>

Revision as of 14:09, 12 August 2019

Outputs a single character attribute. Intended for use in Template:Character.

{{Character/Attribute
| name = Strength
| label = ST
| link = Attributes
| value = 17
}}


ST:
17
Strength: 17