„Modul:Message box” változatai közötti eltérés – Wikiforrás
Article Images
Tartalom törölve Tartalom hozzáadva
13. sor: local tinsert = table.insert local tconcat = table.concat local trim = mw.text.trim local box = {} 24 ⟶ 25 sor: return title end end▼
if type(s) ~= 'string' then return end▼
return true▼
end end 219 ⟶ 211 sor: self.issue = args.smalltext else local if sect = 'This ' .. (cfg.sectionDefault or 'page') elseif type(args.sect) == 'string' then sect = 'This ' .. sect else▼ sect = nil▼ end local issue = args.issue 240 ⟶ 230 sor: -- Get the self.talk value. local talk = args.talk if talk = '#' end 267 ⟶ 257 sor: -- Get other values. self.fix = args.fix
self.date =
self.date = lang:formatDate('F Y') end 536 ⟶ 526 sor: -- assume args are being passed directly in from the debug console -- or from another Lua module. local if frame == mw.getCurrentFrame() then
for k, v in pairs(frame.args) do
break end else
▲ end -- Trim whitespace. local args = {} for k, v in pairs(origArgs) do ▲ if type( ▲ ▲ ▲ end return makeBox(boxType, args) |