Module:RoundN: Difference between revisions

Content deleted Content added
fix previewnumbers
fix bold not displaying when only a single unpaired group of ''' (wikimarkup for bold) are used
Line 278:
if not p.bold then
--backwards compatability (wikitemplates bold each arg individually)
local hasBold, b = tostring(v):gsub("^([^']*)'''([^']*)$", '%1'..percent..'s<b>%2</b>')
local percent = '_◆◆_'
if b == 1 then
local hasBold, b = tostring(v):gsub("([^']*)'''([^']*)", '%1'..percent..'s%2')
if b v == 2 thenhasBold
v = hasBold:gsub('%%', '%%%%'):gsub(percent, '%%'):format('<b>', '</b>')
end
end