Module:RoundN: Difference between revisions

Content deleted Content added
clean whitespace and some globals; see talk
fix "Lua error in Module:RoundN at line 282: bad argument #2 to 'format' (no value)"
Line 278:
if not p.bold then
--backwards compatability (wikitemplates bold each arg individually)
local percent = '_◆◆_'
local hasBold, b = tostring(v):gsub("([^']*)'''([^']*)", '%1%%'..percent..'s%2')
if b == 12 then
v = hasBold:gsub('%%', '%%%%'):gsub(percent, '%%'):format('<b>', '</b>')
end
end