Tech

Add topic
From Meta, a Wikimedia project coordination wiki
Latest comment: 1 day ago by Gasperfrancis12 in topic create
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Renderization of symbol "not greater than"

Depending on the browser, the LaTeX alternative is the only one which correctly overlays the slash over the angle bracket:

  • Poor-man's: 1≯ 2
  • Unicode: 1≯2
  • HTML: 1≯2
  • LaTex:

On Windows, it works in Firefox but it doesn't work in Chrome.

- Would it be possible to make it work in any browser? Otherwise, fellow editors are suggesting rewriting everything in LaTeX. Previous discussions:

Thanks! Fgnievinski (talk) 18:02, 10 April 2024 (UTC)Reply

FTR, the first three techniques are all effectively the same, just using U+226F. Beland (talk) 01:44, 12 April 2024 (UTC)Reply
Just for the record, the input text is different: Fgnievinski (talk) 12:55, 12 April 2024 (UTC)Reply
It seems to me that this is due to incomplete support of these characters in one or more of the fonts of Windows (which happens to be used by Chrome). I don't have Windows, but there is no guaranteed way of fixing this, other than outputting images. It should be noted however that latex input is switching to mathml (non-image) output, so switching everything over to latex does not seem like a good idea. Better is to complain with Microsoft to fix their fonts, or problems like these will never be fixed. —TheDJ (talkcontribs) 09:25, 15 April 2024 (UTC)Reply
It works in Firefox for Windows. Fgnievinski (talk) 02:12, 16 April 2024 (UTC)Reply
The best way to fix it would probably be for Wikipedia to ship a font including all of the necessary math glyphs, and list it first in CSS. Jacobolus (talk) 03:42, 20 April 2024 (UTC)Reply

┌─────────────────────────────────┘
Escalated here: en:Wikipedia talk:Manual of Style/Mathematics#Not-greater-than rendering problems. Fgnievinski (talk) 04:40, 18 April 2024 (UTC)Reply

Broken century format - Occitan Wikipedia

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

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

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

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

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

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

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?

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

create

how can i get help assist about creating game Gasperfrancis12 (talk) 10:15, 16 May 2024 (UTC)Reply