Template:Tooltip dice mean string

From Caves of Qud Wiki
Jump to navigation Jump to search

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.