Wikipedia:Village pump (technical)/Archive 209#Mobile web DiscussionTools: Wikipedia:* vs. *talk:

{{Wikipedia:Village pump/Archive header}}

mobile app edit lost

{{tracked|T351037}}

Hi. I didn't find anything in the hundreds of archives here and I feel a bit displaced. So I just ask:

Most times I edit on the mobile app on a tablet. I always search on the browser, also in wikipedia, eg differently named lemmas and such. When I click on a wi:link I get the pop-up, don't you want to open it in the app, and everytime I have to say no. If a link opens in the app, while I am editing in it, the edit is lost. (I just lost about six hours of work on a lemma.) I know, stupid enough, I could prevent at least some of it, if I would edit incrementally and save my edits once in a while.

But, isn't there a way to (optionally) suppress the pop-up in the browser altogether or have another way to NOT loose my edits? The app doesn't allow other tabs, while editing, so the app seems not to be designed for editing anyway. Would you advice not to edit in the app as a principle rather than to think about any kind of solution to fix the unsecure state of an open editing page?

Another question: is there any way I can restore my (last) lost edit via a log or protocoll in the tabletvor the app?

Thanks in advance, MenkinAlRire 23:30, 10 November 2023 (UTC)

:@MenkinAlRire we can see if there is a known bug open. Please let us know which version of the Wikipedia App you have installed. To verify, this only breaks if you navigate away from the edit in the app (via the browser link) while you are editing correct? And a fix would be if you could unregister the link handler from your browser? — xaosflux Talk 10:33, 11 November 2023 (UTC)

