require('strict')local cfg = mw.loadData('Module:Sidebar/configuration')
local p =
local getArgs = require('Module:Arguments').getArgs
--local function categorizeTemplatesWithInlineStyles(args) local title = mw.title.getCurrentTitle if title.namespace ~= 10 and title.namespace ~= 828 then return end for _, pattern in ipairs (cfg.i18n.pattern.uncategorized_conversion_titles) do if title.text:match(pattern) then return end end for key, _ in pairs(args) do if mw.ustring.find(key, cfg.i18n.pattern.style_conversion) or key
--For compatibility with the original implementation, which passed some parameters through to trim theirwhitespace. This also triggered the automatic newline behavior.-- See local function trimAndAddAutomaticNewline(s) s = mw.ustring.gsub(s, "^%s*(.-)%s*$", "%1") if mw.ustring.find(s, '^[#*:;]') or mw.ustring.find(s, '^