Module:Sandbox/Bradv/Case: Difference between revisions

Content deleted Content added
.
.
 
(4 intermediate revisions by the same user not shown)
Line 9:
local ptalk = 'Wikipedia talk:Arbitration/Requests/Case/'
 
function makedivrender ( tbl, count )
local output = ''
if (count > 0) then
local div = mw.html.create( 'div' )
div
:css( 'text-align', 'left' )
:wikitext( '<p>\n' .. table.concat(tbl, '<br/p><p>\n') .. '</p>\n' )
output = tostring( div )
else
Line 35:
table.insert(result, trim(str))
end
return makedivrender( result, 1 )
end
 
Line 52:
for str in gmatch(fd, re) do
if find(str, '^%s*Enforcement') then
break--ignore
end
if find(str, '^=') then
s = trim(sub(str, 2))
table.insert(result, ':[[' .. page .. '#' .. s .. '|' .. s .. ']]')
else
if find(str, '^=') then
table.insert(result, "'''" .. str .. "'''")
s = trim(sub(str, 2))
table.insert(result, ':[[' .. page .. '#' .. s .. '|' .. s .. ']]')
else
table.insert(result, "'''" .. str .. "'''")
end
count = count + 1
end
count = count + 1
end
return makedivrender ( result, count )
end
 
Line 84 ⟶ 85:
end
end
return makedivrender ( result, count )
end