Use mbox module
starcitizen>Alistair3149 (Treat `pcall(mw.loadData, "string constant value")` as being non-dynamic) |
starcitizen>Alistair3149 (Use mbox module) |
||
| Рядок 351: | Рядок 351: | ||
---@return string | ---@return string | ||
local function messageBoxUnused( pageName, addCategories ) | local function messageBoxUnused( pageName, addCategories ) | ||
local mbox = require( 'Module:Mbox' )._mbox | |||
return mbox( | |||
'This module is unused.', | |||
string.format( 'This module is neither invoked by a template nor required/loaded by another module. If this is in error, make sure to add <code>{{[[Template:Documentation|Documentation]]}}</code>/<code>{{[[Template:No documentation|No documentation]]}}</code> to the calling template\'s or parent\'s module documentation.', | |||
pageName | |||
) | |||
) .. addCategories and '[[Category:Unused modules]]' or '' | |||
end | end | ||