Content deleted Content added
mNo edit summary |
Created error for case where "main" is called twice |
||
Line 117:
function unknownDataTypeError(dataType)
return "
end
function missingRequiredParameterError()
return "
end
function extraRequiredParameterError(param)
return "
end
Line 768:
return value
else
return '<strong class="error">' .. unknownDataTypeError(snak.datavalue.type) '.</strong>'
end
elseif snak.snaktype == 'somevalue' then
Line 1,495:
-- make sure that at least one required parameter has been defined
if not next(parsedFormat.req) then
end
-- make sure that the separator parameter "%s" is not amongst the required parameters
if parsedFormat.req[parameters.separator] then
end
Line 1,670:
f = mw.text.trim(frame.args[1] or "")
assert(p[f], 'The function "' .. f .. '" does not exist')
if f == "main" then
error('The function "main" cannot be called twice')
end
args = {}
|