Module:Dice/Format: Difference between revisions

m
declare local
(added default global)
m (declare local)
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)
     templatetitle = ''
     local templatetitle
     if (frame.args.template ~= nil and frame.args.template ~= '') then
     if (frame.args.template ~= nil and frame.args.template ~= '') then
         templatetitle = frame.args.template
         templatetitle = frame.args.template