MediaWiki:Titleblacklist: Difference between revisions

Safer nicotine wiki Tobacco Harm Reduction
Jump to navigation Jump to search
No edit summary
(added word nude to filter for page names)
 
(2 intermediate revisions by the same user not shown)
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 8:
# [Bb]ar # No one should create article about it
# [Bb]ar # No one should create article about it
# .*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
.*porn.*
.*nude.*


# Each entry may also contain optional attributes, enclosed in <> and separated with |.
# Each entry may also contain optional attributes, enclosed in <> and separated with |.
Line 23: Line 25:


# 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>

Latest revision as of 15:29, 25 September 2023

  1. This is a disallowed titles list. Titles and usernames that match a regular expression here cannot be created.
  2. Use "#" for comments.
  3. This is case-insensitive by default
  1. Examples:
  2. Foo <autoconfirmed|noedit|errmsg=blacklisted-testpage> # This page name is not allowed
  3. [Bb]ar # No one should create article about it
  4. .*pandora.* # This word is not allowed in any part of a page name

.*porn.* .*nude.*

  1. Each entry may also contain optional attributes, enclosed in <> and separated with |.
  1. autoconfirmed - also allows autoconfirmed users to perform such actions
  2. casesensitive - do not ignore case when checking title for being put on the block list
  3. noedit - also forbid editing the page (if it already exists)
  4. moveonly - forbid moves but allow ordinary creation (rev:35163)
  5. newaccountonly - forbid creation of matching usernames, but allow page creation (rev:38977)
  6. reupload - allow reuploads of existing blocked files (rev:33656)
  7. errmsg - the name of the message that should be displayed instead of standard
  8. If the AntiSpoof extension is installed, you can also use the ‎<antispoof> attribute.
  1. 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.
  1. 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").