Topic on Extension talk:Replace Text

Suggestion: Lock "Replace text in page contents" to On. (?)

5
Summary by MvGulik

Closed: Invalid/Insufficient data.

MvGulik (talkcontribs)

-- Searching with the Replace-Text MW-search-page.

-- Used Options shortcuts:
a) [Replace text in page contents]
b) [Replace text in page titles, when possible]
c) [Replace only in category]

These Options are displayed/presented to the user as seeming to be independent options.

Replace-Text behavior however shows that if option [a] is Off. All other option also 'seem' to be non-usable/-active.

For example:

With option [a] Off, but Option [b] On, and looking for "/doc" (templated"namespace) Replace-Text never finds anything.

Or:

If Option [c] is used (valid category specified), and option [a] is Off. A "/doc" search comes back with "No category exists with the name "Category:<used category>".
-- This seems more related to the fact that no matches where found.

For Replace-Text to provide less ambiguous UI-feedback to the user, based on this behavior, it kinda makes sense to auto-disable all options if [a] is Off.
... or to just lock Option [a] to On.

-- Not specific to any Replace-Text version.

Yaron Koren (talkcontribs)

It seems like the real issue is the bug that you can't replace text in only page titles, no?

Yaron Koren (talkcontribs)

By the way, I can't replicate this bug. What version of Replace Text are you using? And could it be that you have not selected all the necessary namespaces?

MvGulik (talkcontribs)

>It seems like the real issue is the bug that you can't replace text in only page titles, no?

If its intended that that should be possible with Replace-Text, than yea.


>... could it be that you have not selected all the necessary namespaces?

Unlikely. I first made sure Replace-Text found a bunch of pages, before trying it with the [Replace text in page contents] option disabled.


Specs:

Replace Text: 1.7 (8e35c8f) 19:50, 4 December 2022
- - - -
MediaWiki: 1.39.0
PHP: 7.4.33 (fpm-fcgi)
MariaDB: 10.5.18-MariaDB
ICU: 50.2


Personally I can't recall any time that this worked on any version of Replace-text.
(only have used Replace-Text on the same wiki. Although with different MW-versions over time)
Ps: I'm not running/hosting the wiki. Just being its active admin.

MvGulik (talkcontribs)

Did run into case where I did get a 'found in title' result, while 1) there where no matches on title content. (Or 2) 'find in pages' was disabled.)

So there seems to be some additional (unknown at this point) trigger in play.

Will re-post, with more appropriate title, when I think I found that potential trigger.

(Closing: "Invalid/Insufficient data")