Page MenuHomePhabricator

Add Extension:PlaceNewSection to Russian Wikipedia
Open, Needs TriagePublicFeature

Description

Feature summary (what you would like to be able to do and where):
Since adding topics to top is not planned to be implemented in the near future, and because of this, new editors suffer, they have to remember two mechanics for adding topics: somewhere you need to sign (~~~~), somewhere you need to insert the topic name in code (== ==). This alienates new editors and prevents them from adapting to Wikipedia. Therefore, I would like to solve this problem by other means, namely by including this extension in the project: https://www.mediawiki.org/wiki/Extension:PlaceNewSection

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
T313165: Allow posting new sections to top of page on a per-page basis by DiscussionTools

Questions
The only question is, will this extension work with DT? Upd: It works with DT.

Needed for deployment of the extensions:

Event Timeline

@Nx Hello! Do you think it will work with DT? :)

Aklapper changed the task status from Open to Stalled.Aug 18 2023, 1:00 PM

As this is nowhere deployed currently: Please point to community consensus; the code has to be in Wikimedia Gerrit or GitLab to be deployed which is currently not the case; please see https://www.mediawiki.org/wiki/Writing_an_extension_for_deployment#Preparing_for_deployment for all steps required. Thanks!

Thanks for the tip! @Nx Can you please port the extension to gerrit?

DT doesn't choose where a topic goes, per-se. It calls the VisualEditorEdit API with section=new, which passes that through to the mw-core Edit API. So, if the code in there winds up respecting PlaceNewSectionHook, this would work with DT. (Apart from in the ways that T313165 calls out -- the DT UI would be in the wrong place, etc.)

@Ernstkm hi :) I see Nx is offline, can you help with this extension? :) Do you know of any wikis where it's already used?

DT doesn't choose where a topic goes, per-se. It calls the VisualEditorEdit API with section=new, which passes that through to the mw-core Edit API. So, if the code in there winds up respecting PlaceNewSectionHook, this would work with DT. (Apart from in the ways that T313165 calls out -- the DT UI would be in the wrong place, etc.)

Thanks!

@Ernstkm hi :) I see Nx is offline, can you help with this extension?

I have so far shied away from using DiscussionTools on any of my wikis (none of which are public), so I'm not sure how well the PlaceNewSection extension would integrate with that.

Thanks for bringing to my attention the other Phabricator issue, requesting the ability to add new sections to the top, in core. That motivates me to try and understand things a bit better than the haphazard hacking I did to get PlaceNewSection working again with MW 1.33.

Is GitLab an option?

@Aklapper can you help with this question please? :)

Is GitLab an option?

It seems to me that it’s better to do it on Gerrit for now, and then, if everything is good, transfer it to GitLab. Because it is possible that they will check for a long time (Gitlab), but I would like to start the code/idea review process :)

OK, I agree. I only asked because I don't know the first thing about Gerrit, and figured GitLab would be easier to get things rolling. It seems like Gerrit is the path of least resistance, however, and I'm fine with going that route instead.

Thanks a lot! A have started review process :)

Iniquity changed the task status from Stalled to Open.Feb 13 2024, 7:38 PM