Module:Dice/Format: Difference between revisions

m
no edit summary
(use Dice string template by default)
mNo edit summary
Line 5: Line 5:
function DiceStats.diceStats(frame)
function DiceStats.diceStats(frame)
     local dice = Dice.fromString(frame.args.roll)
     local dice = Dice.fromString(frame.args.roll)
     if (frame.args.template ~= nil or frame.args.template ~= '') then
     if (frame.args.template ~= nil and frame.args.template ~= '') then
         local templatetitle = frame.args.template
         local templatetitle = frame.args.template
     else
     else