Jump to content

Module:Protected page text/config

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Awesome Aasim (talk | contribs) at 05:49, 23 March 2024 (start work on configuration data that can be used potentially for page protections, etc.). 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)
return {
	usergroups = {
		sysop = "[[Wikipedia:Administrators|administrator]]",
		templateeditor = "[[Wikipedia:Template editors|template editor]]",
		extendedconfirmed = "[[Wikipedia:Extended confirmed|extended confirmed user]]",
		autoconfirmed = "[[Wikipedia:Autoconfirmed|autoconfirmed user]]",
		extendedmover = "[[Wikipedia:Page mover|page mover]]"
	},
	usergrouparticles = {
		sysop = "an",
		templateeditor = "a",
		extendedconfirmed = "an",
		autoconfirmed = "an",
		extendedmover = "a"
	},
	protectedpagetext = {
		default = {
			
		}
	},
	titleblacklist = {
		default = {
			icon = "Template-protection-shackle.svg",
			message = "This page is on the [[MediaWiki:Title blacklist|title blacklist]], thus only $1 can $2 it."
		}
	},
	cascade = {
		default = {
			icon = "Cascade-protection-shackle.svg",
			message = "This page is transcluded in [[Wikipedia:Cascade protection|{{PLURAL:{{{pages|}}}|a cascade-protected page|multiple cascade protected pages}}]], thus only $1 can $2 it."
		}
	},
	customcssjsjson = {
		["interface-admin"] = {
			icon = "Interface-protection-shackle.svg"
		},
		default = {
			icon = "Full-protection-shackle-block.svg",
			iconnotexists = "Create-protection-shackle.svg",
			message = "This user page is protected so that only $1 (in addition to {{ROOTPAGENAME}}) can $2 it.",
			why = {
				"Certain pages contain styling and code that affects a program's behavior.",
				"As a security precaution, only administrators can edit JSON pages, while interface administrators can edit CSS and JS pages."
			}
		}
	},
	interface = {
		["interface-admin"] = {
			why = {
				"Sitewide CSS and JavaScript pages contain styling and code that affects the whole site. They may be documented on [[mw:Manual:Interface/{{PAGENAME}}|mediawiki.org]] or [[translatewiki:{{FULLPAGENAME}}/qqq|translatewiki.net]]."
			}
		},
		["sysop"] = {
			why = {
				"MediaWiki pages contain messages and configurations that are displayed in the [[user interface]] on Wikipedia. They may be documented on [[mw:Manual:Interface/{{PAGENAME}}|mediawiki.org]] or [[translatewiki:{{FULLPAGENAME}}/qqq|translatewiki.net]]."
			}
		},
		default = {
			message = "This MediaWiki page is protected so that only $1 can $2 it.",
			why = {
				"As a security precaution, only $1 generally can edit these pages."
			},
			what = {
				"{{#ifexist:{{TALKPAGENAME}}/sandbox|This interface page has a sandbox page, which may be edited by anyone.}}"
			}
		}
	},
	default = {
		["interface-admin"] = {
			icon = "Interface-protection-shackle.svg"
		},
		["sysop"] = {
			icon = "Full-protection-shackle.svg"
		},
		["templateeditor"] = {
			icon = "Template-protection-shackle.svg"
		},
		["extendedconfirmed"] = {
			icon = "Extended-protection-shackle.svg",
			what = {
				"If you are not logged in, [[Special:UserLogin/signup|make an account]]. If you are logged in, wait until your account is thirty days old and has made at least 500 edits."
			}
		},
		["autoconfirmed"] = {
			icon = "Semi-protection-shackle.svg",
			what = {
				"If you are not logged in, [[Special:UserLogin/signup|make an account]]. If you are logged in, wait until your account is four days old and has made at least ten edits."
			}
		},
		default = {
			icon = "Full-protection-shackle-block.svg",
			iconnotexists = "Create-protection-shackle.svg",
			message = "This page is protected so that only $1 can $2 it.",
			what = {
				"[[{{TALKPAGENAME:$3}}|Discuss this page with others.]]",
				"[[Help:Introduction|Find out more on how to get started with editing Wikipedia.]]",
				"If you wrote any text, please save it temporarily to your device until you can $2 this page."
			}
		}
	}
}