Content deleted Content added
No edit summary |
No edit summary |
||
Line 1:
local p = {}
local cfg = mw.loadData('Module:If preview/configuration')
Line 28 ⟶ 27:
function p.pmain(frame)
return p.main(frame:getParent())
end▼
mw.addWarning("[" .. p._counter .. "] " .. frame.args[1])▼
end
Line 53 ⟶ 46:
if not cfg.preview then return '' end
return warning_text(warning
end
Line 61 ⟶ 54:
This function returns a "preview warning", which is the first argument marked
up with HTML and some supporting text, depending on whether the page is being previewed.
]]
return p._warning(frame.args)
▲end
--[[
Line 73 ⟶ 65:
]]
function p.pwarning(frame)
return p._warning(frame:getParent().args)
end
|