Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
move warnings
simp
Line 118:
local show_namespace_warning = not (current_title.isTalkPage or demo)
if show_namespace_warning then
local text = string.format(
warning = mbox('ombox', {
imagecfg.namespace_warning.text =.. '[[File<br><span style="font-size:95%%">' .. cfg.namespace_warning.imagesmall .. '|40px]]</span>',
pagetype,
type = cfg.namespace_warning.type_,
current_title.talkPageTitle.fullText,
text = string.format(
parameter_format('category', 'no')
cfg.namespace_warning.text .. '<br><span style="font-size:95%%">' .. cfg.namespace_warning.small .. '</span>',
})
pagetype,
current_title.talkPageTitle.fullText,
parameter_format('category', 'no')
)
})
local sortkey
if current_title.namespace==10 then -- on the Template namespace
warningtext = warningtext .. string.format(
cfg.namespace_warning.on_template_page,
parameter_format('BANNER_NAME'),
Line 139 ⟶ 134:
sortkey = 'LOCATION'
end
warning = mbox('ombox', {
warning = warning .. '[[Category:' .. cfg.namespace_warning.categories .. '|' .. sortkey .. ']]'
image = '[[File:' .. cfg.namespace_warning.image .. '|40px]]',
type = cfg.namespace_warning.type_,
text = text
warning = warning}) .. '[[Category:' .. cfg.namespace_warning.categories .. '|' .. sortkey .. ']]'
end
---------------------------