Content deleted Content added
fix up warning |
simplify error message |
||
Line 301:
end
local function warning(
local frame = mw.getCurrentFrame():getParent()
local html = ""
if frame:preprocess( "{{REVISIONID}}" ) == "" then
html = '<div style="color:red"><strong>Warning:</strong> '..errmsg
html = html..' <small>(this message is shown only in preview)</small></div>'
end
Line 323 ⟶ 318:
local input = args[1]
if input == nil or string.len(input)==0 then
return warning(
end
local linktitle = args[2]
Line 358 ⟶ 353:
if LL[2] ~= nil then
html = linktitle
html = html..warning(
return html
end
|