Topic on Extension talk:TitleBlacklist/Archive 2

Detect if a page title is blacklisted with a magic word

2
Il Gatto Obeso (talkcontribs)

I want MediaWiki:Nopagetext-nopermission to detect whether a page is editable or not by the current user.

I have tested with PROTECTIONLEVEL. However, it detects only manual protection actions, not namespace editing or presence in blacklist.

It would be nice if a magic word was added to allow for detection.

You may think it's overkill: why add a magic word, when blacklist is supposed to prevent creation of non-existing pages? Only existing pages use wikitext, and therefore magic words.

There is the notable exception of MediaWiki (system messages) namespace, though. My use case regards exactly that.

EDIT: My use case is: on my wiki, only registered users can edit. Registration is subject to approval (with Extension:ConfirmAccount). I want to show to logged out users a text on non-existing, non-protected, non-blacklisted pages that advises them to log in or request an account.

EDIT 2: I have done my use case with Extension:WikiTextLoggedInOut, and I do not feel any more the need for the addition.

Also (unrelated) my own opinion: changing extension name, and potentially breaking stuff, due to DEI issues alone is overkill

Pppery (talkcontribs)

You can use the Scribunto library mw.ext.titleblacklist.test for this if Scribunto is installed.

(And agreed on the unrelated opinion)

Reply to "Detect if a page title is blacklisted with a magic word"