Template:Tooltip dice mean string: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(Created page with "<includeonly><span class="qud-roll-average">average: {{{mean|}}}</span></includeonly><noinclude>Category:Templates Meant for use as a template parameter for Module:Dice...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><span class="qud-roll-average">average: {{{mean|}}}</span></includeonly><noinclude>[[Category:Templates]]
<includeonly>{{#ifeq: {{{mean|0}}} | 0 || <span class="qud-roll-average">average: {{{mean|}}}</span> }}</includeonly><noinclude>[[Category:Dice Templates]]


Meant for use as a template parameter for [[Module:Dice/Format]]. Returns only the mean/average for a dice roll string (example: <code>3.5</code>), formatted in a <code>&lt;span&gt;</code> block appropriate for the Character and Item template tooltips. This probably won't be useful anywhere else.
Meant for use as a template parameter for [[Module:Dice/Format]]. Returns only the mean/average for a dice roll string (example: <code>3.5</code>), formatted in a <code>&lt;span&gt;</code> block appropriate for the Character and Item template tooltips. This probably won't be useful anywhere else. Doesn't return anything if the mean is equal to zero.
</noinclude>
</noinclude>

Latest revision as of 15:59, 22 December 2020


Meant for use as a template parameter for Module:Dice/Format. Returns only the mean/average for a dice roll string (example: 3.5), formatted in a <span> block appropriate for the Character and Item template tooltips. This probably won't be useful anywhere else. Doesn't return anything if the mean is equal to zero.