Tech

From Meta, a Wikimedia project coordination wiki
Jump to: navigation, search

Wikitext highlighting out of beta[edit]

18:56, 4 May 2018 (UTC)

Making a button which add an signature at the end of section[edit]

The specification of what I try to achieve is described in phabricator:T193952. My current attempt led me to use Extension:InputBox. However as reported in the ticket it doesn't meet the expected result:

  1. it still make user face a wikitext edit and save experience, rather than directly saving an edit appending user signature in the numbered list
  2. once saved the text is appended only after a blank line, which break the numbering of the numbered list. I made some attempt to cirvcunvent this specific finding a way to insert a delete character applied when the text is inserted in the article, but didn't find any way to do that

Any suggestion is welcome, it doesn't have to use InputBox. For example if that could be made through a link using something like https://meta.wikimedia.org/w/index.php?title=User:Psychoslave/test/api_edit&action=edit&appendtext=this_is_content&summary=dummy_test or an other form extension that enable to make arbitrary form, it would be fine. I would prefer to do that only using code that can be changed on the wiki, but if that is not possible, I also welcome any help to do it otherwise.

Please notify me if you can provide any help. --Psychoslave (talk) 15:24, 13 May 2018 (UTC)

workload attachment[edit]

Wiki Page attachment resolved --Bnhassin (talk) 23:10, 15 May 2018 (UTC)

JavaScript issues on Wikimedia wikis[edit]

Hi, I ran a script against all Wikimedia wikis, and tracked JavaScript errors. I think in most cases these are exceptions that are being thrown for most viewers on every page :( I would appreciate people with the appropriate access helping fix these, or contact people who can.

  • ar.wikipedia.org: ReferenceError: wgUserRegistration is not defined [1] Yes check.svg Done
  • ar.wiktionary.org: ReferenceError: addCharSubsetMenu is not defined [2]
  • bug.wikipedia.org: TypeError: $.cookie is not a function [3] Yes check.svg Done (diff)
  • ce.wikipedia.org: ReferenceError: runAsEarlyAsPossible is not defined [4]
  • es.wikivoyage.org: TypeError: $(...)[0].hasClass is not a function [5] Yes check.svg Done (diff)
  • et.wiktionary.org: ReferenceError: appendOtherLanguageLink is not defined [6]
  • eu.wiktionary.org: ReferenceError: sajax_init_object is not defined [7]
  • fa.wikisource.org: ReferenceError: hookEvent is not defined [8]
  • fa.wiktionary.org: Error: TypeError: $.cookie is not a function Yes check.svg Done (diff) and ReferenceError: hookEvent is not defined [9]
  • he.wikiquote.org: ReferenceError: hookEvent is not defined [10] Yes check.svg Done (diff)
  • hu.wikiquote.org: ReferenceError: sectioneditlinks is not defined [11] Yes check.svg Done
  • jv.wiktionary.org: TypeError: $.browser is undefined [12]
  • ky.wikipedia.org: ReferenceError: wgULS is not defined [13] Yes check.svg Done
  • lez.wikipedia.org: ReferenceError: runAsEarlyAsPossible is not defined [14] Yes check.svg Done
  • lv.wikibooks.org: ReferenceError: hasClass is not defined [15] Yes check.svg Done
  • mg.wiktionary.org: ReferenceError: addPortletLink is not defined [16] Yes check.svg Done
  • or.wiktionary.org: TypeError: data.query is undefined [17]
  • sa.wikisource.org: TypeError: mw.util is undefined [18] Yes check.svg Done (diff)
  • sk.wikisource.org: ReferenceError: collapseCaption is not defined [19]
  • so.wikipedia.org: TypeError: $.cookie is not a function [20] Yes check.svg Done
  • sr.wikinews.org: ReferenceError: getElementsByClassName is not defined [21]Yes check.svg Done
  • ta.wikisource.org: TypeError: $.cookie is not a function [22] Yes check.svg Done (diff)
  • tl.wiktionary.org: ReferenceError: sajax_init_object is not defined [23]
  • tr.wikinews.org: ReferenceError: getElementsByClassName is not defined [24] Yes check.svg Done (diff 1 diff 2 diff 3 diff 4)
  • zh.wikipedia.org: ReferenceError: Geo is not defined [25] Yes check.svg Done (diff)

Legoktm (talk) 02:22, 16 May 2018 (UTC)

I notified an admin on huwikiquote, hopefully it will be fixed soon. —Tacsipacsi (talk) 09:37, 16 May 2018 (UTC)
I think I've fixed bugwiki, eswikivoyage, fawiktionary (partially), sawikisource, tawikisource, and trwikinews. lvwikibooks is closed (I guess some of the others may be closed too). --Krenair (talkcontribs) 12:37, 18 May 2018 (UTC)
@Lnnocentius: can you notify someone from zhwiki? — regards, Revi 17:13, 19 May 2018 (UTC)
@-revi: notified on village pump. Thank you for mentioning! --Innocentius Aiolos 22:58, 19 May 2018 (UTC)
My colleague replied in the village pump Pictogram voting support.svg Works for me, I'm not sure what is going on here too.--Innocentius Aiolos 05:23, 20 May 2018 (UTC)
Looks like it was fixed as part of [26]. Legoktm (talk) 05:58, 20 May 2018 (UTC)
Hello @Legoktm: can you check arwiki again, thank you.--جار الله (talk) 04:53, 21 May 2018 (UTC)
Would you mind sharing the script please @Legoktm:? Many thanks. --Krenair (talkcontribs) 10:20, 21 May 2018 (UTC)
Source code is in git:integration/audit-resources, and it gets run by Jenkins once a day. I just kicked off a run, it takes a little over an hour, so I'll post back with the arwiki results then. Legoktm (talk) 16:23, 21 May 2018 (UTC)
arwiki appears to be fixed, thanks! There's a different error at arwiktionary if you (or know someone) could take a look. Legoktm (talk) 19:47, 21 May 2018 (UTC)
Thanks @Legoktm: and thanks @جار الله:. We'll take a look on arwiktionary as soon as possible --Alaa :)..! 23:29, 21 May 2018 (UTC)
Legoktm is the best. Killiondude (talk) 06:43, 22 May 2018 (UTC)
@Legoktm: Can you please check arwiktionary if it fixed? --Alaa :)..! 09:11, 22 May 2018 (UTC)