Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Message box: Difference between revisions

Content added Content deleted
(pmbox)
m (1 revision imported: Import clickable button set)
Line 78: Line 78:
elseif ns == 14 then
elseif ns == 14 then
obj.cfg = cfg.cmbox -- category namespace
obj.cfg = cfg.cmbox -- category namespace
elseif ns == 104 then
obj.cfg = cfg.pmbox -- page namespace
else
else
local nsTable = mw.site.namespaces[ns]
local nsTable = mw.site.namespaces[ns]
Line 156: Line 154:


-- Add attributes, classes and styles.
-- Add attributes, classes and styles.
if cfg.allowId then
self.id = args.id
self.id = args.id
end
self:addClass(
self:addClass(
cfg.usePlainlinksParam and yesno(args.plainlinks or true) and 'plainlinks'
cfg.usePlainlinksParam and yesno(args.plainlinks or true) and 'plainlinks'
Cookies help us deliver our services. By using our services, you agree to our use of cookies.