Module:Navbox: Difference between revisions

Created page with "require('strict') local p = {} local cfg = mw.loadData('Module:Navbox/configuration') local inArray = require("Module:TableTools").inArray local getArgs -- lazily initialized local hiding_templatestyles = {} -- global passthrough variables local passthrough = { [cfg.arg.above]=true,[cfg.arg.aboveclass]=true,[cfg.arg.abovestyle]=true, [cfg.arg.basestyle]=true, [cfg.arg.below]=true,[cfg.arg.belowclass]=true,[cfg.arg.belowstyle]=true, [cfg.arg.bodyclass]=true, [cfg.a..."
 
m Protected "Module:Navbox": Arwenbot otomatik modül koruması ([Edit=Allow only administrators] (indefinite))
 
(One intermediate revision by one other user not shown)
Line 530: Line 530:
local argHash = 0
local argHash = 0
for k, arg in pairs(args) do
for k, arg in pairs(args) do
if type(arg) == 'string' then
if type(arg) == 'string' then
for marker in string.gfind(arg, strip_marker_pattern) do
for marker in string.gmatch(arg, strip_marker_pattern) do
table.insert(hiding_templatestyles, marker)
table.insert(hiding_templatestyles, marker)
end
end
argHash = argHash + #arg
argHash = argHash + #arg
args[k] = string.gsub(arg, strip_marker_pattern, '')
args[k] = string.gsub(arg, strip_marker_pattern, '')
end
end
 
end
end