Template:Character/DetailedAttribute: Difference between revisions

no edit summary
(Created page with "<includeonly><div class="qud-stat-details-entry"><div class="qud-stat-name">[[{{{link|Attributes}}}|{{{name}}}]]</div><div class="qud-stat-range">{{#invoke:dice/Format | diceS...")
 
No edit summary
Line 1: Line 1:
<includeonly><div class="qud-stat-details-entry"><div class="qud-stat-name">[[{{{link|Attributes}}}|{{{name}}}]]</div><div class="qud-stat-range">{{#invoke:dice/Format | diceStats | roll = {{{value|}}} | template = Dice_range_only}}</div><div class="qud-stat-avg">{{#invoke:dice/Format | diceStats | roll = {{{value|}}} | template = Dice_mean_only}}</div><div class="qud-stat-roll">{{{value}}}</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|}}} | template = Dice_range_only}}</div><div class="qud-stat-avg">{{#invoke:dice/Format | diceStats | roll = {{{2|}}} | template = Dice_mean_only}}</div><div class="qud-stat-roll">{{{2}}}</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]].
parameter 3 is optional - it will default link to the [[Attributes]] page.


<syntaxhighlight>{{Character/DetailedAttribute
<syntaxhighlight>{{Character/DetailedAttribute
| name = Strength
| 1 = Strength
| link = Attributes
| 2 = 17+2d3+1d6
| value = 17+2d3+1d6
| 3 = Attributes
}}</syntaxhighlight>
}}</syntaxhighlight>


Line 11: Line 13:
<div style="display:inline-block;">
<div style="display:inline-block;">
{{Character/DetailedAttribute
{{Character/DetailedAttribute
| name = Strength
| 1 = Strength
| link = Attributes
| 2 = 17+2d3+1d6
| value = 17+2d3+1d6
| 3 = Attributes
}}
}}
</div>
</div>


</noinclude>
</noinclude>