Module:Message box: Difference between revisions

pmbox
m (1 revision imported)
(pmbox)
Line 78:
elseif ns == 14 then
obj.cfg = cfg.cmbox -- category namespace
elseif ns == 104 then
obj.cfg = cfg.pmbox -- page namespace
else
local nsTable = mw.site.namespaces[ns]
Line 154 ⟶ 156:
 
-- Add attributes, classes and styles.
self.id = args.id
if cfg.allowId then
self.id = args.id
end
self:addClass(
cfg.usePlainlinksParam and yesno(args.plainlinks or true) and 'plainlinks'
Anonymous user