Anonymous user
Module:UserLinks: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
re-add support for the demo parameter to the error function
(automatically detect project and language values from the project argument input) |
(re-add support for the demo parameter to the error function) |
||
Line 6:
-- Define a custom error message for this module.
local function err(msg, cat)
if demo then
return '<span class="error">[[Module:UserLinks]] error: ' .. msg .. '.</span>[[Category:UserLinks transclusions with errors]]'▼
cat = ''
else
cat = '[[Category:UserLinks transclusions with errors]]'
end
▲ return '<span class="error">[[Module:UserLinks]] error: ' .. msg .. '.</span>
end
|