Page MenuHomePhabricator

IP Info Feedback: populate feedback section title
Closed, ResolvedPublic1 Estimated Story Points

Description

Following T299936: Create a feedback link for the IP Info infobox, clicking on a feedback link leads to an edit page, starting a new section. The title of the new section is currently generic, but should instead be made more specific, i.e.: Feedback from $username.

This can be done as in: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikimediaMessages/+/777011/

Notes

Split from T305451:

Thanks for looking into this @MarcoAurelio and @MusikAnimal.

We used Special:MyLanguage for the reasons outlined in T296272. Essentially the ask was to use the user's preferred language, or an appropriate fallback language if the template was not translated into that language. using {{int:lang}} or {{PAGELANGUAGE}} won't find the template if the user is using a language for which the translation doesn't exist yet.

However, using a translatable template results in the issues outlined here and in T299936: Create a feedback link for the IP Info infobox.

@Niharika What would you like to do?

In addition, the title of the section should also be populated with something like Feedback from $username.

Perhaps this could be separated into a different task, so it can move ahead while the language issue is discussed here?

Event Timeline

Restricted Application added a subscriber: Aklapper. ยท View Herald TranscriptApr 6 2022, 9:03 AM

Change 779903 had a related patch set uploaded (by AGueyte; author: AGueyte):

[mediawiki/extensions/WikimediaMessages@master] Add username in feedback title

https://gerrit.wikimedia.org/r/779903

Change 779903 merged by jenkins-bot:

[mediawiki/extensions/WikimediaMessages@master] Add username in the IPInfo feedback title

https://gerrit.wikimedia.org/r/779903

dom_walden added a subscriber: dom_walden.

We now pre-populate the section title. We do this by passing the preloadtitle parameter in the feedback url, as shown below:

https://meta.wikimedia.org/wiki/IP_Editing:_Privacy_Enhancement_and_Abuse_Mitigation/IP_Info_feature/Feedback?action=edit&section=new&preload=Special%3AMyLanguage%2FTemplate%3AIPInfoFeedback&preloadtitle=Feedback+from+$username

feedback_section_title.png (606ร—636 px, 44 KB)

Test environment: https://en.wikipedia.beta.wmflabs.org IP Info 0.0.0 (090d340) 08:06, 18 April 2022.