Module:Sandbox/Bradv/Case: Difference between revisions

Content deleted Content added
.
.
Line 8:
local prefix = 'Wikipedia:Arbitration/Requests/Case/'
local ptalk = 'Wikipedia talk:Arbitration/Requests/Case/'
 
function makediv ( tbl, count )
local output = ''
if (count > 0) then
local div = mw.html.create( 'div' )
div
:css( 'text-align', 'left')
:wikitext( table.concat(resulttbl, '<br>\n'))
output = tostring( div )
else
output = "''none''"
end
return output
end
 
function p.dates( frame )
Line 19 ⟶ 33:
local re = '\n<big>(.-)</big>'
for str in gmatch (pagecontent, re) do
table.insert(result, '*' .. trim(str))
end
return table.concatmakediv( result, '\n'1 )
end
 
Line 49 ⟶ 63:
end
return makediv ( result, count )
local output = ''
mw.log(count)
if (count > 0) then
local div = mw.html.create( 'div' )
div
:css( 'text-align', 'left')
:wikitext( table.concat(result, '\n'))
output = tostring( div )
else
output = "''none''"
end
return output
end
 
Line 81 ⟶ 84:
end
end
return makediv ( result, count )
if (count > 0) then
local div = mw.html.create( 'div' )
div
:css( 'text-align', 'left')
:wikitext( table.concat(result, '\n') )
output = tostring( div )
else
output = "''none''"
end
return output
end