::@User:Xaosflux Hi. Yes, I am not totally sure, but the pop-up comes up specifically, if I click a link of a search result (different from the edited page; although then it might break with the edited page as well, I don't know). If you are not fully concentrated, you are surprised, how it happened; maybe the default is 'resolve link in app', so that pushing enter on the key pad would suffice. You need to be able to search things while editing (verify links...), and I really try to pay attention, but it happens. So, as you said, to be able to unregister the link handler would do the trick. My version is 2-7-50455-r-2023-10-10, should be the latest, and I use firefox (def. newest v). Nice to see you interested, thanks, MenkinAlRire 13:14, 11 November 2023 (UTC)

:::@MenkinAlRire what operating system are you using, and what version of what browser are you using? — xaosflux Talk 15:24, 11 November 2023 (UTC)

::::The latest Firefox, as I said, 119.1.0. I have a Galaxy Tab S7FE with Android 13 (and One UI-version 5.1.1). MenkinAlRire 16:11, 11 November 2023 (UTC)

:::::@MenkinAlRire

:::::Here are some options that you may be able to try:

:::::*https://support.mozilla.org/en-US/kb/set-firefox-android-open-links-native-apps (seems to turn off ALL links in firefox from opening apps)

:::::*https://www.theverge.com/23036034/change-default-app-android-phone-browser-texting-assistant-how-to (you may be able to unregister the wikipedia app from opening links in app)

:::::— xaosflux Talk 12:28, 12 November 2023 (UTC)

::::::You found answers outside wiki. Obviously you have to understand the problem to ask the right questions. I knew that I have the option to suppress/asked/allow to handle links, downloads etc. But it didn't came to my mind in this case, since it is a universal rule for links, dwnld... so usually I wanna be asked - as a result I have the problem with wiki. Let's see if it'll bother me, when ff does everything on its own; on the PC its the default (unfortunately the tablet has no right-click menu). The other link proposes tools to manage behaviour. My experience with xy-manager is that they don't provide anything, that is not already there (on windows at least). So I doubt, that they could allow me in firefox to just suppress this one pop-up on this one site.

::::::Hey, anyway, thank you very much for this simple answer, I hope, it will suit my behaviour - and also, that I wasn't at the wrong place and bothered you with it. Problem (dis)solved. MenkinAlRire 15:10, 12 November 2023 (UTC)

:::::::@MenkinAlRire was trying to find you a "quick fix" while a longer solution could be looked at; as far as a feature request could go would your user story be something like: "If another program opens a link with the Wikipedia App, it should not cause the app to abandon any edits in progress in the app"? — xaosflux Talk 15:46, 12 November 2023 (UTC)

::::::::Yeah, exactly, simple as this (sounds like). How and where would I make such a request? Or are you already about to do it for me? MenkinAlRire 16:02, 12 November 2023 (UTC)

:::::::::{{re|MenkinAlRire}} I've opened a feature request to require a confirmation before abandoning the edit in this manner that I think would solve your concern. It is tracked as phab:T351037, you may log on there using your Wikipedia account and subscribe for updates. Please keep in mind that not all feature requests will be selected and there is no SLO for implementation. — xaosflux Talk 16:51, 12 November 2023 (UTC)

::::::::::Very cool. Thank you, keep up the good work. MenkinAlRire 17:55, 12 November 2023 (UTC)

:{{ping|JTanner (WMF)|CFeng (WMF)|DBrant (WMF)|p=}} Nardog (talk) 15:10, 11 November 2023 (UTC)

:“just lost about six hours of work on a lemma” The simplest lesson of course, is to save more often, regardless of any changes made to the software. —TheDJ (talkcontribs) 19:42, 12 November 2023 (UTC)

::If I may quote myself: "I know, stupid enough, I could prevent at least some of it, if I would edit incrementally and save my edits once in a while." So, yes, I already try to get used to it. (I probably overcompensate my discontent with edit sessions of others, who save after every point and leave a half page of entries in the history. I worked offline, too, which bears other risks.) MenkinAlRire 22:17, 12 November 2023 (UTC)

[[Voiceless retroflex fricative]]

On Google Chrome with this page, the combination of {{unichar|033a|Combining inverted bridge below|cwith=◌}} with certain characters, such as {{unichar|0282|Latin small letter s with hook}}, causes the latter to become a box: ʂ̺. Тɦ!§ ο∏|ץ ♯ⴷp̪Ᵽ3クΣ f̃ʘᒋ 𖼺𖽙𑣣ع 🐍♈️▛▛▌ß◑λⓈ. Т̺ɦ̺!̺§̺ ̺ο̺∏̺|̺ץ̺ ̺♯̺ⴷ̺p̺̪̺Ᵽ̺3̺ク̺Σ̺ ̺f̺̺̃ʘ̺ᒋ̺ ̺𖼺̺𖽙̺𑣣̺ع̺ ̺🐍̺♈̺️̺▛̺▛̺▌̺ß̺◑̺λ̺Ⓢ̺.̺ –LaundryPizza03 (d) 23:53, 12 November 2023 (UTC)

: Seems similar to what was discussed at Wikipedia:Village pump (technical)/Archive 208#Dotted circle + combining diacritic displaying as tofu on Android web access. Anomie 00:17, 13 November 2023 (UTC)

::I am using macOS, and this does not happen in other applications. It also does not happen in the source editor box. –LaundryPizza03 (d) 06:32, 13 November 2023 (UTC)

:{{u|LaundryPizza03}}, could you add a translation for the last two sentences of your original post? I {{em|think}} I understood them, but writing something that isn't English, and which neither Google Translate nor [https://www.perplexity.ai/ a LLM] can translate, isn't a good way to communicate with your fellow editors. (Perplexity.ai: 'I'm sorry, but the text you provided cannot be translated into plain English as it contains a mix of different characters and symbols that do not form a coherent sentence or phrase. It is possible that the text is in a different language or encoding that cannot be recognized by the system. If you have a specific text or phrase that you would like to translate, please provide it in a format that can be recognized by the system.') BlackcurrantTea (talk) 07:58, 13 November 2023 (UTC)

::This only happens for some numbers? Not sure about the last word. 0xDeadbeef→∞ (talk to me) 08:57, 13 November 2023 (UTC)

:::"This only happens for some symbols." (I didn't even realize it was meant to resemble a sentence until BlackcurrantTea pointed it out.) Nardog (talk) 09:03, 13 November 2023 (UTC)

::::Ah, "symbols" makes more sense. 0xDeadbeef→∞ (talk to me) 09:13, 13 November 2023 (UTC)

:The inverted-bridged s-hook works for me both in Chrome on Windows desktop and in my usual extreme-minority browser, both here and in Voiceless retroflex fricative#Occurrence. Both give me tofu for 𖼺𖽙𑣣, whether or not they're bridged; Chrome also tofus ⴷ and ᒋ when bridged. —Cryptic 10:34, 13 November 2023 (UTC)

:Are all of your browsers using the same font? At first glance this seems like a font issue rather than a browser issue. -- Shmuel (Seymour J.) Metz Username:Chatul (talk) 12:02, 13 November 2023 (UTC)

Cacycle/wikEd not working in Vector 2022

Ok in legacy 2010. I'm not the only one with this problem. See User talk:Cacycle/wikEd#Any conflicts? Doug Weller talk 14:30, 10 November 2023 (UTC)

:Any chance of help with this? Doug Weller talk 09:53, 13 November 2023 (UTC)

:Pinging {{u|Jon (WMF)}}. BlackcurrantTea (talk) 13:06, 13 November 2023 (UTC)

My user talk hasn't auto-archived since February

{{resolved|The bot has since archived this. — xaosflux Talk 14:49, 13 November 2023 (UTC)}}

Would appreciate it muchly if some of the experts around here would take a look at User talk:Shearonink and respond here telling me whyyyyy. When you figure out what is wrong post here and just let me fix it myself please, that way maybe I'll learn.

Here's the code:

{{User:MiszaBot/config

|archiveheader = {{talkarchivenav}}

|maxarchivesize = 100K

|counter = 11

|minthreadsleft = 1

|minthreadstoarchive = 1

|algo = old(30d)

|archive = User talk:Shearonink/Archive %(counter)d

}}

Thanks, Shearonink (talk) 15:01, 9 November 2023 (UTC)

:{{re|Shearonink}} From User:MiszaBot/config#Setting up archiving, {{tq|1=the template must be located ... before the first ==second level header== on the page}}. Archiving stopped when you added the "Try to be nice" header above the archiving instructions. -- John of Reading (talk) 16:04, 9 November 2023 (UTC)

::Thanks for the correction, I adjusted that. Shearonink (talk) 23:59, 9 November 2023 (UTC)

Does enwiki Timed Text work for a file on Commons?

Asking whether TimedText:US Army Special Forces Dive Team-1956.ogv.en.srt, TimedText:RAID 1.ogg and TimedText:This-prounciation-audio-nonlabial.ogg.en.srt are actually working for the enwiki file. Jo-Jo Eumerus (talk) 17:16, 13 November 2023 (UTC)

:No, that does not work. I tried asking for one of those to be imported to commons in c:Commons:Administrators%27_noticeboard/Archive_93#Transwiki_import, but got no response. Maybe it will be different now that you could give them the edit history in an XML file, IDK. Snævar (talk) 18:11, 13 November 2023 (UTC)

::Apparently {{U|Atavoidturk}} imported the first TimedText to Commons, to :commons:TimedText:US Army Special Forces Dive Team-1956.ogv.en.srt. Jo-Jo Eumerus (talk) 18:34, 13 November 2023 (UTC)

:::You can always copy-paste to commons, in the summary link to the original, then drop the import request; it should work while you are waiting. — xaosflux Talk 18:42, 13 November 2023 (UTC)

::::Looks like this was done. @Xaosflux an aside: it looks like TimedText syntax rules are not enforced. We have a filter on Commons that does this (:c:Special:AbuseFilter/103), perhaps this can be imported to here? — Mdaniels5757 (talk • contribs) 20:29, 13 November 2023 (UTC)

:::::@Mdaniels5757 its possible, but unless it is an actual issue we probably won't bother. Feel free to propose at WP:EF/R. — xaosflux Talk 21:03, 13 November 2023 (UTC)

Tech News: 2023-46

MediaWiki message delivery 23:50, 13 November 2023 (UTC)

Why can't I stop IPs using the ping feature to abuse me?

IPs can ping me, and I don't see any way I can disable that in my preferences. It should at least be disable-able, as it enables abuse. I have a recent example of how that can work, which I don't want to describe here per WP:BEANS, but I can e-mail it if you ask. Bishonen | tålk 13:28, 12 November 2023 (UTC).

:phab:T207659 is a 2018 request with no action is a 2018 request with no action. PrimeHunter (talk) 13:39, 12 November 2023 (UTC)

::Thank you, PrimeHunter. That's disappointing. I'm not much good at talking to Phabricator, and have trouble understanding most of the comments there. But I guess the upshot is the LTA in question can simply go on sending me disgusting messages with pings from random IPv6's? Because if I was able to mute them, that would be a "privacy violation"...? :-( Bishonen | tålk 14:26, 12 November 2023 (UTC).

:::The privacy violation mentioned at phab:T207659 is only if you also got the ability to mute logged in users based on their current IP address which would otherwise be unknown to you. PrimeHunter (talk) 14:37, 12 November 2023 (UTC)

::::Yes, that's what it looked like. It may have been unfortunate that that obviously much more controversial request got mixed up with the simple (and surely uncontroversial) one. So why wouldn't they make it possible simply to mute all IPs? Just, there was no interest? I suppose you wouldn't like to re-awaken the 2018 request and emphasize that it's the simple muting of IPs that's wanted, PrimeHunter? Or start a new one, if that's the appropriate way of doing it. Bishonen | tålk 17:40, 12 November 2023 (UTC).

:In 2017, I corresponded with Trevor Bolliger who was Product Manager, Anti-Harassment Tools (User:TBolliger (WMF)). He was very responsive and I was going to suggest emailing Trust and Safety, if they are still active, but I see that TBolliger authored phab:T207659 which quickly faded to nothing on the premise that muting an IP range would also mute any users in that range which might allow determining information about a user's IP. That is clearly not what is needed. If someone is being harassed by a troll using IPs, the target needs a way to mute all IPs or a range of IPs on the understanding that the mute would not apply to registered users. My guess is that the WMF would be unable to identify an obviously required measure and would just suggest adding to a page of feature requests that will be ignored. I wouldn't think that posting to the moribund phab:T207659 would achieve much particularly with the upcoming hiding of IPs. Johnuniq (talk) 01:50, 13 November 2023 (UTC)

::There is related discussion about the upcoming IP masking at phab:T331058 and phab:T344647. Somebody apparently thought you could mute IP's now and requested it should remain possible after IP masking. It was noted that you cannot do it now and the request was therefore declined as based on an incorrect assumption. That doesn't sound satisfactory to me. Even if you cannot do it now, it could be added as a new feature. It looks like phab:T344647 should be reopened or a new request created if you want it after IP masking. It may not be worth the effort to try to get it added to IP's now when the whole IP system is going to change. PrimeHunter (talk) 02:06, 13 November 2023 (UTC)

:Emailing Trust & Safety would make it clear to them that there's a need for tools to deal with this. Even if (as Johnuniq suggested, realistically) it's one more item on a long list, it will make the point that this isn't a 'hypothetical use case': it's real. BlackcurrantTea (talk) 07:22, 13 November 2023 (UTC)

  • Added phab:T351091 to request creation of a "mute all non-users" option. — xaosflux Talk 14:48, 13 November 2023 (UTC)
  • :@Bishonen and all, I have forwarded this thread to the Trust and Safety Product team, for them to look into it. Thanks for your patience. –– STei (WMF) (talk) 20:44, 13 November 2023 (UTC)
  • ::Thank you, Xaosflux and STei (WMF). Bishonen | tålk 21:50, 13 November 2023 (UTC).
  • I have raised a patch for phab:T207659 yesterday, but no guarantees on when it would be reviewed or merged as the Echo extension does not receive much of maintenance nowadays. – SD0001 (talk) 18:59, 14 November 2023 (UTC)

Coming soon: Reference Previews

File:Example_of_a_Reference_Preview.png

A new feature is coming to your wiki soon: Reference Previews are popups for references. Such popups have existed on wikis as local gadgets for many years. Now there is a central solution, available on all wikis, and consistent with the PagePreviews feature.

Reference Previews will be visible to everyone, including readers. If you don’t want to see them, you can opt out. If you are using the gadgets Reference Tooltips or Navigation Popups, you won’t see Reference Previews unless you disable the gadget.

Reference Previews have been a beta feature on many wikis since 2019, and a default feature on some since 2021. Deployment is planned for November 22.

-- For Wikimedia Deutschland’s Technical Wishes team,

Johanna Strodt (WMDE), 13:11, 15 November 2023 (UTC)

Any update on the Graph template?

Searching the archive, the last time I could find any update was about 6 months ago. Do we have any action we should take to fix pages that use the disabled Graph template? Or are we still in a holding pattern waiting for a fix? Thank you 87Fan (talk) 16:29, 15 November 2023 (UTC)

:{{replyto|87Fan}} It was in tech news a few weeks ago, but the current situation is shown at mw:Extension:Graph/Plans#Roadmap. --Redrose64 🌹 (talk) 16:44, 15 November 2023 (UTC)

:See also here. LittlePuppers (talk) 16:47, 15 November 2023 (UTC)

:All of the Mw:Extension:Graph based templates need to be updated. There is progress on Module:Graph, Template:Graph:Lines and Template:OSM Location map. All of these three are waiting on phab:T335325. If you want to help read mw:Extension:Graph/Vega 2to5 list, copy a template over to [https://en.wikipedia.beta.wmflabs.org beta wikipedia] and get started! Snævar (talk) 18:01, 15 November 2023 (UTC)

Why FAC pages are called archives

We might need some tech-minded folks and someone who has a page-move bot to look in over at Wikipedia talk:Featured article candidates#Use of 'archiveN' as subpage name for active, non-archival page

The main point is why brand-new FAC pages are called Wikipedia:Featured article candidates/Philosophy/archive1, even though the discussion isn't archived (yet). It seems that years ago, moving the pages when the discussion ended was deemed too burdensome. I think we can do better now. WhatamIdoing (talk) 01:17, 16 November 2023 (UTC)

Implementation of [[Template:Refideas editnotice]]

What is needed here is assistance in implementing this template. You can see Template talk:Refideas editnotice for full discussion, and the original discussion happened [https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(proposals)&oldid=1177775952#Refideas_notification_upon_editing_an_article here].

I did a limited test on a small selection of articles for 30 days, but they were not high traffic articles so while most of the users who edited the articles advised me they could see the template, none of them made actual use of the sources on the talk page. If you believe that more testing is required before implementation, then we can try again with a selection from [https://en.wikipedia.org/wiki/Special:WhatLinksHere/Template%3ARefideas?hidelinks=1&hideimages=1 this list of talk pages with Refideas] and work with some high-traffic articles such as Jazz and Puerto Rico and Star Wars (film) to see if that will lead people to use any of the sources they find on the talk page.

What is needed specifically is to make sure that the edit notice can be made to: {{blist|detect if there is a Refideas template at the associated talk page|be blank/invisible if no such template is present|if there is such a template: display the editnotice and include a link to the article's talk page}}

The goal is that we want everyone who clicks "edit" on any article with the Refideas template on its talk page to be able to see this editnotice. BOZ (talk) 21:50, 8 November 2023 (UTC)

:@Pppery, @SilverLocust, @Folly Mox any insight on how to proceed, or know anyone else who might? BOZ (talk) 04:29, 11 November 2023 (UTC)

::{{U|BOZ}}, based on Template talk:Refideas editnotice, this has gone way beyond my technical competence. It seems like there are a fair number of articles that would need this editnotice, and it would have to be configured to appear on articles whenever someone transcludes {{t|refideas}} onto its talk page. Both of those sound like tasks for a bot, and since no one has responded to your request here, maybe your next port of call might be WP:BOTREQ? Sorry I'm not able to be of more assistance. Folly Mox (talk) 05:26, 14 November 2023 (UTC)

:::That actually counts as assistance. :) Thanks! BOZ (talk) 05:40, 14 November 2023 (UTC)

So here is a question. When I click "edit" on a BLP article, I get a red box that says "Notice about sources This article must adhere to the biographies of living persons policy..." which I assume appears because the talk page has the WikiProject Biography tag with the "living=yes" parameter. If that is correct, then would it be a matter of replicating that for articles with the Refideas template? Just hoping to not reinvent the wheel. BOZ (talk) 06:11, 14 November 2023 (UTC)

:For reference, that editnotice is triggered by a rule in MediaWiki:Common.js. Dunno if something similar can be done for pages with the refideas template. Jo-Jo Eumerus (talk) 09:19, 14 November 2023 (UTC)

:Have you looked at the implimentation of {{tl|todo}}? -- Shmuel (Seymour J.) Metz Username:Chatul (talk) 12:29, 14 November 2023 (UTC)

::I'm not particularly technically oriented, but from a glance that looks like it could potentially be similar to my request? BOZ (talk) 14:09, 14 November 2023 (UTC)

:::{{replyto|BOZ}} Re {{tq|When I click "edit" on a BLP article, I get a red box}}, assuming that you mean this notice, it's nothing to do with the talk page banners - as shown in its documentation, it is shown automatically when editing a page categorized as either :Category:Living people or :Category:Possibly living people. The relevant code in MediaWiki:Common.js is lines 144 on, particularly lines 165-173. --Redrose64 🌹 (talk) 21:48, 14 November 2023 (UTC)

::::Ah, gotcha, OK. BOZ (talk) 21:49, 14 November 2023 (UTC)

::::@Redrose64, I thought of this; what if Refideas generated a category? Would we then be able to implement the editnotice on any article that had that category on its talk page? BOZ (talk) 14:43, 15 November 2023 (UTC)

:::::Yes, because Common.js looks at the categories that the page is actually in; it doesn't examine the wikimarkup for the page source. --Redrose64 🌹 (talk) 16:35, 15 November 2023 (UTC)

::::::@Redrose64, sweeeet. :) So the next question is, how do we cause :Template:Refideas to generate a category on the talk pages of articles? BOZ (talk) 16:47, 15 November 2023 (UTC)

:@Redrose64 or anyone else with the know-how who wouldn't mind helping, so :Category:Talk pages with Refideas template now exists, so what would be the next step to test with Common.js to make sure this can work with :Template:Refideas editnotice? BOZ (talk) 22:42, 15 November 2023 (UTC)

::To be really frank, I do not support adding this to Common.js. Izno (talk) 23:01, 15 November 2023 (UTC)

:::@Izno oh OK, is there a better method you can think of to achieve the same goal? I'm not technically oriented so I am not aware of what the possible issues might be. BOZ (talk) 23:10, 15 November 2023 (UTC)

::::The fundamental issue is not one of better or worse, it's that everything has a cost. Adding such a module to Common.js (or any reader-facing JavaScript solution) carries a cost. In this case, the cost is much more than any benefit than I can see.

::::Someone could probably trivially put together a script for you to import if you wish to know if a specific page has refideas.... Izno (talk) 23:15, 15 November 2023 (UTC)

:::::No, that's not really what I'm hoping to accomplish here. BOZ (talk) 23:21, 15 November 2023 (UTC)

{{od}}

I have created {{Tl|Refideas editnotice if exists}} and added to Template:Editnotices/Namespace/Main so this should now be functional. Yes, the BLP editnotice should be coded in the same way instead of using JavaScript, and no I'm not going to fix it. Apologies for not doing this sooner, but this series of messes has gone on long enough now. * Pppery * it has begun... 23:31, 15 November 2023 (UTC)

: This does mean that it now appears twice on the test articles. {{u|Firefangledfeathers}}, would you mind deleting those manual additions as now redundant? * Pppery * it has begun... 23:32, 15 November 2023 (UTC)

::Awesome, awesome, awesome @Pppery, thank you very much for your help! I love it. :) BOZ (talk) 23:51, 15 November 2023 (UTC)

::Don't mind! Will get to em soon. Firefangledfeathers (talk / contribs) 01:08, 16 November 2023 (UTC)

:::Done. Firefangledfeathers (talk / contribs) 01:47, 16 November 2023 (UTC)

AI Pin and other audio devices

Currently, Wikipedia articles are designed to be read mainly on screens. There's a mobile view and a short description but their format doesn't seem well-suited to a coming class of devices. Smart speakers are already familiar and now there's the ai pin which is a wearable which looks promising. The technical issues which will arise with these may be similar to those arising from the use of screen readers by the blind or visually disabled. And there are users like car drivers and runners who want to keep looking where they are going. Or the elderly who are not comfortable with sophisticated smartphones. So what's the road map or strategy for this class of devices and user? And is someone working on a voice interface for editing so that there can be a two-way traffic? Andrew🐉(talk) 23:46, 15 November 2023 (UTC)

:Related: [https://wikimediafoundation.org/about/soundlogo/ sound logo] for Wikimedia. — Frostly (talk) 06:09, 16 November 2023 (UTC)

"New section" vs "Add topic"

The new Vector theme appears to have changed the wording of the "New section" tab to "Add topic". This is causing some confusion, as seen here but also in general as help pages such as WP:TPNEW still use "New section". I hate trying to remember how to dig for and find the specific MW config pages that deal with this, but would it be possible to change the wording of the new theme back to "New section"? {{ppor|no}} Primefac (talk) 11:31, 15 November 2023 (UTC)

:See WP:QQX for how to find system messages. [https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)?useskin=vector-2022&uselang=qqx uselang=qqx in Vector 2022] says "(vector-2022-action-addsection / skin-action-addsection)". I'm not sure of the meaning when there are two message names but I guess it means to use MediaWiki:Vector-2022-action-addsection if it has been created, and otherwise use MediaWiki:Skin-action-addsection. The MediaWiki default is "Add topic" in both Vector legacy and Vector 2022. Back in 2009, MediaWiki:Vector-action-addsection was created to instead say "New section" in Vector (the only Vector skin at the time). We could create MediaWiki:Vector-2022-action-addsection with "New section" to only affect Vector 2022. We could also create MediaWiki:Skin-action-addsection with "New section". I guess that would affect more skins whose users may be used to "Add topic". PrimeHunter (talk) 12:47, 15 November 2023 (UTC)

::With the shortcut being QQX, you can see why I have trouble remembering it... I honestly don't care which we use I mainly prefer "New section" just because it's what I've always seen, but I don't think we should be splitting uses across flavours (and I won't lose sleep if I'm in the minority). Primefac (talk) 12:59, 15 November 2023 (UTC) {{small|Okay, so I do have a small preference}}

:::WP:MEDIAWIKI is a shortcut to the whole page. WP:QQX is a redirect (without official shortcut status) to the section about the qqx feature. PrimeHunter (talk) 13:07, 15 November 2023 (UTC)

::::What makes a shortcut "official"? --Redrose64 🌹 (talk) 16:12, 15 November 2023 (UTC)

:::::I assume PrimeHunter is referring to appearing in a {{tl|shortcut}}. Izno (talk) 16:34, 15 November 2023 (UTC)

::::::Yes. It was actually me who made the redirect WP:QQX. The idea was to help users who already know there is something called qqx and try to search it. I didn't think it was worth a {{tl|shortcut}} at the target section. PrimeHunter (talk) 18:29, 15 November 2023 (UTC)

:::::::{{small|I bring up an issue, and the only responses are about an irrelevant point I made about forgetting a shortcut.... goodness. Primefac (talk) 20:35, 15 November 2023 (UTC)}}

::::::::Congratulations on summing up the Wikipedian philosophy in a few small words! ——Serial 17:23, 16 November 2023 (UTC)

  • And of course the tooltip says "Start a new section". — xaosflux Talk 21:01, 15 November 2023 (UTC)

::Which is the MediaWiki default in MediaWiki:Tooltip-ca-addsection. Maybe the default tooltip deliberately uses different wording from the default label "Add topic". A tooltip isn't very useful if it just repeats the text you are already hovering over. PrimeHunter (talk) 23:08, 15 November 2023 (UTC)

  • I prefer add topic as it describes what it does to someone who has never used wiki software before, much less talk pages. New section doesn't. Izno (talk) 22:37, 15 November 2023 (UTC)

::Also, users of other MediaWiki wikis may be familiar with "Add topic" which has been the default since Vector became the default skin in 2010. And Special:Preferences#mw-prefsection-editing says "topic" seven times about recent features. I think a consensus discussion would be required before changing to "New section" in Vector 2022. PrimeHunter (talk) 23:08, 15 November 2023 (UTC)

::"Add topic" seems rather odd to me. If I am on the talk page for Band X, the "topic" is Band X. Adding a topic implies that I would now be talking about Band Y. Or dinosaurs. Or the Pythagorean theorem. "New section" indicates quite clearly that I am adding a new section to the same page and will still be talking about Band X. --User:Khajidha (talk) (contributions) 06:18, 16 November 2023 (UTC)

:I would also support keeping "Add topic", and updating the wording in documentation pages to match that. It seems that the customization to "New section" in 2009 was mostly for consistency with MonoBook [https://en.wikipedia.org/w/index.php?title=MediaWiki:Vector-action-addsection&action=history], which is no longer the default for like 15 years now (also also, it seems to have changed since – the current label there is just "+"). The customization also means that all normal MediaWiki documentation doesn't match Wikipedia, and has to be copied and customized here – for example, someone had to rewrite [https://www.mediawiki.org/wiki/Help:DiscussionTools#New_topic_tool] as [https://en.wikipedia.org/wiki/Help:Talk_pages#Starting_a_new_thread]. Matma Rex talk 12:34, 16 November 2023 (UTC)

: I prefer "New section". My argument from MediaWiki talk:Vector-action-addsection remains unchanged, and it's time we stop having wording changes forced on us from above. * Pppery * it has begun... 15:52, 16 November 2023 (UTC)

Userscript to apply CodeMirror to textarea

My script used to be able to load the 2010 Wikitext editor with CodeMirror. (when configured to do so) Now it only loads the 2010 Wikitext editor and shows buttons for bold, italic, links and images. But the next buttons should be "insert a template" (puzzle piece icon), "reference" (book icon) and (most important) syntax highlighting (marker icon), which activates CodeMirror. The "Cite" link at the end is also missing.
I tried loading some older versions of my script, but it doesn't seem to make a difference. I'm unsure when it broke, but I suspect something changed in the Wikitext 2010 editor. Does anyone have a working example of how to load CodeMirror? Like, any other script that loads an instance of the 2010 Wikitext editor with CodeMirror?Alexis Jazz (talk or ping me) 18:05, 14 November 2023 (UTC)

:Looks like MediaWiki:wikieditor-toolbar-help-page-reference (which used to say "References") also vanished. MediaWiki:wikieditor-toolbar-help-page-format still exists.Alexis Jazz (talk or ping me) 20:03, 14 November 2023 (UTC)

:: MediaWiki:wikieditor-toolbar-help-page-reference appears to have been moved to MediaWiki:cite-wikieditor-help-page-references for {{phab|T339973}}. Anomie 22:35, 14 November 2023 (UTC)

::@Alexis Jazz How are you enabling CodeMirror? I was expecting to see a [https://codemirror.net/5/doc/manual.html#fromTextArea CodeMirror.fromTextArea()] in your source, but I don't. That would be the normal way to (currently) enable CodeMirror on an arbitrary textarea.

::I'll take this opportunity to inform you and others here that CodeMirror is currently being upgraded to the latest major version, and there will be no backwards compatibility. I aim to have this finished sometime early next year. You can follow phab:T259059 for progress. Fixing your script shouldn't be hard, and I'll find it via toolforge:global-search, so you can expect communication with a migration guide well in advance. I also plan to replace the Ace syntax highlighter (and probably the CodeEditor extension entirely) with CodeMirror, so in your script you won't have to check for Ace anymore. MusikAnimal talk 20:53, 15 November 2023 (UTC)

:::MusikAnimal, that's quite a good question. I'm not sure if mw.user.options.set('usecodemirror',1); was required for it. I think I changed the ID of my textarea to wpTextbox1, mw.loader.using(['ext.CodeMirror'], changed the ID back and click()ed the button in the 2010 Wikitext editor to enable it as needed. I think CodeMirror kind of automatically attached itself to WikiEditor instances.
I found the fromTextArea thing in :phab:T214989#7287480 now too, I've been testing and it loads CM but .textSelection('getContents') isn't working on it. (just returns an empty string)Alexis Jazz (talk or ping me) 00:05, 16 November 2023 (UTC)

::::@Alexis Jazz Yeah, the jQuery.textSelection() integration is inconveniently baked into the WikiEditor integration. For now, you can just [https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/CodeMirror/+/59d83e4c9cbdb4bab41b5c0bf37667f90f33b4a9/resources/ext.CodeMirror.WikiEditor.js#30 copy the desired code], or even [https://codemirror.net/5/doc/manual.html#getValue interact] with CodeMirror directly. When code CodeMirror 6 is rolled out, adding a full-featured CM instance to any arbitrary textarea will be much easier. MusikAnimal talk 02:12, 16 November 2023 (UTC)

:::::MusikAnimal, there's codeMirror.Doc (capital D, a function) but codeMirror.doc doesn't seem to exist? (I'm probably just being an idiot for not seeing something obvious here)
Sorry to keep bugging you, personally I wouldn't mind waiting for CM6, but I know some of my users are kind of addicted to CodeMirror. Edit: I am in fact an idiot, but I still don't get it and the longer I look at it the more confused I get.Alexis Jazz (talk or ping me) 02:47, 16 November 2023 (UTC)

::::::At the start of the [https://codemirror.net/5/doc/manual.html#api CodeMirror Programming API section], it says, "Methods prefixed with doc. can, unless otherwise specified, be called both on CodeMirror (editor) instances and CodeMirror.Doc instances." isaacl (talk) 16:06, 16 November 2023 (UTC)

:::::::Isaacl, I see, the example Jack gave was kind of incomplete, here's a fully working example:
{{#tag:syntaxhighlight|mw.loader.using( [ 'ext.CodeMirror', 'ext.CodeMirror.lib', 'ext.CodeMirror.mode.mediawiki' ] ).done( function () {{{Truenewline}} var config = mw.config.get( 'extCodeMirrorConfig' );{{Truenewline}} var $text = $( '