Home
Random
Log in
Settings
About Drawing Wiki
Disclaimers
Drawing Wiki
Search
Editing
Module:User error
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
-------------------------------------------------------------------------------- -- A less intimidating version of the built-in "error()" function, to help -- editors fix their mistakes when transcluding a template. -- -- @see [[wikia:w:c:Dev:Module:User error]] for a similar module. -------------------------------------------------------------------------------- local checkType = require("libraryUtil").checkType; return function (message, ...) checkType("Module:User error", 1, message, "string"); local result = mw.text.tag( "strong", { class="error" }, "Error: " .. message ); local categories = {}; for i = 1, select("#", ...) do local category = select(i, ...); checkType("Module:User error", 1 + i, category, "string", true); if (category and category ~= "") then table.insert(categories, "[[Category:" .. category .. "]]"); end end return result .. table.concat(categories); end;
Summary:
Please note that all contributions to Drawing Wiki are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) (see
Drawing Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Module:User error/doc
(
edit
)