MediaWiki:Titleblacklist: Difference between revisions
Richardpruen (talk | contribs) Added examples and instructions |
Richardpruen (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<nowiki> | |||
# This is a disallowed titles list. Titles and usernames that match a regular expression here cannot be created. | # This is a disallowed titles list. Titles and usernames that match a regular expression here cannot be created. | ||
# Use "#" for comments. | # Use "#" for comments. | ||
Line 8: | Line 9: | ||
# .*pandora.* # This word is not allowed in any part of a page name | # .*pandora.* # This word is not allowed in any part of a page name | ||
#Each entry may also contain optional attributes, enclosed in <> and separated with |. | # Each entry may also contain optional attributes, enclosed in <> and separated with |. | ||
# autoconfirmed - also allows autoconfirmed users to perform such actions | # autoconfirmed - also allows autoconfirmed users to perform such actions | ||
Line 22: | Line 23: | ||
# Underscores ("_") in regular expressions will be converted to spaces by the extension, because titles are matched against its text form ("Page title" instead of "Page_title"). | # Underscores ("_") in regular expressions will be converted to spaces by the extension, because titles are matched against its text form ("Page title" instead of "Page_title"). | ||
</nowiki> |
Revision as of 12:55, 8 May 2023
# This is a disallowed titles list. Titles and usernames that match a regular expression here cannot be created. # Use "#" for comments. # This is case-insensitive by default # Examples: # Foo <autoconfirmed|noedit|errmsg=blacklisted-testpage> # This page name is not allowed # [Bb]ar # No one should create article about it # .*pandora.* # This word is not allowed in any part of a page name # Each entry may also contain optional attributes, enclosed in <> and separated with |. # autoconfirmed - also allows autoconfirmed users to perform such actions # casesensitive - do not ignore case when checking title for being put on the block list # noedit - also forbid editing the page (if it already exists) # moveonly - forbid moves but allow ordinary creation (rev:35163) # newaccountonly - forbid creation of matching usernames, but allow page creation (rev:38977) # reupload - allow reuploads of existing blocked files (rev:33656) # errmsg - the name of the message that should be displayed instead of standard # If the AntiSpoof extension is installed, you can also use the <antispoof> attribute. # What is referred to here as regular expressions are not proper regular expressions, but rather subpatterns that are inserted into a hard-coded regular expression. i.e. the subpattern Foo from above would create a # regular expression like /^Foo$/usi. # Underscores ("_") in regular expressions will be converted to spaces by the extension, because titles are matched against its text form ("Page title" instead of "Page_title").