Jump to content

Module:WikiProject banner/config

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by MSGJ (talk | contribs) at 07:37, 28 May 2023 (create). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

local p = {}
p.cfg = {
	["subst_warning"] = {
		["image"] = '[[File:Stop hand nuvola.svg|40px]]',
		["type"] = 'content',
		-- Lua 5.2 gives us access to \z. Pipe dream upgrade.
		["text"] = '<p>It seems that the <i>WikiProject %s</i> banner has ' ..
			'been [[Wikipedia:Substitution|substituted]] on this page ' ..
			'instead of being [[Wikipedia:Transclusion|transcluded]]. ' ..
			'Please undo the edit and type <code>&#123;&#123;%s&#125;&#125;' ..
			'</code> instead.</p>',
		["categories"] = '[[Category:WikiProject banners with formatting errors|SUBST]]' ..
			'[[Category:Pages with incorrectly substituted templates]]'
	},
	["namespace_warning"] = {
		["image"] = '[[File:Ambox important.svg|40px]]',
		["type"] = 'content',
		-- Lua 5.2 gives us access to \z. Pipe dream upgrade.
		["text"] = '<p>The WikiProject banner below should be moved to this ' ..
			'%s\'s <b>[[%s|talk page]]</b>.</p><p style="font-size:95%%">If ' ..
			'this is a demonstration of the template, please set the ' ..
			'parameter %s to prevent this page being miscategorised. %s</p>' ..
			'<b>Note:</b> When merging or renaming banners, categories, ' ..
			'projects or taskforces, you may need to update ' ..
			'[[WP:AALERTS/LIST]] for [[WP:AALERTS|Article Alerts]] to work ' ..
			'correctly (ask for help at [[WT:AALERTS]]).',
		["on_template_page"] = 'If this message appears on the template page itself, please check that the value of the %s parameter is correctly set to <kbd>%s</kbd>.',
		["categories"] = '[[Category:WikiProject banners with formatting errors|%s]]'
	}
}

return p