Changes
Jump to navigation
Jump to search
P4 = " & " .. P4
end
if ( frame.args[3] ~= nil ) then
end P2 = " & " .. P2 if elseif ( frame.args[23] ~= nil ) then
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
P3 = " & " .. P3
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