Jump to content

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"

Is $ a protected character?

2
Billinghurst (talkcontribs)

Anyone able to tell me whether $ is seen as a terminating character or as literal character when used in title blacklists?

Mabdul (talkcontribs)

Yes, it is. It is used in regular expressions to find the end of the line. You might have to escape the character.

Reply to "Is $ a protected character?"

Regarding the (tboverride) and (tboverride-account) permissions

1
C.Syde65 (talkcontribs)

Just wondered if users necessarily needed to have both the (tboverride) and (tboverride-account) permissions to perform certain tasks. Because as far as I understand it, the first one allows users to override both the title and username blacklists. While the last one allows users to override just the username blacklist. I just wanted to check whether or not my understanding is adequate.

Reply to "Regarding the (tboverride) and (tboverride-account) permissions"
There are no older topics