Module:Message box and Module:Message box/sandbox: Difference between pages

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
imported>Izno
below in div mbox
 
imported>Rich Farmbrough
restore Module:Message box/configuration/sandbox
 
Line 4: Line 4:
local lang = mw.language.getContentLanguage()
local lang = mw.language.getContentLanguage()


local CONFIG_MODULE = 'Module:Message box/configuration'
local CONFIG_MODULE = 'Module:Message box/configuration/sandbox'
local DEMOSPACES = {talk = 'tmbox', image = 'imbox', file = 'imbox', category = 'cmbox', article = 'ambox', main = 'ambox'}
local DEMOSPACES = {talk = 'tmbox', image = 'imbox', file = 'imbox', category = 'cmbox', article = 'ambox', main = 'ambox'}


Line 230: Line 230:
sect = 'This ' .. (cfg.sectionDefault or 'page')
sect = 'This ' .. (cfg.sectionDefault or 'page')
elseif type(args.sect) == 'string' then
elseif type(args.sect) == 'string' then
sect = 'This ' .. args.sect
                if args.sect_plural == '' then
    sect = 'This ' .. args.sect
                else
                    sect = 'These ' .. args.sect
                end
end
end
local issue = args.issue
local issue = args.issue