Page MenuHomePhabricator

Allow to send the comments to talk namespace
Open, Needs TriagePublicFeature

Description

Hi, i want to put a mediawiki extension on my wiki to add comments about the content of wiki pages. The default way to put comments is using the corresponding "talk" page associated to every page on the wiki.

I like the way Commentbox (https://www.mediawiki.org/wiki/Extension:Commentbox) puts a simple box and i would like to use it on my wiki. An issue i have with that is that the text written on the commentbox gets included in the same page is written. This is fine if i'm commenting on a talk page, but if i put the commentbox in a page of the main namespace ns=0, it would be great if the extension could create that message on the associated talk page (in ns=1) instead.

Mediawiki has multiple magic words and other code to detect the corresponding talk page, for example: {{TALKPAGENAME}} as written here: https://www.mediawiki.org/wiki/Help:Magic_words

As such, my request would be if the developers could be so kind to add an option for the comments written under the "Main" pages to be added to the corresponding "Talk" pages instead upon being sent.

Event Timeline

Aklapper renamed this task from Request to add to Extension:Commentbox a feature to send the comments to talk namespace to Allow to send the comments to talk namespace.Feb 20 2021, 9:03 PM
Aklapper changed the subtype of this task from "Task" to "Feature Request".

Commentbox just add the comments to the current page. So if someone post the commentbox in main, the comments gets added in Main.
I spoke to the author of the extension: https://www.mediawiki.org/wiki/User_talk:Tbleher
And he said that he can't work on enabling a shortcut to talk namespace. But he said is open to other people coding it.

Hi Paladium, no, I didn't know of the ticket. The request seems reasonable, but right now I unfortunately do not have any time to work on the MediaWiki. So if someone wants to extend CommentBox in the direction you mentioned in the ticket, that's fine by me, but I can't do it myself at the moment, unfortunately. --Tbleher (talk) 08:57, 2 August 2021 (UTC)

I think it should be easy to add a functionality to send the comments to talk namespace. Something like:
"Check the namespace" > "If not in a namespace with an odd number 1, 3, 5, 7" > "check if the order 'Send to talk namespace' is on Yes or No" (or in 0 , 1).
Then if the option says to send the comment to the talk namespace "send the comment to the corresponding URL pattern".

The URL pattern of a talk namespace is the url of the content page but with "_talk:" in the namespace.

Can someone try to develop this feature for commentbox?