Broken century format - Occitan Wikipedia edit

Hi,

So the Occitan Wikipedia has started using Modèl:Infobox Persona, pulling information from Wikidata. When only the century of a person's birth is known on Wikidata, such as Aliç de Montmorencí, we want it to say "sègle XII" and link to the twelfth century. Yet somehow it instead says "sègle de 12", and links to the YEAR TWELVE! I've been poking and prodding the code and Translatewiki and can't figure this out. Can someone please help me?

Best, Briantin de Montrei (talk) 07:29, 24 April 2024 (UTC)Reply

It's since been fixed. All good! Briantin de Montrei (talk) 07:23, 25 April 2024 (UTC)Reply

Spaces in Lua edit

Hello. Is there a way to throw an error in Lua with consequent spaces? I want to do something like

error('The name "New       York" is not correct, please use "New York" instead')

but none of regular tricks I try do not help. Thank you. IKhitron (talk) 12:48, 24 April 2024 (UTC)Reply

@IKhitron: I guess what you want is not "make this code work", but "make the error render with multiple spaces" (since multiple spaces in HTML are always reduced to one).
For example, you could replace multiple spaces with underscores or non-breaking spaces (but these will probably be escaped on render) with code like mw.ustring.gsub(str, string.rep(' ', 2) .. '+', function (m) return string.rep('_', #m) end)
Isn't it possible to just make the code sanitize the input and accept multiple spaces? --Matěj Suchánek (talk) 16:25, 28 April 2024 (UTC)Reply
Thanks for your answer. This is fine, but not enough, unfortunately. For now, I've replaced them by "<multiple spaces>", and it's not enough either.
I could sanitize it, of course, but in this particular case I prefer a non-ambiguous input. IKhitron (talk) 16:51, 28 April 2024 (UTC)Reply

Search bar disappeared edit

There used to be a search bar where I could search for whatever I want. However, the search bar is no longer present in any wiki, and the search button is also non-functional. I have to go to Special:SpecialPages to search. Sbb1413 (he) (talkcontribs) 05:44, 1 May 2024 (UTC)Reply

osm4wiki - new version in progress edit

My tool osm4wiki shows coordinates on an OpenStreetMap map and is used by

  • Vorlage:All Coordinates
  • Vorlage:Hinweis Seiten-Koordinaten
  • Vorlage:CoordinatesPage

I started to write this tool in 2011 and it is time to update it.

  1. if too many locations are close together, the markers shall be replaced by an ellipse which shows the number of replaced markers.
  2. I replace the tool "kmlexport" and include its functions into my tool.
  3. The tool "kmlexport" is able to search for coordinates up to three levels, that means it is able to search for coordinates in an articel which was linked by another article which was linked by another article which was linked by the article where "kmlexport" was invoked. If I understand correctly, the actual versions of the above mentioned templates have only the option "linked = 1" which means that there is only one level available. I agree with this limitation totally!
  4. The old version of my tool had to wait until "kmlexport" had collected all coordinates from linked pages before it could start working, and this may take long time. The new version shall show the coordinates from the first linked page, then it adds the coordinates from the second linked page and so on. Perhaps this takes a little bit longer than before, but the user can see that something is happening!
  5. New markers with shadow :)

The new version is under development on my own server. There are only a few articles linked as example but you can get an idea how it works: Test links
Have fun! --Plenz (talk) 20:05, 2 May 2024 (UTC)Reply

Custom local buttons in WikiEditor panel get inserted in random unpredictable order in Chechen Wikipedia edit

Buttons of connected gadgets, for example, a Wikificator after renewal. Pages are mixed in the middle and back to the right. In Russian, all the gadget buttons on the left. Mozilla Firefox browser. Can't you make them stay in its place? 195.19.124.253 20:41, 8 May 2024 (UTC)Reply

I wrote this! Takhirgeran Umar (talk) 20:51, 8 May 2024 (UTC)Reply

Registration date edit

Hi, I registered on EN Wikipedia at 04:24, 12 October 2007, yet CentralAuth shows Registered: 00:18, 28 February 2012 (12 years ago). I understand that the reason given is always that the account became a global account, But why does it have to be like this? A registration date is what it is, and the global account date decreases the precision of registration time. I hope it changes. Mystrixo (talk) 06:56, 10 May 2024 (UTC)Reply

You registered in a time before registration dates were being tracked. As you didn't have activity between 2007 and 2012, it cannot give a more accurate date for your account registration unfortunately. —TheDJ (talkcontribs) 09:40, 13 May 2024 (UTC)Reply

Email: $wgSMTP not working edit

Hello With $wgSMTP i have a problem, it ist not working. I don't know from which update- status this happens. For sure this was working in march 2024.

I get this error-message if i wnat sent a email: Failed to connect to tls://smtp-mail.outlook.com:587 [SMTP: Failed to connect socket: (code: -1, response: )]

to the History i can tell that before i use 1und1. I got a Hotmail adress taking the parameters and i got the above error message. I switched back to the old konfiguration and find out, getting the same error massage (see above)

Version: MW 1.39.7

LocalSettingsparameter. $wgSMTP = array(

   'host'     => 'tls://smtp-mail.outlook.com', // could also be an IP address. Where the SMTP server is located
   'IDHost'   => 'Sokradia von CC-Zeitlos',  // Generally this will be the domain name of your website (aka mywiki.org)
   'port'     => 587,                        // Port to use when connecting to the SMTP server
   'auth'     => true,                      // Should we use SMTP authentication (true or false)
   'username' => 'sokradia@hotmail.com',   // Username to use for SMTP authentication (if being used)
   'password' => 'XXXXX'             // Password to use for SMTP authentication (if being used)

);

Can somebody help to this topic Sokradia (talk) 05:56, 11 May 2024 (UTC)Reply

Please see the notice at the top of this page. This page only provides support for issues related to a Wikimedia wiki. — JJMC89(T·C) 18:54, 11 May 2024 (UTC)Reply
Thank you for this help.
With this parameters it is working for Outlook/Hotmail.
'host' => 'smtp-mail.outlook.com', // could also be an IP address. Where the SMTP server is located
'IDHost' => 'Sokradia von CC-Zeitlos', // Generally this will be the domain name of your website (aka mywiki.org)
'port' => 587, // Port to use when connecting to the SMTP server
'auth' => true, // Should we use SMTP authentication (true or false)
'username' => 'sokradia@hotmail.com', // Username to use for SMTP authentication (if being used)
'password' => 'XXXXX' // Password to use for SMTP authentication (if being used)
for Outlook there is no need take the TLS with.
I not understand really because the port 587 is used for TLS. but it seems that for Outlook they are using STARTTLS which is not supported by the PHP-Server.
I use PHP 8.2.xx
Thanks a lot Sokradia (talk) 05:19, 12 May 2024 (UTC)Reply
This is NOT THE PLACE FOR THIRD-PARTY WIKI SUPPORT. Read the header and ask at the appropriate place. You won’t get an answer here. —Tacsipacsi (talk) 19:25, 12 May 2024 (UTC)Reply

Are you going to migrate to Jetpack Compose for the android app? edit

Maybe this is the wrong place but I think that migrating to Jetpack Compose would be a good idea for making the code more simple and "modern" because it's the new and recommended way by Android to build android apps with it. Richard5ADev (talk) 19:03, 13 May 2024 (UTC)Reply

I don’t know if it’s planned, but you’ll probably get an answer more quickly on mw:Talk:Wikimedia Apps. By the way, my opinion is “don’t fix it if it’s not broken”: it may make sense to write new things with Compose, or even rewriting parts that need to be touched anyway, but touching code only to rewrite it from XML to Kotlin has no real benefit, but has the potential for introducing regressions. —Tacsipacsi (talk) 20:36, 14 May 2024 (UTC)Reply

elwiktionary problem on mobile screens, when displaying English nouns edit

Hello, please see https://el.wiktionary.org/wiki/farm how it looks on a mobile screen. For my phone/browser it displays the word "ουσιαστικό" (=noun) vertically. I reported this to https://phabricator.wikimedia.org/T365322 (see print screens there) and they concluded:

  • in the phone that the user tried, it worked ok (while I tried two browsers on my phone and it had the same problem)
  • This needs fixing on the local wiki by editing its local content

Amazingly, this happens only for English nouns ! I suppose it is due to the el:wikt:template:ουσιαστικό, which is employing el:wikt:module:PartOfSpeech. This is as far as I can help. Thank you in advance. FocalPoint (talk) 08:13, 19 May 2024 (UTC)Reply

I replied on Phabricator: I believe it’s a bug in the Minerva Neue skin, not in your templates. —Tacsipacsi (talk) 09:50, 19 May 2024 (UTC)Reply
M Tacsipacsi, thank you for your immediate response. Probem (mobile view only, reported at https://imgur.com/a/Wxbn7dp) is with all tables-floating-right (languages are irrelevant) when they are over a Level3...etc with equal.symbols whether it includes text or a template. When we reduce width of browser the table suddenly jumps to left with a 100% width border. I am so sorry, that I do not know how to make the borders properly (because I do not know how to have flexible, non restrictive width). I have tried here
Example: https://el.m.wiktionary.org/wiki/farm or https://el.m.wiktionary.org/wiki/proper_noun with its border at https://el.m.wiktionary.org/wiki/Template:decl-sg-pl
I did the L3-titles-with-templates nobreak like at https://el.wiktionary.org/wiki/Template:ετυμολογία or at https://el.wiktionary.org/wiki/Module:PartOfSpeech (diff) but the border problem is at the table.styles. Also 2 examples at https://el.m.wiktionary.org/wiki/σοφία (2nd table's styles at https://el.wiktionary.org/wiki/Module:grc-nouns-decl#L-185 ) We do not have any interface admin, or any programmer around. If this cannot be fixed, mobile viewers could...?? zoom out? choose landscape view? Köszönöm again for your response at https://phabricator.wikimedia.org/T365322 Sarri.greek (talk) 10:34, 19 May 2024 (UTC)Reply
PS notifying MM AKlapper_(WMF), Jdlrobson, Tacsipacsi Concerning overall all floats at mobile (portrait) view @el.wiktionary (examples above), especially the problematic right floats discussued at https://phabricator.wikimedia.org/T365322 We have thousands of pages with such rightfloat tables. Would it be possible, to cancel right floats at all el.wiktionary for mobile view? Unfortunately our https://el.wiktionary.org/wiki/MediaWiki:Common.css is archaic, and there is no interface administrator to apply any update. We thank you very much for your concern. Sarri.greek (talk) 05:00, 21 May 2024 (UTC)Reply