MediaWiki talk:ABFeasySubmit.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

mw.Api().newSection

[edit]

{{Edit request}} Replace

 var text = '{{subst:Commons talk:Abuse filter/Reportframe|' +

with

 var text = '{{subst:Commons:Abuse filter/reportframe|' +

and

 return new mw.Api().newSection( encPage, '', text, params )

with

 return new mw.Api().newSection( encPage, 'Report by ' + user, text, params )

Obviously, Api().newSection doesn’t provide a sensible summary when the argument to header (see https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.Api for syntax) is explicitly the empty string. Edit without summaries are a misery. Given that the Italian prototype specifies header in a reasonable way, have no idea why did Perhelion choose the “empty” approach. Incnis Mrsi (talk) 13:51, 2 October 2018 (UTC)[reply]

✓ Done Awesome! Thank you! Anyway it was not my choice. -- User: Perhelion 20:45, 2 October 2018 (UTC)[reply]

@Perhelion: any idea where this Revision of Commons_talk:Abuse_filter could originate from? Incnis Mrsi (talk) 08:21, 17 February 2019 (UTC)[reply]

Hey Incnis Mrsi, I see no fail, or you mean "Page name: Unknown" should always be a valid value? -- User: Perhelion 20:10, 17 February 2019 (UTC)[reply]
This is about missing edit summary. Can newSection() behave differently on a mobile app? Incnis Mrsi (talk) 21:03, 17 February 2019 (UTC)[reply]
Oh* indeed, this should be not possible with this script, as we can see he also omitted the 'Edit kind', which is also not possible. So a possible way would be a manual edit or the old way per direct template subst. This user was indeed a vandal so he could use indeed some unorthodox methods. A partial script blocker should also not work, I guess (mobile version or whatever, also the Api is not different here). -- User: Perhelion 21:30, 17 February 2019 (UTC)[reply]

Commons_talk:Abuse filter/Reportframe‎ is abandoned

[edit]

It may be evident for everybody understanding how mw.Api().newSection() works. For Jeff_G.’s information. Incnis Mrsi (talk) 14:24, 26 May 2019 (UTC)[reply]

@Incnis Mrsi: Thanks, I just updated Commons:Abuse filter/reportframe too.   — Jeff G. please ping or talk to me 14:43, 26 May 2019 (UTC)[reply]

Edit request 2020-11-26

[edit]

{{Edit requested}} Please change "crating" to "creating" and remove the extra "'jquery.ui',".   — Jeff G. please ping or talk to me 04:11, 26 November 2020 (UTC)[reply]

✓ Done AntiCompositeNumber (talk) 04:37, 26 November 2020 (UTC)[reply]
@AntiCompositeNumber: Thanks!   — Jeff G. please ping or talk to me 04:38, 26 November 2020 (UTC)[reply]