Content deleted Content added
. |
. |
||
Line 17:
local prefix = 'Wikipedia:Arbitration/Requests/Case/'
local
function p.dates( frame )
Line 29:
local re = '\n<big>(.-)</big>'
for str in gmatch (pagecontent, re) do
table.insert(result, '
end
return table.concat(result, '\n')
Line 51:
if find(str, '^=') then
s = trim(sub(str, 2))
table.insert(result, '
else
table.insert(result, "'''" .. str .. "'''")
Line 66:
end
function p._arca( case )
local page =
local pagecontent = mw.title.new(page):getContent()
local result = {}
Line 74:
if find(str, '^Amendment request')
or find(str, '^Clarification request') then
table.insert(result, '
end
end
return table.concat(result, '\n')
end
function p.sections( frame )
local case = frame.args[1] or frame.args.case
return p._sections( case )
end
function p._sections( case )
local page = prefix .. case
local talkpage = ptalk .. case
local result = {}
function add (name)
local path = ''
if name then
path = '/' .. name
else
name = 'Case'
end
local title = mw.title.new(page .. path)
if (title.exists) then
table.insert(result,
'*[[' .. page .. path .. '|' .. name .. ']]'
.. ' (' .. '[[' .. talkpage .. path .. '|' .. 'talk]])'
)
end
end
add()
add('Evidence')
add('Workshop')
add('Proposed decision')
return table.concat(result, '\n')
end
|