Template:Character/DetailedAttribute: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><div class="qud-stat-details-entry"><div class="qud-stat-name">[[{{{3|Attributes}}}|{{{1}}}]]</div><div class="qud-stat-range">{{#invoke:dice/Format | diceStats | roll = {{{2|}}} | multiplier={{{4|1}}} | template = Dice_ceil_based_range_only}}</div><div class="qud-stat-avg">{{#invoke:dice/Format | diceStats | roll = {{{2|}}} | multiplier = {{{4|1}}} | template = Dice_ceil_based_average_only}}</div><div class="qud-stat-roll">{{#ifeq: {{{4|1}}}|1|{{{2}}}|<span>({{{2}}})</span><span style="color:var(--qud-color-y)">×{{{4}}}</span>}}</div></div></includeonly><noinclude> | <includeonly><div class="qud-stat-details-entry"><div class="qud-stat-name">[[{{{3|Attributes}}}|{{{1}}}]]</div><div class="qud-stat-range">{{#invoke:dice/Format | diceStats | roll = {{{2|}}} | multiplier={{{4|1}}} | extraafterroll = {{{5|0}}} | template = Dice_ceil_based_range_only}}</div><div class="qud-stat-avg">{{#invoke:dice/Format | diceStats | roll = {{{2|}}} | multiplier = {{{4|1}}} | extraafterroll = {{{5|0}}} | template = Dice_ceil_based_average_only}}</div><div class="qud-stat-roll">{{#ifeq: {{{4|1}}}|1|{{{2}}}|<span>({{{2}}})</span><span style="color:var(--qud-color-y)">×{{{4}}}</span>}}</div></div></includeonly><noinclude> | ||
Outputs a detail row for a single character attribute. Intended for use in [[Template:Character]]. | Outputs a detail row for a single character attribute. Intended for use in [[Template:Character]]. | ||
Revision as of 02:24, 14 February 2021
Outputs a detail row for a single character attribute. Intended for use in Template:Character.
parameter 3 is optional - it will default link to the Attributes page.
parameter 4 is an optional multiplier for the stat (this is derived from the stat's "Bonus" attribute using a particular formula). If not specified, it defaults to 1.
parameter 5 is an additive value that represents extrinsic bonuses, such as the bonuses from mutations or armor.
{{Character/DetailedAttribute
| 1 = Strength
| 2 = 17+2d3+1d6
| 3 = Attributes
| 4 = 1.25
| 5 = 0
}}