Open main menu

Changes

Module:Citation

35 bytes removed, 12:35, 25 August 2012
Tweaked two functions.
-- This can be removed when mw.text.tag appears.
function p.tag(frame, t)
local name = t.name or "!--"
local content = t.contents or ""
local params = ""
for n,v in pairs(t.params) do
params = params .. " |" .. n .. "=" .. v
end
return frame:preprocess("<{{#tag:" .. name .. params .. ">|" .. content .. "</" .. name params .. ">")
end
local P4 = frame.args[4] or ""
if ( frame.args[4] ~= nil ) then
P4 = " & " .. P4
end
if ( frame.args[3] ~= nil ) then
P3 = " & " .. P3
end P2 = " & " .. P2 if elseif ( frame.args[23] ~= nil ) then
P2 = " & " .. P2
end
local args = { name = anchorid(pframe) }
-- return mw.text.tag{name = "ref", contents = content, params = args}
return tag(frame, {name = "ref", contents = content, params = args})
end
return p
Anonymous user