Wikipedia:Village pump (technical): Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
 
Line 1: Line 1:
<noinclude>{{Short description|Page for discussing Wikipedia technical issues}}<!--
<noinclude>
-->{{pp-move-indef|small=yes}}<!--
{{Villagepumppages|1=Technical|2=The '''technical''' section of the village pump is used to discuss technical issues ''about'' '''Wikipedia'''. Bugs and feature requests should be made at [[MediaZilla:|BugZilla]].
-->{{User:MiszaBot/config
<!--All of the text for this top section is found at template:Villagepumppages-->
| archive = Wikipedia:Village pump (technical)/Archive %(counter)d
Newcomers to the technical village pump are encouraged to read [[Wikipedia:Village pump (technical)/Before posting|these guidelines]] prior to posting here. Questions about [[MediaWiki]] in general should be posted at the [[mw:Project:Support desk|MediaWiki support desk]].
| algo = old(5d)
| counter = 212
| maxarchivesize = 500k
| minthreadsleft = 4
| minthreadstoarchive = 1
| archiveheader = {{Wikipedia:Village pump/Archive header}}
}}<!--


Please do not move these categories to the end of the page. If they are there, they will be removed by the process of archiving the page.
|center=<div id="villagepumpfaq">{{FAQ|see also=[[Wikipedia:Technical FAQ]]|style=margin:0 1em;}}</div>
|3=WP:VPT|4=WP:VP/T|5=WP:TECHPUMP|6=WP:PUMPTECH}}<!--


-->
-->__NEWSECTIONLINK__<!--
[[Category:Wikipedia village pump]]
[[Category:Non-talk pages that are automatically signed]]
[[Category:Pages automatically checked for incorrect links]]
[[Category:Pages that should not be manually archived]]
<!--
-->
{{village pump page header|1=Technical|2=The '''technical''' section of the [[Wikipedia:Village pump|village pump]] is used to discuss technical issues ''about'' '''Wikipedia'''. Bug reports and feature requests should be made in [[mw:Phabricator|Phabricator]] (see [[mw:How to report a bug|how to report a bug]]). Bugs with [[web application security|security implications]] should be reported differently (see [[mw:Reporting security bugs|how to report security bugs]]).
<!-- All of the text for this top section is found at template:Villagepumppages -->
If you want to report a [[JavaScript]] error, please follow [[Wikipedia:Reporting JavaScript errors|this guideline]]. Questions about [[MediaWiki]] in general should be posted at the [[mw:Project:Support desk|MediaWiki support desk]]. Discussions are automatically archived after remaining inactive for five days.
|center=<div id="villagepumpfaq" style="clear:both; text-align: center; margin: 0 auto;">{{FAQ|see also=[[Wikipedia:FAQ/Technical]]|style=margin: 0 auto; width: 85%;|collapsed=yes}}</div>
|3=WP:VPT|4=WP:VP/T|5=WP:TECHPUMP|6=WP:PUMPTECH
}}__NEWSECTIONLINK__
{{centralized discussion|compact=yes}}
__TOC__
<div style="clear:both;" id="below_toc"></div></noinclude><!--
Please add new questions to the end of the page. The easiest way to add a question is to click the "New post" link, near the top of the page.


-->
--><!-- ''comment'' this out in case of bot-racing -->{{User:MiszaBot/config
|archiveheader = {{Wikipedia:Village pump/Archive header}}
|maxarchivesize = 300K
|counter = 84
|algo = old(4d)
|archive = Wikipedia:Village pump (technical)/Archive %(counter)d
}}<!--


== Configuring Git for Gerrit ==
Please do not move these categories to the bottom of the page. If they are there, they will be removed by the process of archiving the page.


I have a sort of "hello, world" MediaWiki coding change I'd like to submit as my first-ever contribution to MediaWiki, and to get myself started and oriented with the system for submitting coding changes. If all goes well with that, I hope to follow that up with a more substantial change sometime, hopefully soon, after that. I already have a Wikimedia developer account, with accounts on [[mw:User talk:Wbm1058|MediaWiki]] and [[wikitech:User talk:Wbm1058|Wikitech]]. My usernames there, including my SSH access (shell) username, are the same as my English Wikipedia username. Now [[mw:Gerrit/Tutorial#Configure Git]] is telling me I need to have my "own Gerrit username". Is this a name which is unique to Gerrit, and not used anywhere else, such as the Toolforge? Also, I see on the [https://gerrit.wikimedia.org/r/settings/ Gerrit settings] page a "Username" (is that the same as Git's "own Gerrit username"?), "Full name", and "Display name" – how are each of these used? Which of these names are used for the [https://gerrit.wikimedia.org/g/mediawiki/core/+/d880c2a73683810512e93b20f183036643214985/CREDITS CREDITS] page, the list that's updated by [https://gerrit.wikimedia.org/g/mediawiki/core/+/d880c2a73683810512e93b20f183036643214985/maintenance/updateCredits.php updateCredits.php]? [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 20:35, 17 May 2024 (UTC)
--><!--
: Your Gerrit username is more properly your developer account username, which is the same as on Toolforge and other places. For those three fields, username is what you log in as, I don't think Full name is used anywhere, and display name is how your name appears on the Gerrit UI. updateCredits.php seems to parse "git log", so the name used is whatever shows up in Git, which usually is the same as one of the above but not necessarily. [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 20:52, 17 May 2024 (UTC)
::Full name is actually what's used for sign-ins via web UIs ([https://wikitech.wikimedia.org/w/index.php?title=Special:UserLogin Wikitech], [https://toolsadmin.wikimedia.org/auth/login/ Toolsadmin]). "Username" is only used for SSH access (toolforge / git review). The CREDITS page uses the name from git log, which you'd set through the <code>git config --global user.name</code> command. – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 21:22, 17 May 2024 (UTC)
:: Oh, oops, aparently I'm just as confused. [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 21:24, 17 May 2024 (UTC)
:::Thanks. Further complicating naming matters, I see there is an "LDAP" ([[Lightweight Directory Access Protocol]]) username. See [[wikitech:SRE/LDAP]]. Per [[wikitech:SRE/LDAP/Renaming users]], "We do not rename users (Developer accounts) anymore. It can (and has) lead to various problems and errors all over the many separate systems which consume Developer accounts as their local databases and authentication methods will get out of sync." So I guess I'm stuck for now with the name I have (not that I want to change it). But a reason for proceeding cautiously here. I don't want to stumble into doing something irreversible that I wish I'd done differently later, after I figured out what I was actually doing, rather than signing up for it by trial and error. I don't recall seeing the [[mw:Developer account]] page before, and I think I created mine before the {{keypress|Create a Wikimedia developer account}} form was created. Today I just ran into the [https://idm.wikimedia.org/ Bitu Identity Manager], which shows me "My LDAP properties". (see [[wikitech:IDM]]). Phabricator says my '''LDAP User''' is "Unknown". I don't know if there's a way I can personally make it known, or whether it being unknown is a problem. – [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 22:14, 17 May 2024 (UTC)
::::I think theres basically 2 logins. #1 is the oauth / centralauth / all wikis but wikitech one. #2 is ldap / gerrit / toolforge / wikitech. Lots of synonyms here. I forget if phabricator is one of those two, or a third one. –[[User:Novem Linguae|<span style="color:blue">'''Novem Linguae'''</span>]] <small>([[User talk:Novem Linguae|talk]])</small> 22:26, 17 May 2024 (UTC)
:::::I suppose Phabricator is probably bilingual. Obviously I sign into it using my #1 because my #2 is unknown to the phabulous Phabricator. On the other hand, there must be some developers using it who may not have a #1. – [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 22:43, 17 May 2024 (UTC)
::::::Yes, phab supports sign-in via either of the two. You can still link phab with the other account through Settings > External accounts. – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 06:21, 18 May 2024 (UTC)
:::::::{{facepalm}} I looked at that screen twice and all I saw was date & time settings! Thanks! Now my account is linked with all (two) available providers. – [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 10:45, 18 May 2024 (UTC)
:::::Shout-out to {{ping|BMueller (WMF)}}. I watched your online presentation given at [https://www.youtube.com/watch?v=0xEe6YqdEro&t=1133s last month's conference in Portland] and thought you might be interested in reading this thread. Enjoyed meeting you in Toronto last year. – [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 23:21, 17 May 2024 (UTC)
:::Now I just found and opened the [https://gerrit-review.googlesource.com/Documentation/user-privacy.html Gerrit Code Review - User Privacy] page... so Google, as well as Wikimedia, is part of the loop! layers upon layers – [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 11:29, 18 May 2024 (UTC)
::::Hmm, [[Gerrit]] is a [[Dutch language|Dutch]] male name meaning "''brave with the spear''", the Dutch and Frisian form of [[Gerard]]. And [[Gerrit (software)]] was authored by Google. Whereas [[Git]] was written by the guy behind Linux. Learn something new every day. [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 11:48, 18 May 2024 (UTC)
:::: When asked why he called the new software, 'git', [[British English|British]] slang meaning 'a rotten person', [[Linus Torvalds|Torvalds]] said 'I'm an egotistical bastard, so I name all my projects after myself. First Linux, now git.' Ha! [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 12:00, 18 May 2024 (UTC)
:::: Google is not part of the loop exactly. Google wrote the software, but it's open-source and the website https://gerrit.wikimedia.org is hosted by Wikimedia with no involvement from Google. [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 13:23, 18 May 2024 (UTC)
:::More from the "I figured out what was happening only after it already happened" department. '''Wikimedia Code Review''' https://gerrit.wikimedia.org/r/settings says I registered @ Monday, May 13, 2024, 9:08:55 PM UTC-04:00 ... what? I don't recall doing anything specific to "register" there last Monday. What was I doing at that time? I thought per [[mw:Gerrit/Tutorial]] I had to configure Git in order to register for Gerrit, but here I am already registered for Gerrit, and I haven't configured Git yet! O I C. I think I was looking at a [https://gerrit.wikimedia.org/r/c/mediawiki/core/+/256014/1/includes/specials/SpecialMovepage.php previous code review] related to the task I'd decided to work on, when I noticed "Sign up" and "Sign in" links on the upper right corner of that page. Clicking "Sign up" took me to this new IDM "Create account" page to create a Wikimedia developer account. Hey, I thought, I think I already have one of those that I needed for Wikitech/Toolforge. So I left that page, and clicked "Sign in". Voila, my Wikitech password got me in. I thought I had simply logged into Gerrit, not registered for it. What I didn't realize was that the "Bitu Identity Manager" would not only sign me in, but register me as well! [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 16:12, 18 May 2024 (UTC)


=== SSH keys ===
-->
I already have SSH keys set up for Toolforge at [https://toolsadmin.wikimedia.org/profile/settings/ssh-keys/ Toolsadmin] which I use on [[PuTTY]] and [[WinSCP]] but not directly from the Windows command prompt.
{{cent}}
__TOC__
<span id="below_toc"/>
{{-}}


[[mw:SSH keys]] seems to indicate that I can't use my Toolsadmin SSH but will need another one, set up from the Windows command prompt. Correct?
[[Category:Wikipedia noticeboards|{{PAGENAME}}]]
[[Category:Wikipedia features|{{PAGENAME}}]]
[[Category:Non-talk pages that are automatically signed]]
[[Category:Pages automatically checked for accidental language links]]


Also, regarding configuring Git personal information. The guide says "You should have to do this only once." Is that literally true, or does it mean once on my desktop and once on my laptop, if I have two machines that I might want to submit code from? [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 18:06, 18 May 2024 (UTC)
[[ar:ويكيبيديا:الميدان/تقنية]]
[[cs:Wikipedie:Pod lípou (technika)]]
[[es:Wikipedia:Café/Portal/Archivo/Técnica/Actual]]
[[fa:ویکی‌پدیا:قهوه‌خانه/فنی]]
[[ka:ვიკიპედია:ყავახანა/ტექნიკური საკითხები]]
[[kk:Уикипедия:Ауыл құдығы/техникалық]]
[[hu:Wikipédia:Kocsmafal (műszaki)]]
[[mk:Википедија:Селска чешма (Техника)]]
[[ms:Wikipedia:Kedai Kopi (teknikal)]]
[[pl:Wikipedia:Kawiarenka/Kwestie techniczne]]
[[pt:Wikipedia:Café dos programadores]]
[[ru:Википедия:Форум/Технический]]
[[sr:Википедија:Трг/Архива/Техника/20]]
[[fi:Wikipedia:Kahvihuone (tekniikka)]]
[[uk:Вікіпедія:Кнайпа (технічні питання)]]
[[zh-yue:Wikipedia:城市論壇 (技術)]]
[[zh:Wikipedia:互助客栈/技术]]
</noinclude><!--


:@[[User:Wbm1058|Wbm1058]] You can reuse the same SSH key across multiple projects (in this case toolsadmin and Gerrit). The tutorial assumes that you have not setup the keys before.
Please add new questions to the bottom. The easiest way to add a question is to click the "add" link, just above the table of contents.
:Regarding the configuration of Git, you will need to do it once per machine. [[User:Sohom Datta|<b style="color:#795cb2;">Sohom</b>]] ([[User talk:Sohom Datta|<span style="color: #36c;">talk</span>]]) 23:08, 18 May 2024 (UTC)
::My desktop is still running [[Windows 7]]. I know, I know, long in the tooth, but I'm proud to have kept it going for 14 years and would like to make it to 15. It still works for me, for the most part. I've downloaded the production version MediaWiki 1.41.1 and have it running for debugging. I generated my SSH keys with [[PuTTYgen]], since the Windows 7 command prompt does not support the <code>ssh</code> command. I suppose I'd need to use [[PuTTY]] on that machine to connect to Gerrit, as I use it to connect to the Toolforge bastion. I think I can figure that out; haven't found documentation on how to use Gerrit on a Windows 7 machine. I haven't set up SSH on my [[Windows 10]] laptop yet (only do Toolforge from my desktop). I don't know how to copy my keys from PuTTY to the required location on Windows 10. Might be easier to generate new keys on Windows 10. I have an <code>ssh-rsa</code> key for Toolforge access; the documentation says to use the <code>ed25519</code> type for optimum security and performance. Can I use different SSH keys on each machine? [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 16:53, 19 May 2024 (UTC)
:::As a matter of fact, you are kind of expected to use different keys per user per machine. That’s why all the ssh settings of toolforge and Gerrit allow you to add multiple public keys. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 16:58, 19 May 2024 (UTC)
::::What TheDJ said, you are expected different SSH keys across machines. However, if you are using one machine, you can reuse the key across multiple things (I have mine on Github/Gitlab/Toolforge and Gerrit as well as a bunch of private services). [[User:Sohom Datta|<b style="color:#795cb2;">Sohom</b>]] ([[User talk:Sohom Datta|<span style="color: #36c;">talk</span>]]) 18:15, 19 May 2024 (UTC)
:::::OK, thanks! New state-of-the-art <code>ed25519</code> keys generated and installed for my Windows 10 laptop (which MSFT tells me will be unsupported after next year, and my hardware is too old to run Windows 11(.
:::::I successfully did a git clone. I'm a bit confused by the instructions at [[mw:Download from Git#Download for development]]:
::::::"This clones the entire MediaWiki core repository, synced to the master branch, into a sub-directory named <code>mediawiki</code>"
:::::I previously installed MediaWiki 1.40.1 on my laptop last November at the Toronto wikiconference, by downloading the then-current version from [[mw:Download]], and successfully installed that, for testing.
:::::I want to overwrite my previous 1.40.1 installation with the new files I just <s>git</s> got.
:::::The standard <code>mediawiki</code> directory holds <code>core</code> and <code>data</code> sub-directories.
:::::It doesn't appear that the git download includes any <code>data</code>. It appears to be a <code>core</code> directory, which includes some extra files that aren't part of the [[mw:Download]] version. Why don't the instructions say to download to a sub-directory named <code>core</code> rather than a sub-directory named <code>mediawiki</code>?
:::::Oh, I see. [[mw:Manual:Upgrading#Using Git]]:
::::::If using Git, export the files into a clean location, and then copy the old customized files into the new location as described in the previous section.
::::::
::::::You will also need to install some external PHP libraries using Composer or a provided collection maintained for the Wikimedia wiki farm. More details on installing and updating external libraries can be found in the Git download documentation
:::::So, for some reason, although I can test using 1.40.1 without having any PHP problems, I'll need to figure out this "Composer" thing in order to do development testing.
:::::Hopefully it's not a problem that I'm running the PHP 8.2.12 Development Server – [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 23:11, 19 May 2024 (UTC)
::::::I think all mediawiki unit tests are passing on php 8.1. Not sure about php 8.2. May want to switch to 8.1 to prevent hard to diagnose bugs. –[[User:Novem Linguae|<span style="color:blue">'''Novem Linguae'''</span>]] <small>([[User talk:Novem Linguae|talk]])</small> 00:45, 20 May 2024 (UTC)
:::::::The tests pass on php 8.2 as well [https://integration.wikimedia.org/ci/job/quibble-vendor-mysql-php82-phpunit-standalone/], – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 12:16, 20 May 2024 (UTC)


=== Composer ===
-->
'''c:\php\mediawiki\core>'''<code>php maintenance/run.php update.php</code><br>
Error: You are missing some external dependencies.<br>
MediaWiki has external dependencies that need to be installed via Composer
or from a separate repository. Please see<br>
https://www.mediawiki.org/wiki/Manual:Installation_requirements#PHP and<br>
https://www.mediawiki.org/wiki/Download_from_Git#Fetch_external_libraries<br>
for help on installing the required components.
* [[mw:Manual:Installation requirements#PHP]] does not mention "Composer". It says "MediaWiki only requires PHP extensions that are enabled in PHP by default." I assume that's why I didn't get this error when I ran update.php on my desktop, where I'm just running the official MediaWiki releases. "If your hosting provider provides a basic [[LAMP (software bundle)|LAMP]] environment without these, you may need to install or enable these manually."
* OK, I'm going to follow the instructions at [[mw:Download from Git#Fetch external libraries]].
* Hmm, I guess I should [[mw:Download from Git#Update the Git submodules]] first? [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 14:22, 20 May 2024 (UTC)


:I don't think submodules is what you need. The <code>php maintenance/run.php update.php</code> script just wants you to <code>composer install</code> in the mediawiki directory, that should download the required directories. [[User:Sohom Datta|<b style="color:#795cb2;">Sohom</b>]] ([[User talk:Sohom Datta|<span style="color: #36c;">talk</span>]]) 14:34, 20 May 2024 (UTC)
== Why are PNG's limited to 12.5 million pixels? ==
:Indeed only the second link is relevant here. I'm clarifying this message in https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1034113. Thanks for writing all of this up, it's helpful to see things from a different perspective sometimes. [[User:Matma Rex|Matma Rex]] <small>[[User talk:Matma Rex|talk]]</small> 16:07, 20 May 2024 (UTC)


'''c:\php\mediawiki>'''<code>composer update --no-dev</code><br>
As a web-safe and lossless format, we should give this format full support. 12.5 mexapixels is now an affordable amateur camera. Is there any way to improve the thumbnail tool so it can support larger png files? - '''[[User:Floydian|<font color="#5A5AC5">ʄɭoʏɗiaɲ</font>]]'''&nbsp;<sup>[[User_talk:Floydian|<font color="#3AAA3A">τ</font>]]</sup> <sub>[[Special:Contributions/Floydian|<font color="#3AAA3A">¢</font>]]</sub> 03:55, 20 January 2011 (UTC)
Composer could not find a composer.json file in c:\php\mediawiki
:Basically this is just development work that needs to be done. The existing thumbnail tool reads the entire file into memory at once and has other scalability limitations. What's needed is a tool that works incrementally, efficiently, and with minimal memory overhead at any one time. This proves rather tricky because the pixels of a PNG are encoded in scan order, not using a quadtree. The best way to help is to build such a tool, integrate it with the latest Mediawiki, and submit a patch.
To initialize a project, please create a composer.json file. See https://getcomposer.org/basic-usage
:One interesting approach I just thought of is to create an "intermediate resolution" version that is cached - the intermediate resolution version would be slow to generate, but it would be under the current pixel limit and could be used to create any thumbnails smaller than itself. [[User:Dcoetzee|Dcoetzee]] 06:49, 20 January 2011 (UTC)
:I'm going to reboot my machine and try again. Composer install warned me that I might have a PATH problem. [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 15:56, 20 May 2024 (UTC)
::Heh, if I even knew where to begin, I would. I'm more of the one that takes the pictures; I'll leave coding to the experts. - '''[[User:Floydian|<font color="#5A5AC5">ʄɭoʏɗiaɲ</font>]]'''&nbsp;<sup>[[User_talk:Floydian|<font color="#3AAA3A">τ</font>]]</sup> <sub>[[Special:Contributions/Floydian|<font color="#3AAA3A">¢</font>]]</sub> 18:50, 20 January 2011 (UTC)
:::Alas you rather highlight the issue - it's no-one's idea of fun :) So, in a volunteer-driven project, it's just not going to get done. Maybe one day the WMF could get it programmed (since they have that wonderful motivator known as "money"), I suppose, but I'm not holding my breath. Ah well. - [[User:Jarry1250|Jarry1250]]&nbsp;<sup>[''[[Special:Contributions/Jarry1250|Who?]] [[User_talk:Jarry1250|Discuss]].'']</sup> 19:57, 20 January 2011 (UTC)
::::Some people find coding fun. I think the fact is that much of this stuff is hidden under the hood. Where is the current thumbnail generator code located, for someone to pick apart and modify? - '''[[User:Floydian|<font color="#5A5AC5">ʄɭoʏɗiaɲ</font>]]'''&nbsp;<sup>[[User_talk:Floydian|<font color="#3AAA3A">τ</font>]]</sup> <sub>[[Special:Contributions/Floydian|<font color="#3AAA3A">¢</font>]]</sub> 20:22, 20 January 2011 (UTC)
:::::Thumbnailing is currently done by calling the [[ImageMagick]] utility which is what generates the high memory usage (roughly 4 bytes per pixel). One would need to either modify ImageMagick to provide a more conservative memory mode (and get those modifications accepted by the ImageMagick developer community) or one would need to develop an alternative means for Mediawiki to generate thumbnails from large images, and get our developer community to use that alternative. [[User:Dragons flight|Dragons flight]] ([[User talk:Dragons flight|talk]]) 20:54, 20 January 2011 (UTC)
::::::ImageMagick has support for tera-pixel image sizes, what's needed is probably just to invoke the right ImageMagick options from MediaWiki. Command line example [http://www.imagemagick.org/script/architecture.php#tera-pixel from here]: ''convert -define registry:temporary-path=/data/tmp -limit memory 16mb logo: -resize 250000x250000 logo.miff'' [[User:Nicolas1981|Nicolas1981]] ([[User talk:Nicolas1981|talk]]) 05:48, 24 January 2011 (UTC)


:::::::Hhmmm, apparently "limit memory" was added in late 2007. I hadn't seen that before. You are right that there may now be a solution. [[User:Dragons flight|Dragons flight]] ([[User talk:Dragons flight|talk]]) 06:32, 24 January 2011 (UTC)
:Judging by your previous comments, you're just not in the directory that Composer expects try going to '''c:\php\mediawiki\core''', where you (and Composer) should find the composer.json file. [[User:Matma Rex|Matma Rex]] <small>[[User talk:Matma Rex|talk]]</small> 16:09, 20 May 2024 (UTC)
::Yes, thanks, that was it. Once again the instructions misled me: "then run <code>composer update --no-dev</code> from your <s>MediaWiki</s> core directory." It's still running. This step takes significant time! [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 16:20, 20 May 2024 (UTC)
::I ''think'' it worked. The console log is long, with a pile of "failed to download" warning messages, but it appears to have successfully worked around all of them. Here's the end of the log, showing just the last 3 of many installations:
<syntaxhighlight source lang=text>
- Installing wikimedia/timestamp (v4.1.1): Cloning 138f3099b4 from cache
- Installing wikimedia/xmp-reader (0.9.1): Cloning 8338d67969 from cache
- Installing zordius/lightncandy (v1.2.6): Cloning b451f73e8b from cache
44 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating optimized autoload files
11 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> MediaWiki\Composer\ComposerVendorHtaccessCreator::onEvent
No security vulnerability advisories found.
</syntaxhighlight>
I think I'm ready to try running update.php again. – [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 16:51, 20 May 2024 (UTC)


'''c:\php\mediawiki\core>'''<code>php maintenance/run.php update.php</code><br>
:::::::PS. Since it appears to substitute disk caching for memory, it might still be too burdensome under some circumstances, but it maybe possible to adjust the limits. [[User:Dragons flight|Dragons flight]] ([[User talk:Dragons flight|talk]]) 06:40, 24 January 2011 (UTC)
Error: The MinervaNeue skin cannot be loaded. Check that all of its files are installed properly.
::::::::Even a small boost to 15 million would be enough for most standard cameras. Thats enough to support 4230 x 3420. - '''[[User:Floydian|<font color="#5A5AC5">ʄɭoʏɗiaɲ</font>]]'''&nbsp;<sup>[[User_talk:Floydian|<font color="#3AAA3A">τ</font>]]</sup> <sub>[[Special:Contributions/Floydian|<font color="#3AAA3A">¢</font>]]</sub> 15:50, 26 January 2011 (UTC)
:::::::::Is there a better or more proper venue I could take this to? Its a small change to make a lot more detailed photos compatible. - '''[[User:Floydian|<font color="#5A5AC5">ʄɭoʏɗiaɲ</font>]]'''&nbsp;<sup>[[User_talk:Floydian|<font color="#3AAA3A">τ</font>]]</sup> <sub>[[Special:Contributions/Floydian|<font color="#3AAA3A">¢</font>]]</sub> 17:28, 29 January 2011 (UTC)
::::::::::The suggested fix has been included at [[bugzilla:9497]]. Maybe you could vote for that bug too. So far it has received only three votes, which isn't exactly much for such a long-standing and fairly serious limitation IMO. --[[User:Morn|Morn]] ([[User talk:Morn|talk]]) 13:04, 30 January 2011 (UTC)
:::::::::::There is no sign of a viable fix at that bug. As pointed out pngds is subject to random crashes. [[User:OrangeDog|OrangeDog]] <small>([[User talk:OrangeDog|τ]] • [[Special:Contributions/OrangeDog|ε]])</small> 11:14, 31 January 2011 (UTC)
{{outdent|11}}I'm just looking to get the current limit increased, not to recode or use new software. I'm guessing I'd do that at the Meta village pump? - '''[[User:Floydian|<font color="#5A5AC5">ʄɭoʏɗiaɲ</font>]]'''&nbsp;<sup>[[User_talk:Floydian|<font color="#3AAA3A">τ</font>]]</sup> <sub>[[Special:Contributions/Floydian|<font color="#3AAA3A">¢</font>]]</sub> 15:03, 31 January 2011 (UTC)
:No, at bugzilla. However, I imagine that the devs won't increase it by a large amount due to performance, and won't increase it by a small amount as there is little benefit. [[User:OrangeDog|OrangeDog]] <small>([[User talk:OrangeDog|τ]] • [[Special:Contributions/OrangeDog|ε]])</small> 15:40, 1 February 2011 (UTC)
I'm not sure if increasing the size is a good idea. [[Wikipedia:Image#Consideration_of_image_download_size|There is a reason why the limit exists]] [[User:Manishearth|<font color="orange">Manish</font><font color="green">''Earth''</font>]]<sup>[[User talk:Manishearth|<font color="orange">Talk</font>]] • [[Special:Contributions/Manishearth|<font color="green">Stalk</font>]]</sup> 16:00, 1 February 2011 (UTC)


#0 C:\php\mediawiki\core\includes\GlobalFunctions.php(91): ExtensionRegistry->queue('C:\\php\\mediawik...')<br>
== Slowness and timing out error message ==
#1 C:\php\mediawiki\core\LocalSettings.php(166): wfLoadSkin('MinervaNeue')<br>
#2 C:\php\mediawiki\core\includes\Setup.php(216): require_once('C:\\php\\mediawik...')<br>
#3 C:\php\mediawiki\core\maintenance\run.php(49): require_once('C:\\php\\mediawik...')<br>
#4 {main}<br>
PHP Fatal error: Error Loading extension. Unable to open file C:\php\mediawiki\core/skins/MinervaNeue/skin.json: filemtime(): stat failed for C:\php\mediawiki\core/skins/MinervaNeue/skin.json in C:\php\mediawiki\core\includes\registration\MissingExtensionException.php on line 96
Fatal error: Error Loading extension. Unable to open file C:\php\mediawiki\core/skins/MinervaNeue/skin.json: filemtime(): stat failed for C:\php\mediawiki\core/skins/MinervaNeue/skin.json in C:\php\mediawiki\core\includes\registration\MissingExtensionException.php on line 96
:Sigh. I didn't need no extensions when testing changes to the official release core page-moving functions. Now I do. – [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 18:04, 20 May 2024 (UTC)


:You shouldn't ''need'' any extensions to run MediaWiki core. It's only trying to load the MinervaNeue skin, because you have a line in your LocalSettings.php like <code>wfLoadSkin('MinervaNeue');</code> (maybe you copied it from your previous installation?). You can remove it or comment it out if you don't want it.
I use Firefox, and I have no similar issues with any web site but Wikipedia. This has been coming on for months, but used to be only once in a while.
:If you do want it, then you can install the skin using Git similarly to how you installed MediaWiki, just replacing the path in the <code>git clone</code> command: instead of <code>mediawiki/core</code>, use <code>mediawiki/skins/MinervaNeue</code> (and make sure to put it in the ''skins'' directory, where MediaWiki is looking for it). Similarly for all other skins and extensions. [[User:Matma Rex|Matma Rex]] <small>[[User talk:Matma Rex|talk]]</small> 18:13, 20 May 2024 (UTC)
::Thanks! I just used the default LocalSettings.php that came with the release-version installation. Figuring I only need one skin, I just copied the folder from my backup of the release version, and commented out the others. That did the trick, and the database update looks like it ran successfully. – [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 20:28, 20 May 2024 (UTC)
MediaWiki internal error.


Original exception: [6d2f7f0574eb09bb447c9687] /index.php/Main_Page Error: Class "ResourceLoaderSkinModule" not found<br>
Over the Jan 15-17 weekend, I noticed Wikipedia was really slow, no matter the page or action. You could take little mini-naps waiting. And the Timed Out message with the "try again" option kept coming up. Wikipedia's speed recovered after the weekend, but the timed out messages have gotten worse. Sometimes it's every other click of the mouse, or every third or fourth. Way too much. It's only Wikipedia. My cache was cleared. [[User:Maile66|Maile66]] ([[User talk:Maile66|talk]]) 14:23, 21 January 2011 (UTC)
Backtrace:<br>
: Wikipedia is often slow, even down sometimes. It happens to all of us. If you're only having the problem with Wikipedia and have cleared your cache etc., then that just simply makes it more likely that the website and not your browser, Internet connection, etc. is the problem. <font face="Verdana">[[User:Gary King|<font color="#02b">Gary&nbsp;<b>King</b></font>]]&nbsp;<span style="font-size: 0.9em;">([[User talk:Gary King|<font color="#02e">talk</font>]]&nbsp;·&nbsp;[[User:Gary King/Scripts|<font color="02e">scripts</font>]])</span></font> 05:49, 22 January 2011 (UTC)
from C:\php\mediawiki\core\includes\ResourceLoader\ResourceLoader.php(417)
::One thing that can sometimes make a difference (here in the UK anyway) is the server that you log in through. In the normal course of things the secure server is very slightly slower than the normal server, but if the normal server goes dead slow you may find that the secure server is running at its usual speed.
::When you go for the "[http://en.wikipedia.org/wiki/Special:UserLogin Log in / create account]" link at upper right, you get to the login screen for the normal server. If you don't actually log in there but read down the page, you'll see "Consider logging in on the [https://secure.wikimedia.org/wikipedia/en/wiki/Special:UserLogin secure server]. That takes you to another login screen, where you can log in using your normal ID and password. --[[User:Redrose64|<span style="color:#d30000; background:#ffeeee">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 11:51, 22 January 2011 (UTC)
:::Thanks for the helpful advice. [[User:Maile66|Maile66]] ([[User talk:Maile66|talk]]) 12:43, 22 January 2011 (UTC)
::::This problem is probably being caused by difficulties connecting to bits.wikimedia.org, responsible for serving various site scripts, due to routing issues – are you in the UK, by any chance? ([http://community.virginmedia.com/t5/Fibre-optic-broadband-cable/Network-routing-fails-on-edge-of-VirginMedia-network/td-p/299379]) This problem is alleviated by using the secure server since those scripts etc. that are usually served by bits.wikimedia.org in the non-secure environment are served directly from the secure server. [[Special:Contributions/217.137.122.112|217.137.122.112]] ([[User talk:217.137.122.112|talk]]) 13:09, 22 January 2011 (UTC)
:::::As a UK user, I've experienced the same problem, and tried the secure server. However, on every WP page I go to, I have to dismiss the MS "do you only want to view the secure content" pop-up. Can this be overcome just for WP? (I'd like the pop-up to remain for other sites).<br />[[User:Arjayay|Arjayay]] ([[User talk:Arjayay|talk]]) 16:36, 22 January 2011 (UTC)
:::::: Assuming you're using Internet Explorer (since you said "MS"), you can disable those popups just for Wikipedia by following [http://www.kb.indiana.edu/data/amuj.html these instructions]. <font face="Verdana">[[User:Gary King|<font color="#02b">Gary&nbsp;<b>King</b></font>]]&nbsp;<span style="font-size: 0.9em;">([[User talk:Gary King|<font color="#02e">talk</font>]]&nbsp;·&nbsp;[[User:Gary King/Scripts|<font color="02e">scripts</font>]])</span></font> 17:03, 22 January 2011 (UTC)
:::::::Thanks - Indiana University uses simple instructions! so double-thanks [[User:Arjayay|Arjayay]] ([[User talk:Arjayay|talk]]) 19:31, 22 January 2011 (UTC)
:::I'm using secure server and have the same issues as [[User:Maile66|Maile66]]. I'm in the UK and the problem does get worse as the day goes on(likely as more US traffic). At times I get a 50% fail rate to posting. I rarely do a 'show preview' anymore because the fail rate is high. I just submit and if it fails.....after about 15 seconds, hit back and submit again. I've only double posted once. Still it's not a fun way to edit. Regards, [[User:SunCreator|SunCreator]] <sup>([[User talk:SunCreator|talk]])</sup> 16:54, 22 January 2011 (UTC)
::::Ironically today is about the best it's been for weeks. Maybe because it's Saturday? Regards, [[User:SunCreator|SunCreator]] <sup>([[User talk:SunCreator|talk]])</sup> 16:56, 22 January 2011 (UTC)
:::::NTL routing issues have been recently fixed; try again now and see whether your problems have been resolved. [[Special:Contributions/217.137.122.112|217.137.122.112]] ([[User talk:217.137.122.112|talk]]) 17:08, 22 January 2011 (UTC)
:I am experiencing the exact same issue; always thought it was something to do with my network... I am logging in from Sri Lanka. [[User:Rehman|<span style="font-variant:small-caps; font-weight:bold; color:darkblue">Reh</span>]][[User talk:Rehman|<span style="color:green">man</span>]] 02:59, 23 January 2011 (UTC)
Wikipedia was just offline to me for a period of about 7 minutes. I guess the time of day means lots of traffic in America now? Anyway, thought it worth noting the downtime. Regards, [[User:SunCreator|SunCreator]] <sup>([[User talk:SunCreator|talk]])</sup> 03:32, 23 January 2011 (UTC)
::"The server at en.wikipedia.org is taking too long to respond." is part of the error message. What someone mentioned as "50% fail rate" is sometimes the norm, regardless of weekend/weekday or time of day or night. Frustrating. [[User:Maile66|Maile66]] ([[User talk:Maile66|talk]]) 03:38, 23 January 2011 (UTC)


Another missing piece. The console log looks good, but this come up on the webpage. – [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 21:04, 20 May 2024 (UTC)
=== More bugaboos ===


:Did you git clone, composer install, and npm ci inside your default skin? Probably skins/Vector –[[User:Novem Linguae|<span style="color:blue">'''Novem Linguae'''</span>]] <small>([[User talk:Novem Linguae|talk]])</small> 21:17, 20 May 2024 (UTC)
Reference my earlier post about slowness and timing out. I use Firefox. It's still doing that, even worse. But now it has an added kick. It's logging me out. That nonsense just started about half an hour ago, but thought it was worth mentioning, in case anyone else is experiencing Wikipedia's mood swings. [[User:Maile66|Maile66]] ([[User talk:Maile66|talk]]) 01:23, 26 January 2011 (UTC)
:The ResourceLoaderSkinModule class was recently renamed ([[gerrit:994854]]). It seems that you've just updated your MediaWiki to a version that doesn't have it any more, but one of your skins is an older version that is still using it. This will occasionally happen with skins and extensions.
* I also noticed terribly slow response time, the past few days, where perhaps 1 in 10 edit-previews would time-out (So, I made mirror edits in a text-editor window to avoid losing all edits due to time-out). The developers might have restricted user resources, for a few days, in preparation for the dot-17 release ([[MediaWiki]] 1.17) which has numerous tiny changes to slightly adjust internal data structures, and totally remove some sections of deprecated code (rather than just leave it, who cares). Some group has created a ''children-will-like-it'' upload screen for Wikimedia Commons, with a cartoon explaining the process (I'll bet the upload-cartoon doesn't cover analyzing a fair-use rationale to comply with changes to international [[copyright law]]!), just the basics for users new to Commons upload of "free" images. They are improving secure login to allow returning to non-secure browser windows (but any celebrities had best continue editing with secure-post mode). A lot of clerical changes: it's mostly like re-arranging deck chairs (or coal shovels) on the Titanic, rather than building new ships to solve major concerns. Bigger changes usually happen to templates or policies than to the MediaWiki features. Remember, last year we removed the [[WP:CANVAS]] censorship which warned people not to tell others about new articles: now if you write a new article and tell 9 people, you can't be accused of conspiracy to provide too much valuable information. I think we will need to have a 2nd Wikipedia, which can risk major new features without the fear that the ONE Wikipedia will die if a new feature has a severe bug. -[[User talk:Wikid77|Wikid77]] 06:49, 26 January 2011 (UTC)
:If you've already installed the skin from Git, running <code>git pull</code> in the affected skin's repository should fix it. If you haven't, it's probably best if you do :) but you can also remove it from LocalSettings.php, or download the latest ''master'' snapshot from [[mw:Special:SkinDistributor|SkinDistributor]]/[[mw:Special:ExtensionDistributor|ExtensionDistributor]]. [[User:Matma Rex|Matma Rex]] <small>[[User talk:Matma Rex|talk]]</small> 21:51, 20 May 2024 (UTC)
::Aha. Yes, I experienced being logged out too. It seemed to me that it happens after leaving Safari (I use FF and Saf), with (or without?) FF open & logged in.
::Thanks for the nice, detailed response. [[mw:Special:SkinDistributor/Vector]] even offers the "master (latest development version)" but https://extdist.wmflabs.org/dist/skins/Vector-master-685a02f.tar.gz gives me a 404 Not Found error. I'll just figure out how to git it the preferred way ) [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 00:23, 21 May 2024 (UTC)
:::Weird, that link works for me now. Maybe it took a few minutes to generate. [[User:Matma Rex|Matma Rex]] <small>[[User talk:Matma Rex|talk]]</small> 00:35, 21 May 2024 (UTC)
::::Indeed. Just worked for me too. But rather than tinker with telling my Windows how to unzip that "gz" file ("Look for an app in the Miocrosoft Store"?!), I'm going to [[mw:Download from Git#Using Git to download MediaWiki skins]].
::::Follow the exact same procedure as for extensions (described in the [[mw:Download from Git#Download an extension|previous section]]), but using <code>skins</code> rather than <code>extensions</code> in all URLs and paths. [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 01:01, 21 May 2024 (UTC)
'''c:\php\mediawiki\core\skins>'''<code>git clone https://gerrit.wikimedia.org/r/mediawiki/skins/Vector</code><br>
Cloning into 'Vector'...<br>
Enter passphrase for key '/c/Users/Bill/.ssh/id_ed25519':<br>
remote: Counting objects: 99, done<br>
remote: Finding sources: 100% (94/94)<br>
remote: Getting sizes: 100% (70/70)<br>
remote: Compressing objects: 100% (1041262/1041262)<br>
remote: Total 37958 (delta 29), reused 37891 (delta 9)<br>
Receiving objects: 100% (37958/37958), 11.37 MiB | 8.91 MiB/s, done.<br>
Resolving deltas: 100% (28242/28242), done.


'''c:\php\mediawiki\core\skins>'''
::Re my report below about being logged out, I use Firefox, but do have IE open and minimised in order to run AWB, which I do from my NSH002 account. --[[User:NSH001|NSH001]] ([[User talk:NSH001|talk]]) 11:58, 26 January 2011 (UTC)
:::I had similar issues with firefox, only it was 100% logging me out. Switching to rekonq solved the problem. Not sure what was going on. [[User:Sailsbystars|Sailsbystars]] ([[User talk:Sailsbystars|talk]]) 14:56, 26 January 2011 (UTC)


Appears to have worked. – [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 01:17, 21 May 2024 (UTC)
=== Connection timed out ===
:{{done}}. Success. I have a development environment which seems to be operating identically with the official-release environment I just replaced. Tomorrow I move to the next step. Make minor "hello, world!" type changes in two files, and then figure out how to submit them for review. FYI, the project I'm working on, where I hope to make more substantial enhancements soon, is discussed on my talk: [[User talk:Wbm1058#My MediaWiki core developers thread]]. – [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 01:40, 21 May 2024 (UTC)


=== mw:Local development quickstart ===
I've been getting an increasing number of "connection timed out" messages in the last few days, and just wondered whether anyone else had noticed the same thing. <font color="black">[[User:SlimVirgin|SlimVirgin]]</font> <small><sup><font color="gold">[[User_talk:SlimVirgin|TALK|]]</font><font color="lime">[[Special:Contributions/SlimVirgin|CONTRIBS]]</font></sup></small> 05:26, 26 January 2011 (UTC)
:::It's just that the way you have cloned the repo is unconventional. mediawiki/core should be cloned to a directory named "mediawiki", not "core". {{pb}}I think you will have a lot easier time going through [[mw:Local development quickstart]] instead, which unfortunately isn't advertised more prominently. You may want to discard the existing mediawiki install and use the quick start. You have already done step 1, so start with step 2. It's easy! – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 16:40, 20 May 2024 (UTC)
* Yes, in various locations, for over 5 days, while we ran other websites quickly. Sometimes, 1-in-10 edit previews would time-out (leading to, ''"I had better copy this edit-buffer to an external text editor or risk losing all")''. Currently, the [[Arabic Wikipedia]] is as slow as a tourist walking through the deep sand in the [[Sahara]]. See concerns above:
::::That "quick start" page has stuff I've already done previously, and insufficient info about stuff I needed to do.
::* ''[[#Slowness and timing out error message]]''
::::I've had an "official release" version installed on my laptop since November. It makes a lot of sense to me to have started that way, because as complicated as installing the official release was, installing the developers' version is way more complicated yet.
::* ''[[#More bugaboos]]''
::::*I've had PHP installed directly on Windows for over a decade now. My bots use that.
: I suspected the developers are testing new MediaWiki 1.17 on some servers, but maybe not. I didn't see any great, giant new features in 1.17, but all computer-math is showing 15/16 digit precision, rather than some having 12/13 digits, a few weeks ago (so that indicates system upgrades). I am working on essays to improve performance, such as making {Cite web} & {Cite book} run 4x times faster & smaller, which are 95% the wikitext of scholar's articles. Also, we need to avoid those large bottom navboxes which are causing "50,000" articles to reformat all the time. Over 1.1 million navboxes are typically doubling the size of "every" article on Wikpedia (it should be running twice as slow for everyone). --[[User talk:Wikid77|Wikid77]] 07:31, 26 January 2011 (UTC)
::::*There was no need for me to update my php.ini file to load the required PHP extensions. I already did that a long time ago. The problem is that this "composer" system basically "ignores" that, it seems to me.
::I thought the problem was my Internet connection...good to know that it's the servers. [[User:Nyttend|Nyttend]] ([[User talk:Nyttend|talk]]) 14:12, 26 January 2011 (UTC)
::::*It just says to "use Git" to clone the core, as if that's easy. No it wasn't. See above for what steps I went through to figure it out.
:::I don't believe this is the case: although some servers may have been taken out of rotation for other reasons, testing 1.17 is unlikely to be one of them. 1.17 is still in code review. [[User:Happy-melon|<b style="color:forestgreen">Happy</b>]]‑[[User talk:Happy-melon|<b style="color:darkorange">melon</b>]] 15:22, 26 January 2011 (UTC)
::::*I installed SQLite already last year; I don't need to do that again.
::::*I already knew how to start my server, though I was told by someone to use "localhost:80" in Boston in 2019, not "localhost:4000". I don't know whether it matters which number I use there.
::::What I need is a "quickstart" page for upgrading from an "official release" version to the developers' version. – [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 17:28, 20 May 2024 (UTC)
:::::1 and 2. yes I said as much - you have already done step 1. <br>3. There's no need to configure git before cloning repos. The steps from [[mw:Gerrit/Tutorial#Configure_Git]] are only to prepare for pushing changes. <br>4. <code>composer mw-install:sqlite</code> is not for installing sqlite (not required). Instead it initialises ''MediaWiki'' itself with sqlite as the db backend. This is a shortcut to avoid going through the web installer. <br>5. Running something on port 80 is only advisable on linux. On Windows/macOS, it's better to use a non-reserved port (> 1023) to avoid issues with firewalls.<br>{{tq|What I need is a "quickstart" page for upgrading from an "official release" version to the developers' version.}} The easiest way to do that is to delete or forget about the release version and setup the developers' version from scratch. – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 17:56, 20 May 2024 (UTC)
::::What I did need to do before cloning was download and install Git, and setup SSH to use it. None of that was necessary to download and install the release version, which makes installing the release version an easier task.
::::Oh I see. {{lightbulb}} a shortcut to avoid going through the web installer... well, now I know. I was wondering how that was done. But now, water under the bridge. I'd like to keep the database I started last year, for sentimental reasons, and just upgrade. I think upgrading should be easier than installing from scratch every time.
::::I've noted that my server runs really slowly on my system. Wrote that off as bloatware overwhelming my 14-year old processor, but, now that you mention it, could be a symptom of firewall intervention. I'll switch to port 4000 and see whether that runs faster.
::::I also noticed [[mw:Gerrit/Tutorial/tl;dr]], and have kept that open in another browser window for comparison and reference. – [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 20:17, 20 May 2024 (UTC)


=== git-review ===
:::Thanks, Wikid, I was about to contact my ISP. I know that citation templates slow things down (I wish we could find a way to stop encouraging people to use them), but which are the navboxes that are causing the problem? <font color="black">[[User:SlimVirgin|SlimVirgin]]</font> <small><sup><font color="gold">[[User_talk:SlimVirgin|TALK|]]</font><font color="lime">[[Special:Contributions/SlimVirgin|CONTRIBS]]</font></sup></small> 23:56, 26 January 2011 (UTC)
{{collapse top|Running command as an administrator:}}


Microsoft Windows [Version 10.0.19045.4412]
::::::I have also had an unusual number of connection time outs, 'server not available' messages, and general slowness of response, over the same recent periods as mentioned by the posters above. These problems are only related to WMF sites. I connect from Thailand using MacOS with FFox and Safari through good DSL (at home and in the office) and [[EGPRS]] (EDGE) when on the move (and sometimes a smart phone). [[User:Kudpung|Kudpung]] ([[User talk:Kudpung|talk]]) 01:48, 27 January 2011 (UTC)
(c) Microsoft Corporation. All rights reserved.


'''C:\WINDOWS\system32>'''pip install git-review<br>
Collecting git-review<br>
: Downloading git_review-2.4.0-py3-none-any.whl.metadata (2.0 kB)<br>
Collecting requests>=1.1 (from git-review)<br>
: Downloading requests-2.32.1-py3-none-any.whl.metadata (4.6 kB)<br>
Collecting charset-normalizer<4,>=2 (from requests>=1.1->git-review)<br>
: Downloading charset_normalizer-3.3.2-cp312-cp312-win_amd64.whl.metadata (34 kB)<br>
Collecting idna<4,>=2.5 (from requests>=1.1->git-review)<br>
: Downloading idna-3.7-py3-none-any.whl.metadata (9.9 kB)<br>
Collecting urllib3<3,>=1.21.1 (from requests>=1.1->git-review)<br>
: Downloading urllib3-2.2.1-py3-none-any.whl.metadata (6.4 kB)<br>
Collecting certifi>=2017.4.17 (from requests>=1.1->git-review)<br>
: Downloading certifi-2024.2.2-py3-none-any.whl.metadata (2.2 kB)<br>
Downloading git_review-2.4.0-py3-none-any.whl (52 kB)<br>
: ---------------------------------------- 52.9/52.9 kB 547.6 kB/s eta 0:00:00<br>
Downloading requests-2.32.1-py3-none-any.whl (63 kB)<br>
: ---------------------------------------- 63.7/63.7 kB 862.4 kB/s eta 0:00:00<br>
Downloading certifi-2024.2.2-py3-none-any.whl (163 kB)<br>
: ---------------------------------------- 163.8/163.8 kB 2.0 MB/s eta 0:00:00<br>
Downloading charset_normalizer-3.3.2-cp312-cp312-win_amd64.whl (100 kB)<br>
: ---------------------------------------- 100.4/100.4 kB 1.2 MB/s eta 0:00:00<br>
Downloading idna-3.7-py3-none-any.whl (66 kB)<br>
: ---------------------------------------- 66.8/66.8 kB 725.6 kB/s eta 0:00:00<br>
Downloading urllib3-2.2.1-py3-none-any.whl (121 kB)<br>
: ---------------------------------------- 121.1/121.1 kB 1.8 MB/s eta 0:00:00<br>
Installing collected packages: urllib3, idna, charset-normalizer, certifi, requests, git-review<br>
Successfully installed certifi-2024.2.2 charset-normalizer-3.3.2 git-review-2.4.0 idna-3.7 requests-2.32.1 urllib3-2.2.1
{{collapse bottom}}
Per instructed at [[mw:Gerrit/Tutorial#Setting up git-review]]:


'''c:\php\mediawiki\core>'''<code>git review -s --verbose</code><br>
=== being logged out ===
git: 'review' is not a git command. See 'git --help'.
This has happened to me 2 or 3 times this morning. Very annoying. Unlike others above, Wikipedia doesn't seem any slower than usual. Just thought I'd mention it here, in case others are having the same problem. --[[User:NSH001|NSH001]] ([[User talk:NSH001|talk]]) 11:30, 26 January 2011 (UTC)


'''c:\php\mediawiki\core>'''<code>git-review -s --verbose</code><br>
:It's happened to me too over the last couple of days. <font color="black">[[User:SlimVirgin|SlimVirgin]]</font> <small><sup><font color="gold">[[User_talk:SlimVirgin|TALK|]]</font><font color="lime">[[Special:Contributions/SlimVirgin|CONTRIBS]]</font></sup></small> 00:03, 27 January 2011 (UTC)
'git-review' is not recognized as an internal or external command,
operable program or batch file.


?? – [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 14:09, 21 May 2024 (UTC)
Saying "It doesn't work" is pretty useless in trying to get this fixed. At a minimum, your location, your ISP, connection details, etc would be helpful to the people who can even begin to look at this. [[User:OverlordQ|<span style="color:#171788;font-weight:bold">Q</span>]] <sup>[[User talk:OverlordQ|T]] [[Special:Contributions/OverlordQ|C]]</sup> 01:20, 27 January 2011 (UTC)
* To use <code>git review</code>, you have to be in a git clone directory that already contains a (possibly hidden) <code>.gitreview</code> configuration file (see [[mw:Special:MyLanguage/Gerrit/Advanced usage#Setting up a repository for git-remote|Setting up a repository for git-remote]]) — hmm [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 14:48, 21 May 2024 (UTC)


:It looks like the directory where git-review got installed is not in your [[%PATH%]] environment variable. First of all, try closing the command-line window and opening it again, and retry – maybe it is just seeing outdated env variables.
:::Q, if the problem were my ISP/connection/location, or similar, this would not be the place to discuss it. I posted the message to discover if the problem might be with the servers or their software. Fortunately the problem has not recurred since I reported it above. --[[User:NSH001|NSH001]] ([[User talk:NSH001|talk]]) 08:35, 27 January 2011 (UTC)
:If that doesn't help, you'll need to change that env variable, the option to do that is somewhere in your operating system settings. Add the directory where git-review is, probably something like like C:/Python310/Scripts/ (that's where it is on my machine). Note that you need to open a new command-line window every time for the changes to take effect when testing.
:(If I recall, there's a checkbox to do that automatically when you install Python, which you may have left unchecked. You can also try reinstalling Python and finding that checkbox.) [[User:Matma Rex|Matma Rex]] <small>[[User talk:Matma Rex|talk]]</small> 15:04, 21 May 2024 (UTC)
::Yes, I checked the box on the Python installation. Closing my command window and opening a new one did the trick, of course. The instructions could explicitly say to do that. Thanks again for all your help – [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 15:20, 21 May 2024 (UTC)
* That directory has a '''.gitreview''' file in it, with the following content:<br>
host=gerrit.wikimedia.org<br>
port=29418<br>
project=mediawiki/core.git<br>
track=1<br>
defaultrebase=0<br>


Is that good? [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 14:58, 21 May 2024 (UTC)
:It happens to me too with increasing frequency. Fortunately I notice before pressing the 'save page' button, because the skin goes back to the vector default, whereas I, wisely, use monobook which is far more stable and has a much more practical interface. [[User:Kudpung|Kudpung]] ([[User talk:Kudpung|talk]]) 01:48, 27 January 2011 (UTC)


==== review installation log ====
:It just happened to me about five seconds ago. I just refreshed the page I was on a couple times and I was magically logged-on again.--[[User:Brianann MacAmhlaidh|Brianann MacAmhlaidh]] ([[User talk:Brianann MacAmhlaidh|talk]]) 08:48, 27 January 2011 (UTC)
'''c:\php\mediawiki\core>'''<code>git review -s --verbose</code><br>
2024-05-21 11:12:37.452765 Running: git config --get gitreview.remote<br>
2024-05-21 11:12:37.468379 ... gitreview.remote = origin<br>
2024-05-21 11:12:37.468379 Config['remote'] = origin<br>
2024-05-21 11:12:37.468379 Running: git config --get gitreview.branchauthor<br>
2024-05-21 11:12:37.499631 Config['branchauthor'] = name<br>
2024-05-21 11:12:37.499631 Running: git symbolic-ref -q HEAD<br>
2024-05-21 11:12:37.530879 Running: git for-each-ref --format=%(upstream) refs/heads/master<br>
Following tracked origin/master rather than default origin/master<br>
2024-05-21 11:12:37.609011 Running: git config --get gitreview.scheme<br>
2024-05-21 11:12:37.671503 Config['scheme'] = ssh<br>
2024-05-21 11:12:37.671503 Running: git config --get gitreview.hostname<br>
2024-05-21 11:12:37.687125 Config['hostname'] = gerrit.wikimedia.org<br>
2024-05-21 11:12:37.687125 Running: git config --get gitreview.port<br>
2024-05-21 11:12:37.718370 Config['port'] = 29418<br>
2024-05-21 11:12:37.718370 Running: git config --get gitreview.project<br>
2024-05-21 11:12:37.749619 Config['project'] = mediawiki/core.git<br>
2024-05-21 11:12:37.749619 Running: git log --color=never --oneline HEAD^1..HEAD<br>
2024-05-21 11:12:38.687096 Running: git remote<br>
2024-05-21 11:12:38.765224 Running: git branch -a --color=never<br>
2024-05-21 11:12:38.890218 Running: git rev-parse --show-toplevel --git-dir<br>
2024-05-21 11:12:38.937083 Running: git config --get core.hooksPath<br>
2024-05-21 11:12:38.983962 Running: git config --get core.hooksPath<br>
2024-05-21 11:12:39.015203 Running: git submodule foreach cp -p .git\hooks\commit-msg "$(git rev-parse --git-dir)/hooks/"


'''c:\php\mediawiki\core>'''
::It looks like a rogue server. Can you identify the server which showed you as logged out? (View source, and look at the "Served by" at the very bottom) [[User:Platonides|Platonides]] ([[User talk:Platonides|talk]]) 23:37, 28 January 2011 (UTC)


I don't see the "found origin push URL" and "fetching commit hook" that the instructions said I should see. – [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 15:47, 21 May 2024 (UTC)
== Formatting numeric templates on Arabic WP ==


:The instructions are probably outdated and everything is probably okay. git-review is being somewhat actively developed, and the example output in [[mw:Gerrit/Tutorial#Setting_up_git-review]] has a 2019 date. If it didn't work, you'll find out later if you get an error complaining about a missing Change-Id line. [[User:Matma Rex|Matma Rex]] <small>[[User talk:Matma Rex|talk]]</small> 20:57, 21 May 2024 (UTC)
I do not speak Arabic, so I am wondering if anyone here knows of a CSS style that forces left-to-right text on the Arabic Wikipedia (or other right-to-left languages). I have ported the [[Template:Convert]] subtemplate for temperature ranges, {&#123;Convert/Dual/LoffAoffDxSoffT}}, but the output, usually of the form "{{convert|10|-|20|C|F}}" is being scrambled in Arabic due to Latin letter "F" within parentheses "( )". Currently, I am hiding the letter "t" (as font color=white) at the start/end to force Latin-text alignment, as left-to-right:
::* Hiding "t" at start/end: &nbsp; '''t'''{{convert|10|-|20|C|F}}'''t'''.
However, is there a browser style directive (or some template, because {nowrap} still scrambles parentheses), which does not introduce hidden text, but can directly format text as left-to-right in the Arabic Wikipedia? There's no hurry on this, because the 2 hidden t's work okay for now. -[[User talk:Wikid77|Wikid77]] 21:10, 25 January 2011 (UTC)
:::In depth, Unicode Bidi Algorithm covers this for most browsers. Hardcoding, you could use uniciode bidi-formatting 'control' characters [[Unicode_character_property#Bidirectional_writing|Unicode_character_property#Bidirectional_writing]]. The special characters LRE, RLE, LRO, RLO, PDF ('pop') can control/overrule the F-property 'latin'. They are &#x202E;invisible&#x202C;, but just take a look how they work. &#x202E;Amazing&#x202C;, innit? &#x202E;{{convert|10|-|20|C|F}}&#x202C;. Need more?-[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 22:29, 25 January 2011 (UTC)
::Adding: the algorithm UAX#9 is [http://www.unicode.org/reports/tr9/tr9-23.html here], but is not easy reading. Some 28 rules must be applied to a character string (in memory), using the 19 bidi-types in the above linked table, while interpreting paragraph breaks, linebreaks and looking at neighboring character properties. A group of rules is specific for LtoR numbers in RtoL scripts, but as you write an "F" or so might break the logic. (detail: in LRO and RLE &tc, O=override, E=embed, and 'Pop Directional Format' (pop) is the general closing bidi-bracket for the latest (closest, deepest nested) LRx/RLx bidi-bracket). -[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 22:47, 25 January 2011 (UTC)
:::So would this solve it: the number & dimension sequence must be LtoR in Arab. Simple would be: the template outputs: LRO&#x202D;{{#ifeq:|on|<span style="display:none">{{padleft:{{FORMATNUM:10|R}}|16|0}}{{#ifeq:{{#expr:(20)*0}}|0|{{padleft:{{FORMATNUM:20|R}}|16|0}}}}</span>}}{{convert/{{#if:1|-}}|{{FORMATNUM:10|R}}|{{#ifeq:{{#expr:20*0}}|0|0}}|20|C|F||r={{#ifeq:{{{sp}}}|us|er|re}}|d=LoffAoffDbSoff|s=}}&#x202C;PDF. The ()-bracket are kept too. Will be more difficult when there are Arabic words etc in: say "'''From 10 to 20.'''" would have to translate into: "RLO''From'' LRE'''10'''PDF ''to'' LRE'''20'''PDF.PDF", so: "&#x202E;''From'' &#x202A;'''10'''&#x202C; ''to'' &#x202A;'''20'''&#x202C;.&#x202C;". (using Embedding within an Override. Do NOT change the sequence of the characters: in memory they will ''stay LtoR always''. The browser will reorder them as defined when sending them to the display) -[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 23:00, 25 January 2011 (UTC)


I don't know whether that's a problem or not, but I proceeded as if it wasn't.
To answer the actual question, the CSS property is "direction" and can take values of "ltr" or "rtl". [[User:OrangeDog|OrangeDog]] <small>([[User talk:OrangeDog|τ]] • [[Special:Contributions/OrangeDog|ε]])</small> 00:45, 26 January 2011 (UTC)
:There was also this question: ''is there a browser style directive (or some template [...]), which does not introduce hidden text, but can directly format text as left-to-right in the Arabic Wikipedia''. -[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 01:58, 26 January 2011 (UTC)
* Thank you both. In this case, the unicode characters worked to override each temperature word and retain the flow of the surrounding Arabic text: using "&amp;#x202E;F°&amp;#x202C" reversed the text as "°F" without disturbing the nearby Arabic text. They have a special symbol for "F" Fahrenheit, but at least, now, [[Arabic Wikipedia]] has the temperature-range conversions which they have been wanting for nearly a year now. Considering the mind-boggling differences between the Arabic Wikipedia and enwiki, this 1-day one-year solution was as you said, "&#x202E;Amazing&#x202C;" ("Amazing"). Thanks again. --[[User talk:Wikid77|Wikid77]] 05:25, 26 January 2011 (UTC)
**You might want to consider using templates to insert those characters. Allows easy changes, and <nowiki>{{LRO}}</nowiki> is probably easier to read than &amp;#x202E; and friends. (perhaps we should add a magicword/tag or something to MediaWiki itself ? —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 11:41, 28 January 2011 (UTC)


'''c:\php\mediawiki\core>'''<code>git pull --rebase origin master</code><br>
== centralNotice inconsistency ==
Enter passphrase for key '/c/Users/Bill/.ssh/id_ed25519':<br>
remote: Counting objects: 11860, done<br>
remote: Finding sources: 100% (60/60)<br>
remote: Getting sizes: 100% (26/26)<br>
remote: Compressing objects: 100% (108354/108354)<br>
remote: Total 60 (delta 35), reused 35 (delta 28)<br>
Unpacking objects: 100% (60/60), 36.46 KiB | 13.00 KiB/s, done.<br>
From ssh://gerrit.wikimedia.org:29418/mediawiki/core<br>
: * branch master -> FETCH_HEAD<br>
: 2d68215ff7a..25895192125 master -> origin/master<br>
Successfully rebased and updated refs/heads/T12814-hello.<br>


'''c:\php\mediawiki\core>'''<code>git review -R</code><br>
<pre>… .notice-collapsed-wrapper-stew2011-noms {
wbm1058@gerrit.wikimedia.org: Permission denied (publickey).<br>
margin: 2px auto 0; …</pre>
fatal: Could not read from remote repository.
Because of this margin, even with a cookie saved to hide the notices at the top, pages "randomly" jump around 2px every now and then (when the "''Candidates for the 2011 steward elections…''" notice is chosen). This is not a big problem, in fact I couldn't even reproduce it on Windows, but it is annoying, and I do find it unnecessary. That particular notice has a significant amount of custom CSS inserted and I don't really understand why. Shouldn't these notices be more or less uniform? At least the ones that are just text anyways? ¦ [[User:Reisio|Reisio]] ([[User talk:Reisio|talk]]) 07:53, 26 January 2011 (UTC)
:Which browser and which skin ? —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 11:49, 28 January 2011 (UTC)
::This should be fixed once the cache clears (5 minutes). Had to remove a superfluous div that was not included in the collapse definition. [[User:Kaldari|Kaldari]] ([[User talk:Kaldari|talk]]) 22:39, 28 January 2011 (UTC)


Please make sure you have the correct access rights<br>
== Using #switch: '&amp;#x0070;' does not match 'p' ==
and the repository exists.


If you get a <code>Permission denied (publickey). fatal: Could not read from remote repository.</code>, review the instructions at [[mw:SSH keys#Add SSH Private key to use with Git]] to make sure your ssh agent is running and your identity is added. If you close your Git Bash shell, you will be signed out and need to re-follow these instructions each time.
(Few days ago I did a neighbouring(?) report on this [[Wikipedia:Village_pump_%28technical%29#font-related_class.3D.22IPA.22_disrupts_a_.23switch:|font-related class="IPA" disrupts a #switch:]]). {{tlx|IPAsym}} uses {{code|#switch:}}. Input is a IPA-character, output is the corresponding IPA article. But when entering the character using numeric reference like {{code|&amp#x0070;}}, it fails to find it. Example with the regular 'p':
* {{tlx|IPAsym|p}} &rarr; {{IPAsym|p}}
* {{tlx|IPAsym|<nowiki>&amp;#x0070;</nowiki>}} &rarr; {{IPAsym|&#x0070;}}
* {{tlx|IPAsym|<nowiki>{{StripWhitespace|&amp;#x0070;}}</nowiki>}} &rarr; {{IPAsym|{{StripWhitespace|&#x0070;}}}}
Any hints on solving, or should I work around it? -[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 12:01, 26 January 2011 (UTC)


'''c:\php\mediawiki\core>'''<code>eval `ssh-agent`</code><br>
:According to the template's documentation, you can only enter IPA characters or IPA numbers; HTML entities do not work. <span style="font-family:verdana"> — [[User:Edokter|<b style="color:#008"><i>E</i>dokter</b>]] • [[User_talk:Edokter|<span style="color:#080">Talk</span>]] — </span> 15:03, 26 January 2011 (UTC)
'eval' is not recognized as an internal or external command,<br>
:::"p" ''is'' an "IPA character". But Unicode does not know or handle an "IPA character" differently: to you, me & Unicode it is just a regular "p". The point is: when entered by ''typing'' (or copypasting), it is recognized by "#switch:", when entered by <nowiki>&amp;#x0070;</nowiki>, it is not recognised. "p" is an easy example, non-US-keyboard chars (like ð) have the same behaviour/problem. -[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 00:26, 27 January 2011 (UTC)
operable program or batch file.
::This is expected behaviour, as <tt>&amp;#x0070;</tt> and <tt>p</tt> are not the same. Consider instead &amp;#124;, the encoded form of the pipe character... you wouldn't want ''that'' to be treated in the same way as its raw counterpart, would you? <tt>:D</tt> [[User:Happy-melon|<b style="color:forestgreen">Happy</b>]]‑[[User talk:Happy-melon|<b style="color:darkorange">melon</b>]] 15:13, 26 January 2011 (UTC)
:::No. I expect <tt>&amp;#x0070;</tt> (rendered) and <tt>p</tt> to be the same. It is the same character. Another ''expected the same'' is <tt>&amp;#112;</tt>. Maybe you mean to say ''explainable'' different? -[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 00:26, 27 January 2011 (UTC)
:::re the pipe symbol & encoding: what you describe is the my Q ''other way around''. There is nothing I may "want" in behaviour. We "expect" in behaviour<!-- (now you won't say: 'then don't expect it', will you?)-->. When I encounter pipe-problems, sometimes I can handle them (e.g. by using the template <nowiki>{{!}}</nowiki>). But that is understandable logic to me by now (I use that in {{code|#if:}} table-building). Saying "(A) =/= A is expected", as you do here, is not logic to me. -[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 00:42, 27 January 2011 (UTC)


Is there a way to run git bash from the Windows cmd prompt?
::::HTML entities are decoded by the browser. Mediawiki never knows what the encoding means. This behavior is desirable in some cases, and is unlikely to change. [[User:Dragons flight|Dragons flight]] ([[User talk:Dragons flight|talk]]) 00:46, 27 January 2011 (UTC)
:::::That is it then. Any option (class, CSS, template, trick, dunno) to solve it this/our side? -[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 00:53, 27 January 2011 (UTC)
{{od}}Wanna say thanx to the contributors, despite of diffs. -[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 00:56, 27 January 2011 (UTC)
:What's wrong with the trivial option of inputting the letters directly rather than with entities?—[[User:EmilJ|Emil]]&nbsp;[[User talk:EmilJ|J.]] 12:12, 27 January 2011 (UTC)
::Nothing wrong with that. The option stays. In the current ~150 calls of {{tlx|infobox IPA base}}, all input does so (either by character, or by "IPA number" -- none by hex). The question rose, when I tried to use the hex or decimal ''editors'' input (in a regular article page) to a valid IPAsym output article name. This would reduce the essential main input to ''two out of three'': IPA-number -- symbol -- Unicode-decimal-value. E.g. the font does display well through Unicode-HTML-reference (but that same code does not return the IPAsym article name, as is the issue here). After this thread, the solution must be: editor expected to enter all three out of three. That will do, we'll just have to instruct (document for ) the editor. -[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 02:03, 28 January 2011 (UTC)


Inside a git bash window:
* Using a #switch, to check separate characters, would need both values in each bar-branch: such as "<tt>p&nbsp;|&nbsp;&amp;#x0070;</tt>" to match either the literal "p" or its hex-code. A #switch can have over 1,400 values in the branches. Long term, I think we need to change the NewPP preprocessor to allow metacharacters, such as the UNIX "\b" or "\t" for a space or a tab, at least to treat some entities such as "&amp;nbsp;" as the 1-character value &amp;#160; with string length of 1. Currently, using "&amp;#32;" is a 5-character string (&-#-3-2-;), and "&amp;nbsp;" is a 6-character string until displayed. UNIX has used the backslash "\" as the [[escape character]] to denote text metacharacters because file path names used the forward slash ("/"). Using that method, prepending a backslash could denote "<tt>\&amp;#x0070;</tt>" as the 1 character "p" rather than the current literal 9 characters. Worrying about performance, I would expect the preprocessor to just place 1 character in the text, rather than 88-character marker text which "&lt;nowiki>xx&lt;/nowiki>" currently generates. -[[User talk:Wikid77|Wikid77]] 13:36, 27 January 2011 (UTC)
::Wikid: way beyond my scope, but I get the idea. For now, I am OK with the explanation by User:Dragons flight: "rendered in the browser", i.e. after the template is solved. That's it. -[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 02:03, 28 January 2011 (UTC)
:::It would be more controllable to introduce a parser function <tt><nowiki>{{#decodeentities:...}}</nowiki></tt> which fully-unescaped references. "&amp;#32;" ''is'' a five-character string, in the HTML source as well as in wikitext. There are some situations where you do want to be able to evaluate it as one character, and some situations where you wouldn't. Introducing new behaviour for previously-unmagic notation is dangerous, and would require a huge amount of testing on old and current revisions. Implementing it through a parser function or similar provides the same functionality without impacting on existing wikitext. [[User:Happy-melon|<b style="color:forestgreen">Happy</b>]]‑[[User talk:Happy-melon|<b style="color:darkorange">melon</b>]] 13:28, 30 January 2011 (UTC)


Bill@Mobile-laptouch MINGW64 ~<br>
== Keymanweb alternate language input facility safe? ==
$ eval `ssh-agent`<br>
Agent pid 272<br>


Bill@Mobile-laptouch MINGW64 ~<br>
Hi, Can someone help me with any feedback regarding the [[User:Keymanweb/Keymanweb]] virtual keyboard? The monobook.js page suggests that I check out the Village Pump if in doubt so here I am. By the way, I did a search for keymanweb but did not see many results. My main wory is that the user page and user talk page for keymanweb did not help at all in veryfing the safety/robustness of this tool. Any help appreciated.-[[User:Deepraj|Deepraj]] | [[User talk:Deepraj|Talk]] 20:20, 27 January 2011 (UTC)
$ ssh-add ~/.ssh/id_ed25519<br>
:Its from the commercial website www.keymanweb.com by Tavultesoft. It loads external JS and has the potential for keylogging, but seems wider used than just here. If you want to be sure, you need to do a full review of the code (i don't have the time). How much do you trust the company ? :D —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 12:24, 28 January 2011 (UTC)
Enter passphrase for /c/Users/Bill/.ssh/id_ed25519:<br>
Identity added: /c/Users/Bill/.ssh/id_ed25519 (wbm1058-wikipedia@yahoo.com)<br>


Then I went back to Windows command window, tried "review" again, and still got the "permission denied" error. – [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 20:28, 21 May 2024 (UTC)
== Help with a Navbox ==


:I haven't seen this exact error before, and your setup is rather different from mine, so this is a guess, but: the <code>eval `ssh-agent`</code> command actually works by setting environment variables, which everything else on your system can read to access the SSH agent. Maybe you just need to close and reopen the command prompt window again, so that it sees the new env variables? [[User:Matma Rex|Matma Rex]] <small>[[User talk:Matma Rex|talk]]</small> 21:02, 21 May 2024 (UTC)
{{done}}<br/>
:"Is there a way to run git bash from the Windows cmd prompt?" You can run something like <code>"C:\Program Files\Git\usr\bin\bash.exe"</code> from the command prompt, and it will run, but this is unlikely to do anything good. It will probably be confused about text encodings, file paths, and [[ANSI escape code|ANSI escape codes]]. (On Windows 10, they're slightly less incompatible.) Can you say why you want to do it? [[User:Matma Rex|Matma Rex]] <small>[[User talk:Matma Rex|talk]]</small> 21:15, 21 May 2024 (UTC)
Hi folks. I've made this template: [[Template:Interior Ranges of British Columbia]] It seems to work nicely on the template namespace, but when transcluded to an article, like [[Dunn Peak massif]], it doesn't open up. Any tips/fixes? [[User:The Interior|<font color="brown">The</font><font color="green"> Interior</font>]][[User Talk:The Interior|(Talk)]] 03:49, 28 January 2011 (UTC)
::(edit conflict) I just tried doing it from my git bash window instead of command prompt...
:You need to add the parameters group1=whatever, group2=whatever, to have each sub navbox show up. I don't really see the point of that #if parser, so you might as well remove the <code><nowiki>{{#if:{{{group1<includeonly>|</includeonly>}}}{{{sect1|}}}{{{section1|}}}</nowiki></code> and related for group2. <span style="font-family:Georgia;font-size:80%;">'''/[[User:Fetchcomms|<span style="color:#000;">ƒETCH</span>]][[User talk:Fetchcomms|<span style="color:#000;">COMMS</span>]][[Special:Contributions/Fetchcomms|<span style="color:#000;">/</span>]]'''</span> 04:49, 28 January 2011 (UTC)
::Sorry to be dense, but where should the Group parameter be added? I tried removing the "#if" lines, but ... result was not optimal.[[User:The Interior|<font color="brown">The</font><font color="green"> Interior</font>]][[User Talk:The Interior|(Talk)]] 06:20, 28 January 2011 (UTC)
:::I have cleaned up the navbox a bit and put it on [[Dunn Peak massif]] the way I think it should be. Do you find it okay now? [[User:Svick|Svick]] ([[User talk:Svick|talk]]) 11:15, 28 January 2011 (UTC)
::::Perfect! I'll have to take a look at what you did to fix. I really appreciate it, the double collapsible w/columns was a bit ambitious for me. Looks great, thanks again to both for taking a look. [[User:The Interior|<font color="brown">The</font><font color="green"> Interior</font>]][[User Talk:The Interior|(Talk)]] 17:33, 28 January 2011 (UTC)


Bill@Mobile-laptouch MINGW64 /c/php/mediawiki/core (T12814-hello)<br>
== Numbers often 3-digit but what length are strings ==
$ git review -R<br>
remote:<br>
remote: Processing changes: new: 1 (\)<br>
remote: Processing changes: new: 1 (|)<br>
remote: Processing changes: new: 1 (/)<br>
remote: Processing changes: new: 1 (-)<br>
remote: Processing changes: new: 1 (\)<br>
remote: Processing changes: new: 1 (|)<br>
remote: Processing changes: refs: 1, new: 1 (|)<br>
remote: Processing changes: refs: 1, new: 1 (|)<br>
remote: Processing changes: refs: 1, new: 1, done<br>
remote:<br>
remote: SUCCESS<br>
remote:<br>
remote: https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1034588 Show the page name on the MovePage checkbox for "Yes, delete the page" [NEW]<br>
remote:<br>
To ssh://gerrit.wikimedia.org:29418/mediawiki/core.git<br>
: * [new reference] HEAD -> refs/for/master%topic=T12814-hello


I guess that worked?! [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 21:11, 21 May 2024 (UTC)
What is probably the most-common string length in English Wikipedia usage, such as with counting (by {&#123;[[Template:Str_len]]|abcdef}}=6)? In designing shorter ways to handle character strings (and numeric strings), I have found that, by far, the most common numbers in conversions are 3-digit integers, such as 115 in {&#123;convert|115|km|mi|0}} &rarr; {{convert|115|km|mi|0}}. Perhaps 70% of conversions are 3-digit integers, then 3-digit decimals, with 2-digit integers less common (scanned by wiki-searching for Convert option "abbr=on"). However, I can't yet think of an easy way to scan through uses of {str_len} to find the typical size of character strings counted on English Wikipedia. The [[WP:Database_reports]] list {Str_len} as used 480,510 times. However, many uses are buried in the inner reaches of complex templates, so I dread sampling article edits from the nebulous [[Special:WhatLinksHere/Template:Str_len]], where an article's text has nothing, but uses an infobox layer invoking {str_len} deeply hidden within. Anyway, I guess I could edit through several many pages in that list. Does anyone know of any count data, already gathered about this issue, or typical infobox string codes? There's no hurry on this. Just curious if the typical length is 3 or 4 or 7 (etc.). -[[User talk:Wikid77|Wikid77]] 08:20, 28 January 2011 (UTC)
: Yep, that worked. [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 21:15, 21 May 2024 (UTC)
:Yeah, just doing everything from the Git Bash window is probably the best way to have the least amount of weird issues. [[User:Matma Rex|Matma Rex]] <small>[[User talk:Matma Rex|talk]]</small> 21:16, 21 May 2024 (UTC)
::Time for a lager! Cheers! :) [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 21:25, 21 May 2024 (UTC)


=== Rebase ===
* '''''Average string length is italicized article-title length: 19?''''' Okay, it appears the average string length for {str_len} is the average length of italicized article titles: 19 characters (based on a sample of 10,000 titles). The titles are those "353,026" pages using [[Template:Italic_title]] to italicize films, books, albums (etc.), up to the left-paren. "(" suffix. So, I think I found Template:Italic_title is the "elephant in the room" of string usage, using {{[[Template:Str_find|Str_find]]}} 4 times for every title with "(" and hence, using {str_len} 5 times for every such title. Because {Str_find} uses 99 {str_left} (with {padleft}) for every string searched, then {Italic_title} is using 450 calls to {padleft} for every title containing left paren "(" in the title. {Italic_title} always invokes {str_find} 1 or more times, so that's at least 35,303,000 calls to {padleft}, plus 350 more uses of {padleft} for each italiziced name with "(" in the title, probably nearly 30 million. So, {Italic title} is using more than 64 million calls to padleft. Based on a sample of 10,000 italicized titles, where 2336 titles had parentheses "()", the indication is that 82,500 articles using {Italic title} have "()". Hence, the processing for "()" adds nearly 82,500 x 350 = 28,875,000 more calls to {padleft}. I have mentioned this under [[Template_talk:Italic title]], for possibly improving operation, long term. More later. -[[User talk:Wikid77|Wikid77]] 20:18, 28 January 2011, revised 07:48, 29 January 2011 (UTC)
[[User:Matma Rex|Matma Rex]], responding to your request at [https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1034588 code review] to edit another file. Per the instructions at [[mw:Gerrit/Tutorial#Rebasing]], I clicked on the REBASE button in Gerrit's web interface, and it responded with a "Confirm rebase" box with radio buttons for "Rebase on top of the master branch" or "Rebase on a specfic change, ref, or commit". I'm unclear on which I should choose, and whether to check the "Allow rebase with conflicts" box. "It's best to make rebase updates a separate patch, so that your code reviewers have an easy time seeing what changes you've made."


"Hard reset and checkout the change with this command: (BEWARE: git review -d performs a hard reset that destroys all local changes. Stash or commit changes first which you wish to preserve!)" – what is meant by "stash" a change? That term only appears that one place on that page; it's not defined there. – [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 21:22, 22 May 2024 (UTC)
== Glitch ==
: That patch doesn't have a merge conflict so you don't need to worry about rebasing it at all. And "stash" in that context refers to [https://git-scm.com/docs/git-stash the <code>git stash</code> command]. [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 23:17, 22 May 2024 (UTC)
:: Don't I want to amend / add a file to my existing commit rather than add a second commit to my existing branch? Branches and commits, I'm still not comfortable with the terminology and how they fit together.
:: Funny, when I entered 'git' to get the usage and list of "common git commands" it didn't list "stash". – [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 00:46, 23 May 2024 (UTC)
:::For gerrit and git review, yes. For patchset 2 or higher, you'll want to git stage, then git commit --amend, then git review -R –[[User:Novem Linguae|<span style="color:blue">'''Novem Linguae'''</span>]] <small>([[User talk:Novem Linguae|talk]])</small> 02:13, 23 May 2024 (UTC)
::::Ack, though I see the term "stage" several times in [[mw:Gerrit/Tutorial]], I don't see any explicit "git stage" command. Oh (looking it up), that's [https://git-scm.com/docs/git-stage a synonym for "git add"].
::::I was looking at [[mw:Gerrit/Tutorial#Amending a change (your own or someone else's)]], and [[mw:Gerrit/Tutorial#Rebasing]] is a subsection of that section. The way I'm reading it, it implies that rebasing is a mandatory, not optional, step that's part of the "amending a change" process.
::::Oh, I see. the <code>--amend</code> tells it to amend my first commit rather than add a second commit. – [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 03:02, 23 May 2024 (UTC)
:::::I think if you do git review without the -R, it will auto rebase. But i was taught not to auto rebase, and just to do it manually when needed. –[[User:Novem Linguae|<span style="color:blue">'''Novem Linguae'''</span>]] <small>([[User talk:Novem Linguae|talk]])</small> 03:05, 23 May 2024 (UTC)
:I think a few things on that tutorial page are outdated – both Gerrit and git-review have had some changes related to rebases since it was written, and they mostly removed the footguns that this page tries to teach you to avoid. I'll have to read it more carefully and update it. Generally, you shouldn't have to think about rebasing, or do anything to avoid it, or click the "Rebase" button, unless you see an error somewhere telling you that there is a merge conflict in your change. [[User:Matma Rex|Matma Rex]] <small>[[User talk:Matma Rex|talk]]</small> 15:48, 23 May 2024 (UTC)
::Thanks, that makes sense. In baseball, a runner taking a big lead off first base sometimes needs to rebase when he sees a pitch conflict (pitch going to first base rather than home plate). Ha! [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 17:14, 23 May 2024 (UTC)
:::I removed all of the bad and outdated advice from that section: [https://www.mediawiki.org/w/index.php?title=Gerrit/Tutorial&diff=prev&oldid=6537993][https://www.mediawiki.org/w/index.php?title=Gerrit/Tutorial&diff=prev&oldid=6538002][https://www.mediawiki.org/w/index.php?title=Gerrit/Tutorial&diff=prev&oldid=6538005][https://www.mediawiki.org/w/index.php?title=Gerrit/Tutorial&diff=prev&oldid=6538028] and added some good advice instead: [https://www.mediawiki.org/w/index.php?title=Gerrit/Tutorial&diff=prev&oldid=6538035]. Hope that helps explain it. I concede that it is not entirely unlike baseball. [[User:Matma Rex|Matma Rex]] <small>[[User talk:Matma Rex|talk]]</small> 23:14, 24 May 2024 (UTC)


== My script (I use Vector 2022) stopped working this week ==
IP reverted vandalism [http://en.wikipedia.org/w/index.php?title=List_of_Victorious_episodes&action=historysubmit&diff=410527063&oldid=410526015 here]; content does not match difference. Tried to remove manually, but edit mode doesn't match the content, either. --'''[[User:Confession0791|Confession0791]]''' '''[[User_talk:Confession0791|<sup>talk</sup>]]''' 09:05, 28 January 2011 (UTC)
=== Link classifier missing in Vector 2022 ===
: The vandal duplicated most of the page content inside a comment in [http://en.wikipedia.org/w/index.php?title=List_of_Victorious_episodes&diff=410526015&oldid=410525180 this edit]. Whoever tried to remove it manually didn't notice that, and edited the part inside the comment instead of the text that was actually being rendered. I think I reverted it to the last good revision for you, but someone should probably read it over to make sure more crap didn't sneak in earlier. [[User:Anomie|Anomie]][[User talk:Anomie|⚔]] 12:14, 28 January 2011 (UTC)


The Link Classifier which if I recall is maintained by [[User:Anomie|Anomie]] has disappeared from my Vector (2022) skin. I use this frequently and have just now noticed it, so I is likely something very recent. I switched back to Vector (2010) just to check and it was still available there. Any suggestions about how to get this back in Vector (2022)? [[User:Bkonrad|older]] ≠ [[User talk:Bkonrad|wiser]] 21:29, 20 May 2024 (UTC)
== Signature Issues ==


:WMF has recently changed the software so that in Vector 2022 personal Javascript/CSS are loaded only from [[Special:MyPage/vector-2022.js]] and [[Special:MyPage/vector-2022.css]]. You are loading it only in [[Special:MyPage/vector.js]]. You will need to copy whatever you want from there to the vector-2022 version, or to your Common.js at [[Special:MyPage/common.js]] (which is the best place for it - scripts are/should be responsible for loading where they should; styles may vary more so they may not be as obvious to move). Remove it from vector.js if you add it to common.js. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 22:06, 20 May 2024 (UTC)
Hi, i'm having trouble with my signature as it's too big to fit into the box and i haven't even finished.
::Thank you. That worked. [[User:Bkonrad|older]] ≠ [[User talk:Bkonrad|wiser]] 23:40, 20 May 2024 (UTC)
What i have so far is "[[User:UserJenova20|<font color="red">J</font>]][[User:UserJenova20|<font color="orange">e</font>]][[User:UserJenova20|<font color="yellow">n</font>]][[User:UserJenova20|<font color="green">o</font>]][[User:UserJenova20|<font color="blue">v</font>]][[User:UserJenova20|<font color="purple">a</font>]]" but it should be in bold and have a black background around just the "Jenova" part with 20 just in black at the end.
::Thanks, this probably should solve the above problem as well. I will try later today. [[User:Ymblanter|Ymblanter]] ([[User talk:Ymblanter|talk]]) 08:36, 21 May 2024 (UTC)
Can anyone explain how to do this?
:: Copied Ymblanter's comment from above: {{tq2|1=Not sure whether it is related but I am using one of the user scripts (do not have time now to search which one) which, in particular, highlights in pink pages proposed for deletion. The highlighting is gone today (checked on two different devices, different browsers), which gives me a HUGE headache for CFD handling. [[User:Ymblanter|Ymblanter]] ([[User talk:Ymblanter|talk]]) 08:35, 21 May 2024 (UTC)}} [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 17:09, 21 May 2024 (UTC)
Thanks 09:24, 28 January 2011 (UTC) <small><span class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Jenova20|Jenova20]] ([[User talk:Jenova20|talk]] • [[Special:Contributions/Jenova20|contribs]]) </span></small><!-- Template:Unsigned --> <!--Autosigned by SineBot-->
:What about [[User:Jenova20|<font color=red>J</font><font color=orange>e</font><font color=gold>n</font><font color=green>o</font><font color=blue>v</font><font color=purple>a</font>20]]? That should save some characters from the limit (and it also makes more sense logically). [[User:Svick|Svick]] ([[User talk:Svick|talk]]) 11:18, 28 January 2011 (UTC)


=== Prompt for edit summary on rollback from watchlist? ===
If you use <span style="font-family:monospace;">&lt;u&gt;</span> tags you can save perhaps (4 − 1) × 2 × 6 = 36 bytes and also make the underlining color match the text color instead of being a continuous red or blue bar. ―[[special:contributions/cobaltcigs|cobaltcigs]] 16:12, 28 January 2011 (UTC)


Hi there, long time fan, first time caller...
:This signature fails per [[Web Content Accessibility Guidelines]]. ---'''''—&nbsp;[[User:Gadget850|<span style="color:gray">Gadget850&nbsp;(Ed)</span>]]<span style="color:darkblue">&nbsp;'''''</span><sup>[[User talk:Gadget850|''talk'']]</sup> 17:32, 28 January 2011 (UTC)
::In particular, the yellow "n" is very difficult to see against the background colour of this page (the orange "e" isn't much better). The background is a pale greenish-blue here, but other talk pages differ: you shouldn't make assumptions about the background colour of ''any'' page. You'll notice that in my own signature, where a colour is set the background is also set (i.e. <code><nowiki><span style="color:#d30000; background:#ffeeee">Red</span></nowiki></code>), and there is a high degree of dark/light contrast between the two forced colours. --[[User:Redrose64|<span style="color:#d30000; background:#ffeeee">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 17:50, 28 January 2011 (UTC)
* Yellow could be "color=gold" then use "lime" with color=black on "20", set background:#999 for gray, plus "&lt;b>" for bold, as: [[User:Jenova20|<b><span style="background:#999"><font color=red>J</font><font color=orange>e</font><font color=gold>n</font><font color=lime>o</font><font color=blue>v</font><font color=purple>a</span><font color=black>20</b>]], with quotemarks removed in the wikitext: <font color=darkgreen><nowiki>[[User:Jenova20|<b><span style="background:#999"><font color=red>J</font><font color=orange>e</font><font color=gold>n</font><font color=lime>o</font><font color=blue>v</font><font color=purple>a</span><font color=black>20</b>]]</nowiki></font>. I don't think quotation marks are needed with the one-word colors. The Firefox browser doesn't use color=0, so put color=black for "20", but Firefox also allows omitting each end-tag &lt;/font> to shorten the signature. -[[User talk:Wikid77|Wikid77]] 08:27, 29 January 2011, revised 11:10, 29 January 2011 (UTC)


I very much like having a link on my watchlist page that will allow me to perform rollback while prompting me for a custom edit summary. My JS pages were a bit of a mess, but I believe I'd been using [[User:Nageh/rollbackSum.js]] for this purpose.
::Maybe the ''n'' is ''supposed'' to be so faint that other editors have to guess which letter it is? I know what I would guess, and I believe it's not in line with the username policy. [[User:Hans Adler|Hans]] [[User talk:Hans Adler|Adler]] 10:43, 29 January 2011 (UTC)
:::Quotation marks are indeed not required with one-word colours when used in the {{tag|font}} element. They are only required in HTML element attributes when the attribute data contains any character other than letters, digits, period or minus. So, <code>&lt;font color=blue&gt;</code> does not require quotes, but <code>&lt;font color="alice blue"&gt;</code> and <code>&lt;span style="color:blue"&gt;</code> both do (because of the space in the former, and the colon in the latter).
:::Firefox ''may'' permit the omission of the closing <code>&lt;/font&gt;</code> in certain circumstances (see [[#Signature Length|below]]) but that doesn't mean that other browsers do too. You ''cannot'' assume that all target users have the same browser, nor even that some browser quirks are universal. It's not good HTML to leave any tag unclosed, with very few exceptions: within the {{tag|body}} section, the only tags which ordinarily permit non-closure that I know of are the inherently self-closing tags (<code>&lt;br&gt;</code>, <code>&lt;hr&gt;</code> and <code>&lt;img&gt;</code>); certain block elements (such as <code>&lt;p&gt;</code>) and certain elements which are intended only for use within blocks (such as <code>&lt;dd&gt;</code>, <code>&lt;dt&gt;</code>, <code>&lt;li&gt;</code>, <code>&lt;td&gt;</code>, <code>&lt;th&gt;</code> and <code>&lt;tr&gt;</code>). I know of no inline elements (and both {{tag|font}} and {{tag|span}} are inline elements) for which non-closure is valid HTML. --[[User:Redrose64|<span style="color:#d30000; background:#ffeeee">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 16:42, 29 January 2011 (UTC)


Earlier this week the 'sum' links provided by that script disappeared for me. {{user|Nageh}} hasn't edited since 2014 and, while I tried a few other scripts that I found, none of them seemed to re-add such a link to my watchlist either. Has something changed that makes this no longer possible? The ability to add a custom edit summary when doing rollback from my watchlist is very valuable to me, so it would be a shame if the upshot was that this simply is no longer possible. Thanks for your help! [[User:Doniago|DonIago]] ([[User talk:Doniago|talk]]) 03:43, 24 May 2024 (UTC)
== singing with tildes doesn't work ==


:@[[User:Doniago|Doniago]], see section header of which I've made your question a subsection. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 15:27, 24 May 2024 (UTC)
I have recently changed my username, and as you will probably notice as you read on, signing with four tildes doesn't seem to work. I still get a notification on my talk page that i have to sign my posts. any ideas? <span style="font-size: 18px; text-shadow: grey 0.1em 0.1em 0.1em;">'''[[user:ravi84m|<font color="#4B088A">'''R'''<font color="#5F04B4">'''a'''<font color="#8000FF">'''f'''<font color="#BE81F7">'''y''']]'''</span> <small>[[User_talk:ravi84m|talk]]</small> <small><span class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Rafy|Rafy]] ([[User talk:Rafy|talk]] • [[Special:Contributions/Rafy|contribs]]) 16:17, 28 January 2011 (UTC)</span></small><!-- Template:Unsigned --> <!--Autosigned by SineBot-->
::Thanks Izno. I've tried copying a version of rollback.js to my common.js page with no evident change at this time. [[User:Doniago|DonIago]] ([[User talk:Doniago|talk]]) 16:12, 24 May 2024 (UTC)
:In order for SineBot to detect your signature as a proper signature, it has to contain a link to your user or talk page. The bot has no way of knowing that you have changed your username, you should fix the links to point to your current user page.—[[User:EmilJ|Emil]]&nbsp;[[User talk:EmilJ|J.]] 16:37, 28 January 2011 (UTC)
:::The line above it has no <code>;</code> and misspells importScript with a lowercase s. This may or may not cause issues. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 16:32, 24 May 2024 (UTC)
::::Thanks Izno! I'm not sure which of the changes I made per your notes fixed it, but it seems to be fixed! [[User:Doniago|DonIago]] ([[User talk:Doniago|talk]]) 16:55, 24 May 2024 (UTC)


== Tech News: 2024-21 ==
:Are you signing with '''four''' tildes? Three tildes only produces your signature without a timestamp. Your signature does not contain a timestamp, which is causing signbot to think you're not signing your posts. <span style="font-family:verdana"> — [[User:Edokter|<b style="color:#008"><i>E</i>dokter</b>]] • [[User_talk:Edokter|<span style="color:#080">Talk</span>]] — </span> 16:36, 28 January 2011 (UTC)
::Ok let's test this after changing link and using 3 tildes... <span style="font-size: 18px; text-shadow: grey 0.1em 0.1em 0.1em;">'''[[user:ravi84m|<font color="#4B088A">'''R'''<font color="#5F04B4">'''a'''<font color="#8000FF">'''f'''<font color="#BE81F7">'''y''']]'''</span> <small>[[User_talk:ravi84m|talk]]</small> <small><span class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Rafy|Rafy]] ([[User talk:Rafy|talk]] • [[Special:Contributions/Rafy|contribs]]) 17:02, 28 January 2011 (UTC)</span></small><!-- Template:Unsigned --> <!--Autosigned by SineBot-->
:::Use four tiles and change "ravi84m" to "Rafy" in your prefs. –[[user:xeno|<font face="verdana" color="black">'''xeno'''</font>]][[user talk:xeno|<font color="black"><sup>talk</sup></font>]] 17:05, 28 January 2011 (UTC)
::::Oke I hope it workes now. <span style="font-size: 18px; text-shadow: grey 0.1em 0.1em 0.1em;">'''[[user:Rafy|<font color="#4B088A">'''R'''<font color="#5F04B4">'''a'''<font color="#8000FF">'''f'''<font color="#BE81F7">'''y''']]'''</span> <small>[[User_talk:Rafy|talk]]</small> 17:07, 28 January 2011 (UTC)
:::::Yep it worked... Thanks guys <span style="font-size: 18px; text-shadow: grey 0.1em 0.1em 0.1em;">'''[[user:Rafy|<font color="#4B088A">'''R'''<font color="#5F04B4">'''a'''<font color="#8000FF">'''f'''<font color="#BE81F7">'''y''']]'''</span> <small>[[User_talk:Rafy|talk]]</small> 17:10, 28 January 2011 (UTC)
::::::Just a suggestion: the [[Wikipedia:SIG#Appearance_and_color|font size is a little big]]. Would probably be a good idea to ensmallen it somewhat. –[[user:xeno|<font face="verdana" color="black">'''xeno'''</font>]][[user talk:xeno|<font color="black"><sup>talk</sup></font>]] 17:13, 28 January 2011 (UTC)
:::::::{{done}}-- <span style="font-size: 14px; text-shadow: grey 0.1em 0.1em 0.1em;">'''[[user:Rafy|<font color="#4B088A">'''R'''<font color="#5F04B4">'''a'''<font color="#8000FF">'''f'''<font color="#BE81F7">'''y''']]'''</span> <small>[[User_talk:Rafy|talk]]</small> 19:05, 28 January 2011 (UTC)
::::::::<small>as an aside, I think you meant to say 'debiggen' not 'ensmallen' - ballon logic, that --[[User_talk:Ludwigs2|<span style="color:darkblue;font-weight:bold">Ludwigs</span><span style="color:green;font-weight:bold">2</span>]] 19:09, 28 January 2011 (UTC)</small>
:::::::::<small>A cromulent observation. –[[user:xeno|<font face="verdana" color="black">'''xeno'''</font>]][[user talk:xeno|<font color="black"><sup>talk</sup></font>]] 23:42, 28 January 2011 (UTC)</small>


<section begin="technews-2024-W21"/><div class="plainlinks">
== keymap of 'save page' and 'show preview' buttons? ==
Latest '''[[m:Special:MyLanguage/Tech/News|tech news]]''' from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. [[m:Special:MyLanguage/Tech/News/2024/21|Translations]] are available.


'''Recent changes'''
When I'm editing a page, I'll often type in my edit summary and hit the return key to submit. However, every once in a while I'll do that and it will trigger the 'show preview' button rather than the 'submit' button. I can't figure out what causes that difference. does keymapping to buttons change via some undocumented feature, or am I miskeying, or is this just some reasonably frequent but random fluke? Not a big issue (it's just confusing), but if there's an intentional way to trigger a show preview rather than a submit that would be useful information. --[[User_talk:Ludwigs2|<span style="color:darkblue;font-weight:bold">Ludwigs</span><span style="color:green;font-weight:bold">2</span>]] 16:18, 28 January 2011 (UTC)
* The [[mw:Special:MyLanguage/Extension:Nuke|Nuke]] feature, which enables administrators to mass delete pages, will now correctly delete pages which were moved to another title. [https://phabricator.wikimedia.org/T43351]
: The Save Page button should always be activated when hitting Enter on the Edit Summary because it appears first in the HTML, even though there are three submit buttons on the edit page (Save Page, Show Preview, Show Changes). I've never had the problem that you are describing. Has this been happening for a long time? <font face="Verdana">[[User:Gary King|<font color="#02b">Gary&nbsp;<b>King</b></font>]]&nbsp;<span style="font-size: 0.9em;">([[User talk:Gary King|<font color="#02e">talk</font>]]&nbsp;·&nbsp;[[User:Gary King/Scripts|<font color="02e">scripts</font>]])</span></font> 21:47, 28 January 2011 (UTC)
* New changes have been made to the UploadWizard in Wikimedia Commons: the overall layout has been improved, by following new styling and spacing for the form and its fields; the headers and helper text for each of the fields was changed; the Caption field is now a required field, and there is an option for users to copy their caption into the media description. [https://commons.wikimedia.org/wiki/Commons:WMF_support_for_Commons/Upload_Wizard_Improvements#Changes_to_%22Describe%22_workflow][https://phabricator.wikimedia.org/T361049]


'''Changes later this week'''
:The Tab key can move between buttons but in my browser it takes several Tabs before Show preview or Show changes becomes active. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 00:56, 29 January 2011 (UTC)
* [[File:Octicons-sync.svg|12px|link=|alt=|Recurrent item]] The [[mw:MediaWiki 1.43/wmf.6|new version]] of MediaWiki will be on test wikis and MediaWiki.org from {{#time:j xg|2024-05-21|en}}. It will be on non-Wikipedia wikis and some Wikipedias from {{#time:j xg|2024-05-22|en}}. It will be on all wikis from {{#time:j xg|2024-05-23|en}} ([[mw:MediaWiki 1.43/Roadmap|calendar]]). [https://wikitech.wikimedia.org/wiki/Deployments/Train][https://wikitech.wikimedia.org/wiki/Deployments/Yearly_calendar]
* [[File:Octicons-tools.svg|12px|link=|alt=|Advanced item]] The HTML used to render all headings [[mw:Heading_HTML_changes|is being changed to improve accessibility]]. It will change on 22 May in some skins (Timeless, Modern, CologneBlue, Nostalgia, and Monobook). Please test gadgets on your wiki on these skins and [[phab:T13555|report any related problems]] so that they can be resolved before this change is made in all other skins. The developers are also considering the introduction of a [[phab:T337286|Gadget API for adding buttons to section titles]] if that would be helpful to tool creators, and would appreciate any input you have on that.


'''''[[m:Special:MyLanguage/Tech/News|Tech news]]''' prepared by [[m:Special:MyLanguage/Tech/News/Writers|Tech News writers]] and posted by [[m:Special:MyLanguage/User:MediaWiki message delivery|bot]]&nbsp;• [[m:Special:MyLanguage/Tech/News#contribute|Contribute]]&nbsp;• [[m:Special:MyLanguage/Tech/News/2024/21|Translate]]&nbsp;• [[m:Tech|Get help]]&nbsp;• [[m:Talk:Tech/News|Give feedback]]&nbsp;• [[m:Global message delivery/Targets/Tech ambassadors|Subscribe or unsubscribe]].''
::@ Gary: no, it happens occasionally (I'd say once or thrice a month). It could be a Safari-dependent thing - a semi-random rendering mistake, a weird undocumented 'feature' that I'm somehow triggering accidentally (and yeah, it's not a tab key thing - that would take it to the 'minor edit' checkbox first). Unfortunately I can't replicate it on demand; I was just hoping someone else had a clue about it. --[[User_talk:Ludwigs2|<span style="color:darkblue;font-weight:bold">Ludwigs</span><span style="color:green;font-weight:bold">2</span>]] 03:03, 29 January 2011 (UTC)
</div><section end="technews-2024-W21"/>
::: All I can say is it's probably something on your end, as something has got to seriously be out of whack for the page to be served that way to your browser. Meaning, even if your browser rendered the page strangely, the order of the submit buttons shouldn't change. For instance, maybe it's a Firefox extension if you're using that browser, etc. <font face="Verdana">[[User:Gary King|<font color="#02b">Gary&nbsp;<b>King</b></font>]]&nbsp;<span style="font-size: 0.9em;">([[User talk:Gary King|<font color="#02e">talk</font>]]&nbsp;·&nbsp;[[User:Gary King/Scripts|<font color="02e">scripts</font>]])</span></font> 04:40, 29 January 2011 (UTC)


<bdi lang="en" dir="ltr">[[User:MediaWiki message delivery|MediaWiki message delivery]]</bdi> 23:01, 20 May 2024 (UTC)
== No autogenerated table of contents at [[Talk:Cherokee]] ==
<!-- Message sent by User:Quiddity (WMF)@metawiki using the list at https://meta.wikimedia.org/w/index.php?title=Global_message_delivery/Targets/Tech_ambassadors&oldid=26786311 -->
:Based on a [https://en.wikipedia.org/w/index.php?title=Special:Search&limit=500&offset=0&ns2=1&ns8=1&search=insource%3A%2Fmw-headline%2F+intitle%3A%2F%5C.js%2F quick search], it looks like the heading change will affect almost 300 scripts, many of which have inactive maintainers. Some arbitrary highlights from the top of the list include:
:* {{u|Awesome Aasim}}'s [[User:Awesome Aasim/rcpatrol.js]]
:* {{u|BrandonXLF}}'s [[User:BrandonXLF/FFUHelper.js]]
:* {{u|Cacycle}}'s [[User:Cacycle/wikEd.js]], [[User:Cacycle/wikEd dev.js]], and [[User:Cacycle/wikEd.user.js]]
:* {{u|DannyS712}}'s [[User:DannyS712/DiscussionCloser.js]], [[User:DannyS712/SectionRemover.js]], and [[User:DannyS712/SectionMover.js]]
:* {{u|Enterprisey}}'s [[User:Enterprisey/reply-link.js]], [[User:Enterprisey/copy-section-link.js]], [[User:Enterprisey/archiver.js]], [[User:Enterprisey/strike-archived.js]], [[User:Enterprisey/section-watchlist.js]], and [[User:Enterprisey/section-redir-note.js]]
:* {{u|Equazcion}}'s [[User:Equazcion/OneClickArchiver.js]], [[User:Equazcion/TeahouseRespond.js]], and [[User:Equazcion/NewSectionSummary.js]]
:* {{u|Evad37}}'s [[User:Evad37/OneClickArchiver.js]] and [[MediaWiki:Gadget-XFDcloser-core.js]]
:*<s> {{u|Mr. Stradivarius}}'s [[User:Mr. Stradivarius/gadgets/SignpostTagger.js]]</s>
:* {{u|PhantomTech}}'s [[User:PhantomTech/scripts/AFCRHS.js]]
:* {{u|SD0001}}'s [[User:SD0001/RFUD-helper.js]]
:* {{u|Terasail}}'s [[User:Terasail/COI Request Tool.js]]
:*<s> {{u|Technical 13}}'s [[User:Technical 13/Scripts/OneClickArchiver.js]]</s>
:* {{u|The Earwig}}'s [[User:The Earwig/permalink.js]] and [[User:The Earwig/afc-helper.js]]
:* {{u|The Evil IP address}}'s [[User:The Evil IP address/hdedit.js]]
:Plus many, many more. <span class="nowrap">--[[User:Ahecht|Ahecht]] ([[User talk:Ahecht|<b style="color:#FFF;background:#04A;display:inline-block;padding:1px;vertical-align:middle;font:bold 50%/1 sans-serif;text-align:center">TALK<br />PAGE</b>]])</span> 19:22, 21 May 2024 (UTC)
::A quick way to test these scripts right now, is to enable the Parsoid beta option (which already uses the new html structure) and to disable DiscussionTools, which uses a partial form of the new heading structure. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 08:39, 22 May 2024 (UTC)
:::Indeed, you can already see it in Parsoid mode (but note that there are other differences – e.g. Parsoid output has <code><nowiki><section></nowiki></code> tags around each section, which may require a separate set of updates in some scripts).
:::Disabling DiscussionTools doesn't actually change anything though. The HTML structure is the same whether it's enabled or disabled, only the styles are different. Also, note that it uses a "hybrid" heading structure currently when using the default parser, as you say, but it uses the new structure when using Parsoid.
:::So in short, you can just use Parsoid mode to test these scripts today here on English Wikipedia, but beware that there may be extra issues. But if they work with Parsoid, they will work with the new headings too. [[User:Matma Rex|Matma Rex]] <small>[[User talk:Matma Rex|talk]]</small> 11:25, 22 May 2024 (UTC)
::The technical 13 script was blanked, so we don't have to worry about that one.
::Will the fact that they're rolling this out for only some wikimedia-deployed skins at this time make the patch more complicated? If I'm reading it right, the scripts may temporarily have to support both heading styles. –[[User:Novem Linguae|<span style="color:blue">'''Novem Linguae'''</span>]] <small>([[User talk:Novem Linguae|talk]])</small> 09:16, 22 May 2024 (UTC)
:::Yes, it does, and they have to. [[User:Matma Rex|Matma Rex]] <small>[[User talk:Matma Rex|talk]]</small> 11:20, 22 May 2024 (UTC)
::At a glance, it seems that [[User:Mr. Stradivarius/gadgets/SignpostTagger.js]] already supports the new style, as it uses <code>$( '#bodyContent h2:first' ).text()</code> as a backup if <code>$( '#bodyContent h2:first span.mw-headline' )</code> doesn't exist ([[User:Mr. Stradivarius/gadgets/SignpostTagger.js#L-291|line 291]]). — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr.&nbsp;Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪&nbsp;talk&nbsp;♪]]</sup> 13:09, 22 May 2024 (UTC)
::Fixed RFUD-helper. Thanks for the ping. – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 18:33, 22 May 2024 (UTC)
::This is going to break both my edit request scripts, I will try to fix them at the weekend. [[User:Terasail|<span style="color:#088; font-weight:750;">Terasail</span>]][[User talk:Terasail|<sup><span style="color:#000;">'''[✉️]'''</span></sup>]] 18:41, 22 May 2024 (UTC)
:I'm assuming ~ and feel free to correct me if i'm wrong ~ that something about this deployment is why headings no longer have numbers (for me)? Will it be possible to go back to that at some point? I find long pages almost impossible to navigate around without numbered headings, so will have to learn a new way of working if it won't be possible. Thanks, Happy days, ~ '''[[User:LindsayH|Lindsay]]'''<sup>'''[[User_talk:LindsayH|H]]'''[[User_talk:LindsayH|ello]]</sup> 16:24, 27 May 2024 (UTC)
::{{re|LindsayH}} No, that was removed a while ago. You may try the "Auto-number headings" gadget [[Special:Preferences#mw-input-wpgadget-autonum|here]]. [[User:Nardog|Nardog]] ([[User talk:Nardog|talk]]) 19:31, 27 May 2024 (UTC)
::If you're speaking about the table of contents, Vector 22 does not provide numbering. Vector, Monobook, and Modern do.
::If you are speaking about each actual heading, then indeed the preference is gone and indeed there is a gadget for it now. You have correctly identified [[MediaWiki:Gadget-autonum.css|that gadget]] as needing to be updated for this change. It looks like the necessary change to the snippet (documentation) has already been made, so someone needs to port that here. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 19:59, 27 May 2024 (UTC)
:::Thank you, Izno, helpful. I'd assumed it was a script/gadget, as so many appeared to be affected above. I shall patiently wait in hope {{smiley}} Happy days, ~ '''[[User:LindsayH|Lindsay]]'''<sup>'''[[User_talk:LindsayH|H]]'''[[User_talk:LindsayH|ello]]</sup> 11:51, 28 May 2024 (UTC)


== Issue with template ==
[[Talk: Cherokee]] is a lengthy talk page with many sections, but there is no autogenerated table of contents at the top. The archive pages for this talk page do have autogenerated tables of contents (and I do see these tables on other long talk pages, so I assume it's not something in my preference settings). I've looked at the code and I don't see anything obvious to account for this. I suppose a solution would be simply to add manually the code for a table of contents, but I would like to understand this function better, so I would appreciate it if someone could explain why the autogenerating function isn't working there. Thanks,--[[User:Arxiloxos|Arxiloxos]] ([[User talk:Arxiloxos|talk]]) 17:00, 28 January 2011 (UTC)
:Looks like removing [[:Template:WikiProject Oklahoma]] and two others (total templates three or less) produces the TOC. -[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 17:28, 28 January 2011 (UTC)
:{{ec}}It's not a fault with this talk page, but with two of the project banners. If you remove ''both'' of
<pre>
{{WikiProject Oklahoma |class=B |importance=Top |tulsa-task-force=yes }}
{{NorthAmNative |class=b|important=mid|0=A }}
</pre>
:the TOC is generated normally. If you remove just one of these, it isn't. --[[User:Redrose64|<span style="color:#d30000; background:#ffeeee">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 17:29, 28 January 2011 (UTC)


Hi there. There seems to be some kind of issue with {{tl|Population WD}}. I would like to use it to get the bare population figure. At first, <code><nowiki>{{population WD|qid=Q559227|show=value}}</nowiki></code> was not working, and I was getting the figure plus a "<span" at the end. [[User:Primefac|Primefac]] has [https://en.wikipedia.org/w/index.php?title=Template%3APopulation_WD&diff=1225084006&oldid=1076332183 solved] it, at least partially. But there still seem to be some issues, as can be seen [[User:Alavense/sandbox|here]]. Thanks in advance for the help, [[User:Alavense|Alavense]] ([[User talk:Alavense|talk]]) 08:19, 22 May 2024 (UTC)
*It has to do with the deprecated assessment subpage, which I've just deleted after pasting it onto the talk page. –[[user:xeno|<font face="verdana" color="black">'''xeno'''</font>]][[user talk:xeno|<font color="black"><sup>talk</sup></font>]] 17:34, 28 January 2011 (UTC)
:My guess is that the {{t|first word}} is cutting off the coding to show the "edit at Wikidata" icon, but I have a) no idea why it's doing that, and b) no idea how to fix it. [[User:Primefac|Primefac]] ([[User talk:Primefac|talk]]) 08:37, 22 May 2024 (UTC)
:: Yes, something like that. The createicon function in Module:WikidataIB starts off with a non-breaking space, so {{t|first word}} is grabbing a few more tokens than we want. '''[[user:jmcgnh|<span style="color:#2eb85c">—&nbsp;jmcgnh</span>]]<sup><small>[[user talk:jmcgnh|<span style="color:#1e5213">(talk)</span>]]&nbsp;[[Special:Contributions/jmcgnh|<span style="color:#73b516">(contribs)</span>]]</small></sup>''' 08:57, 22 May 2024 (UTC)
:: And, yes, nbsp is not considered one of the ASCII whitespace characters by some regular expression engines, including, according to what we've seen here, Lua's %s. '''[[user:jmcgnh|<span style="color:#2eb85c">—&nbsp;jmcgnh</span>]]<sup><small>[[user talk:jmcgnh|<span style="color:#1e5213">(talk)</span>]]&nbsp;[[Special:Contributions/jmcgnh|<span style="color:#73b516">(contribs)</span>]]</small></sup>''' 09:19, 22 May 2024 (UTC)
::: This [[Special:Diff/1225091340]] seems to be a possible fix. It returns just the population value, whichever way the noicon parameter is set. Of course, if you really wanted that pencil icon, you'll need to use something different from {{t|first word}}. {{ping|Primefac|Alavense}} '''[[user:jmcgnh|<span style="color:#2eb85c">—&nbsp;jmcgnh</span>]]<sup><small>[[user talk:jmcgnh|<span style="color:#1e5213">(talk)</span>]]&nbsp;[[Special:Contributions/jmcgnh|<span style="color:#73b516">(contribs)</span>]]</small></sup>''' 09:37, 22 May 2024 (UTC)
::::There should not be any regexes that treat a nbsp as whitespace. For a start, its value is outside the 0x00-0x7F range; second, whilst it's encoded as 0xA0 under Unicode, some character sets use the same value for a different, non-blank, printing character - for example, in [[Code page 437]], it's used for the "&aacute;" character. Third, ASCII whitespace is defined as characters 0x09 through 0x0c inclusive plus 0x20. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 19:40, 22 May 2024 (UTC)
:::::@[[User:Redrose64|Redrose64]] That's a very outdated point of view. Regex engines these days generally operate on Unicode and understand Unicode characters, or at least have an option to do so, and "whitespace" often means all Unicode whitespace, not ASCII whitespace. [[User:Matma Rex|Matma Rex]] <small>[[User talk:Matma Rex|talk]]</small> 21:16, 22 May 2024 (UTC)
::::::The [https://infra.spec.whatwg.org/#ascii-whitespace HTML spec is outdated then]. Pity, as it was [https://html.spec.whatwg.org/multipage/ last updated 22 May 2024], which was, er, today. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 23:04, 22 May 2024 (UTC)
:::::::Pity, as the HTML spec is irrelevant to how Lua or PHP process whitespace. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 23:36, 22 May 2024 (UTC)
:::::::The HTML spec is very careful to call it out as ''ASCII whitespace'' every time that term is used, precisely because just saying ''whitespace'' often means Unicode whitespace. [[User:Matma Rex|Matma Rex]] <small>[[User talk:Matma Rex|talk]]</small> 15:40, 23 May 2024 (UTC)
:::@[[User:Jmcgnh|Jmcgnh]] Lua's <code>%s</code> should actually match non-breaking spaces, if I understand the documentation correctly.
:::[[Template:First word]] uses [[Module:String]], which uses <code>mw.ustring</code>. The docs for [[mw:Extension:Scribunto/Lua_reference_manual#Ustring_patterns|Ustring patterns]] say <code>%s</code> "represents all characters with General Category "Separator"", and NBSP is a separator (see e.g. the entry in [[Whitespace character#Unicode]] for reference).
:::I think the problem in the original code is that in <code><nowiki>[&amp;nbsp;%s]</nowiki></code> the entity isn't interpreted, so it finds the first occurrence of <code>&</code>, <code>n</code>, <code>b</code>, etc. It will probably work if you do just <code>[%s]</code>. [[User:Matma Rex|Matma Rex]] <small>[[User talk:Matma Rex|talk]]</small> 21:14, 22 May 2024 (UTC)
:::: Oh, good, we're getting some people involved who know more than me. {{reply|Redros64|Matma Rex|Izno}} As I read it, {{t|First word}} already supplies <code>%s</code> as the default separator AND the results show that it is not treating nbsp as a member of <code>%s</code>. If I were going to spend more time on this, I'd first get rid of {{t|First word}} to see how many results are coming back - as an experiment. If there are multiple results (not just one string with multiple values in it), I'd argue that the job of selecting what to return needs to either be pushed down into WikidataIB or maybe do like the <code>show=year</code> branch and use <code>Ustring|gsub</code> to pull out the desired part of the data.
:::: Primefac's current fix provides the correct defaults, but if someone wants to specify <code>show=value|noicon=FALSE</code> it would be best if the result didn't contain stray markup tokens. I checked for how <code>show=year|noicon=FALSE</code> would behave and it seems to get it right for Alavense's test case. I wish I understood a little better how that <code>Ustring|gsub</code> expression matching worked. As I look at it, it shouldn't be working for this case. If I could figure that out better, I'd be in favor of getting rid of {{t|first word}} and using a Ustring call for <code>show=value</code> as well as for <show=year>. '''[[user:jmcgnh|<span style="color:#2eb85c">—&nbsp;jmcgnh</span>]]<sup><small>[[user talk:jmcgnh|<span style="color:#1e5213">(talk)</span>]]&nbsp;[[Special:Contributions/jmcgnh|<span style="color:#73b516">(contribs)</span>]]</small></sup>''' 02:34, 23 May 2024 (UTC)
:::::I don't know much, I just looked up the docs :)
:::::<blockquote>As I read it, {{tl|First word}} already supplies <code>%s</code> as the default separator AND the results show that it is not treating nbsp as a member of <code>%s</code>.</blockquote>
:::::I had a look at the output of <code><nowiki>{{#invoke:WikidataIB|...}}</nowiki></code> in [[Special:ExpandTemplates]], and I can at least explain that – it's because the WikidataIB module isn't emitting an actual nbsp character, but rather it's emitting the <code>&amp;nbsp;</code> HTML entity. The string matching functions just see that as a sequence of <code>&</code>, <code>n</code>, <code>b</code>, and so on. So you would need to make {{tl|First word}} look for that sequence, instead of individual characters, but it has no way to do that.
:::::You could probably implement this by invoking [[Module:String]] directly – but at this point I would take a step back, and see if there's some way to just output the bare population figure from Wikidata directly, instead of using a big template and applying another big template on top of it to discard most of its results, because that how you end up with pages that bump into parser limits. I'm not very familiar with this stuff, but there must surely be one. [[User:Matma Rex|Matma Rex]] <small>[[User talk:Matma Rex|talk]]</small> 15:31, 23 May 2024 (UTC)
{{od}}
{{reply|Matma Rex}} I agree with your suggested direction and thanks for being so clear about the confusion I was exhibiting between Ustring characters and HTML character entities. On a cursory look at available templates or modules to use instead of WikidataIB, I was not coming up with anything obvious. I will return to study this in greater detail, including trying to understand all the parameters passed to WikidataIB, as time allows. I do conclude that {{tl|First word}} is simply the wrong template to use in this situation. '''[[user:jmcgnh|<span style="color:#2eb85c">—&nbsp;jmcgnh</span>]]<sup><small>[[user talk:jmcgnh|<span style="color:#1e5213">(talk)</span>]]&nbsp;[[Special:Contributions/jmcgnh|<span style="color:#73b516">(contribs)</span>]]</small></sup>''' 20:52, 24 May 2024 (UTC)


== Differentiation of subheading font sizes (or more accurately, lack thereof) ==
== Spaces in external links ==


I've just used subheadings for the first time, and was somewhat dismayed to see hardly any noticeable differentiation between Subheadings 2, 3, and 4. Couldn't the subheadings be differentiated more?
How can I encode spaces in external links? To explain: I would like to let users write &#123;{[[template:gbmappingsmall|gbmappingsmall]]|NH 714 684}} so that it displays prettily: as {{OS coord|NH714684|NH 714 684}}. But unfortunately it breaks down totally: {{gbmappingsmall|NH 714 684}}. I need a function that will remove each space or convert each space to %20 or _ when forming the external link. Does such a function exist? &mdash; [[::User:RHaworth|RHaworth]]&nbsp;{{toolbar|separator=dot|[[::User talk:RHaworth|talk]] | [[::Special:Contributions/RHaworth|contribs]] }} 22:37, 28 January 2011 (UTC)
:Urlencode, I guess: {{urlencode:NH 714 684}}. You might want {{urlencode:NH 714 684|PATH}} instead, which replaces spaces with %20 instead of +. [[User talk:Ucucha|Ucucha]] 23:13, 28 January 2011 (UTC)
:As a matter of fact, it doesn't; I guess [[mw:Help:Magic words#URL data]] is lying (or describing a version of MediaWiki different from the one Wikipedia is running). [[User talk:Ucucha|Ucucha]] 23:50, 28 January 2011 (UTC)
Many thanks - just what I wanted. Yes, the WIKI and PATH options seem to have been dropped. As Our Ford would have said "you can have any separator you like as long as it is + But &#123;{anchorencode}} is available to give {{anchorencode:NH 714 684}} providing you don't need its other translations. &mdash; [[::User:RHaworth|RHaworth]]&nbsp;{{toolbar|separator=dot|[[::User talk:RHaworth|talk]] | [[::Special:Contributions/RHaworth|contribs]] }} 05:36, 29 January 2011 (UTC)


Surely some other Wiki editors must have made similar comments long before I came on board ... [[User:Augnablik|Augnablik]] ([[User talk:Augnablik|talk]]) 11:54, 22 May 2024 (UTC)
== Signature Length ==


:Yes, I think many of us got confused at first and pointed out that h3 looks more prominent than h2, but there doesn't seem to be a consensus to change the styles and eventually we got used to it. I hope it doesn't lead too many readers astray. [[User:Certes|Certes]] ([[User talk:Certes|talk]]) 12:04, 22 May 2024 (UTC)
Why can't the signature length box in "My preferences" be longer, so users can do more markups and such. <span style="background:silver;font-family:Kristen ITC;">[[User:Ctjf83|<font color="red">C</font><font color="#ff6600">T</font><font color="yellow">J</font><font color="green">F</font><font color="#0000ff">8</font><font color="#6600cc">3</font>]]</span> 02:45, 29 January 2011 (UTC)
::How could there be any editorial disagreement about the need for a technical fix to remedy this situation, @[[User:Certes|Certes]]? Of course it could lead readers astray!
:Excessive signature length is usually seen as disruptive. More information on the signature guidelines regarding length are available at [[Wikipedia:SIG#Length]]. [[User:Nakon|<font color="#C50">'''Nakon'''</font>]] 02:52, 29 January 2011 (UTC)
::It's not like the discussion going on elsewhere at the Village Pump on the topic of COI guidelines, with many senior editors all over the field as to just what COI is and what should be required of editors in self-reporting it. [[User:Augnablik|Augnablik]] ([[User talk:Augnablik|talk]]) 12:42, 22 May 2024 (UTC)
::How can I propose to make the available space sightly longer? I just wanna add and link "chat" on the end of my current one. <span style="background:silver;font-family:Kristen ITC;">[[User:Ctjf83|<font color="red">C</font><font color="#ff6600">T</font><font color="yellow">J</font><font color="green">F</font><font color="#0000ff">8</font><font color="#6600cc">3</font>]]</span> 03:14, 29 January 2011 (UTC)
:::@[[User:Certes|Certes]], I hope it didn’t seem to you in my reply to you above that I was unhappy with you personally. I was just reacting in surprise — okay, shock — that Wiki editors who deal with this sort of thing wouldn’t have very easily come to consensus about the need to make h2 and h3 look different from each other … for the sake of readers. [[User:Augnablik|Augnablik]] ([[User talk:Augnablik|talk]]) 16:27, 22 May 2024 (UTC)
:::You can probably condense your current signature by a bit with some CSS-foo. [[User:Nakon|<font color="#C50">'''Nakon'''</font>]] 03:21, 29 January 2011 (UTC)
::::I wasn't at all insulted or offended. I agree with you that h2 should be more prominent relative to h3. I think the problem is that h3 is bolder than h2, which can give the illusion that it is more important despite not being larger. Of course, it's easy for the regulars to put together a bit of CSS to make it look how we prefer it, but we're a tiny minority of the audience: we're both thinking of the casual reader who can't be expected to jump through that hoop for each site they visit. [[User:Certes|Certes]] ([[User talk:Certes|talk]]) 19:58, 22 May 2024 (UTC)
::::If you can come up with something to help me out, I'd appreciate it. Please post to [[User_talk:Ctjf83#Sig]]. I'll look in 9 hours after work. <span style="background:silver;font-family:Kristen ITC;">[[User:Ctjf83|<font color="red">C</font><font color="#ff6600">T</font><font color="yellow">J</font><font color="green">F</font><font color="#0000ff">8</font><font color="#6600cc">3</font>]]</span> 03:26, 29 January 2011 (UTC)
:::::The appearance of headings and subheadings varies with several factors, including (but not limited to): zoom level, skin, browser, installed fonts, operating system. You can experiment using e.g. [[Special:PermaLink/1225175489|Wikipedia:Sandbox]] in various skins - <span class=plainlinks>[//en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&&oldid=1225175489&useskin=cologneblue Cologne Blue]; [//en.m.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&oldid=1225175489&useskin=minerva MinervaNeue] (mobile); [//en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&&oldid=1225175489&useskin=modern Modern]; [//en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&&oldid=1225175489&useskin=monobook MonoBook]; [//en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&oldid=1225175489&useskin=timeless Timeless]; [//en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&oldid=1225175489&useskin=vector Vector legacy (2010)]; [//en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&oldid=1225175489&useskin=vector-2022 Vector (2022)]</span>. Notice that besides the font size, there are variations in font family, also underlining. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 20:40, 22 May 2024 (UTC)
:I think you can omit quotemarks on word colors and every closing "&lt;/font>" when inside a span-tag (&lt;span>), plus use color=gold (shorter than "yellow"), as: [[User:Ctjf83|<span style="background:silver"><font color="red">C<font color="#ff6600">T<font color=gold>J<font color="green">F<font color="#0000ff">8<font color="#6600cc">3</span>]], now with the shorter wikitext: <font color=darkgreen><nowiki>[[User:Ctjf83|<font color=red>C<font color="#ff6600">T<font color=gold>J</font><font color=green>F<font color="#0000ff">8<font color="#6600cc">3]]</nowiki><font color=0>. You might need one closing "/font" but not all of them. Each font color changes the prior color, "&lt;font color=blue>" as: "<font color=blue>This is blue text<font color=0>". [[HTML]] was NOT originally designed to demand a matching end-tag "&lt;/font>" for every font tag, but I don't know what the HTML fascists are planning.<br>The [[World Wide Web]] was designed by physicists, not by computer scientists, so it was peculiar that way: it allows "&lt;center>" but not margin "&lt;left>" or "&lt;right>" which the center is between (so clueless). Now that computer experts are involved, it is still backward, and they should allow word "hue" (to avoid spelling bias against "colour"), plus denote non-nested tags perhaps as "&lt;#" to use "&lt;#font hue=red>" where the pound-sign "#" would indicate to omit the closing "/font" tag. Anyway, it seems like we need a WP essay about shortening signature text. -[[User talk:Wikid77|Wikid77]] 09:41, 29 January 2011 (UTC)
::::::You can override the heading styles from your common.css, eg:
::::::<code>#content h3 { font-size: 116%; text-decoration-line: underline; }</code> <span class="nowrap">[[User:Verbarson|--&nbsp;Verbarson&nbsp;]]&nbsp;<sup>[[User talk:Verbarson|talk]]</sup><sub>[[Special:Contributions/Verbarson|edits]]</sub></span> 22:30, 24 May 2024 (UTC)


== "Publish" is a little too quick on the draw ==
::Except that markup isn't closing the font tags properly, leaving the text in blue</font></font> or green</font></font> until they are closed. The colors in this signature fail per [[Web Content Accessibility Guidelines]]. ---'''''—&nbsp;[[User:Gadget850|<span style="color:gray">Gadget850&nbsp;(Ed)</span>]]<span style="color:darkblue">&nbsp;'''''</span><sup>[[User talk:Gadget850|''talk'']]</sup> 10:22, 29 January 2011 (UTC)
:::* All of Wikipedia seems to fail the [[Web Content Accessibility Guidelines]], based on the brightness formula: ((Red value * 299) + (Green value * 587) + (Blue value * 114)) / 1000. The brightness of tan is: {{#expr: (221*299 + 187*587 + 136*114 )/1000 }} compared to the brightness of red: {{#expr: (255*299)/1000 round 0}}, a difference of 115, not the required 125, so redlinks would likely be considered invalid brightness in note boxes. The focus needs to be on "almost passing" the guideline, as an acceptable approach. -[[User talk:Wikid77|Wikid77]] 12:34, 29 January 2011 (UTC)
::::We aren't discussing "all of Wikipedia", just this signature. If there are problems in other areas, then those need to be discussed and fixed as needed. ---'''''—&nbsp;[[User:Gadget850|<span style="color:gray">Gadget850&nbsp;(Ed)</span>]]<span style="color:darkblue">&nbsp;'''''</span><sup>[[User talk:Gadget850|''talk'']]</sup> 17:20, 29 January 2011 (UTC)


I've been editing the [[Houseboat]] article and once again when I tried to review my changes before publishing a few minutes ago, they got published — with no summary, because I wanted to be reminded of the things I'd done in my edits. This has happened a few times before as well.
:::{{Tag|font}} is a deprecated element, use {{tag|span}} instead, or {{tag|b}} if you want to save some characters. You do need the tags to be properly nested, as Graham says, you're causing no end of problems for users of screendreaders etc otherwise. Wikid, the [http://www.w3.org/TR/REC-html32-19970114#font HTML 3.2] specification, which introduced the {{tag|font|open}} tag, clearly indicates that it "Requires start and end tags"; I don't know where you got your HTML-history from, but it's not accurate. The most recent version of HTML, HTML5, has moved to ''reduce'' the number of tags which need to be matched, loosening the restriction for various block elements like {{tag|p|open}}, but that logic cannot be applied to inline elements.
:::The signature string is stored in a 255-byte database field, and increasing the size would require a database schema change, which I very much doubt will happen even if you ask for it. [[User:Happy-melon|<b style="color:forestgreen">Happy</b>]]‑[[User talk:Happy-melon|<b style="color:darkorange">melon</b>]] 11:11, 29 January 2011 (UTC)
:::: I agree that HTML5 still has major design problems, but most browsers seem to keep working anyway. Hopefully, those screenreaders will be fixed to match the real world, and accept changing a font without using the end-tag "&lt;/font>" as has been done for years. If the font is blue, and black is needed, just put "&lt;font color=black>" and keep going. I realize the omission of end-tags thwarts the use of nested font styles, but it needs to be expected, and so span tags limit the font scope. The word "[[e-mail]]" has been misspelled as "email" in over 90% of webpages, so years ago, Google started matching either spelling as being the same word. It would make sense for all dictionaries to formally define "[[email]]" as a valid alternate spelling. If most people set their screenreaders to announce font colors, then perhaps let users know that multi-color signatures will be cumbersome to hear. When a committee designs an unworkable language feature, it typically has a real-world patch to become usable, so expect font settings to continue in that manner. -[[User talk:Wikid77|Wikid77]] 12:34, 29 January 2011 (UTC)
:::::Can I ask whether you've tried reading this page with the greenscreen gadget enabled? If not, please do so: go to your preferences and check the box labeled ""Use a black background with green text on the Monobook skin"". Then come back and read your comment above, and perhaps you'll understand what we mean by lack of accessibility. Black text is not part of the MediaWiki style, it is a browser default. Adding {{tag|font|open|attr=color=black}} is not resetting to the browser default, it is imposing black text, whether or not that's what users want, and regardless of whether that's even accessible to users. [[User:Happy-melon|<b style="color:forestgreen">Happy</b>]]‑[[User talk:Happy-melon|<b style="color:darkorange">melon</b>]] 13:14, 29 January 2011 (UTC)


And because these edits were major changes, including the addition of new information along with a supporting citation and the removal of some existing text for greater clarity, I'll probably get a finger wag from a senior editor about this. 🫤
:::::And we aren't here to fix HTML or correct popular spelling, but to write an encyclopedia. Let's fix what we can. ---'''''—&nbsp;[[User:Gadget850|<span style="color:gray">Gadget850&nbsp;(Ed)</span>]]<span style="color:darkblue">&nbsp;'''''</span><sup>[[User talk:Gadget850|''talk'']]</sup> 17:20, 29 January 2011 (UTC)


[[User:Augnablik|Augnablik]] ([[User talk:Augnablik|talk]]) 12:32, 22 May 2024 (UTC)
:So....how do I get the colors, gray background, and a link to my talk page with the word "chat"? <span style="background:silver;font-family:Kristen ITC;">[[User:Ctjf83|<font color="red">C</font><font color="#ff6600">T</font><font color="yellow">J</font><font color="green">F</font><font color="#0000ff">8</font><font color="#6600cc">3</font>]]</span> 12:51, 29 January 2011 (UTC)
::I would try to shorten your signature instead of expanding it. It already is four lines of text which is quite excessive. [[User:Garion96|Garion96]] [[User talk:Garion96|(talk)]] 17:24, 29 January 2011 (UTC)


:In [[Special:Preferences#mw-prefsection-editing]], you can select "Prompt me when entering a blank edit summary". That may help. [[User:Certes|Certes]] ([[User talk:Certes|talk]]) 12:38, 22 May 2024 (UTC)
This is an encyclopedia. I'm sorry, but if you can't get a short enough signature yourself, you're probably obsessing over it too much. Let's keep building an encyclopedia! (says the user who spent a good hour trying to design his own sig. :P) <span style="font-family:Georgia;font-size:80%;">'''/[[User:Fetchcomms|<span style="color:#000;">ƒETCH</span>]][[User talk:Fetchcomms|<span style="color:#000;">COMMS</span>]][[Special:Contributions/Fetchcomms|<span style="color:#000;">/</span>]]'''</span> 05:37, 1 February 2011 (UTC)
::Aha. Thanks ... but I wonder why we have to opt in about this, given that we're not supposed to send blank edit summaries? [[User:Augnablik|Augnablik]] ([[User talk:Augnablik|talk]]) 12:45, 22 May 2024 (UTC)
:::I recall there being a discussion about this somewhere - if my memory serves me correctly, the idea of not having this on by default is to avoid there being an extra layer of friction that may discourage newer good faith editors.
:::In any case, there is no formal obligation to provide an edit summary; rather, the edit should be explained in some manner, or be self-explanatory, something which can be achieved after the fact through talk page discussion. [[User:WindTempos|WindTempos]] <sup>([[User talk:WindTempos|talk]] • [[Special:Contributions/WindTempos|contribs]])</sup> 12:59, 22 May 2024 (UTC)
:If you have accidentally made major changes without a good edit summary and want to fix that, the standard way is to make a [[Help:Dummy edit|Dummy edit]]. —[[User:Kusma|Kusma]] ([[User talk:Kusma|talk]]) 13:08, 22 May 2024 (UTC)
::There are several keyboard actions that will trigger a save - in no particular order, they include:
::*Pressing {{keypress|Alt|Shift|S}} at any time
::*Pressing {{keypress|Enter}} when the focus is on one of: the edit summary; the "This is a minor edit" or "Watch this page" checkboxes; the {{button|Publish changes}} button
::*Pressing {{keypress|Space}} when the focus is on the {{button|Publish changes}} button
::We forget these when using a mouse all the time. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 19:56, 22 May 2024 (UTC)
:::The first one is enabled using an [[accesskey]] {{kbd|S}}. The exact combination of Shift/Alt/Control/⌥Option is different depending on the OS and browser. All combinations are described at [[Wikipedia:Keyboard shortcuts]]. —⁠[[User:Andrybak|andrybak]] ([[User talk:Andrybak|talk]]) 11:09, 25 May 2024 (UTC)


== Sorting titles, some with appended text ==
== Impending watchlist bankruptcy ==


Hello, regarding [[List of cult films: K]], it seems like the listings ''The Killer'' and ''The Killing'', both which neighbor listings that have longer titles starting with ''Killer'' or ''Killing'', wind up at the bottom of each respective group when sorting alphabetically, when they should come first, having nothing after that keyword. Am I doing something wrong? Is there a way to fix it? See for yourself [https://en.wikipedia.org/w/index.php?title=List_of_cult_films:_K&oldid=1225287867 here]. EDIT: I guess I fixed it by adding two spaces after each title, but this feels like too much of a hack. Is there a proper way to do this? [[User:Erik|Erik]]&nbsp;([[User talk:Erik|talk]]&nbsp;&#124;&nbsp;[[Special:Contributions/Erik|contrib]]) <sup>([[Template:Reply to|ping me]])</sup> 15:58, 23 May 2024 (UTC)
I'm headed for watchlist bankruptcy again. Rather than dumping everything, I'd really like to have some sort of filter, e.g., that dumps heavily-watched pages, but keeps things that are on few watchlists. Alternatively, I'd be happy dumping anything that I haven't edited either the article or the talk page for, say, 90 days (especially user pages). Is there anything out there along these lines? [[User:WhatamIdoing|WhatamIdoing]] ([[User talk:WhatamIdoing|talk]]) 05:07, 29 January 2011 (UTC)
:It probably should be using {{tl|sort}} rather than {{tl|sortname}}. The latter makes the sort key "Killer, The" because it is intended to be used with the name of a person. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 00:43, 24 May 2024 (UTC)
:Drop me an email with the list, I can run it through several filters. [[User talk:Δ|ΔT <sub><sup><font color="darkred">The only constant</font></sup></sub>]] 05:09, 29 January 2011 (UTC)
::{{ping|Erik}} The problem is that {{tl|sortname}} automatically inserts a comma. <code><nowiki>{{sortname|The|Killer}}</nowiki></code> is sorted as "Killer, The". The comma sorts after the space in "Killer Nun" while the title should logically have been sorted before. In [https://en.wikipedia.org/w/index.php?title=List_of_cult_films:_K&diff=prev&oldid=1225289007] you avoided the issue by placing spaces at the end in <code><nowiki>{{sortname|The|Killer }}</nowiki></code><code><nowiki></nowiki></code> so it sorts as "Killer&nbsp;&nbsp;, The". It works in the current implementation where spaces aren't stripped but it's not a pretty solution and other editors can easily remove the spaces without knowing the consequence. You could use <code>optional sort key</code> in {{tl|sortname}} to give "Killer" as the full sort key with no comma or "The". Should {{tl|sortname}} be changed to omit the automatic comma? Probably not. It's mostly used for people and often mixed with manually written sort keys like "Doe, John". Omitting the comma when the template is used would mess that up. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 20:03, 24 May 2024 (UTC)
::There also is a way to easily check in your watchlist if articles are redirects. That always gets rid of a couple of hundred articles for me. [[User:Garion96|Garion96]] [[User talk:Garion96|(talk)]] 17:33, 29 January 2011 (UTC)
:::Omitting the automatic comma wouldn't even fix this case where "Killer The" would still sort after "Killer Nun". A possibility would be for {{tl|sortname}} to add a special case where {{tlx|sortname|The|Anything}} ignores "The" and just sorts as "Anything". "The" is unlikely to be the first name of a person which should be included in the sort key. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 20:17, 24 May 2024 (UTC)
:::How many are 'bankruptcy'? I'm heading towards 7,000. [[User:Dougweller|Dougweller]] ([[User talk:Dougweller|talk]]) 16:27, 31 January 2011 (UTC)
::::But it's not a natural person's name right ? So why use sortname to being with ? —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 22:07, 24 May 2024 (UTC)
::::Watchlist bankruptcy isn't usually invoked because of a technical restriction, but when someone finds they are having trouble managing their watchlist (see [[Wikipedia:Don't overload your watchlist!]]). I believe there are some technical issues when you exceed a certain number - "9800" is mentioned on the previous link and [[Wikipedia:WATCHLIST#Size limitation]] - but I was well beyond that number (I think close to 17000) when I declared watchlist bankruptcy last October, so that figure is probably a bit dated. –[[user:xeno|<font face="verdana" color="black">'''xeno'''</font>]][[user talk:xeno|<font color="black"><sup>talk</sup></font>]] 16:38, 31 January 2011 (UTC)
:::::sortname is often used on "The", probably because it's well-known and convenient: {{search link|hastemplate:sortname insource:"sortname The"}}. I don't know how often it gives poor sorting but it's probably rare that the sorted items are close enough. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 22:33, 24 May 2024 (UTC)
:::::Ive had over 50k before. [[User talk:Δ|ΔT <sub><sup><font color="darkred">The only constant</font></sup></sub>]] 16:41, 31 January 2011 (UTC)
::::::Thanks. I figure that so long as I can see 12 hours worth of changes I'm ok. [[User:Dougweller|Dougweller]] ([[User talk:Dougweller|talk]]) 16:42, 31 January 2011 (UTC)
::::::I used explicit sort keys including a third problem entry ''The King''.[https://en.wikipedia.org/w/index.php?title=List_of_cult_films:_K&diff=prev&oldid=1225572818] [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 09:48, 25 May 2024 (UTC)
:::::::Thank you! I will use this approach instead. Is there an easy way to identify problems like ''The King''? On my laptop, I was just eyeballing the difference between the order in the code and the sorted order, but ''The King'' was too far down for me to see shift in order. Would like to be able to check all the pages and fix the order and sorting where needed. [[User:Erik|Erik]]&nbsp;([[User talk:Erik|talk]]&nbsp;&#124;&nbsp;[[Special:Contributions/Erik|contrib]]) <sup>([[Template:Reply to|ping me]])</sup> 00:03, 27 May 2024 (UTC)
:I gave up trying to manage my watchlist when it got past 2,000. It's one of the few major MediaWiki features I never use. The issue is that there are always some gadget(s) or program(s) that I don't realize has an auto-add-to-watchlist setting and I run a couple thousand pages in it. <span style="font-family:Georgia;font-size:80%;">'''/[[User:Fetchcomms|<span style="color:#000;">ƒETCH</span>]][[User talk:Fetchcomms|<span style="color:#000;">COMMS</span>]][[Special:Contributions/Fetchcomms|<span style="color:#000;">/</span>]]'''</span> 05:39, 1 February 2011 (UTC)
::::::::I haven't done it before but here are three ideas which all require something:
::::::::# Zoom far out ({{keypress|Ctrl|-}} in Windows browsers) to view more rows at the same time.
::::::::# Use the sort arrow on a previewed version where the first rows have been removed or commented out.
::::::::#Copy-paste the sorted and unsorted rendered table with your browser and make a diff with some tool, e.g. someting at [[Google:online diff]].
::::::::I tested it and spotted ''The Kingdom'' with all three. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 00:25, 27 May 2024 (UTC)


== Template-generated category problems ==
== Gadget: Black Background ==


The latest run of [[Special:WantedCategories]] features a weird cluster of "Decade in nothing" redlinks that are being autogenerated by {{tl|Sport clubs (dis)established in the YYY0s category header}} because the template appears to be failing to import a variable. The template itself does not appear to have been recently edited at all, so it's very likely a ''module'' doing this, but as I don't have module-editing privileges I wouldn't be able to fix it myself even if I could find the issue, so the following categories are going to need somebody else to look into them.
I was curious as to whether a gadget similar to the "Use a black background with green text on the Monobook skin" could be created for the vector skin. With the monobook gadget enabled and using the vector skin, it seems mostly alright other than the main header, which if I recall can be changed through CSS settings. Sorry if this was posted in the wrong section, and thanks for your time - [[User:NeilHynes|'''''NeilHynes''''']] <small>-</small> [[User talk:NeilHynes|<sup>'''''Talk'''''</sup>]][[Special:Contributions/NeilHynes|<sub>'''''Edits'''''</sub>]] 06:34, 29 January 2011 (UTC)
:Oh yes, forgot to add this as well: The boxes which constitute the front page seem to be hard coded as being white rather than transparent, making it pretty hard on the eyes while this gadget is enabled. Is there any way to fix this as well? [[User:NeilHynes|'''''NeilHynes''''']] <small>-</small> [[User talk:NeilHynes|<sup>'''''Talk'''''</sup>]][[Special:Contributions/NeilHynes|<sub>'''''Edits'''''</sub>]] 06:51, 29 January 2011 (UTC)
* It might be a good idea to adjust the brightness of whichever screen you are using, on a day/night basis, to reduce eyestrain. Perhaps lower the brightness during dark hours. Also, avoid facing bright windows behind a computer, as focusing on computer screens might cause more intense viewing than normal reading of a printed book. There is a lot of medical research about eyestrain with computer screens. -[[User talk:Wikid77|Wikid77]] 10:15, 29 January 2011 (UTC)


{{cl|1810s in}}, {{cl|1820s in}}, {{cl|1830s in}}, {{cl|1840s in}}, {{cl|1850s in}}, {{cl|1860s in}}, {{cl|1870s in}}, {{cl|1880s in}}, {{cl|1890s in}}, {{cl|1900s in}}, {{cl|1910s in}}, {{cl|1920s in}}, {{cl|1930s in}}, {{cl|1940s in}}, {{cl|1950s in}}, {{cl|1950s in}}, {{cl|1960s in}}, {{cl|1970s in}}, {{cl|1980s in}}, {{cl|1990s in}}, {{cl|2000s in}}, {{cl|2010s in}}, {{cl|2020s in}}.
== Page protected from moving personal stub page to ==


Thanks. [[User:Bearcat|Bearcat]] ([[User talk:Bearcat|talk]]) 13:46, 25 May 2024 (UTC)
I have recently created a personal stub page, currently located at [[User:Trident13/Boticca]] which I wish to move to the page titled [[Boticca]], but am told by the system that I can not move it to that mainpage as the page [[Boticca]] is presently protected. How do I find out the reasons for the protection, and would be grateful for advice on next steps. Rgds, - [[User:Trident13|Trident13]] ([[User talk:Trident13|talk]]) 22:45, 29 January 2011 (UTC)
: The page is protected from being created, so I believe you can request that it be unprotected by going [[Wikipedia:RPP#Current_requests_for_unprotection|here]], and giving your reason. <font face="Verdana">[[User:Gary King|<font color="#02b">Gary&nbsp;<b>King</b></font>]]&nbsp;<span style="font-size: 0.9em;">([[User talk:Gary King|<font color="#02e">talk</font>]]&nbsp;·&nbsp;[[User:Gary King/Scripts|<font color="02e">scripts</font>]])</span></font> 22:59, 29 January 2011 (UTC)
::Noticed that, thanks for the confirmation Gary! Rgds, --[[User:Trident13|Trident13]] ([[User talk:Trident13|talk]]) 23:02, 29 January 2011 (UTC)


:There was a recent edit [[Special:Diff/1225161437]] in the /core subtemplate, which doesn't seem suspicious. {{Checking}} in the [[Template:Sport clubs (dis)established in the YYY0s category header/core/sandbox|sandbox]] using the special [[debugging]] parameter {{para|diagnose|yes}}. —⁠[[User:Andrybak|andrybak]] ([[User talk:Andrybak|talk]]) 14:03, 25 May 2024 (UTC)
== en dashes and searching text ==
::{{Fixed}} in [[Special:Diff/1225599206]]. —⁠[[User:Andrybak|andrybak]] ([[User talk:Andrybak|talk]]) 14:14, 25 May 2024 (UTC)
:::@[[User:Gonnym|Gonnym]], I think I figured out the root cause. In [[Special:Diff/1225161437]], the pipe <code>{{!}}</code> was incorrectly left in the usages of {{tl|lcfirstletter}}. That is, <code><nowiki>{{lcfirst:|{{{sport}}}}}</nowiki></code> instead of <code><nowiki>{{lcfirst:{{{sport}}}}}</nowiki></code>. Feel free to re-implement the switch back to magic words, I don't think this template relies on special features of templates {{tl|ucfirstletter}} and {{tl|lcfirstletter}} for skipping non-letter characters. —⁠[[User:Andrybak|andrybak]] ([[User talk:Andrybak|talk]]) 14:21, 25 May 2024 (UTC)
::::Thanks andrybak, sorry I missed the pipe and thanks for catching that! [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 07:58, 27 May 2024 (UTC)


==Infobox (Road) alpha? issue with above=/Dark mode==
The MOS (in [[MOS:ENDASH]]) suggests en dashes rather than hyphens in certain constructions, including in article titles. The only real problem with that is that it makes it very difficult to search for the term within the article text. Is there any way for en dashes to be counted as hyphens when searching, just as case distinctions are ignored, or is that entirely browser dependent? — [[User:Kwamikagami|kwami]] ([[User talk:Kwamikagami|talk]]) 01:48, 30 January 2011 (UTC)
In {{Tlx|Infobox road}} the above value passed on to Infobox image appears to be interpreted as if it had a white backgound, resulting in white corners/edges or a white box around the sign (it's always a white box, but sometimes the visual impact is otherwise). In dark mode this looks pretty bad. However it doesn't happen to next/previous images, or the junction images. See for example [[Garden_State_Parkway]], note the white box around the sign at the top, and the grey around CR 508 (both in dark mode).
: It's browser dependent. You'll probably need a browser that supports regular expression searches in order for it to do what you want, or you could just do each search manually. <font face="Verdana">[[User:Gary King|<font color="#02b">Gary&nbsp;<b>King</b></font>]]&nbsp;<span style="font-size: 0.9em;">([[User talk:Gary King|<font color="#02e">talk</font>]]&nbsp;·&nbsp;[[User:Gary King/Scripts|<font color="02e">scripts</font>]])</span></font> 02:15, 30 January 2011 (UTC)
::I was thinking of general accessibility to our readers. This would be an argument against implementing the MOS. — [[User:Kwamikagami|kwami]] ([[User talk:Kwamikagami|talk]]) 12:18, 1 February 2011 (UTC)


I beleive that CSS or {{Tlx|Infobox}} are creating somthing relating to <code>above</code> that is interfering with the gadget, and providing a light background, where is should be inherited from an outer div.
== Question about a possible change to Twinkle ==


Any ideas/confirmation?
I delete a fair number articles proposed for speedy deletion. I almost always check to see that the original editor of the article is notified (I don't always check attacks, vandalism or redirects.) In most cases the editor has been notified, probably because many taggers use [[Wikipedia:Twinkle|Twinkle]] and that generally does a notification automatically. However, some new editors getting into CSD work don't yet know about Twinkle, and occasionally Twinkle is claimed to miss one.


All the best: ''[[User:Rich Farmbrough|Rich]] [[User talk:Rich Farmbrough|Farmbrough]]''<small> 15:02, 25 May 2024 (UTC).</small><br />
How hard would it be to make a minor modification to Twinkle, so that when it adds the CSD template to the article, then adds a notification to the original editor, it could also add a note to the CSD template indicating that "[[user:foo]] received a notification". Then I could skip checking the 90% or so that do notify, concentrate on determining whether the CSD is warranted, and only track down notification issues in those cases where it hasn't happened?
:White background for [[:File:GSPkwy Shield.svg]] on the page [[Garden State Parkway]] in dark mode comes from these lines of CSS code: [[MediaWiki:Gadget-dark-mode.css#L-156--L-163]], quote:
: <syntaxhighlight lang="css">
/* Content image (thumbnail) SVGs */
/* `*not( .mbox-image )` exception doesn't work for unclear reasons */
html .image img[ src*='svg' ],
html .mw-file-description img[ src*='svg' ],
html img[ src*='Wiktionary-logo'] {
background-color: #fff;
border-radius: 1px;
}
</syntaxhighlight>
: I can't seem to find what you mean by {{tq|the grey around CR 508}}. I think [[:File:CR 508 jct.svg]] is not affected, because linking to the filepage is disabled via {{para|link}}. Compare [[File:CR 508 jct.svg|32px]] vs [[File:CR 508 jct.svg|32px|link=]] —⁠[[User:Andrybak|andrybak]] ([[User talk:Andrybak|talk]]) 15:51, 25 May 2024 (UTC)
::Note: [[:File:GSPkwy Shield.svg]] is selected by {{tl|Infobox road}} from [[Special:Permalink/1112190110#L-196|Module:Road data/strings/USA/NJ#L-196]], based on [[Template:Infobox road#Parameters|parameters]] {{para|state|NJ}} ({{tq|the two-letter [[United States postal abbreviations|postal abbreviation]] of the state}}) and {{para|type|GSP}} . —⁠[[User:Andrybak|andrybak]] ([[User talk:Andrybak|talk]]) 16:05, 25 May 2024 (UTC)


== Strange behaviour with SVG file ==
(I know this ultimately belongs at Proposals, but I wanted to see if there were technical hurdles I've missed, or if I should be talking to [[User:AzaToth|AzaToth]] or someone else.)--<font style="font-family:Monotype Corsiva; font-size:15px;">[[User:Sphilbrick|<span style="background:#002868;color:#fff;padding:0 4px">SPhilbrick</span>]][[User talk:Sphilbrick|<span style="background:#ADD8E6;padding:0 4px;color:#fff;">T</span>]]</font> 02:31, 30 January 2011 (UTC)
:Best place to post would be [[Wikipedia_talk:TW#Feature_Requests]] <span style="background:silver;font-family:Kristen ITC;">[[User:Ctjf83|<font color="red">C</font><font color="#ff6600">T</font><font color="yellow">J</font><font color="green">F</font><font color="#0000ff">8</font><font color="#6600cc">3</font>]]</span> 02:33, 30 January 2011 (UTC)
::Thanks, will post there.--<font style="font-family:Monotype Corsiva; font-size:15px;">[[User:Sphilbrick|<span style="background:#002868;color:#fff;padding:0 4px">SPhilbrick</span>]][[User talk:Sphilbrick|<span style="background:#ADD8E6;padding:0 4px;color:#fff;">T</span>]]</font> 15:15, 30 January 2011 (UTC)


The file "2022 Russian invasion of Ukraine.svg" is used in the infobox of [[Russian invasion of Ukraine]] where it's look perfectly normal. Going to [https://en.wikipedia.org/wiki/File:2022_Russian_invasion_of_Ukraine.svg File:2022 Russian invasion of Ukraine.svg] and it still looks correct, but if I load the [https://upload.wikimedia.org/wikipedia/commons/4/4f/2022_Russian_invasion_of_Ukraine.svg original file] most of it is in Chinese. Is this just me? -- <small>LCU</small> '''[[User:ActivelyDisinterested|A<small>ctively</small>D<small>isinterested</small>]]''' <small>''«[[User talk:ActivelyDisinterested|@]]» °[[Special:Contributions/ActivelyDisinterested|∆t]]°''</small> 16:26, 25 May 2024 (UTC)
== {{tl|Ffdc}} ==


:Not me, at least. This uses the SVG switch elements, so it's probably an issue with your browser or something else thinking your system language is Chinese. — [[User:Alien333|Alien333]] ([[Special:Contributions/Alien333|what I did]] &amp; [[User_talk:Alien333|why I did it wrong]]) 17:45, 25 May 2024 (UTC)
I know {{tl|Deletable image-caption}} has already been converted to use dated category system to enable tracking and cleaning up of stale tags. I took a whack at trying to use the same dated system with this template, however the way the parser function #time operates it does not accept the current format that is passed by the log parameter. I would appreciate a way to resolve this issue, as I often find really stale tags that need removed, and these dated categories make it soo much easier to sort though the mess. [[User talk:Δ|ΔT <sub><sup><font color="darkred">The only constant</font></sup></sub>]] 03:32, 30 January 2011 (UTC)
::I'm using chrome on android, and can't see any reason it should believe my system language is Chinese. This appears to be an error with whatever is doing the switching. -- <small>LCU</small> '''[[User:ActivelyDisinterested|A<small>ctively</small>D<small>isinterested</small>]]''' <small>''«[[User talk:ActivelyDisinterested|@]]» °[[Special:Contributions/ActivelyDisinterested|∆t]]°''</small> 17:50, 25 May 2024 (UTC)
:::I tested on Chrome and Android, and it still works for me. When you say "most of it is in Chinese", are there still some English (or other language) parts? — [[User:Alien333|Alien333]] ([[Special:Contributions/Alien333|what I did]] &amp; [[User_talk:Alien333|why I did it wrong]]) 18:00, 25 May 2024 (UTC)
::::{{multiple images|image1=Broken legend.jpg|image2=Broken map names.png}}{{clear}}
::::Yep only parts of the file. -- <small>LCU</small> '''[[User:ActivelyDisinterested|A<small>ctively</small>D<small>isinterested</small>]]''' <small>''«[[User talk:ActivelyDisinterested|@]]» °[[Special:Contributions/ActivelyDisinterested|∆t]]°''</small> 18:16, 25 May 2024 (UTC)
:::::Well, at least the partial translation is the same as [https://commons.wikimedia.org/w/index.php?title=File:2022_Russian_invasion_of_Ukraine.svg&lang=zh-Hant the traditional chinese file], so it's just showing you that version of the file, though I can't tell why. — [[User:Alien333|Alien333]] ([[Special:Contributions/Alien333|what I did]] &amp; [[User_talk:Alien333|why I did it wrong]]) 18:30, 25 May 2024 (UTC)
::::::The traditional Chinese file is different, notice 'Wyzwolone Ukrainskie terytoria' that shows in the legend I see but not in the traditional Chinese file. -- <small>LCU</small> '''[[User:ActivelyDisinterested|A<small>ctively</small>D<small>isinterested</small>]]''' <small>''«[[User talk:ActivelyDisinterested|@]]» °[[Special:Contributions/ActivelyDisinterested|∆t]]°''</small> 18:33, 25 May 2024 (UTC)
::::::I'm seeing a file that's partially in different languages. -- <small>LCU</small> '''[[User:ActivelyDisinterested|A<small>ctively</small>D<small>isinterested</small>]]''' <small>''«[[User talk:ActivelyDisinterested|@]]» °[[Special:Contributions/ActivelyDisinterested|∆t]]°''</small> 18:33, 25 May 2024 (UTC)
:::::::Indeed, I should have looked closer before posting. It seems it's not even using this version of the file, because some of it (ex. the exact chinese legend next to the red dot, that is one line long and then a hyphen) does not appear at all in any of the actual languages of the file. — [[User:Alien333|Alien333]] ([[Special:Contributions/Alien333|what I did]] &amp; [[User_talk:Alien333|why I did it wrong]]) 18:43, 25 May 2024 (UTC)
::::::::I get the same mishmash of languages with older versions of the file, choosing [https://upload.wikimedia.org/wikipedia/commons/archive/4/4f/20240512084657%212022_Russian_invasion_of_Ukraine.svg 07:54, 12 May 2024] at random. -- <small>LCU</small> '''[[User:ActivelyDisinterested|A<small>ctively</small>D<small>isinterested</small>]]''' <small>''«[[User talk:ActivelyDisinterested|@]]» °[[Special:Contributions/ActivelyDisinterested|∆t]]°''</small> 18:48, 25 May 2024 (UTC)
::::I wondered if it was a similar issue to [[Wikipedia:Village pump (technical)/Archive 212#Serbian place names displayed on Manhattan maps]]. -- <small>LCU</small> '''[[User:ActivelyDisinterested|A<small>ctively</small>D<small>isinterested</small>]]''' <small>''«[[User talk:ActivelyDisinterested|@]]» °[[Special:Contributions/ActivelyDisinterested|∆t]]°''</small> 18:28, 25 May 2024 (UTC)
:::::I think it's different, as that was with OpenStreetMap labels and this is SVG translation. — [[User:Alien333|Alien333]] ([[Special:Contributions/Alien333|what I did]] &amp; [[User_talk:Alien333|why I did it wrong]]) 18:31, 25 May 2024 (UTC)


== Help with regex ==
== Unable to open article tabs in new browser tab ==


I'm looking to search for article with titles matching '[number][ordinal][space]Road', but for all my trying I can't get it to work. I get ''intitle'' and using []{} for a certain number of character but whatever I put together doesn't work. Any help would be appreciated. -- <small>LCU</small> '''[[User:ActivelyDisinterested|A<small>ctively</small>D<small>isinterested</small>]]''' <small>''«[[User talk:ActivelyDisinterested|@]]» °[[Special:Contributions/ActivelyDisinterested|∆t]]°''</small> 17:40, 25 May 2024 (UTC)
I can open any in-text link in a new browser tab (IE8), but when right clicking on an article tab such as "Discussion" or "Edit" I do not get this option, but rather the option set associated with right clicking on background or regular text. I can not be sure, as I use other Wikis, and may be confused, but I think this is new, and that I used to be able to open these in a new tab. [[User:Pbsouthwood|Peter (Southwood)]] [[User talk:Pbsouthwood|<sup>(talk)</sup>]]: 08:16, 30 January 2011 (UTC)
:It's a known IE8 bug. Right-click right next to the text to get the proper menu, or "middle"-click (press the wheelbutton) the link to open it in a new tab immediately. <span style="font-family:'Trebuchet MS',sans-serif"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User_talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 10:16, 30 January 2011 (UTC)


:What is your specific search query? [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 17:56, 25 May 2024 (UTC)
== Performance synergism gives amazing performance ==
::I don't a working one, I was trying "in title:/[0-9]{1,3}[a-z]{2} Road/ but I've obviously got something wrong. I'm looking to find pages such as [[30th Road]], [[73rd Road]], etc. -- <small>LCU</small> '''[[User:ActivelyDisinterested|A<small>ctively</small>D<small>isinterested</small>]]''' <small>''«[[User talk:ActivelyDisinterested|@]]» °[[Special:Contributions/ActivelyDisinterested|∆t]]°''</small> 18:01, 25 May 2024 (UTC)
:::I wasn't looking for a working one. :) You've misspelled intitle as in title, [https://en.wikipedia.org/w/index.php?search=intitle%3A%2F%5B0-9%5D%7B1%2C3%7D%5Ba-z%5D%7B2%7D+Road%2F&title=Special%3ASearch&ns0=1 this query works]. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 18:06, 25 May 2024 (UTC)
::::That's autocorrect it does the same for me with hastemplate becoming 'has template'. I'm apparently cursed when it comes to regex, I'd swear I had tried the exact same search. Thanks for the help. -- <small>LCU</small> '''[[User:ActivelyDisinterested|A<small>ctively</small>D<small>isinterested</small>]]''' <small>''«[[User talk:ActivelyDisinterested|@]]» °[[Special:Contributions/ActivelyDisinterested|∆t]]°''</small> 18:22, 25 May 2024 (UTC)


===My brain hurts===
Nearing the end of January, and the performance issues are really reaping major [[synergy|synergistic]] benefits. As you might know, that old, archaic essay "[[WP:Don't worry about performance]]" had become a negative mantra, casting a cloudy chill on improving performance issues. As part of the ''"Performance Resistance Movement"'', I have done the exact opposite now: to focus on performance in my spare minutes around Wikipedia. While re-writing some string-handling templates to avoid the 40-level expansion nest limit, I have again discovered:
I started to answer the question above, but quickly ran into something I don't understand. Regex searches ignore the indexes, so it makes sense to do a composite search which includes a term that hits the index and then a regex to filter that down. But when I try <code>intitle:Road intitle:/[0-9]+/</code> ([https://en.wikipedia.org/w/index.php?search=intitle%3ARoad+intitle%3A%2F%5B0-9%5D%2B%2F&title=Special:Search&profile=advanced&fulltext=1&ns0=1 link]) I get results that include [[London Inner Ring Road]]. That doesn't match the regex. [[H:BOOLEAN]] says {{tq|Search terms are implicitly joined by AND}} but that doesn't seem to be what's happening here. [[User:RoySmith|RoySmith]] [[User Talk:RoySmith|(talk)]] 15:20, 26 May 2024 (UTC)
* '''''Performance synergy:''''' Improving just a few aspects, of total performance, will create a [[synergy]] which produces other major improvements. I wrote {&#123;[[Template:Strlen_quick|strlen_quick]]}} to focus on using only 5 expansion levels (rather than 9-to-14 deep); however, in the process, I discovered ways to make it 2x times (TWICE) the speed of the "fully optimized" {str_len}, as it runs 12x times shorter. An article now can use 37,000(!) instances of {strlen_quick}. An effort to make {Italic_title} 4x times faster (such as with "(film)" suffix) has synergized as 100x(!) faster. The synergism works that way: start trimming a few if-else branches and end with a template 12x shorter, or 100x faster, than before.
* '''''POV-pushing is overcome by multiple POVs:''''' The cure for POV-pushing seems to be to allow multiple [[WP:POV fork]]s (not delete them). Example: all algorithms for getting string-length counts had been deleted down to one POV, which used [[binary search]] of strings. I resurrected the other deleted variations, and thereby found techniques to transcend the one remaining POV method, with a [[hybrid]] POV method, running 2x times faster and 12x shorter. This concept was formalized in the Strategy Wiki, to have an Arab-POV version of article "[[Palestine]]" to overcome [[systemic bias]] in the so-called NPOV article. Meanwhile, that concept has led to massive improvements of string templates. The whole idea of POV-forks can be seen in the crucial [[Recovery of Aristotle]] from the Arab world, which had kept accurate texts of [[Aristotle]], beyond those censored by the Church. As [[Pliny]] said, ''"There is always something new [[out of Africa]]."''
Performance synergism will "[[bootstrap]]" to higher synergism: by improving the performance of string templates, they can be used in lists of string data containing 5,000 examples on 1 page, to analyze ways to further improve those string templates and others. I have discovered simple ways to streamline {Cite_web} and {Cite_book} to allow over 1,000 references within a separate list page, replete with the COinS metadata. We could even have a "references-population" template, which supplies current sources to multiple articles, all sharing from the same large, central {Cite_web} list, because improving performance had made keeping a large central template of current sources possible. The task began as a focus on improving template performance, and then led to the [[epiphany]] that POV forks are the solution (not the problem), while leading to a way to maintain current [[WP:RS]] sources within numerous articles at one time. Amazing performance [[synergism]]. -[[User:Wikid77|Wikid77]] ([[User talk:Wikid77|talk]]) 12:58, 30 January 2011 (UTC)


:intitle: often appears not to work. In this case, it's probably showing that result because of redirects such as {{-r|A1202 road}}. [[User:Certes|Certes]] ([[User talk:Certes|talk]]) 15:27, 26 May 2024 (UTC)
:Let me be the first to say that I don't really understand the connection between the Israel-Palestine conflict, and string processing templates... <tt>:D</tt> But let me also be the first to congratulate you on these performance enhancements.
:You might want to read [http://lists.wikimedia.org/pipermail/wikitech-l/2011-January/051136.html the recent wikitech-l thread] on [[WP:PERF]]; I think it you'll find it interesting. [[User:Happy-melon|<b style="color:forestgreen">Happy</b>]]‑[[User talk:Happy-melon|<b style="color:darkorange">melon</b>]] 13:42, 30 January 2011 (UTC)
::: I guess the credit should go to 2006-2007 [[User:Polonium]] and others, for the alternate string-length algorithms. I had learned in college that performance can often be improved perhaps 5x faster (re: [[Donald Knuth]]), but the template speed increases of 12x, 100x or 1,000x faster are still a shock to me. Also, using many large parameters in a template consumes the "post-expand include size", so reducing a numeric formula parameter by using {#expr: <formula>} can shrink the post-expand or argument sizes as perhaps 5x smaller. I was stunned when {strlen_quick} reduced the post-expand by 12x, increasing capacity from 2,900 instances to allow 37,000 uses of {strlen_quick} per page! The other string algorithms had been deleted, or rather redirected, so there was only one POV for how to check string lengths. I guess the Strategy-Wiki issue for an Arab-POV fork of article "[[Palestine]]" would reveal insights not found in the main article, just as the faster string algorithms were gone from the main {str_len} template. A classic case of "POV funnel" is the [[Amanda Knox]] case, where many Europeans did not understand how she is in major TV news in America, every few months, as ''"will she get a fair re-trial and be set free"'' rather than wondering what motive for killing her flatmate of 6 weeks. The MoMK article was reduced to omit Knox's "POV-boring" background as a guitar-playing, honors student who called her roommate about their Halloween costumes the day before the murder. See, the POV-boring details are what made the case notable in the U.S. as why would a "straight-A" student, who sings with guitar, work 7 jobs in Seattle to pay her way as an exchange student in Italy, then want to kill her British roommate of 6 weeks (whose rent money vanished) but leave no hair, fingerprint or DNA evidence, unless she was hit by police to give a false confession as she testified? Understandably, some European users always removed those boring details as insignificant, as [[WP:UNDUE]] POV-boring text compared to other details. Only when an article can focus on the POV-boring concepts of a "huggy [[bookworm]]" whose new friend died, can readers understand why millionaire [[Donald Trump]] advised boycotting Italy until Knox is freed. Perhaps that focus is similar to a Arab-POV article about Palestine, where seemingly POV-boring or ''only-an-Arab-would-care'' details are being omitted, but I'm not sure there. For checking string-length, the better solution was in the deleted (or redirected) [[WP:POV fork]] templates which had faster, shorter algorithms. Having multiple pages about an issue can lead to a better understanding of the all-encompassing (''[[encyclopedic]]'') viewpoints. That's the multi-template connection to multi-POV Israel-Palestine articles. -[[User talk:Wikid77|Wikid77]] 23:49, 30 January 2011 (UTC)


== Mass revdel across pages of one contributor ==
::Please stop saying synergy. It makes me retch. [[User:OrangeDog|OrangeDog]] <small>([[User talk:OrangeDog|τ]] • [[Special:Contributions/OrangeDog|ε]])</small> 17:46, 30 January 2011 (UTC)
::: Perhaps I should say that performance improvements are a "[[win-win game]]" (!) where the "pie gets bigger" rather than users fighting over the pieces of the pie?!?! -[[User talk:Wikid77|Wikid77]] 23:49, 30 January 2011 (UTC)


I'm in the process of revdel'ing personal attacks from edit summaries of {{user|2601:85:C100:2770:51F5:457E:4CD9:606B}} made by undoing an editor's contributions on many pages. I have the mass rollback tool, so that was no problem. But now I have to revdel them one by one since they are on different pages. Is there a way that they can all be lumped together for revdel? &ndash;&nbsp;[[User:Muboshgu|Muboshgu]]&nbsp;([[User talk:Muboshgu#top|talk]]) 19:05, 25 May 2024 (UTC)
::::Oh please, enough! I have to listen to that kind of b/s speak all day long! We need to realign our white space initiatives on a going forward basis.&nbsp;–&nbsp;[[User:Ukexpat|ukexpat]] ([[User talk:Ukexpat|talk]]) 16:36, 31 January 2011 (UTC)


:I know of some user scripts that have been developed for this: [[User:Writ Keeper/Scripts/massRevdel.js]], and [[User:Blablubbs/massrevdel NOS.js]] which is a fork of the first one for non-oversighters. [[User:DanCherek|DanCherek]] ([[User talk:DanCherek|talk]]) 20:10, 25 May 2024 (UTC)
== SVG upload problem ==


== Track listing/Professional ratings overlap for music albums ==
I'm trying to copy [[:de:Datei:AutoBild.svg]] to WP-EN for use at [[Auto Bild]], but all I get is:


Speaking from the average viewer's POV (i.e., not logged in), I noticed when I visited the album pages for [[Ohio Players (album)|Ohio Players]] and [[Follow the Lights]] that the right side of the '''Track listing''' overlaps with the left side of the '''Professional ratings''', with the text visibly overlapping (superimposed) as well. This was observed in Safari on a Mac mini, but not in Firefox. I'm merely reporting this, and not trying to fix it myself. [[User:Peterh6658|Peterh6658]] ([[User talk:Peterh6658|talk]]) 22:49, 25 May 2024 (UTC)
<pre style="white-space: pre-wrap">
Internal Error


== Template gadgets ==
key 'pvtmmk3paxdmo1izgpl340zprg0bp73.' is not in a proper format


I was reading about [[mw:Template gadgets|Template gadgets]] in the Signpost and its use in Spanish Wikipedia (for example in their [[:es:Juego de la vida|Conway's game of life]] article) and was wondering if that is implemented here yet. [[User:28bytes|28bytes]] ([[User talk:28bytes|talk]]) 01:10, 26 May 2024 (UTC)
Backtrace:
: The server-side code is deployed here. Local iadmins haven't made use of it. Edit requests to do so welcome. [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 01:24, 26 May 2024 (UTC)
:: Thanks Pppery. If I wanted to include the Game of Life gadget on either [[Conway's Game of Life|the article]] or its talk page, what would be the next steps to take? [[User:28bytes|28bytes]] ([[User talk:28bytes|talk]]) 01:34, 26 May 2024 (UTC)
::: The steps, for an iadmin, assuming sufficient consensus to do so, are explained at [[mw:Template:Conway's Game of Life#Installation]]. The steps for a non-iadmin would presumably be to follow step 1 there and then use {{tl|edit interface-protected}} to request an iadmin (like myself) do steps 2 and 3. What I would probably actually do is use [[Wikipedia:Bots/Requests for approval/SDZeroBot 13]] (cc {{u|SD0001}}) to sync [[mw:MediaWiki:Gadget-Global-Vivarium.js]] locally rather than loading code from MediaWiki.org, but you don't have to care about that. [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 01:50, 26 May 2024 (UTC)
:::: Thanks again. Step 1 is [[Template:Conway's Game of Life gadget|done]]. I'll make an edit request over at [[Talk:Conway's Game of Life]]. [[User:28bytes|28bytes]] ([[User talk:28bytes|talk]]) 02:04, 26 May 2024 (UTC)


== Weird mobile web diff display ==
#0 /usr/local/apache/common-local/wmf-deployment/includes/upload/UploadBase.php(557): UploadStash->stashFile('/tmp/phpOmEzJy', Array, NULL)
#1 /usr/local/apache/common-local/wmf-deployment/includes/upload/UploadBase.php(569): UploadBase->stashSessionFile(NULL)
#2 /usr/local/apache/common-local/wmf-deployment/includes/specials/SpecialUpload.php(322): UploadBase->stashSession()
#3 /usr/local/apache/common-local/wmf-deployment/includes/specials/SpecialUpload.php(413): SpecialUpload->showUploadWarning(Array)
#4 /usr/local/apache/common-local/wmf-deployment/includes/specials/SpecialUpload.php(167): SpecialUpload->processUpload()
#5 /usr/local/apache/common-local/wmf-deployment/includes/SpecialPage.php(561): SpecialUpload->execute(NULL)
#6 /usr/local/apache/common-local/wmf-deployment/includes/Wiki.php(254): SpecialPage::executePath(Object(Title))
#7 /usr/local/apache/common-local/wmf-deployment/includes/Wiki.php(64): MediaWiki->handleSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
#8 /usr/local/apache/common-local/wmf-deployment/index.php(117): MediaWiki->performRequestForTitle(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest))
#9 /usr/local/apache/common-local/live-1.5/index.php(3): require('/usr/local/apac...')
#10 {main}
</pre>


[https://en.m.wikipedia.org/w/index.php?title=Clan_Livingstone&diff=prev&diffonly=1&oldid=1225714396]
I've tried changing the destination file name, but to no avail. --[[User:Morn|Morn]] ([[User talk:Morn|talk]]) 11:23, 30 January 2011 (UTC)
:The file is on Commons, so already available for use here - [[:File:AutoBild.svg]] - no need to reupload. Not sure what's causing you the error though.--[[User:Nilfanion|Nilf]][[commons:User:Nilfanion|anion]] ([[User talk:Nilfanion|talk]]) 11:53, 30 January 2011 (UTC)
::Oops, you're right, it's already on Commons. I've seen this error previously and as far as I recall you could make it go away by changing the file name (removing spaces or something). Somehow that did not seem to do the trick here, though. --[[User:Morn|Morn]] ([[User talk:Morn|talk]]) 12:41, 30 January 2011 (UTC)


Normally, mobile (source, not visual) diff displays removed text in yellow and added text in blue in the same block of text. In this said diff, the edited paragraph is (confusingly) displayed twice, one copy indicating removed text, the other one added text. Could you reproduce this? Is this a bug or intended behavior? Thank you. [[User:Janhrach|Janhrach]] ([[User talk:Janhrach|talk]]) 07:52, 26 May 2024 (UTC)
== Having trouble editing/unintended vandalism ==


:Are you trying to use the mobilefrontend view with vector-2022, leading you to getting the desktop-type vector-2022 output? — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 12:12, 26 May 2024 (UTC)
OK, so I was working on the [[2010-11 Australian region cyclone season]], and just adding the dissipation date for 06U (revision on 00:22 4 January), and although I had gotten the changes I wanted, I somehow exposed some formatting in the line of the table for TC Tasha. This was due to an infinite loop. What I did (if I remember correctly) was that I was submitting it, and it got stuck in the infinite loop. So, I either closed the computer (it was a laptop) or hit the Back button on the browser (I don't remember which), and then the formatting came out all screwy. I am using Safari version 5.0.3 on a Mac OSX Version 10.6.6 with a 2.4 GHz Intel Core 2 Duo processor. (The loop occurs even when I am editing small sections of a larger page, though the loop does not always happen, even when I am editing larger pages.)
::Huh? That diff is indeed what you get via https://en.m.wikipedia.org/w/index.php?title=Clan_Livingstone&action=history. I agree the repetition of "This battle was fought..." is highly misleading. [[User:Nardog|Nardog]] ([[User talk:Nardog|talk]]) 15:24, 26 May 2024 (UTC)
:I filed a task for this at the tail end of the better diffs initiative last year. [[phab:T349335]]. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 16:28, 26 May 2024 (UTC)
::Is that the same thing? That task doesn't seem to be about mobilefront end view? Here is the mobilefrontend+minerva (what should be default) view of the story in this thread: https://en.m.wikipedia.org/w/index.php?title=Clan_Livingstone&diff=prev&diffonly=1&oldid=1225714396&useskin=minerva . Is that not appearing as expected? — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 16:18, 27 May 2024 (UTC)
:::@[[User:Xaosflux|Xaosflux]], mobile diffs now use the same machinery as normal diffs. And no, it is not appearing as expected, the paragraph beginning with {{tq|This battle was fought between various north-western highland clans from the lands of [[Ross, Scotland|Ross]], against the [[Earl of Ross]] and his followers.}} is repeated. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 16:20, 27 May 2024 (UTC)
::::Thanks, see it now, yup seems buggy for sure. — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 16:24, 27 May 2024 (UTC)
:It's worth saying that this is a hard problem in general. You'd probably need to look at the code to see what's going on, but it's likely that the diff treats headings as special, then trying to identify the two paragraphs as derivatives may not be easy. All the best: ''[[User:Rich Farmbrough|Rich]] [[User talk:Rich Farmbrough|Farmbrough]]''<small> 18:53, 27 May 2024 (UTC).</small><br />


== New diff preview problem ==
(In fact, as I am typing this, the page for the [[2010-11 South Pacific cyclone season]] is stuck in an infinite loop, while I am trying to edit that page.) <small><span class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:VeryPunny|VeryPunny]] ([[User talk:VeryPunny|talk]] • [[Special:Contributions/VeryPunny|contribs]]) 19:12, 30 January 2011 (UTC)</span></small><!-- Template:Unsigned --> <!--Autosigned by SineBot-->
: What kind of infinite loop are you experiencing? Can you copy and paste any error messages that you see? <font face="Verdana">[[User:Gary King|<font color="#02b">Gary&nbsp;<b>King</b></font>]]&nbsp;<span style="font-size: 0.9em;">([[User talk:Gary King|<font color="#02e">talk</font>]]&nbsp;·&nbsp;[[User:Gary King/Scripts|<font color="02e">scripts</font>]])</span></font> 22:56, 30 January 2011 (UTC)


This started sometime between midnight UTC last night and 10:30 UTC today, Monday 27 May. I use Edge on Win 11, Monobook, Navigation popups enabled, and the Use a black background with green text gadget. When I point my mouse at "diff" on my watchlist now the pop up/preview/whatever you call it is now very much harder to read, the change is "highlighted" by shewing the removed text in black on a grey background then the added text in black on a brown background. Please help! [[User:DuncanHill|DuncanHill]] ([[User talk:DuncanHill|talk]]) 11:09, 27 May 2024 (UTC)
::No, there are no error messages, the screen is just frozen, but otherwise works normally. Interestingly, this does not happen when I am simply browsing around without editing. <small><span class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:VeryPunny|VeryPunny]] ([[User talk:VeryPunny|talk]] • [[Special:Contributions/VeryPunny|contribs]]) 17:12, 31 January 2011 (UTC)</span></small><!-- Template:Unsigned --> <!--Autosigned by SineBot-->


:@[[User:The wub|The wub]]? [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 15:47, 27 May 2024 (UTC)
== Transparent table background. ==
::@[[User:DuncanHill|DuncanHill]] This is an unintended side effect of a change I made so that Navigation popups work in the new Vector dark mode. I've revised that change so it shouldn't affect the black background with green text gadget, will see about getting it merged. [[User:the wub|the wub]] [[User_talk:The wub|<span style="color: #080;">"?!"</span>]] 21:33, 27 May 2024 (UTC)
:::{{re|The wub}} thanks so it should be more legible soon? [[User:DuncanHill|DuncanHill]] ([[User talk:DuncanHill|talk]]) 21:50, 27 May 2024 (UTC)
::::@[[User:DuncanHill|DuncanHill]] Yes, just waiting for an interface admin to respond to my [[MediaWiki_talk:Gadget-popups.js#Updates_for_dark_mode|edit request]]. [[User:the wub|the wub]] [[User_talk:The wub|<span style="color: #080;">"?!"</span>]] 23:08, 27 May 2024 (UTC)
:::::{{re|The wub}} Thank you, now working well for me. [[User:DuncanHill|DuncanHill]] ([[User talk:DuncanHill|talk]]) 01:36, 28 May 2024 (UTC)


== Images in sidebars for mobile view ==
For a long time, the plain table background was white, but this has changed to transparent in the upcoming 1.17 release of MediaWiki. Since there may be templates that rely on a white background, I'm putting the following code in [[Mediawiki:Common.css|Common.css]], in order to spot any glitches that may pop up before 1.17 is deployed. <span style="font-family:'Trebuchet MS',sans-serif"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User_talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 21:08, 30 January 2011 (UTC)


Hi. I have been fixing up climbing articles on Wikipedia (e.g. [[alpine climbing]], [[mixed climbing]], and [[ice climbing]]). I know that per 'Template:Sidebar', that the sidebar doesn't appear on mobile (which makes sense to me), but is there any way for the main image used in the top section of the sidebar to appear in mobile view (i.e. a qualifier in the sidebar image to say whether it should appear in mobile view)? The images that I have put into the top of the sidebar are good ones and have helpful captions that I think a mobile reader would enjoy? thanks. [[User:Aszx5000|Aszx5000]] ([[User talk:Aszx5000|talk]]) 11:33, 27 May 2024 (UTC)
<syntaxhighlight lang="CSS">
/* Transparent table background. Remove when 1.17 is deployed */
table {
background-color: transparent;
}
</syntaxhighlight>
* So, now, a table will default to transparent background, but a quotebox or preformat-box will remain white, as shown below:
:::{|
|This indented table now defaults to transparent, but class=wikitable will remain white.
This is a quotebox, indented by leading spaces.
However, the quotebox (above) & preformat-box (below) remain white.
<pre>This text is within the tags &lt;pre>&lt;/pre>.</pre>
Tables are often used for multiple columns in see-also sections.
|}
: So, people should change any unclassed tables which need to be white, by setting style="background:white". -[[User talk:Wikid77|Wikid77]] 10:06, 31 January 2011 (UTC)


:Do not use sidebars to provide meaningful images, is really the correct response, and in fact at some point they will not be available at all (somewhere in my backlog of work). If you want an image to display, you should use either a thumb image or an infobox, and of course both must fit the requirements for the main image. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 15:47, 27 May 2024 (UTC)
::Basically yes, but since all pages already have a white background (in Vector), it would not be absolutely necessary. (PS. Wikitables and pre-formatted boxes have a ''gray'' background.) <span style="font-family:'Trebuchet MS',sans-serif"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User_talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 19:29, 31 January 2011 (UTC)


== William H. Ryan, Jr. ==
== Why has my map broken? ==


Hi all
The [[William H. Ryan, Jr.]] Table of Contents has a line " * 4.1 Non-state Territories of the United States" appearing under References. The Commonwealth of Pennsylvania is one of the original thirteen states. Some technical person should investigate. Please tell me if I should be reporting this situation elsewhere, rather than here. --[[User:Dthomsen8|DThomsen8]] ([[User talk:Dthomsen8|talk]]) 15:49, 31 January 2011 (UTC)
:It's a badly-written navbox {{tlx|U.S. state attorneys general}} --[[User:Redrose64|<span style="color:#d30000; background:#ffeeee">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 15:52, 31 January 2011 (UTC)
:{{done}} - I've fixed it now. --[[User:NSH001|NSH001]] ([[User talk:NSH001|talk]]) 16:34, 31 January 2011 (UTC)
::Thank you. That was a really quick fix. --[[User:Dthomsen8|DThomsen8]] ([[User talk:Dthomsen8|talk]]) 16:45, 31 January 2011 (UTC)


I spent ages building a map to help visualise the countries where WikiGap has been organised (a project to help close the gender gap on Wikipedia). The map was transcluded at the bottom of the main [https://meta.wikimedia.org/wiki/WikiGap Wikigap page] however it seems to be broken, no map is shown, [https://meta.wikimedia.org/wiki/WikiGap/Map the transcluded page] doesn't appear to have been changed so I think it might be a technical change somewhere? If anyone knows how to fix it, please I'd love some help, its way beyond my technical ability.
== Thumbnail software ==


Which thumbnail software does Wikipedia use? [[mw:ImageMagick#Image_thumbnailing|According to Mediawiki]], it should be either ImageMagick or GD. But I'm not sure which, and how it's implemented (on commons, for an image, there's no thumb.php?size=xyz etc.). I'm thinking of fixing the bugs with Animated GIF thumbnailing. Thanks, [[User:Manishearth|<font color="orange">Manish</font><font color="green">''Earth''</font>]]<sup>[[User talk:Manishearth|<font color="orange">Talk</font>]] • [[Special:Contributions/Manishearth|<font color="green">Stalk</font>]]</sup> 16:19, 31 January 2011 (UTC)
: Wikipedia is probably using the recommended ImageMagick, since the [[mw:Extension:ImageMap|ImageMap extension]] requires it, apparently, and it's installed here. <font face="Verdana">[[User:Gary King|<font color="#02b">Gary&nbsp;<b>King</b></font>]]&nbsp;<span style="font-size: 0.9em;">([[User talk:Gary King|<font color="#02e">talk</font>]]&nbsp;·&nbsp;[[User:Gary King/Scripts|<font color="02e">scripts</font>]])</span></font> 18:45, 31 January 2011 (UTC)
:: Yes, it's ImageMagick. The parameters for calling it will be in svn somewhere - you could check related bugzilla issues which may lead you there. [[User:OrangeDog|OrangeDog]] <small>([[User talk:OrangeDog|τ]] • [[Special:Contributions/OrangeDog|ε]])</small> 18:55, 31 January 2011 (UTC)
:::Thanks! [[User:Manishearth|<font color="orange">Manish</font><font color="green">''Earth''</font>]]<sup>[[User talk:Manishearth|<font color="orange">Talk</font>]] • [[Special:Contributions/Manishearth|<font color="green">Stalk</font>]]</sup> 01:43, 1 February 2011 (UTC)


[[User:John Cummings|John Cummings]] ([[User talk:John Cummings|talk]]) 18:55, 27 May 2024 (UTC)
== Keep getting logged out ==


:It appears primary support for the underlying module there is provided at: [[:w:de:Wikipedia Diskussion:Lua/Modul/Graph]]. — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 19:19, 27 May 2024 (UTC)
Hi, I'm using Internet Explorer 8; I always check the stay logged in checkbox, but in the last few weeks Wikipedia won't remember my login for more than 20 minutes. I've tried clearing my cookies as suggested but that didn't fix the problem. Any ideas? Thanks. [[User:Some guy|Some guy]] ([[User talk:Some guy|talk]]) 20:28, 31 January 2011 (UTC)
::[[:meta:WikiGap/Map]] is in the hidden [[:meta:Category:Pages with disabled graphs]]. It uses [[:meta:Template:Graph:Map]] which makes {{tag|graph}} code. All such code in Wikimedia wikis has been disabled since April 2023. The English Wikipedia gives more helpful information from [[MediaWiki:Graph-disabled]] when a page tries to use {{tag|graph}}:
::<graph>...</graph>
::[[meta:MediaWiki:Graph-disabled]] has not been created so no message is displayed there. Affected pages are just added to the hidden category. Our own [[:Category:Pages with disabled graphs]] is also more helpful. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 20:15, 27 May 2024 (UTC)


Thanks as ever {{u|PrimeHunter}}, ah, that's a shame, well I guess its just permanently broken and it will be some time until a replacement is made, I wonder if I can do it through Kartographer or something. [[User:John Cummings|John Cummings]] ([[User talk:John Cummings|talk]]) 20:57, 27 May 2024 (UTC)
:You can try [[Mozilla Firefox|Firefox]], [[Opera (web browser)|Opera]], or [[Google Chrome|Chrome]]. Otherwise see if [http://support.microsoft.com/kb/2467659 Update for Internet Explorer for Windows Vista (KB2467659)] is what is causing your problem. – [[User:Allen4names|Allen]]4[[User talk:Allen4names|names]] 21:03, 31 January 2011 (UTC)


:WMF will start working on the graph extension in July, see [[Mw:Extension:Graph/Plans]]. Until then use Kartographer, there are templates that use it. [[User:Snævar|Snævar]] ([[User talk:Snævar|talk]]) 21:32, 27 May 2024 (UTC)
== Is there a bot that can add WikiProject templates based on categories or stubs? ==


== Tech News: 2024-22 ==
I wonder if there is a bot that could check which articles in a given category (ex. Polish singers) or using given templates (ex. Poland-bio-stub) are not categorized with a corresponding WikiProject assessment template (ex. WikiProject Poland template), and then add the wikiprojects template to those talk pages (preferably, assessing it as stub if the articles have a stub template)? That seems like something a bot should be able to do with a good success rate. --<sub><span style="border:1px solid #228B22;padding:1px;">[[User:Piotrus|Piotr Konieczny aka Prokonsul Piotrus]]|[[User_talk:Piotrus|<font style="color:#7CFC00;background:#006400;"> talk </font>]]</span></sub> 20:52, 31 January 2011 (UTC)
:Sure, see [[:Category:WikiProject tagging bots]]. –[[user:xeno|<font face="verdana" color="black">'''xeno'''</font>]][[user talk:xeno|<font color="black"><sup>talk</sup></font>]] 20:56, 31 January 2011 (UTC)


<section begin="technews-2024-W22"/><div class="plainlinks">
== Footnote formatting Flag will not go away when I changed an "ibid" to a footnote ==
Latest '''[[m:Special:MyLanguage/Tech/News|tech news]]''' from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. [[m:Special:MyLanguage/Tech/News/2024/22|Translations]] are available.


'''Recent changes'''
Cleared up and "ibid" footnote issue on this page:
* Several bugs related to the latest updates to the UploadWizard on Wikimedia Commons have been fixed. For more information, see [[:phab:T365107|T365107]] and [[:phab:T365119|T365119]].
http://en.wikipedia.org/wiki/Jacquie_Jordan
* [[File:Octicons-tools.svg|12px|link=|alt=|Advanced item]] In March 2024 a new [[mw:ResourceLoader/Core_modules#addPortlet|addPortlet]] API was added to allow gadgets to create new portlets (menus) in the skin. In certain skins this can be used to create dropdowns. Gadget developers are invited to try it and [[phab:T361661|give feedback]].
* [[File:Octicons-tools.svg|12px|link=|alt=|Advanced item]] Some CSS in the Minerva skin has been removed to enable easier community configuration. Interface editors should check the rendering on mobile devices for aspects related to the classes: <bdi lang="zxx" dir="ltr"><code>.collapsible</code></bdi>{{int:comma-separator/en}}<bdi lang="zxx" dir="ltr"><code>.multicol</code></bdi>{{int:comma-separator/en}}<bdi lang="zxx" dir="ltr"><code>.reflist</code></bdi>{{int:comma-separator/en}}<bdi lang="zxx" dir="ltr"><code>.coordinates</code></bdi>{{int:comma-separator/en}}<bdi lang="zxx" dir="ltr"><code>.topicon</code></bdi>. [[phab:T361659|Further details are available on replacement CSS]] if it is needed.


'''Changes later this week'''
But the message following wikipedia flag/box has not gone away: "Constructs such as ibid. and loc. cit. are discouraged by Wikipedia's style guide for footnotes, as they are easily broken. Please improve this article by replacing them with named references (quick guide), or an abbreviated title."
* [[File:Octicons-sync.svg|12px|link=|alt=|Recurrent item]] The [[mw:MediaWiki 1.43/wmf.7|new version]] of MediaWiki will be on test wikis and MediaWiki.org from {{#time:j xg|2024-05-28|en}}. It will be on non-Wikipedia wikis and some Wikipedias from {{#time:j xg|2024-05-29|en}}. It will be on all wikis from {{#time:j xg|2024-05-30|en}} ([[mw:MediaWiki 1.43/Roadmap|calendar]]). [https://wikitech.wikimedia.org/wiki/Deployments/Train][https://wikitech.wikimedia.org/wiki/Deployments/Yearly_calendar]
* When you visit a wiki where you don't yet have a local account, local rules such as edit filters can sometimes prevent your account from being created. Starting this week, MediaWiki takes your global rights into account when evaluating whether you can override such local rules. [https://phabricator.wikimedia.org/T316303]


'''''[[m:Special:MyLanguage/Tech/News|Tech news]]''' prepared by [[m:Special:MyLanguage/Tech/News/Writers|Tech News writers]] and posted by [[m:Special:MyLanguage/User:MediaWiki message delivery|bot]]&nbsp;• [[m:Special:MyLanguage/Tech/News#contribute|Contribute]]&nbsp;• [[m:Special:MyLanguage/Tech/News/2024/22|Translate]]&nbsp;• [[m:Tech|Get help]]&nbsp;• [[m:Talk:Tech/News|Give feedback]]&nbsp;• [[m:Global message delivery/Targets/Tech ambassadors|Subscribe or unsubscribe]].''
I was wondering what I am missing RE formatting, etc...
</div><section end="technews-2024-W22"/>


<bdi lang="en" dir="ltr">[[User:MediaWiki message delivery|MediaWiki message delivery]]</bdi> 00:12, 28 May 2024 (UTC)
Mark Parsons <small><span class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Parsonseditor|Parsonseditor]] ([[User talk:Parsonseditor|talk]] • [[Special:Contributions/Parsonseditor|contribs]]) 21:13, 31 January 2011 (UTC)</span></small><!-- Template:Unsigned --> <!--Autosigned by SineBot-->
<!-- Message sent by User:Quiddity (WMF)@metawiki using the list at https://meta.wikimedia.org/w/index.php?title=Global_message_delivery/Targets/Tech_ambassadors&oldid=26832205 -->


== Relocate mobile/desktop button ==
:The message is a note added by a user, not an automatically generated tag - it won't go away until explicitly removed. I've done so, now. In future, please do feel free to remove the notices when the issue's been resolved! [[User:Shimgray|Shimgray]] | [[User talk:Shimgray|talk]] | 21:24, 31 January 2011 (UTC)


I would like to relocate the mobile view/desktop button to the top of the page (preferably, next to talk or in same line with the page title in the far right corner) for ease of access instead of having to scroll to the bottom each time to switch between mobile and desktop mode. Can this be done? [[User:Qwerty284651|Qwerty284651]] ([[User talk:Qwerty284651|talk]]) 00:18, 28 May 2024 (UTC)
== This is bizarre ==
:{{replyto|Qwerty284651}} I don't think that it can be relocated without a MediaWiki change, for which see [[WP:BUGS]] (it's worth noting that the Cologne Blue desktop skin already has the "Mobile view" link near the upper right, see e.g. [//en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)?useskin=cologneblue VPT under Cologne Blue]). But I'm pretty sure that somebody (not myself) can write some Javascript that will create an additional link in the desired place (the actual Javascript will need to be varied according to the skin). Once it's in place, you can then either leave the existing link alone, or hide it with some CSS: <syntaxhighlight lang=css>/* (i) hide the "Mobile view" link when in desktop; (ii) hide the "Desktop" link when in mobile view */
ul#footer-info li#footer-places-mobileview,
ul#f-list li#mobileview,
ul#footer-places li#footer-places-mobileview,
ul#footer-places li#footer-places-desktop-toggle {
display: none;
}</syntaxhighlight> This goes in {{yourcss}}, as it's skin-universal - the first two selectors are for Modern and MonoBook respectively, the third is for all other current skins, the fourth is for mobile.
:Don't activate it until the replacement link has been set up, otherwise you will lose the ability to toggle the views. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 09:56, 28 May 2024 (UTC)
::@[[User:Redrose64|Redrose64]], looking at the Cologne Blue skin, I see the whole bottom section (languages, last modified, cats, other links) of the page was moved to the top.


::Where can I find the CSS and JS pages for the Cologne Blue skin or any skin currently available, for that matter?
In [[Double (basketball)]], Quadruple-double section, NBA subsection, in the notes, it reads:
::I can always undo the addition in my common.css page if I activate it before link setup. [[User:Qwerty284651|Qwerty284651]] ([[User talk:Qwerty284651|talk]]) 14:11, 28 May 2024 (UTC)
:If you always want to use the desktop view on mobile see [[User:Þjarkur/NeverUseMobileVersion]]. -- <small>LCU</small> '''[[User:ActivelyDisinterested|A<small>ctively</small>D<small>isinterested</small>]]''' <small>''«[[User talk:ActivelyDisinterested|@]]» °[[Special:Contributions/ActivelyDisinterested|∆t]]°''</small> 10:16, 28 May 2024 (UTC)
::@[[User:ActivelyDisinterested|ActivelyDisinterested]], appreciate the proposal. I recently started using mobile version on mobile, mostly have been on desktop before. [[User:Qwerty284651|Qwerty284651]] ([[User talk:Qwerty284651|talk]]) 14:00, 28 May 2024 (UTC)
:::I've always edited on mobile using the desktop site, the script saves me a lot of wasted time. -- <small>LCU</small> '''[[User:ActivelyDisinterested|A<small>ctively</small>D<small>isinterested</small>]]''' <small>''«[[User talk:ActivelyDisinterested|@]]» °[[Special:Contributions/ActivelyDisinterested|∆t]]°''</small> 14:04, 28 May 2024 (UTC)
::::Same here. I only use the mobile version for editing tables in VE, although it can be finicky when switching between selecting cells and editing them. [[User:Qwerty284651|Qwerty284651]] ([[User talk:Qwerty284651|talk]]) 14:20, 28 May 2024 (UTC)


== Bug in table creation ==
"Olajuwon was originally credited a quadruple-double as shown by the box score; however, the NBA stripped Olajuwon of one assist assist after reviewing the game tape.[52]"


If I insert a new column with the GUI by clicking "insert before" on a column with colors in them, it breaks the columns.
However, when I went to remove one "assist", there was only one there. Is this my computer? ~'''''[[User:Editorofthewiki|<font color="#F900">EDDY</font>]]'' <sup>([[User talk:Editorofthewiki|<font color="Green">talk</font>]]/[[Special:Contributions/Editorofthewiki|<font color="Green">contribs</font>]])</sup>'''</span>~ 01:20, 1 February 2011 (UTC)
:It shows only one for me in the rendered text. Have you tried clearing your browser cache? [[User talk:Ucucha|Ucucha]] 01:23, 1 February 2011 (UTC)
:: I see only one "assist", too. I can't think of any reason why that word would appear twice for you; it shouldn't be a cache problem, either, since "assist assist" hasn't appeared in the article before, at least not in the past few dozen edits. <font face="Verdana">[[User:Gary King|<font color="#02b">Gary&nbsp;<b>King</b></font>]]&nbsp;<span style="font-size: 0.9em;">([[User talk:Gary King|<font color="#02e">talk</font>]]&nbsp;·&nbsp;[[User:Gary King/Scripts|<font color="02e">scripts</font>]])</span></font> 03:03, 1 February 2011 (UTC)


See here for an example
== Left floated image overlaps table of contents ==


https://en.wikipedia.org/w/index.php?title=Llama_(language_model)&diff=prev&oldid=1226056830 [[User:Cosmia Nebula|pony in a strange land]] ([[User talk:Cosmia Nebula|talk]]) 09:19, 28 May 2024 (UTC)
[[File:Jingshan park bug.png|thumb|right|TOC and image overlaps]]
:Some VisualEditor features don't work with cell formatting templates which add a pipe as part of the table syntax. The code said <code><nowiki>| rowspan="3" {{yes}}</nowiki></code>. VisualEditor thinks the cell content is <code><nowiki>rowspan="3" {{yes}}</nowiki></code>, but {{tl|yes}} adds both cell attributes and a pipe which separates them from the actual cell content <code>yes</code>. It produces: <code><nowiki>style="background:#9EFF9E;vertical-align:middle;text-align:center;" class="table-yes"|Yes</nowiki></code>. You just have to use the source editor for some things. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 11:27, 28 May 2024 (UTC)
While reading the [[Jingshan Park]] article I noticed that the TOC and image overlapped. I'm using Safari on Mac OS X and the bug only appears if the browser has a particular width, although at other withs the image border can overlap the text.--[[User:Salix alba|Salix]] ([[User talk:Salix alba|talk]]): 12:21, 1 February 2011 (UTC)
:Too many floating element wil cause problems sometimes. I've moved the image to the right. <span style="font-family:'Trebuchet MS',sans-serif"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User_talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 12:45, 1 February 2011 (UTC)


== The obsolete nowrap attribute ==
== [[Special:NewPages]] in reverse order ==


See {{diff|2024 Superbike World Championship|prev|1225740721|this edit}} and [[User talk:Awesometd#nowrap]]. The <code>nowrap</code> attribute on a <code>td</code> element, already deprecated in HTML 4 (December 1997), was marked as obsolete in HTML 5 (October 2014). The user says that they are copying its use from other pages, so does anybody know where in Wikipedia such usage is recommended or even suggested? --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 10:30, 28 May 2024 (UTC)
Currently, [[Special:NewPages]] lists new pages in chronological order from newest to oldest. Users have to make an effort to patrol at the back of the backlog. I have two questions.
:I doubt it's suggested anywhere. A few cases may have been added long ago and some users just copy what they saw in other articles. The user is right that it's used in [[2024 F1 season]]. Unsurprisingly it's also in previous seasons. It's common to start such pages with a copy-paste from another season. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 11:16, 28 May 2024 (UTC)
#Is it possible to make [[Special:NewPages]] list pages in reverse chronological order from oldest to newest?
:At a first estimation there are about [https://en.wikipedia.org/w/index.php?search=insource%3Anowrap+insource%3A%2F%5C%7C+*nowrap%2F&title=Special%3ASearch&profile=advanced&fulltext=1&ns0=1 10k uses of it]; I'm sure someone can refine that. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 15:26, 28 May 2024 (UTC)
#Have we ever considered going in reverse order before?
:There's many more obsolete attributes still being used in tables, such as <code>align</code> or <code>bgcolor</code>. If we truly want to get rid of them, the solution would probably be to extend [[:mw:Extension:Linter|the Linter extension]], so that they'll be listed at [[Special:LintErrors]]. That's probably a discussion to be had over at [[WT:LINT]]. --[[User:Rchard2scout|rchard2scout]] ([[User talk:Rchard2scout|talk]]) 07:56, 29 May 2024 (UTC)
Thanks. - '''''[[User:Hydroxonium|<span style='color:black;background-color:yellow;'>Hydroxonium</span>]]''''' ([[User talk:Hydroxonium|<font color="black">H<sub>3</sub>O<sup>+</sup></font>]]) 15:19, 1 February 2011 (UTC)
:What effort? [http://en.wikipedia.org/w/index.php?title=Special:NewPages&dir=prev&hidepatrolled=1 There's a backlog link] . Anyways, for a history page or NewPages, just add <code>?dir=prev</code> (or <code>&dir=prev</code> if there already is a question mark in the URL) to the URL. [[User:Manishearth|<font color="orange">Manish</font><font color="green">''Earth''</font>]]<sup>[[User talk:Manishearth|<font color="orange">Talk</font>]] • [[Special:Contributions/Manishearth|<font color="green">Stalk</font>]]</sup> 16:07, 1 February 2011 (UTC)
:: Or click on the "earliest" link to go to the earliest pages. <font face="Verdana">[[User:Gary King|<font color="#02b">Gary&nbsp;<b>King</b></font>]]&nbsp;<span style="font-size: 0.9em;">([[User talk:Gary King|<font color="#02e">talk</font>]]&nbsp;·&nbsp;[[User:Gary King/Scripts|<font color="02e">scripts</font>]])</span></font> 17:17, 1 February 2011 (UTC)
:::Oops. I should have clarified that. There are over 1,000 users patrolling the front of the list and only a handful patrolling the back of the list. So several hundred articles fall off the end and aren't reviewed each month. If the list is reversed, then maybe more people would patrol at the end instead of the front. - '''''[[User:Hydroxonium|<span style='color:black;background-color:yellow;'>Hydroxonium</span>]]''''' ([[User talk:Hydroxonium|<font color="black">H<sub>3</sub>O<sup>+</sup></font>]]) 17:36, 1 February 2011 (UTC)
:::: I doubt they'd be willing to change it. It's newest-to-oldest probably because every single page listing edits on Wikipedia are newest-to-oldest (Recent Changes, history pages, even nomination pages like [[WP:FAC]], [[WP:RFA]], etc.). And people are used to newest-to-oldest already. <font face="Verdana">[[User:Gary King|<font color="#02b">Gary&nbsp;<b>King</b></font>]]&nbsp;<span style="font-size: 0.9em;">([[User talk:Gary King|<font color="#02e">talk</font>]]&nbsp;·&nbsp;[[User:Gary King/Scripts|<font color="02e">scripts</font>]])</span></font> 17:38, 1 February 2011 (UTC)


== Mobile view Swiss flag ==
== Problem with contributions not moving after username change ==


There is a bit of an issue on mobile view in when this template: "{{flag|Switzerland}}" (or its variants) is used, the flag will appear stretched horizontally. Also, it’s to be noted this template: "{{flagicon|Switzerland}}" does not have this issue. —[[User:TwinBoo|TwinBoo]] ([[User talk:TwinBoo|talk]]) 11:35, 28 May 2024 (UTC)
Last year, Feb 22 2010, I RTV'd per CHU [http://en.wikipedia.org/w/index.php?title=Special%3ALog&type=&user=&page=User%3ATombstone&year=&month=-1&tagfilter=&hide_review_log=1]. However, not all of my contributions moved over [http://en.wikipedia.org/wiki/Special:Contributions/Tombstone], even though my old userpage claims the username is not registered [http://en.wikipedia.org/w/index.php?title=User_talk:Tombstone&action=edit&redlink=1] and there is no "user contributions" link in the toolbox section. Can the remaining 3 or 400 contributions be moved over to the other username (see [http://en.wikipedia.org/w/index.php?title=Special%3ALog&type=&user=&page=User%3ATombstone&year=&month=-1&tagfilter=&hide_review_log=1] for new user name on 2/22/2010). If not, can they be moved to a similar named username. Rgrds. --[[Special:Contributions/64.85.215.37|64.85.215.37]] ([[User talk:64.85.215.37|talk]]) 19:29, 1 February 2011 (UTC)
:[[:File:Flag of Switzerland (Pantone).svg]] is square. [[MediaWiki:Minerva.css]] says:
:Can't rename a user that doesn't exist. I'll post a note at [[bugzilla:17313]] to see if we can get a dev to intervene. –[[user:xeno|<font face="verdana" color="black">'''xeno'''</font>]][[user talk:xeno|<font color="black"><sup>talk</sup></font>]] 19:35, 1 February 2011 (UTC)
:<syntaxhighlight lang="css">
.flagicon img {
min-width: 23px;
}
</syntaxhighlight>
:<code><nowiki>{{flag|Switzerland}}</nowiki></code> produces:
:<code><nowiki><span class="flagicon">[[File:Flag of Switzerland (Pantone).svg|23x16px|border |alt=|link=]]&nbsp;&nbsp;</span>[[Switzerland|Switzerland]]</nowiki></code>
:I reduced the problem to the combination of <code>flagicon</code> and an empty <code>link=</code>. I only see the mobile issue in the first row below.
{| class="wikitable"
! Code !! Result !! Mobile display size
|-
| <code><nowiki><span class="flagicon">[[File:Flag of Switzerland (Pantone).svg|23x16px|link=]]</span></nowiki></code>
| <span class="flagicon">[[File:Flag of Switzerland (Pantone).svg|23x16px|link=]]</span>
| 23x16px
|-
| <code><nowiki><span class="flagicon">[[File:Flag of Switzerland (Pantone).svg|23x16px|link=Switzerland]]</span></nowiki></code>
| <span class="flagicon">[[File:Flag of Switzerland (Pantone).svg|23x16px|link=Switzerland]]</span>
| 23x23px
|-
| <code><nowiki><span class="flagicon">[[File:Flag of Switzerland (Pantone).svg|23x16px]]</span></nowiki></code>
| <span class="flagicon">[[File:Flag of Switzerland (Pantone).svg|23x16px]]</span>
| 23x23px
|-
| <code><nowiki>[[File:Flag of Switzerland (Pantone).svg|23x16px|link=]]</nowiki></code>
| [[File:Flag of Switzerland (Pantone).svg|23x16px|link=]]
| 16x16px
|-
| <code><nowiki><span class="flagicon">[[File:Flag of Switzerland (Pantone).svg|23px|link=]]</span></nowiki></code>
| <span class="flagicon">[[File:Flag of Switzerland (Pantone).svg|23px|link=]]</span>
| 23x23px
|}
:They all display the 16×16px https://upload.wikimedia.org/wikipedia/commons/thumb/0/08/Flag_of_Switzerland_%28Pantone%29.svg/16px-Flag_of_Switzerland_%28Pantone%29.svg.png. The mobile stretching just varies. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 12:16, 28 May 2024 (UTC)
::The minimum width of a flag on mobile is 23px, because without a minimum width, flag icons risk going to 0x0 inside tables and other common elements when on mobile, due to lack of available width. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 05:45, 29 May 2024 (UTC)
:::But can we make it keep the correct width-height ratio in all circumstances? I added a table row only saying 23px instead of 23×16px, but othwerwise identical to the distorted first row. This displays correctly for me as 23×23px in mobile. It apparently takes three things simultaneously to be distorted in mobile: flagicon, wikitext specifying both height and width, and an empty <code>link=</code> which omits a link on the image. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 11:49, 29 May 2024 (UTC)
::::We could turn it into: <syntaxhighlight lang=css>
.flagicon img {
min-width: 23px;
height: auto !important;
}
</syntaxhighlight> No ideal, but will work I think... —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 12:09, 29 May 2024 (UTC)
:::::It works for me in this section. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 12:42, 29 May 2024 (UTC)

== Template gadgets ==

A discussion regarding the new use of "tempalte gadgets" is now open at [[Wikipedia:Interface_administrators%27_noticeboard#Template_gadgets_-_naming_convention]], please join in there if interested. — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 11:53, 28 May 2024 (UTC)

:Initial testing is available for anyone who would like to opt in to the first one of these. See the current bottom of [[Talk:Conway's Game of Life]] for info. — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 20:09, 29 May 2024 (UTC)

== Issue with cast template visuals, but only on Chrome ==

Was editing the page for [[Ezra (2023 film)|Ezra (2023)]] and noticed that on Google Chrome, there is a huge issue with spacing. Wish I could show screenshots to detail what I see. But underneath 'Cast', I see a large, multi-paragraph jump of just blank, white space. It nearly takes up the whole screen. I do not see this on mobile, nor do I see it on Microsoft Edge -- just Google Chrome. Unsure how to fix this as I'm newer to Wiki. Is anyone seeing the same thing as me, and do they potentially know how to fix? [[User:Squiddyonwiki|Squiddyonwiki]] ([[User talk:Squiddyonwiki|talk]]) 02:02, 29 May 2024 (UTC)

:Not seeing it on my chrome browser (Version 125.0.6422.76, Windows 11), apologies. [[User:Chipmunkdavis|CMD]] ([[User talk:Chipmunkdavis|talk]]) 02:46, 29 May 2024 (UTC)
::I see that {{tlx|cast listing}} sets the style declaration <syntaxhighlight lang=css inline>min-width: min(25em, 100%)</syntaxhighlight> - is Chrome interpreting that as expected? First off, [https://www.w3.org/TR/css-values-4/#comp-func the <code>min(...)</code> function] is in CSS Values and Units Module Level 4, which is still at the W3C Working Draft stage - not all browser vendors will impement it yet. Second, the spec says <blockquote>For all three functions, the argument [https://www.w3.org/TR/css-values-4/#calc-calculation calculations] can resolve to any &lt;number&gt;, &lt;dimension&gt;, or &lt;percentage&gt;, but must have a [https://www.w3.org/TR/css-values-4/#css-consistent-type consistent type] or else the function is invalid; the result’s type will be the consistent type.</blockquote> - by my reading of that spec, <code>25em</code> and <code>100%</code> are not type-consistent. Chrome may be choking on that. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 06:30, 29 May 2024 (UTC)
:::min() is implemented by most of the browsers worth discussing. I think your observation about types is perhaps interesting. However, you are allowed to mix units in these min/max/clamp functions (see examples earlier in the page), and percentage is in a sense a unit...? I also know that CSS columns have a complex formula for how wide they are laid out and the 100% may be interfering with that. And that Chrome only recently (a couple years ago) made their CSS columns implementation much closer to fully specification compliant. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 15:18, 29 May 2024 (UTC)
:That investigation just above aside, there is a possibility this was caused by a change that WMF made because they're thinking about how to make tables display appropriately when the width of the page is too narrow, based on your description of what you saw. The task for that is [[phab:T366119]] and an initial bug report about suboptimal display was [[phab:T366119]], after which there was some adjustment to how it functions - namely restricting this functionality to <code>wikitable</code> class tables. (There is still some things being learned there it looks like - though Isarra sorted most of this a while ago in Timeless....) [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 15:33, 29 May 2024 (UTC)
::That sounds like what I was seeing. What's weird, though, is that I'm on a Macbook now, still Chrome, and it looks normal. But on a Dell the display is what's bugged. Maybe it's based on the size of the laptop's screen? But unsure, because on my Dell on Microsoft Edge it was fine. Either way, I've never had to do a bug report but I will try to figure that out. [[User:Squiddyonwiki|Squiddyonwiki]] ([[User talk:Squiddyonwiki|talk]]) 15:38, 29 May 2024 (UTC)

== Page previews not working ==

Since yesterday, page previews of links haven't worked for me. My "Enable page previews" option is turned on. Can anyone help? Thanks! [[User:LoganP25|LoganP25]] ([[User talk:LoganP25|talk]]) 20:31, 29 May 2024 (UTC)
:{{ping|LoganP25}} Do you have an "Edit preview settings" link at the bottom of pages? If so, can you enable it there? [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 20:53, 29 May 2024 (UTC)
::I don't think so [[User:LoganP25|LoganP25]] ([[User talk:LoganP25|talk]]) 21:12, 29 May 2024 (UTC)
:::{{ping|LoganP25}} It should be to the right of "Mobile view" if you have it. Do previews work if you log out? Do you have the link there? Do previews work at https://en.wikipedia.org/wiki/Example?safemode=1, logged in or out? Does it work to disable previews at [[Special:Preferences#mw-prefsection-rendering]], save preferences, enable it again and save again? "Navigation popups" should be disabled at [[Special:Preferences#mw-prefsection-gadgets]] if you use page previews. Is it? [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 21:28, 29 May 2024 (UTC)
::::There's nothing to the right of "Mobile view" for me. Previews work when I'm logged out, but are broken again when I log back in. Previews don't work at the link you sent, and still don't after turning them off and on again. Navigation popups is disabled. Quite the enigma lol. [[User:LoganP25|LoganP25]] ([[User talk:LoganP25|talk]]) 22:21, 29 May 2024 (UTC)
:::::{{ping|LoganP25}} What is your skin at [[Special:Preferences#mw-prefsection-rendering]]? What is your browser? Do previews work logged in at other wikis like [[:simple:Example]]? You may have to first enable them in preferences there. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 22:39, 29 May 2024 (UTC)
::::::My skin is Vector legacy, and I'm browsing on Google Chrome. Previews do work in other wikis, I hadn't thought to check that, but not in the English wikipedia. [[User:LoganP25|LoganP25]] ([[User talk:LoganP25|talk]]) 22:47, 29 May 2024 (UTC)

== Production table formatting for correct text alignment ==

An experienced editor informed me that a table format - used over years with no negative feedback on numerous articles to display crop production data - "crashes" the text aligning to it in the right text margin. The editor says it works fine in Chrome, but doesn't on any browsers tried on a Windows PC.

The original table format parameters are
<pre>
{| class="wikitable" style="float:right; clear:left; width:14em; text-align:center;"
|-
! colspan=2|Mango* production – 2022
|-
! style="background:#ddf; width:75%;"| Country
! style="background:#ddf; width:25%;"| <small>millions of [[tonne]]s</small>
|-
</pre>
The editor made a change based on a "wikitable floatright" parameter plus internal table formatting (column alignment left or right) using:
<pre>
{| class="wikitable floatright" style="width:15em; margin: 20px 20px 0px 20px"
|-
! colspan=2|Mango* production – 2022
|-
! style="background:#ddf;"| Country
! style="background:#ddf;"| <small>millions of [[tonne]]s</small>
|-
</pre>
[https://en.wikipedia.org/w/index.php?title=Mango&action=history This is the history of editing]. Please comment on parameters with potential text-table alignment effects:


# style="float:right
== Way to get the number of empty subcategories - API ==
# clear:left
# style="background:#ddf; width: and the respective 75% and 25% (removed in the revision)
# the editor's revision: style="width:15em; margin: 20px 20px 0px 20px"
# table display effect on text alignment of different browsers using a Chromebook vs. Windows PC (vs. Apple).


Thanks for looking into this. [[User:Zefr|Zefr]] ([[User talk:Zefr|talk]]) 22:27, 29 May 2024 (UTC)
I currently run a bot that [http://en.wikipedia.org/w/index.php?title=User:OgreBot/emptycats&curid=30343713&diff=411467214&oldid=411430696 checks] for all the empty subcategories of [[:Category:Wikipedia files with a different name on Wikimedia Commons]] and [[Category:Wikipedia files with a different name on Wikimedia Commons]] and [[:Category:Wikipedia files with the same name on Wikimedia Commons]]. The only way I know how to do this on the API is to actually run a separate query for each subcategory. That means that any time I want to run the update (~1-3 times per day), I have to make ~1200 queries to the server, which is probably obnoxious to it. Is there a way to do this any quicker? I note that the HTML version of the page shows 200 subcategories a time (just click on either category and you'll see what I mean). [[User:Magog the Ogre|Magog the Ogre]] ([[User talk:Magog the Ogre|talk]]) 23:30, 1 February 2011 (UTC)

Latest revision as of 23:01, 29 May 2024

 Policy Technical Proposals Idea lab WMF Miscellaneous 
The technical section of the village pump is used to discuss technical issues about Wikipedia. Bug reports and feature requests should be made in Phabricator (see how to report a bug). Bugs with security implications should be reported differently (see how to report security bugs).

If you want to report a JavaScript error, please follow this guideline. Questions about MediaWiki in general should be posted at the MediaWiki support desk. Discussions are automatically archived after remaining inactive for five days.

Configuring Git for Gerrit[edit]

I have a sort of "hello, world" MediaWiki coding change I'd like to submit as my first-ever contribution to MediaWiki, and to get myself started and oriented with the system for submitting coding changes. If all goes well with that, I hope to follow that up with a more substantial change sometime, hopefully soon, after that. I already have a Wikimedia developer account, with accounts on MediaWiki and Wikitech. My usernames there, including my SSH access (shell) username, are the same as my English Wikipedia username. Now mw:Gerrit/Tutorial#Configure Git is telling me I need to have my "own Gerrit username". Is this a name which is unique to Gerrit, and not used anywhere else, such as the Toolforge? Also, I see on the Gerrit settings page a "Username" (is that the same as Git's "own Gerrit username"?), "Full name", and "Display name" – how are each of these used? Which of these names are used for the CREDITS page, the list that's updated by updateCredits.php? wbm1058 (talk) 20:35, 17 May 2024 (UTC)[reply]

Your Gerrit username is more properly your developer account username, which is the same as on Toolforge and other places. For those three fields, username is what you log in as, I don't think Full name is used anywhere, and display name is how your name appears on the Gerrit UI. updateCredits.php seems to parse "git log", so the name used is whatever shows up in Git, which usually is the same as one of the above but not necessarily. * Pppery * it has begun... 20:52, 17 May 2024 (UTC)[reply]
Full name is actually what's used for sign-ins via web UIs (Wikitech, Toolsadmin). "Username" is only used for SSH access (toolforge / git review). The CREDITS page uses the name from git log, which you'd set through the git config --global user.name command. – SD0001 (talk) 21:22, 17 May 2024 (UTC)[reply]
Oh, oops, aparently I'm just as confused. * Pppery * it has begun... 21:24, 17 May 2024 (UTC)[reply]
Thanks. Further complicating naming matters, I see there is an "LDAP" (Lightweight Directory Access Protocol) username. See wikitech:SRE/LDAP. Per wikitech:SRE/LDAP/Renaming users, "We do not rename users (Developer accounts) anymore. It can (and has) lead to various problems and errors all over the many separate systems which consume Developer accounts as their local databases and authentication methods will get out of sync." So I guess I'm stuck for now with the name I have (not that I want to change it). But a reason for proceeding cautiously here. I don't want to stumble into doing something irreversible that I wish I'd done differently later, after I figured out what I was actually doing, rather than signing up for it by trial and error. I don't recall seeing the mw:Developer account page before, and I think I created mine before the Create a Wikimedia developer account form was created. Today I just ran into the Bitu Identity Manager, which shows me "My LDAP properties". (see wikitech:IDM). Phabricator says my LDAP User is "Unknown". I don't know if there's a way I can personally make it known, or whether it being unknown is a problem. – wbm1058 (talk) 22:14, 17 May 2024 (UTC)[reply]
I think theres basically 2 logins. #1 is the oauth / centralauth / all wikis but wikitech one. #2 is ldap / gerrit / toolforge / wikitech. Lots of synonyms here. I forget if phabricator is one of those two, or a third one. –Novem Linguae (talk) 22:26, 17 May 2024 (UTC)[reply]
I suppose Phabricator is probably bilingual. Obviously I sign into it using my #1 because my #2 is unknown to the phabulous Phabricator. On the other hand, there must be some developers using it who may not have a #1. – wbm1058 (talk) 22:43, 17 May 2024 (UTC)[reply]
Yes, phab supports sign-in via either of the two. You can still link phab with the other account through Settings > External accounts. – SD0001 (talk) 06:21, 18 May 2024 (UTC)[reply]
Facepalm Facepalm I looked at that screen twice and all I saw was date & time settings! Thanks! Now my account is linked with all (two) available providers. – wbm1058 (talk) 10:45, 18 May 2024 (UTC)[reply]
Shout-out to @BMueller (WMF):. I watched your online presentation given at last month's conference in Portland and thought you might be interested in reading this thread. Enjoyed meeting you in Toronto last year. – wbm1058 (talk) 23:21, 17 May 2024 (UTC)[reply]
Now I just found and opened the Gerrit Code Review - User Privacy page... so Google, as well as Wikimedia, is part of the loop! layers upon layers – wbm1058 (talk) 11:29, 18 May 2024 (UTC)[reply]
Hmm, Gerrit is a Dutch male name meaning "brave with the spear", the Dutch and Frisian form of Gerard. And Gerrit (software) was authored by Google. Whereas Git was written by the guy behind Linux. Learn something new every day. wbm1058 (talk) 11:48, 18 May 2024 (UTC)[reply]
When asked why he called the new software, 'git', British slang meaning 'a rotten person', Torvalds said 'I'm an egotistical bastard, so I name all my projects after myself. First Linux, now git.' Ha! wbm1058 (talk) 12:00, 18 May 2024 (UTC)[reply]
Google is not part of the loop exactly. Google wrote the software, but it's open-source and the website https://gerrit.wikimedia.org is hosted by Wikimedia with no involvement from Google. * Pppery * it has begun... 13:23, 18 May 2024 (UTC)[reply]
More from the "I figured out what was happening only after it already happened" department. Wikimedia Code Review https://gerrit.wikimedia.org/r/settings says I registered @ Monday, May 13, 2024, 9:08:55 PM UTC-04:00 ... what? I don't recall doing anything specific to "register" there last Monday. What was I doing at that time? I thought per mw:Gerrit/Tutorial I had to configure Git in order to register for Gerrit, but here I am already registered for Gerrit, and I haven't configured Git yet! O I C. I think I was looking at a previous code review related to the task I'd decided to work on, when I noticed "Sign up" and "Sign in" links on the upper right corner of that page. Clicking "Sign up" took me to this new IDM "Create account" page to create a Wikimedia developer account. Hey, I thought, I think I already have one of those that I needed for Wikitech/Toolforge. So I left that page, and clicked "Sign in". Voila, my Wikitech password got me in. I thought I had simply logged into Gerrit, not registered for it. What I didn't realize was that the "Bitu Identity Manager" would not only sign me in, but register me as well! wbm1058 (talk) 16:12, 18 May 2024 (UTC)[reply]

SSH keys[edit]

I already have SSH keys set up for Toolforge at Toolsadmin which I use on PuTTY and WinSCP but not directly from the Windows command prompt.

mw:SSH keys seems to indicate that I can't use my Toolsadmin SSH but will need another one, set up from the Windows command prompt. Correct?

Also, regarding configuring Git personal information. The guide says "You should have to do this only once." Is that literally true, or does it mean once on my desktop and once on my laptop, if I have two machines that I might want to submit code from? wbm1058 (talk) 18:06, 18 May 2024 (UTC)[reply]

@Wbm1058 You can reuse the same SSH key across multiple projects (in this case toolsadmin and Gerrit). The tutorial assumes that you have not setup the keys before.
Regarding the configuration of Git, you will need to do it once per machine. Sohom (talk) 23:08, 18 May 2024 (UTC)[reply]
My desktop is still running Windows 7. I know, I know, long in the tooth, but I'm proud to have kept it going for 14 years and would like to make it to 15. It still works for me, for the most part. I've downloaded the production version MediaWiki 1.41.1 and have it running for debugging. I generated my SSH keys with PuTTYgen, since the Windows 7 command prompt does not support the ssh command. I suppose I'd need to use PuTTY on that machine to connect to Gerrit, as I use it to connect to the Toolforge bastion. I think I can figure that out; haven't found documentation on how to use Gerrit on a Windows 7 machine. I haven't set up SSH on my Windows 10 laptop yet (only do Toolforge from my desktop). I don't know how to copy my keys from PuTTY to the required location on Windows 10. Might be easier to generate new keys on Windows 10. I have an ssh-rsa key for Toolforge access; the documentation says to use the ed25519 type for optimum security and performance. Can I use different SSH keys on each machine? wbm1058 (talk) 16:53, 19 May 2024 (UTC)[reply]
As a matter of fact, you are kind of expected to use different keys per user per machine. That’s why all the ssh settings of toolforge and Gerrit allow you to add multiple public keys. —TheDJ (talkcontribs) 16:58, 19 May 2024 (UTC)[reply]
What TheDJ said, you are expected different SSH keys across machines. However, if you are using one machine, you can reuse the key across multiple things (I have mine on Github/Gitlab/Toolforge and Gerrit as well as a bunch of private services). Sohom (talk) 18:15, 19 May 2024 (UTC)[reply]
OK, thanks! New state-of-the-art ed25519 keys generated and installed for my Windows 10 laptop (which MSFT tells me will be unsupported after next year, and my hardware is too old to run Windows 11(.
I successfully did a git clone. I'm a bit confused by the instructions at mw:Download from Git#Download for development:
"This clones the entire MediaWiki core repository, synced to the master branch, into a sub-directory named mediawiki"
I previously installed MediaWiki 1.40.1 on my laptop last November at the Toronto wikiconference, by downloading the then-current version from mw:Download, and successfully installed that, for testing.
I want to overwrite my previous 1.40.1 installation with the new files I just git got.
The standard mediawiki directory holds core and data sub-directories.
It doesn't appear that the git download includes any data. It appears to be a core directory, which includes some extra files that aren't part of the mw:Download version. Why don't the instructions say to download to a sub-directory named core rather than a sub-directory named mediawiki?
Oh, I see. mw:Manual:Upgrading#Using Git:
If using Git, export the files into a clean location, and then copy the old customized files into the new location as described in the previous section.
You will also need to install some external PHP libraries using Composer or a provided collection maintained for the Wikimedia wiki farm. More details on installing and updating external libraries can be found in the Git download documentation
So, for some reason, although I can test using 1.40.1 without having any PHP problems, I'll need to figure out this "Composer" thing in order to do development testing.
Hopefully it's not a problem that I'm running the PHP 8.2.12 Development Server – wbm1058 (talk) 23:11, 19 May 2024 (UTC)[reply]
I think all mediawiki unit tests are passing on php 8.1. Not sure about php 8.2. May want to switch to 8.1 to prevent hard to diagnose bugs. –Novem Linguae (talk) 00:45, 20 May 2024 (UTC)[reply]
The tests pass on php 8.2 as well [1], – SD0001 (talk) 12:16, 20 May 2024 (UTC)[reply]

Composer[edit]

c:\php\mediawiki\core>php maintenance/run.php update.php
Error: You are missing some external dependencies.
MediaWiki has external dependencies that need to be installed via Composer or from a separate repository. Please see
https://www.mediawiki.org/wiki/Manual:Installation_requirements#PHP and
https://www.mediawiki.org/wiki/Download_from_Git#Fetch_external_libraries
for help on installing the required components.

I don't think submodules is what you need. The php maintenance/run.php update.php script just wants you to composer install in the mediawiki directory, that should download the required directories. Sohom (talk) 14:34, 20 May 2024 (UTC)[reply]
Indeed only the second link is relevant here. I'm clarifying this message in https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1034113. Thanks for writing all of this up, it's helpful to see things from a different perspective sometimes. Matma Rex talk 16:07, 20 May 2024 (UTC)[reply]

c:\php\mediawiki>composer update --no-dev
Composer could not find a composer.json file in c:\php\mediawiki To initialize a project, please create a composer.json file. See https://getcomposer.org/basic-usage

I'm going to reboot my machine and try again. Composer install warned me that I might have a PATH problem. wbm1058 (talk) 15:56, 20 May 2024 (UTC)[reply]
Judging by your previous comments, you're just not in the directory that Composer expects – try going to c:\php\mediawiki\core, where you (and Composer) should find the composer.json file. Matma Rex talk 16:09, 20 May 2024 (UTC)[reply]
Yes, thanks, that was it. Once again the instructions misled me: "then run composer update --no-dev from your MediaWiki core directory." It's still running. This step takes significant time! wbm1058 (talk) 16:20, 20 May 2024 (UTC)[reply]
I think it worked. The console log is long, with a pile of "failed to download" warning messages, but it appears to have successfully worked around all of them. Here's the end of the log, showing just the last 3 of many installations:
  - Installing wikimedia/timestamp (v4.1.1): Cloning 138f3099b4 from cache
  - Installing wikimedia/xmp-reader (0.9.1): Cloning 8338d67969 from cache
  - Installing zordius/lightncandy (v1.2.6): Cloning b451f73e8b from cache
44 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating optimized autoload files
11 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> MediaWiki\Composer\ComposerVendorHtaccessCreator::onEvent
No security vulnerability advisories found.

I think I'm ready to try running update.php again. – wbm1058 (talk) 16:51, 20 May 2024 (UTC)[reply]

c:\php\mediawiki\core>php maintenance/run.php update.php
Error: The MinervaNeue skin cannot be loaded. Check that all of its files are installed properly.

  1. 0 C:\php\mediawiki\core\includes\GlobalFunctions.php(91): ExtensionRegistry->queue('C:\\php\\mediawik...')
  2. 1 C:\php\mediawiki\core\LocalSettings.php(166): wfLoadSkin('MinervaNeue')
  3. 2 C:\php\mediawiki\core\includes\Setup.php(216): require_once('C:\\php\\mediawik...')
  4. 3 C:\php\mediawiki\core\maintenance\run.php(49): require_once('C:\\php\\mediawik...')
  5. 4 {main}

PHP Fatal error: Error Loading extension. Unable to open file C:\php\mediawiki\core/skins/MinervaNeue/skin.json: filemtime(): stat failed for C:\php\mediawiki\core/skins/MinervaNeue/skin.json in C:\php\mediawiki\core\includes\registration\MissingExtensionException.php on line 96 Fatal error: Error Loading extension. Unable to open file C:\php\mediawiki\core/skins/MinervaNeue/skin.json: filemtime(): stat failed for C:\php\mediawiki\core/skins/MinervaNeue/skin.json in C:\php\mediawiki\core\includes\registration\MissingExtensionException.php on line 96

Sigh. I didn't need no extensions when testing changes to the official release core page-moving functions. Now I do. – wbm1058 (talk) 18:04, 20 May 2024 (UTC)[reply]
You shouldn't need any extensions to run MediaWiki core. It's only trying to load the MinervaNeue skin, because you have a line in your LocalSettings.php like wfLoadSkin('MinervaNeue'); (maybe you copied it from your previous installation?). You can remove it or comment it out if you don't want it.
If you do want it, then you can install the skin using Git similarly to how you installed MediaWiki, just replacing the path in the git clone command: instead of mediawiki/core, use mediawiki/skins/MinervaNeue (and make sure to put it in the skins directory, where MediaWiki is looking for it). Similarly for all other skins and extensions. Matma Rex talk 18:13, 20 May 2024 (UTC)[reply]
Thanks! I just used the default LocalSettings.php that came with the release-version installation. Figuring I only need one skin, I just copied the folder from my backup of the release version, and commented out the others. That did the trick, and the database update looks like it ran successfully. – wbm1058 (talk) 20:28, 20 May 2024 (UTC)[reply]

MediaWiki internal error.

Original exception: [6d2f7f0574eb09bb447c9687] /index.php/Main_Page Error: Class "ResourceLoaderSkinModule" not found
Backtrace:
from C:\php\mediawiki\core\includes\ResourceLoader\ResourceLoader.php(417)

Another missing piece. The console log looks good, but this come up on the webpage. – wbm1058 (talk) 21:04, 20 May 2024 (UTC)[reply]

Did you git clone, composer install, and npm ci inside your default skin? Probably skins/Vector –Novem Linguae (talk) 21:17, 20 May 2024 (UTC)[reply]
The ResourceLoaderSkinModule class was recently renamed (gerrit:994854). It seems that you've just updated your MediaWiki to a version that doesn't have it any more, but one of your skins is an older version that is still using it. This will occasionally happen with skins and extensions.
If you've already installed the skin from Git, running git pull in the affected skin's repository should fix it. If you haven't, it's probably best if you do :) but you can also remove it from LocalSettings.php, or download the latest master snapshot from SkinDistributor/ExtensionDistributor. Matma Rex talk 21:51, 20 May 2024 (UTC)[reply]
Thanks for the nice, detailed response. mw:Special:SkinDistributor/Vector even offers the "master (latest development version)" but https://extdist.wmflabs.org/dist/skins/Vector-master-685a02f.tar.gz gives me a 404 Not Found error. I'll just figure out how to git it the preferred way ) wbm1058 (talk) 00:23, 21 May 2024 (UTC)[reply]
Weird, that link works for me now. Maybe it took a few minutes to generate. Matma Rex talk 00:35, 21 May 2024 (UTC)[reply]
Indeed. Just worked for me too. But rather than tinker with telling my Windows how to unzip that "gz" file ("Look for an app in the Miocrosoft Store"?!), I'm going to mw:Download from Git#Using Git to download MediaWiki skins.
Follow the exact same procedure as for extensions (described in the previous section), but using skins rather than extensions in all URLs and paths. wbm1058 (talk) 01:01, 21 May 2024 (UTC)[reply]

c:\php\mediawiki\core\skins>git clone https://gerrit.wikimedia.org/r/mediawiki/skins/Vector
Cloning into 'Vector'...
Enter passphrase for key '/c/Users/Bill/.ssh/id_ed25519':
remote: Counting objects: 99, done
remote: Finding sources: 100% (94/94)
remote: Getting sizes: 100% (70/70)
remote: Compressing objects: 100% (1041262/1041262)
remote: Total 37958 (delta 29), reused 37891 (delta 9)
Receiving objects: 100% (37958/37958), 11.37 MiB | 8.91 MiB/s, done.
Resolving deltas: 100% (28242/28242), done.

c:\php\mediawiki\core\skins>

Appears to have worked. – wbm1058 (talk) 01:17, 21 May 2024 (UTC)[reply]

 Done. Success. I have a development environment which seems to be operating identically with the official-release environment I just replaced. Tomorrow I move to the next step. Make minor "hello, world!" type changes in two files, and then figure out how to submit them for review. FYI, the project I'm working on, where I hope to make more substantial enhancements soon, is discussed on my talk: User talk:Wbm1058#My MediaWiki core developers thread. – wbm1058 (talk) 01:40, 21 May 2024 (UTC)[reply]

mw:Local development quickstart[edit]

It's just that the way you have cloned the repo is unconventional. mediawiki/core should be cloned to a directory named "mediawiki", not "core".
I think you will have a lot easier time going through mw:Local development quickstart instead, which unfortunately isn't advertised more prominently. You may want to discard the existing mediawiki install and use the quick start. You have already done step 1, so start with step 2. It's easy! – SD0001 (talk) 16:40, 20 May 2024 (UTC)[reply]
That "quick start" page has stuff I've already done previously, and insufficient info about stuff I needed to do.
I've had an "official release" version installed on my laptop since November. It makes a lot of sense to me to have started that way, because as complicated as installing the official release was, installing the developers' version is way more complicated yet.
  • I've had PHP installed directly on Windows for over a decade now. My bots use that.
  • There was no need for me to update my php.ini file to load the required PHP extensions. I already did that a long time ago. The problem is that this "composer" system basically "ignores" that, it seems to me.
  • It just says to "use Git" to clone the core, as if that's easy. No it wasn't. See above for what steps I went through to figure it out.
  • I installed SQLite already last year; I don't need to do that again.
  • I already knew how to start my server, though I was told by someone to use "localhost:80" in Boston in 2019, not "localhost:4000". I don't know whether it matters which number I use there.
What I need is a "quickstart" page for upgrading from an "official release" version to the developers' version. – wbm1058 (talk) 17:28, 20 May 2024 (UTC)[reply]
1 and 2. yes I said as much - you have already done step 1.
3. There's no need to configure git before cloning repos. The steps from mw:Gerrit/Tutorial#Configure_Git are only to prepare for pushing changes.
4. composer mw-install:sqlite is not for installing sqlite (not required). Instead it initialises MediaWiki itself with sqlite as the db backend. This is a shortcut to avoid going through the web installer.
5. Running something on port 80 is only advisable on linux. On Windows/macOS, it's better to use a non-reserved port (> 1023) to avoid issues with firewalls.
What I need is a "quickstart" page for upgrading from an "official release" version to the developers' version. The easiest way to do that is to delete or forget about the release version and setup the developers' version from scratch. – SD0001 (talk) 17:56, 20 May 2024 (UTC)[reply]
What I did need to do before cloning was download and install Git, and setup SSH to use it. None of that was necessary to download and install the release version, which makes installing the release version an easier task.
Oh I see. a shortcut to avoid going through the web installer... well, now I know. I was wondering how that was done. But now, water under the bridge. I'd like to keep the database I started last year, for sentimental reasons, and just upgrade. I think upgrading should be easier than installing from scratch every time.
I've noted that my server runs really slowly on my system. Wrote that off as bloatware overwhelming my 14-year old processor, but, now that you mention it, could be a symptom of firewall intervention. I'll switch to port 4000 and see whether that runs faster.
I also noticed mw:Gerrit/Tutorial/tl;dr, and have kept that open in another browser window for comparison and reference. – wbm1058 (talk) 20:17, 20 May 2024 (UTC)[reply]

git-review[edit]

Running command as an administrator:

Microsoft Windows [Version 10.0.19045.4412] (c) Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>pip install git-review
Collecting git-review

Downloading git_review-2.4.0-py3-none-any.whl.metadata (2.0 kB)

Collecting requests>=1.1 (from git-review)

Downloading requests-2.32.1-py3-none-any.whl.metadata (4.6 kB)

Collecting charset-normalizer<4,>=2 (from requests>=1.1->git-review)

Downloading charset_normalizer-3.3.2-cp312-cp312-win_amd64.whl.metadata (34 kB)

Collecting idna<4,>=2.5 (from requests>=1.1->git-review)

Downloading idna-3.7-py3-none-any.whl.metadata (9.9 kB)

Collecting urllib3<3,>=1.21.1 (from requests>=1.1->git-review)

Downloading urllib3-2.2.1-py3-none-any.whl.metadata (6.4 kB)

Collecting certifi>=2017.4.17 (from requests>=1.1->git-review)

Downloading certifi-2024.2.2-py3-none-any.whl.metadata (2.2 kB)

Downloading git_review-2.4.0-py3-none-any.whl (52 kB)

---------------------------------------- 52.9/52.9 kB 547.6 kB/s eta 0:00:00

Downloading requests-2.32.1-py3-none-any.whl (63 kB)

---------------------------------------- 63.7/63.7 kB 862.4 kB/s eta 0:00:00

Downloading certifi-2024.2.2-py3-none-any.whl (163 kB)

---------------------------------------- 163.8/163.8 kB 2.0 MB/s eta 0:00:00

Downloading charset_normalizer-3.3.2-cp312-cp312-win_amd64.whl (100 kB)

---------------------------------------- 100.4/100.4 kB 1.2 MB/s eta 0:00:00

Downloading idna-3.7-py3-none-any.whl (66 kB)

---------------------------------------- 66.8/66.8 kB 725.6 kB/s eta 0:00:00

Downloading urllib3-2.2.1-py3-none-any.whl (121 kB)

---------------------------------------- 121.1/121.1 kB 1.8 MB/s eta 0:00:00

Installing collected packages: urllib3, idna, charset-normalizer, certifi, requests, git-review
Successfully installed certifi-2024.2.2 charset-normalizer-3.3.2 git-review-2.4.0 idna-3.7 requests-2.32.1 urllib3-2.2.1

Per instructed at mw:Gerrit/Tutorial#Setting up git-review:

c:\php\mediawiki\core>git review -s --verbose
git: 'review' is not a git command. See 'git --help'.

c:\php\mediawiki\core>git-review -s --verbose
'git-review' is not recognized as an internal or external command, operable program or batch file.

?? – wbm1058 (talk) 14:09, 21 May 2024 (UTC)[reply]

It looks like the directory where git-review got installed is not in your %PATH% environment variable. First of all, try closing the command-line window and opening it again, and retry – maybe it is just seeing outdated env variables.
If that doesn't help, you'll need to change that env variable, the option to do that is somewhere in your operating system settings. Add the directory where git-review is, probably something like like C:/Python310/Scripts/ (that's where it is on my machine). Note that you need to open a new command-line window every time for the changes to take effect when testing.
(If I recall, there's a checkbox to do that automatically when you install Python, which you may have left unchecked. You can also try reinstalling Python and finding that checkbox.) Matma Rex talk 15:04, 21 May 2024 (UTC)[reply]
Yes, I checked the box on the Python installation. Closing my command window and opening a new one did the trick, of course. The instructions could explicitly say to do that. Thanks again for all your help – wbm1058 (talk) 15:20, 21 May 2024 (UTC)[reply]
  • That directory has a .gitreview file in it, with the following content:

host=gerrit.wikimedia.org
port=29418
project=mediawiki/core.git
track=1
defaultrebase=0

Is that good? wbm1058 (talk) 14:58, 21 May 2024 (UTC)[reply]

review installation log[edit]

c:\php\mediawiki\core>git review -s --verbose
2024-05-21 11:12:37.452765 Running: git config --get gitreview.remote
2024-05-21 11:12:37.468379 ... gitreview.remote = origin
2024-05-21 11:12:37.468379 Config['remote'] = origin
2024-05-21 11:12:37.468379 Running: git config --get gitreview.branchauthor
2024-05-21 11:12:37.499631 Config['branchauthor'] = name
2024-05-21 11:12:37.499631 Running: git symbolic-ref -q HEAD
2024-05-21 11:12:37.530879 Running: git for-each-ref --format=%(upstream) refs/heads/master
Following tracked origin/master rather than default origin/master
2024-05-21 11:12:37.609011 Running: git config --get gitreview.scheme
2024-05-21 11:12:37.671503 Config['scheme'] = ssh
2024-05-21 11:12:37.671503 Running: git config --get gitreview.hostname
2024-05-21 11:12:37.687125 Config['hostname'] = gerrit.wikimedia.org
2024-05-21 11:12:37.687125 Running: git config --get gitreview.port
2024-05-21 11:12:37.718370 Config['port'] = 29418
2024-05-21 11:12:37.718370 Running: git config --get gitreview.project
2024-05-21 11:12:37.749619 Config['project'] = mediawiki/core.git
2024-05-21 11:12:37.749619 Running: git log --color=never --oneline HEAD^1..HEAD
2024-05-21 11:12:38.687096 Running: git remote
2024-05-21 11:12:38.765224 Running: git branch -a --color=never
2024-05-21 11:12:38.890218 Running: git rev-parse --show-toplevel --git-dir
2024-05-21 11:12:38.937083 Running: git config --get core.hooksPath
2024-05-21 11:12:38.983962 Running: git config --get core.hooksPath
2024-05-21 11:12:39.015203 Running: git submodule foreach cp -p .git\hooks\commit-msg "$(git rev-parse --git-dir)/hooks/"

c:\php\mediawiki\core>

I don't see the "found origin push URL" and "fetching commit hook" that the instructions said I should see. – wbm1058 (talk) 15:47, 21 May 2024 (UTC)[reply]

The instructions are probably outdated and everything is probably okay. git-review is being somewhat actively developed, and the example output in mw:Gerrit/Tutorial#Setting_up_git-review has a 2019 date. If it didn't work, you'll find out later if you get an error complaining about a missing Change-Id line. Matma Rex talk 20:57, 21 May 2024 (UTC)[reply]

I don't know whether that's a problem or not, but I proceeded as if it wasn't.

c:\php\mediawiki\core>git pull --rebase origin master
Enter passphrase for key '/c/Users/Bill/.ssh/id_ed25519':
remote: Counting objects: 11860, done
remote: Finding sources: 100% (60/60)
remote: Getting sizes: 100% (26/26)
remote: Compressing objects: 100% (108354/108354)
remote: Total 60 (delta 35), reused 35 (delta 28)
Unpacking objects: 100% (60/60), 36.46 KiB | 13.00 KiB/s, done.
From ssh://gerrit.wikimedia.org:29418/mediawiki/core

* branch master -> FETCH_HEAD
2d68215ff7a..25895192125 master -> origin/master

Successfully rebased and updated refs/heads/T12814-hello.

c:\php\mediawiki\core>git review -R
wbm1058@gerrit.wikimedia.org: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

If you get a Permission denied (publickey). fatal: Could not read from remote repository., review the instructions at mw:SSH keys#Add SSH Private key to use with Git to make sure your ssh agent is running and your identity is added. If you close your Git Bash shell, you will be signed out and need to re-follow these instructions each time.

c:\php\mediawiki\core>eval `ssh-agent`
'eval' is not recognized as an internal or external command,
operable program or batch file.

Is there a way to run git bash from the Windows cmd prompt?

Inside a git bash window:

Bill@Mobile-laptouch MINGW64 ~
$ eval `ssh-agent`
Agent pid 272

Bill@Mobile-laptouch MINGW64 ~
$ ssh-add ~/.ssh/id_ed25519
Enter passphrase for /c/Users/Bill/.ssh/id_ed25519:
Identity added: /c/Users/Bill/.ssh/id_ed25519 (wbm1058-wikipedia@yahoo.com)

Then I went back to Windows command window, tried "review" again, and still got the "permission denied" error. – wbm1058 (talk) 20:28, 21 May 2024 (UTC)[reply]

I haven't seen this exact error before, and your setup is rather different from mine, so this is a guess, but: the eval `ssh-agent` command actually works by setting environment variables, which everything else on your system can read to access the SSH agent. Maybe you just need to close and reopen the command prompt window again, so that it sees the new env variables? Matma Rex talk 21:02, 21 May 2024 (UTC)[reply]
"Is there a way to run git bash from the Windows cmd prompt?" You can run something like "C:\Program Files\Git\usr\bin\bash.exe" from the command prompt, and it will run, but this is unlikely to do anything good. It will probably be confused about text encodings, file paths, and ANSI escape codes. (On Windows 10, they're slightly less incompatible.) Can you say why you want to do it? Matma Rex talk 21:15, 21 May 2024 (UTC)[reply]
(edit conflict) I just tried doing it from my git bash window instead of command prompt...

Bill@Mobile-laptouch MINGW64 /c/php/mediawiki/core (T12814-hello)
$ git review -R
remote:
remote: Processing changes: new: 1 (\)
remote: Processing changes: new: 1 (|)
remote: Processing changes: new: 1 (/)
remote: Processing changes: new: 1 (-)
remote: Processing changes: new: 1 (\)
remote: Processing changes: new: 1 (|)
remote: Processing changes: refs: 1, new: 1 (|)
remote: Processing changes: refs: 1, new: 1 (|)
remote: Processing changes: refs: 1, new: 1, done
remote:
remote: SUCCESS
remote:
remote: https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1034588 Show the page name on the MovePage checkbox for "Yes, delete the page" [NEW]
remote:
To ssh://gerrit.wikimedia.org:29418/mediawiki/core.git

* [new reference] HEAD -> refs/for/master%topic=T12814-hello

I guess that worked?! wbm1058 (talk) 21:11, 21 May 2024 (UTC)[reply]

Yep, that worked. * Pppery * it has begun... 21:15, 21 May 2024 (UTC)[reply]
Yeah, just doing everything from the Git Bash window is probably the best way to have the least amount of weird issues. Matma Rex talk 21:16, 21 May 2024 (UTC)[reply]
Time for a lager! Cheers! :) wbm1058 (talk) 21:25, 21 May 2024 (UTC)[reply]

Rebase[edit]

Matma Rex, responding to your request at code review to edit another file. Per the instructions at mw:Gerrit/Tutorial#Rebasing, I clicked on the REBASE button in Gerrit's web interface, and it responded with a "Confirm rebase" box with radio buttons for "Rebase on top of the master branch" or "Rebase on a specfic change, ref, or commit". I'm unclear on which I should choose, and whether to check the "Allow rebase with conflicts" box. "It's best to make rebase updates a separate patch, so that your code reviewers have an easy time seeing what changes you've made."

"Hard reset and checkout the change with this command: (BEWARE: git review -d performs a hard reset that destroys all local changes. Stash or commit changes first which you wish to preserve!)" – what is meant by "stash" a change? That term only appears that one place on that page; it's not defined there. – wbm1058 (talk) 21:22, 22 May 2024 (UTC)[reply]

That patch doesn't have a merge conflict so you don't need to worry about rebasing it at all. And "stash" in that context refers to the git stash command. * Pppery * it has begun... 23:17, 22 May 2024 (UTC)[reply]
Don't I want to amend / add a file to my existing commit rather than add a second commit to my existing branch? Branches and commits, I'm still not comfortable with the terminology and how they fit together.
Funny, when I entered 'git' to get the usage and list of "common git commands" it didn't list "stash". – wbm1058 (talk) 00:46, 23 May 2024 (UTC)[reply]
For gerrit and git review, yes. For patchset 2 or higher, you'll want to git stage, then git commit --amend, then git review -R –Novem Linguae (talk) 02:13, 23 May 2024 (UTC)[reply]
Ack, though I see the term "stage" several times in mw:Gerrit/Tutorial, I don't see any explicit "git stage" command. Oh (looking it up), that's a synonym for "git add".
I was looking at mw:Gerrit/Tutorial#Amending a change (your own or someone else's), and mw:Gerrit/Tutorial#Rebasing is a subsection of that section. The way I'm reading it, it implies that rebasing is a mandatory, not optional, step that's part of the "amending a change" process.
Oh, I see. the --amend tells it to amend my first commit rather than add a second commit. – wbm1058 (talk) 03:02, 23 May 2024 (UTC)[reply]
I think if you do git review without the -R, it will auto rebase. But i was taught not to auto rebase, and just to do it manually when needed. –Novem Linguae (talk) 03:05, 23 May 2024 (UTC)[reply]
I think a few things on that tutorial page are outdated – both Gerrit and git-review have had some changes related to rebases since it was written, and they mostly removed the footguns that this page tries to teach you to avoid. I'll have to read it more carefully and update it. Generally, you shouldn't have to think about rebasing, or do anything to avoid it, or click the "Rebase" button, unless you see an error somewhere telling you that there is a merge conflict in your change. Matma Rex talk 15:48, 23 May 2024 (UTC)[reply]
Thanks, that makes sense. In baseball, a runner taking a big lead off first base sometimes needs to rebase when he sees a pitch conflict (pitch going to first base rather than home plate). Ha! wbm1058 (talk) 17:14, 23 May 2024 (UTC)[reply]
I removed all of the bad and outdated advice from that section: [2][3][4][5] and added some good advice instead: [6]. Hope that helps explain it. I concede that it is not entirely unlike baseball. Matma Rex talk 23:14, 24 May 2024 (UTC)[reply]

My script (I use Vector 2022) stopped working this week[edit]

Link classifier missing in Vector 2022[edit]

The Link Classifier which if I recall is maintained by Anomie has disappeared from my Vector (2022) skin. I use this frequently and have just now noticed it, so I is likely something very recent. I switched back to Vector (2010) just to check and it was still available there. Any suggestions about how to get this back in Vector (2022)? olderwiser 21:29, 20 May 2024 (UTC)[reply]

WMF has recently changed the software so that in Vector 2022 personal Javascript/CSS are loaded only from Special:MyPage/vector-2022.js and Special:MyPage/vector-2022.css. You are loading it only in Special:MyPage/vector.js. You will need to copy whatever you want from there to the vector-2022 version, or to your Common.js at Special:MyPage/common.js (which is the best place for it - scripts are/should be responsible for loading where they should; styles may vary more so they may not be as obvious to move). Remove it from vector.js if you add it to common.js. Izno (talk) 22:06, 20 May 2024 (UTC)[reply]
Thank you. That worked. olderwiser 23:40, 20 May 2024 (UTC)[reply]
Thanks, this probably should solve the above problem as well. I will try later today. Ymblanter (talk) 08:36, 21 May 2024 (UTC)[reply]
Copied Ymblanter's comment from above:

Not sure whether it is related but I am using one of the user scripts (do not have time now to search which one) which, in particular, highlights in pink pages proposed for deletion. The highlighting is gone today (checked on two different devices, different browsers), which gives me a HUGE headache for CFD handling. Ymblanter (talk) 08:35, 21 May 2024 (UTC)

Izno (talk) 17:09, 21 May 2024 (UTC)[reply]

Prompt for edit summary on rollback from watchlist?[edit]

Hi there, long time fan, first time caller...

I very much like having a link on my watchlist page that will allow me to perform rollback while prompting me for a custom edit summary. My JS pages were a bit of a mess, but I believe I'd been using User:Nageh/rollbackSum.js for this purpose.

Earlier this week the 'sum' links provided by that script disappeared for me. Nageh (talk · contribs) hasn't edited since 2014 and, while I tried a few other scripts that I found, none of them seemed to re-add such a link to my watchlist either. Has something changed that makes this no longer possible? The ability to add a custom edit summary when doing rollback from my watchlist is very valuable to me, so it would be a shame if the upshot was that this simply is no longer possible. Thanks for your help! DonIago (talk) 03:43, 24 May 2024 (UTC)[reply]

@Doniago, see section header of which I've made your question a subsection. Izno (talk) 15:27, 24 May 2024 (UTC)[reply]
Thanks Izno. I've tried copying a version of rollback.js to my common.js page with no evident change at this time. DonIago (talk) 16:12, 24 May 2024 (UTC)[reply]
The line above it has no ; and misspells importScript with a lowercase s. This may or may not cause issues. Izno (talk) 16:32, 24 May 2024 (UTC)[reply]
Thanks Izno! I'm not sure which of the changes I made per your notes fixed it, but it seems to be fixed! DonIago (talk) 16:55, 24 May 2024 (UTC)[reply]

Tech News: 2024-21[edit]

MediaWiki message delivery 23:01, 20 May 2024 (UTC)[reply]

Based on a quick search, it looks like the heading change will affect almost 300 scripts, many of which have inactive maintainers. Some arbitrary highlights from the top of the list include:
Plus many, many more. --Ahecht (TALK
PAGE
)
19:22, 21 May 2024 (UTC)[reply]
A quick way to test these scripts right now, is to enable the Parsoid beta option (which already uses the new html structure) and to disable DiscussionTools, which uses a partial form of the new heading structure. —TheDJ (talkcontribs) 08:39, 22 May 2024 (UTC)[reply]
Indeed, you can already see it in Parsoid mode (but note that there are other differences – e.g. Parsoid output has <section> tags around each section, which may require a separate set of updates in some scripts).
Disabling DiscussionTools doesn't actually change anything though. The HTML structure is the same whether it's enabled or disabled, only the styles are different. Also, note that it uses a "hybrid" heading structure currently when using the default parser, as you say, but it uses the new structure when using Parsoid.
So in short, you can just use Parsoid mode to test these scripts today here on English Wikipedia, but beware that there may be extra issues. But if they work with Parsoid, they will work with the new headings too. Matma Rex talk 11:25, 22 May 2024 (UTC)[reply]
The technical 13 script was blanked, so we don't have to worry about that one.
Will the fact that they're rolling this out for only some wikimedia-deployed skins at this time make the patch more complicated? If I'm reading it right, the scripts may temporarily have to support both heading styles. –Novem Linguae (talk) 09:16, 22 May 2024 (UTC)[reply]
Yes, it does, and they have to. Matma Rex talk 11:20, 22 May 2024 (UTC)[reply]
At a glance, it seems that User:Mr. Stradivarius/gadgets/SignpostTagger.js already supports the new style, as it uses $( '#bodyContent h2:first' ).text() as a backup if $( '#bodyContent h2:first span.mw-headline' ) doesn't exist (line 291). — Mr. Stradivarius ♪ talk ♪ 13:09, 22 May 2024 (UTC)[reply]
Fixed RFUD-helper. Thanks for the ping. – SD0001 (talk) 18:33, 22 May 2024 (UTC)[reply]
This is going to break both my edit request scripts, I will try to fix them at the weekend. Terasail[✉️] 18:41, 22 May 2024 (UTC)[reply]
I'm assuming ~ and feel free to correct me if i'm wrong ~ that something about this deployment is why headings no longer have numbers (for me)? Will it be possible to go back to that at some point? I find long pages almost impossible to navigate around without numbered headings, so will have to learn a new way of working if it won't be possible. Thanks, Happy days, ~ LindsayHello 16:24, 27 May 2024 (UTC)[reply]
@LindsayH: No, that was removed a while ago. You may try the "Auto-number headings" gadget here. Nardog (talk) 19:31, 27 May 2024 (UTC)[reply]
If you're speaking about the table of contents, Vector 22 does not provide numbering. Vector, Monobook, and Modern do.
If you are speaking about each actual heading, then indeed the preference is gone and indeed there is a gadget for it now. You have correctly identified that gadget as needing to be updated for this change. It looks like the necessary change to the snippet (documentation) has already been made, so someone needs to port that here. Izno (talk) 19:59, 27 May 2024 (UTC)[reply]
Thank you, Izno, helpful. I'd assumed it was a script/gadget, as so many appeared to be affected above. I shall patiently wait in hope Happy days, ~ LindsayHello 11:51, 28 May 2024 (UTC)[reply]

Issue with template[edit]

Hi there. There seems to be some kind of issue with {{Population WD}}. I would like to use it to get the bare population figure. At first, {{population WD|qid=Q559227|show=value}} was not working, and I was getting the figure plus a "<span" at the end. Primefac has solved it, at least partially. But there still seem to be some issues, as can be seen here. Thanks in advance for the help, Alavense (talk) 08:19, 22 May 2024 (UTC)[reply]

My guess is that the {{first word}} is cutting off the coding to show the "edit at Wikidata" icon, but I have a) no idea why it's doing that, and b) no idea how to fix it. Primefac (talk) 08:37, 22 May 2024 (UTC)[reply]
Yes, something like that. The createicon function in Module:WikidataIB starts off with a non-breaking space, so {{first word}} is grabbing a few more tokens than we want. — jmcgnh(talk) (contribs) 08:57, 22 May 2024 (UTC)[reply]
And, yes, nbsp is not considered one of the ASCII whitespace characters by some regular expression engines, including, according to what we've seen here, Lua's %s. — jmcgnh(talk) (contribs) 09:19, 22 May 2024 (UTC)[reply]
This Special:Diff/1225091340 seems to be a possible fix. It returns just the population value, whichever way the noicon parameter is set. Of course, if you really wanted that pencil icon, you'll need to use something different from {{first word}}. @Primefac and Alavense: — jmcgnh(talk) (contribs) 09:37, 22 May 2024 (UTC)[reply]
There should not be any regexes that treat a nbsp as whitespace. For a start, its value is outside the 0x00-0x7F range; second, whilst it's encoded as 0xA0 under Unicode, some character sets use the same value for a different, non-blank, printing character - for example, in Code page 437, it's used for the "á" character. Third, ASCII whitespace is defined as characters 0x09 through 0x0c inclusive plus 0x20. --Redrose64 🌹 (talk) 19:40, 22 May 2024 (UTC)[reply]
@Redrose64 That's a very outdated point of view. Regex engines these days generally operate on Unicode and understand Unicode characters, or at least have an option to do so, and "whitespace" often means all Unicode whitespace, not ASCII whitespace. Matma Rex talk 21:16, 22 May 2024 (UTC)[reply]
The HTML spec is outdated then. Pity, as it was last updated 22 May 2024, which was, er, today. --Redrose64 🌹 (talk) 23:04, 22 May 2024 (UTC)[reply]
Pity, as the HTML spec is irrelevant to how Lua or PHP process whitespace. Izno (talk) 23:36, 22 May 2024 (UTC)[reply]
The HTML spec is very careful to call it out as ASCII whitespace every time that term is used, precisely because just saying whitespace often means Unicode whitespace. Matma Rex talk 15:40, 23 May 2024 (UTC)[reply]
@Jmcgnh Lua's %s should actually match non-breaking spaces, if I understand the documentation correctly.
Template:First word uses Module:String, which uses mw.ustring. The docs for Ustring patterns say %s "represents all characters with General Category "Separator"", and NBSP is a separator (see e.g. the entry in Whitespace character#Unicode for reference).
I think the problem in the original code is that in [&nbsp;%s] the entity isn't interpreted, so it finds the first occurrence of &, n, b, etc. It will probably work if you do just [%s]. Matma Rex talk 21:14, 22 May 2024 (UTC)[reply]
Oh, good, we're getting some people involved who know more than me. @Redros64, Matma Rex, and Izno: As I read it, {{First word}} already supplies %s as the default separator AND the results show that it is not treating nbsp as a member of %s. If I were going to spend more time on this, I'd first get rid of {{First word}} to see how many results are coming back - as an experiment. If there are multiple results (not just one string with multiple values in it), I'd argue that the job of selecting what to return needs to either be pushed down into WikidataIB or maybe do like the show=year branch and use Ustring|gsub to pull out the desired part of the data.
Primefac's current fix provides the correct defaults, but if someone wants to specify show=value|noicon=FALSE it would be best if the result didn't contain stray markup tokens. I checked for how show=year|noicon=FALSE would behave and it seems to get it right for Alavense's test case. I wish I understood a little better how that Ustring|gsub expression matching worked. As I look at it, it shouldn't be working for this case. If I could figure that out better, I'd be in favor of getting rid of {{first word}} and using a Ustring call for show=value as well as for <show=year>. — jmcgnh(talk) (contribs) 02:34, 23 May 2024 (UTC)[reply]
I don't know much, I just looked up the docs :)

As I read it, {{First word}} already supplies %s as the default separator AND the results show that it is not treating nbsp as a member of %s.

I had a look at the output of {{#invoke:WikidataIB|...}} in Special:ExpandTemplates, and I can at least explain that – it's because the WikidataIB module isn't emitting an actual nbsp character, but rather it's emitting the &nbsp; HTML entity. The string matching functions just see that as a sequence of &, n, b, and so on. So you would need to make {{First word}} look for that sequence, instead of individual characters, but it has no way to do that.
You could probably implement this by invoking Module:String directly – but at this point I would take a step back, and see if there's some way to just output the bare population figure from Wikidata directly, instead of using a big template and applying another big template on top of it to discard most of its results, because that how you end up with pages that bump into parser limits. I'm not very familiar with this stuff, but there must surely be one. Matma Rex talk 15:31, 23 May 2024 (UTC)[reply]

@Matma Rex: I agree with your suggested direction and thanks for being so clear about the confusion I was exhibiting between Ustring characters and HTML character entities. On a cursory look at available templates or modules to use instead of WikidataIB, I was not coming up with anything obvious. I will return to study this in greater detail, including trying to understand all the parameters passed to WikidataIB, as time allows. I do conclude that {{First word}} is simply the wrong template to use in this situation. — jmcgnh(talk) (contribs) 20:52, 24 May 2024 (UTC)[reply]

Differentiation of subheading font sizes (or more accurately, lack thereof)[edit]

I've just used subheadings for the first time, and was somewhat dismayed to see hardly any noticeable differentiation between Subheadings 2, 3, and 4. Couldn't the subheadings be differentiated more?

Surely some other Wiki editors must have made similar comments long before I came on board ... Augnablik (talk) 11:54, 22 May 2024 (UTC)[reply]

Yes, I think many of us got confused at first and pointed out that h3 looks more prominent than h2, but there doesn't seem to be a consensus to change the styles and eventually we got used to it. I hope it doesn't lead too many readers astray. Certes (talk) 12:04, 22 May 2024 (UTC)[reply]
How could there be any editorial disagreement about the need for a technical fix to remedy this situation, @Certes? Of course it could lead readers astray!
It's not like the discussion going on elsewhere at the Village Pump on the topic of COI guidelines, with many senior editors all over the field as to just what COI is and what should be required of editors in self-reporting it. Augnablik (talk) 12:42, 22 May 2024 (UTC)[reply]
@Certes, I hope it didn’t seem to you in my reply to you above that I was unhappy with you personally. I was just reacting in surprise — okay, shock — that Wiki editors who deal with this sort of thing wouldn’t have very easily come to consensus about the need to make h2 and h3 look different from each other … for the sake of readers. Augnablik (talk) 16:27, 22 May 2024 (UTC)[reply]
I wasn't at all insulted or offended. I agree with you that h2 should be more prominent relative to h3. I think the problem is that h3 is bolder than h2, which can give the illusion that it is more important despite not being larger. Of course, it's easy for the regulars to put together a bit of CSS to make it look how we prefer it, but we're a tiny minority of the audience: we're both thinking of the casual reader who can't be expected to jump through that hoop for each site they visit. Certes (talk) 19:58, 22 May 2024 (UTC)[reply]
The appearance of headings and subheadings varies with several factors, including (but not limited to): zoom level, skin, browser, installed fonts, operating system. You can experiment using e.g. Wikipedia:Sandbox in various skins - Cologne Blue; MinervaNeue (mobile); Modern; MonoBook; Timeless; Vector legacy (2010); Vector (2022). Notice that besides the font size, there are variations in font family, also underlining. --Redrose64 🌹 (talk) 20:40, 22 May 2024 (UTC)[reply]
You can override the heading styles from your common.css, eg:
#content h3 { font-size: 116%; text-decoration-line: underline; } -- Verbarson  talkedits 22:30, 24 May 2024 (UTC)[reply]

"Publish" is a little too quick on the draw[edit]

I've been editing the Houseboat article and once again when I tried to review my changes before publishing a few minutes ago, they got published — with no summary, because I wanted to be reminded of the things I'd done in my edits. This has happened a few times before as well.

And because these edits were major changes, including the addition of new information along with a supporting citation and the removal of some existing text for greater clarity, I'll probably get a finger wag from a senior editor about this. 🫤

Augnablik (talk) 12:32, 22 May 2024 (UTC)[reply]

In Special:Preferences#mw-prefsection-editing, you can select "Prompt me when entering a blank edit summary". That may help. Certes (talk) 12:38, 22 May 2024 (UTC)[reply]
Aha. Thanks ... but I wonder why we have to opt in about this, given that we're not supposed to send blank edit summaries? Augnablik (talk) 12:45, 22 May 2024 (UTC)[reply]
I recall there being a discussion about this somewhere - if my memory serves me correctly, the idea of not having this on by default is to avoid there being an extra layer of friction that may discourage newer good faith editors.
In any case, there is no formal obligation to provide an edit summary; rather, the edit should be explained in some manner, or be self-explanatory, something which can be achieved after the fact through talk page discussion. WindTempos (talkcontribs) 12:59, 22 May 2024 (UTC)[reply]
If you have accidentally made major changes without a good edit summary and want to fix that, the standard way is to make a Dummy edit. —Kusma (talk) 13:08, 22 May 2024 (UTC)[reply]
There are several keyboard actions that will trigger a save - in no particular order, they include:
  • Pressing Alt+⇧ Shift+S at any time
  • Pressing ↵ Enter when the focus is on one of: the edit summary; the "This is a minor edit" or "Watch this page" checkboxes; the Publish changes button
  • Pressing Space when the focus is on the Publish changes button
We forget these when using a mouse all the time. --Redrose64 🌹 (talk) 19:56, 22 May 2024 (UTC)[reply]
The first one is enabled using an accesskey S. The exact combination of Shift/Alt/Control/⌥Option is different depending on the OS and browser. All combinations are described at Wikipedia:Keyboard shortcuts. —⁠andrybak (talk) 11:09, 25 May 2024 (UTC)[reply]

Sorting titles, some with appended text[edit]

Hello, regarding List of cult films: K, it seems like the listings The Killer and The Killing, both which neighbor listings that have longer titles starting with Killer or Killing, wind up at the bottom of each respective group when sorting alphabetically, when they should come first, having nothing after that keyword. Am I doing something wrong? Is there a way to fix it? See for yourself here. EDIT: I guess I fixed it by adding two spaces after each title, but this feels like too much of a hack. Is there a proper way to do this? Erik (talk | contrib) (ping me) 15:58, 23 May 2024 (UTC)[reply]

It probably should be using {{sort}} rather than {{sortname}}. The latter makes the sort key "Killer, The" because it is intended to be used with the name of a person. Johnuniq (talk) 00:43, 24 May 2024 (UTC)[reply]
@Erik: The problem is that {{sortname}} automatically inserts a comma. {{sortname|The|Killer}} is sorted as "Killer, The". The comma sorts after the space in "Killer Nun" while the title should logically have been sorted before. In [12] you avoided the issue by placing spaces at the end in {{sortname|The|Killer }} so it sorts as "Killer  , The". It works in the current implementation where spaces aren't stripped but it's not a pretty solution and other editors can easily remove the spaces without knowing the consequence. You could use optional sort key in {{sortname}} to give "Killer" as the full sort key with no comma or "The". Should {{sortname}} be changed to omit the automatic comma? Probably not. It's mostly used for people and often mixed with manually written sort keys like "Doe, John". Omitting the comma when the template is used would mess that up. PrimeHunter (talk) 20:03, 24 May 2024 (UTC)[reply]
Omitting the automatic comma wouldn't even fix this case where "Killer The" would still sort after "Killer Nun". A possibility would be for {{sortname}} to add a special case where {{sortname|The|Anything}} ignores "The" and just sorts as "Anything". "The" is unlikely to be the first name of a person which should be included in the sort key. PrimeHunter (talk) 20:17, 24 May 2024 (UTC)[reply]
But it's not a natural person's name right  ? So why use sortname to being with ? —TheDJ (talkcontribs) 22:07, 24 May 2024 (UTC)[reply]
sortname is often used on "The", probably because it's well-known and convenient: hastemplate:sortname insource:"sortname The". I don't know how often it gives poor sorting but it's probably rare that the sorted items are close enough. PrimeHunter (talk) 22:33, 24 May 2024 (UTC)[reply]
I used explicit sort keys including a third problem entry The King.[13] PrimeHunter (talk) 09:48, 25 May 2024 (UTC)[reply]
Thank you! I will use this approach instead. Is there an easy way to identify problems like The King? On my laptop, I was just eyeballing the difference between the order in the code and the sorted order, but The King was too far down for me to see shift in order. Would like to be able to check all the pages and fix the order and sorting where needed. Erik (talk | contrib) (ping me) 00:03, 27 May 2024 (UTC)[reply]
I haven't done it before but here are three ideas which all require something:
  1. Zoom far out (Ctrl+- in Windows browsers) to view more rows at the same time.
  2. Use the sort arrow on a previewed version where the first rows have been removed or commented out.
  3. Copy-paste the sorted and unsorted rendered table with your browser and make a diff with some tool, e.g. someting at Google:online diff.
I tested it and spotted The Kingdom with all three. PrimeHunter (talk) 00:25, 27 May 2024 (UTC)[reply]

Template-generated category problems[edit]

The latest run of Special:WantedCategories features a weird cluster of "Decade in nothing" redlinks that are being autogenerated by {{Sport clubs (dis)established in the YYY0s category header}} because the template appears to be failing to import a variable. The template itself does not appear to have been recently edited at all, so it's very likely a module doing this, but as I don't have module-editing privileges I wouldn't be able to fix it myself even if I could find the issue, so the following categories are going to need somebody else to look into them.

Category:1810s in, Category:1820s in, Category:1830s in, Category:1840s in, Category:1850s in, Category:1860s in, Category:1870s in, Category:1880s in, Category:1890s in, Category:1900s in, Category:1910s in, Category:1920s in, Category:1930s in, Category:1940s in, Category:1950s in, Category:1950s in, Category:1960s in, Category:1970s in, Category:1980s in, Category:1990s in, Category:2000s in, Category:2010s in, Category:2020s in.

Thanks. Bearcat (talk) 13:46, 25 May 2024 (UTC)[reply]

There was a recent edit Special:Diff/1225161437 in the /core subtemplate, which doesn't seem suspicious.  Checking... in the sandbox using the special debugging parameter |diagnose=yes. —⁠andrybak (talk) 14:03, 25 May 2024 (UTC)[reply]
 Fixed in Special:Diff/1225599206. —⁠andrybak (talk) 14:14, 25 May 2024 (UTC)[reply]
@Gonnym, I think I figured out the root cause. In Special:Diff/1225161437, the pipe | was incorrectly left in the usages of {{lcfirstletter}}. That is, {{lcfirst:|{{{sport}}}}} instead of {{lcfirst:{{{sport}}}}}. Feel free to re-implement the switch back to magic words, I don't think this template relies on special features of templates {{ucfirstletter}} and {{lcfirstletter}} for skipping non-letter characters. —⁠andrybak (talk) 14:21, 25 May 2024 (UTC)[reply]
Thanks andrybak, sorry I missed the pipe and thanks for catching that! Gonnym (talk) 07:58, 27 May 2024 (UTC)[reply]

Infobox (Road) alpha? issue with above=/Dark mode[edit]

In {{Infobox road}} the above value passed on to Infobox image appears to be interpreted as if it had a white backgound, resulting in white corners/edges or a white box around the sign (it's always a white box, but sometimes the visual impact is otherwise). In dark mode this looks pretty bad. However it doesn't happen to next/previous images, or the junction images. See for example Garden_State_Parkway, note the white box around the sign at the top, and the grey around CR 508 (both in dark mode).

I beleive that CSS or {{Infobox}} are creating somthing relating to above that is interfering with the gadget, and providing a light background, where is should be inherited from an outer div.

Any ideas/confirmation?

All the best: Rich Farmbrough 15:02, 25 May 2024 (UTC).[reply]

White background for File:GSPkwy Shield.svg on the page Garden State Parkway in dark mode comes from these lines of CSS code: MediaWiki:Gadget-dark-mode.css#L-156--L-163, quote:
/* Content image (thumbnail) SVGs */
/* `*not( .mbox-image )` exception doesn't work for unclear reasons */
html .image img[ src*='svg' ],
html .mw-file-description img[ src*='svg' ],
html img[ src*='Wiktionary-logo'] {
	background-color: #fff;
	border-radius: 1px;
}
I can't seem to find what you mean by the grey around CR 508. I think File:CR 508 jct.svg is not affected, because linking to the filepage is disabled via |link=. Compare vs —⁠andrybak (talk) 15:51, 25 May 2024 (UTC)[reply]
Note: File:GSPkwy Shield.svg is selected by {{Infobox road}} from Module:Road data/strings/USA/NJ#L-196, based on parameters |state=NJ (the two-letter postal abbreviation of the state) and |type=GSP . —⁠andrybak (talk) 16:05, 25 May 2024 (UTC)[reply]

Strange behaviour with SVG file[edit]

The file "2022 Russian invasion of Ukraine.svg" is used in the infobox of Russian invasion of Ukraine where it's look perfectly normal. Going to File:2022 Russian invasion of Ukraine.svg and it still looks correct, but if I load the original file most of it is in Chinese. Is this just me? -- LCU ActivelyDisinterested «@» °∆t° 16:26, 25 May 2024 (UTC)[reply]

Not me, at least. This uses the SVG switch elements, so it's probably an issue with your browser or something else thinking your system language is Chinese. — Alien333 (what I did & why I did it wrong) 17:45, 25 May 2024 (UTC)[reply]
I'm using chrome on android, and can't see any reason it should believe my system language is Chinese. This appears to be an error with whatever is doing the switching. -- LCU ActivelyDisinterested «@» °∆t° 17:50, 25 May 2024 (UTC)[reply]
I tested on Chrome and Android, and it still works for me. When you say "most of it is in Chinese", are there still some English (or other language) parts? — Alien333 (what I did & why I did it wrong) 18:00, 25 May 2024 (UTC)[reply]
Yep only parts of the file. -- LCU ActivelyDisinterested «@» °∆t° 18:16, 25 May 2024 (UTC)[reply]
Well, at least the partial translation is the same as the traditional chinese file, so it's just showing you that version of the file, though I can't tell why. — Alien333 (what I did & why I did it wrong) 18:30, 25 May 2024 (UTC)[reply]
The traditional Chinese file is different, notice 'Wyzwolone Ukrainskie terytoria' that shows in the legend I see but not in the traditional Chinese file. -- LCU ActivelyDisinterested «@» °∆t° 18:33, 25 May 2024 (UTC)[reply]
I'm seeing a file that's partially in different languages. -- LCU ActivelyDisinterested «@» °∆t° 18:33, 25 May 2024 (UTC)[reply]
Indeed, I should have looked closer before posting. It seems it's not even using this version of the file, because some of it (ex. the exact chinese legend next to the red dot, that is one line long and then a hyphen) does not appear at all in any of the actual languages of the file. — Alien333 (what I did & why I did it wrong) 18:43, 25 May 2024 (UTC)[reply]
I get the same mishmash of languages with older versions of the file, choosing 07:54, 12 May 2024 at random. -- LCU ActivelyDisinterested «@» °∆t° 18:48, 25 May 2024 (UTC)[reply]
I wondered if it was a similar issue to Wikipedia:Village pump (technical)/Archive 212#Serbian place names displayed on Manhattan maps. -- LCU ActivelyDisinterested «@» °∆t° 18:28, 25 May 2024 (UTC)[reply]
I think it's different, as that was with OpenStreetMap labels and this is SVG translation. — Alien333 (what I did & why I did it wrong) 18:31, 25 May 2024 (UTC)[reply]

Help with regex[edit]

I'm looking to search for article with titles matching '[number][ordinal][space]Road', but for all my trying I can't get it to work. I get intitle and using []{} for a certain number of character but whatever I put together doesn't work. Any help would be appreciated. -- LCU ActivelyDisinterested «@» °∆t° 17:40, 25 May 2024 (UTC)[reply]

What is your specific search query? Izno (talk) 17:56, 25 May 2024 (UTC)[reply]
I don't a working one, I was trying "in title:/[0-9]{1,3}[a-z]{2} Road/ but I've obviously got something wrong. I'm looking to find pages such as 30th Road, 73rd Road, etc. -- LCU ActivelyDisinterested «@» °∆t° 18:01, 25 May 2024 (UTC)[reply]
I wasn't looking for a working one. :) You've misspelled intitle as in title, this query works. Izno (talk) 18:06, 25 May 2024 (UTC)[reply]
That's autocorrect it does the same for me with hastemplate becoming 'has template'. I'm apparently cursed when it comes to regex, I'd swear I had tried the exact same search. Thanks for the help. -- LCU ActivelyDisinterested «@» °∆t° 18:22, 25 May 2024 (UTC)[reply]

My brain hurts[edit]

I started to answer the question above, but quickly ran into something I don't understand. Regex searches ignore the indexes, so it makes sense to do a composite search which includes a term that hits the index and then a regex to filter that down. But when I try intitle:Road intitle:/[0-9]+/ (link) I get results that include London Inner Ring Road. That doesn't match the regex. H:BOOLEAN says Search terms are implicitly joined by AND but that doesn't seem to be what's happening here. RoySmith (talk) 15:20, 26 May 2024 (UTC)[reply]

intitle: often appears not to work. In this case, it's probably showing that result because of redirects such as A1202 road. Certes (talk) 15:27, 26 May 2024 (UTC)[reply]

Mass revdel across pages of one contributor[edit]

I'm in the process of revdel'ing personal attacks from edit summaries of 2601:85:C100:2770:51F5:457E:4CD9:606B (talk · contribs) made by undoing an editor's contributions on many pages. I have the mass rollback tool, so that was no problem. But now I have to revdel them one by one since they are on different pages. Is there a way that they can all be lumped together for revdel? – Muboshgu (talk) 19:05, 25 May 2024 (UTC)[reply]

I know of some user scripts that have been developed for this: User:Writ Keeper/Scripts/massRevdel.js, and User:Blablubbs/massrevdel NOS.js which is a fork of the first one for non-oversighters. DanCherek (talk) 20:10, 25 May 2024 (UTC)[reply]

Track listing/Professional ratings overlap for music albums[edit]

Speaking from the average viewer's POV (i.e., not logged in), I noticed when I visited the album pages for Ohio Players and Follow the Lights that the right side of the Track listing overlaps with the left side of the Professional ratings, with the text visibly overlapping (superimposed) as well. This was observed in Safari on a Mac mini, but not in Firefox. I'm merely reporting this, and not trying to fix it myself. Peterh6658 (talk) 22:49, 25 May 2024 (UTC)[reply]

Template gadgets[edit]

I was reading about Template gadgets in the Signpost and its use in Spanish Wikipedia (for example in their Conway's game of life article) and was wondering if that is implemented here yet. 28bytes (talk) 01:10, 26 May 2024 (UTC)[reply]

The server-side code is deployed here. Local iadmins haven't made use of it. Edit requests to do so welcome. * Pppery * it has begun... 01:24, 26 May 2024 (UTC)[reply]
Thanks Pppery. If I wanted to include the Game of Life gadget on either the article or its talk page, what would be the next steps to take? 28bytes (talk) 01:34, 26 May 2024 (UTC)[reply]
The steps, for an iadmin, assuming sufficient consensus to do so, are explained at mw:Template:Conway's Game of Life#Installation. The steps for a non-iadmin would presumably be to follow step 1 there and then use {{edit interface-protected}} to request an iadmin (like myself) do steps 2 and 3. What I would probably actually do is use Wikipedia:Bots/Requests for approval/SDZeroBot 13 (cc SD0001) to sync mw:MediaWiki:Gadget-Global-Vivarium.js locally rather than loading code from MediaWiki.org, but you don't have to care about that. * Pppery * it has begun... 01:50, 26 May 2024 (UTC)[reply]
Thanks again. Step 1 is done. I'll make an edit request over at Talk:Conway's Game of Life. 28bytes (talk) 02:04, 26 May 2024 (UTC)[reply]

Weird mobile web diff display[edit]

[14]

Normally, mobile (source, not visual) diff displays removed text in yellow and added text in blue in the same block of text. In this said diff, the edited paragraph is (confusingly) displayed twice, one copy indicating removed text, the other one added text. Could you reproduce this? Is this a bug or intended behavior? Thank you. Janhrach (talk) 07:52, 26 May 2024 (UTC)[reply]

Are you trying to use the mobilefrontend view with vector-2022, leading you to getting the desktop-type vector-2022 output? — xaosflux Talk 12:12, 26 May 2024 (UTC)[reply]
Huh? That diff is indeed what you get via https://en.m.wikipedia.org/w/index.php?title=Clan_Livingstone&action=history. I agree the repetition of "This battle was fought..." is highly misleading. Nardog (talk) 15:24, 26 May 2024 (UTC)[reply]
I filed a task for this at the tail end of the better diffs initiative last year. phab:T349335. Izno (talk) 16:28, 26 May 2024 (UTC)[reply]
Is that the same thing? That task doesn't seem to be about mobilefront end view? Here is the mobilefrontend+minerva (what should be default) view of the story in this thread: https://en.m.wikipedia.org/w/index.php?title=Clan_Livingstone&diff=prev&diffonly=1&oldid=1225714396&useskin=minerva . Is that not appearing as expected? — xaosflux Talk 16:18, 27 May 2024 (UTC)[reply]
@Xaosflux, mobile diffs now use the same machinery as normal diffs. And no, it is not appearing as expected, the paragraph beginning with This battle was fought between various north-western highland clans from the lands of Ross, against the Earl of Ross and his followers. is repeated. Izno (talk) 16:20, 27 May 2024 (UTC)[reply]
Thanks, see it now, yup seems buggy for sure. — xaosflux Talk 16:24, 27 May 2024 (UTC)[reply]
It's worth saying that this is a hard problem in general. You'd probably need to look at the code to see what's going on, but it's likely that the diff treats headings as special, then trying to identify the two paragraphs as derivatives may not be easy. All the best: Rich Farmbrough 18:53, 27 May 2024 (UTC).[reply]

New diff preview problem[edit]

This started sometime between midnight UTC last night and 10:30 UTC today, Monday 27 May. I use Edge on Win 11, Monobook, Navigation popups enabled, and the Use a black background with green text gadget. When I point my mouse at "diff" on my watchlist now the pop up/preview/whatever you call it is now very much harder to read, the change is "highlighted" by shewing the removed text in black on a grey background then the added text in black on a brown background. Please help! DuncanHill (talk) 11:09, 27 May 2024 (UTC)[reply]

@The wub? Izno (talk) 15:47, 27 May 2024 (UTC)[reply]
@DuncanHill This is an unintended side effect of a change I made so that Navigation popups work in the new Vector dark mode. I've revised that change so it shouldn't affect the black background with green text gadget, will see about getting it merged. the wub "?!" 21:33, 27 May 2024 (UTC)[reply]
@The wub: thanks so it should be more legible soon? DuncanHill (talk) 21:50, 27 May 2024 (UTC)[reply]
@DuncanHill Yes, just waiting for an interface admin to respond to my edit request. the wub "?!" 23:08, 27 May 2024 (UTC)[reply]
@The wub: Thank you, now working well for me. DuncanHill (talk) 01:36, 28 May 2024 (UTC)[reply]

Images in sidebars for mobile view[edit]

Hi. I have been fixing up climbing articles on Wikipedia (e.g. alpine climbing, mixed climbing, and ice climbing). I know that per 'Template:Sidebar', that the sidebar doesn't appear on mobile (which makes sense to me), but is there any way for the main image used in the top section of the sidebar to appear in mobile view (i.e. a qualifier in the sidebar image to say whether it should appear in mobile view)? The images that I have put into the top of the sidebar are good ones and have helpful captions that I think a mobile reader would enjoy? thanks. Aszx5000 (talk) 11:33, 27 May 2024 (UTC)[reply]

Do not use sidebars to provide meaningful images, is really the correct response, and in fact at some point they will not be available at all (somewhere in my backlog of work). If you want an image to display, you should use either a thumb image or an infobox, and of course both must fit the requirements for the main image. Izno (talk) 15:47, 27 May 2024 (UTC)[reply]

Why has my map broken?[edit]

Hi all

I spent ages building a map to help visualise the countries where WikiGap has been organised (a project to help close the gender gap on Wikipedia). The map was transcluded at the bottom of the main Wikigap page however it seems to be broken, no map is shown, the transcluded page doesn't appear to have been changed so I think it might be a technical change somewhere? If anyone knows how to fix it, please I'd love some help, its way beyond my technical ability.


John Cummings (talk) 18:55, 27 May 2024 (UTC)[reply]

It appears primary support for the underlying module there is provided at: w:de:Wikipedia Diskussion:Lua/Modul/Graph. — xaosflux Talk 19:19, 27 May 2024 (UTC)[reply]
meta:WikiGap/Map is in the hidden meta:Category:Pages with disabled graphs. It uses meta:Template:Graph:Map which makes <graph>...</graph> code. All such code in Wikimedia wikis has been disabled since April 2023. The English Wikipedia gives more helpful information from MediaWiki:Graph-disabled when a page tries to use <graph>...</graph>:
meta:MediaWiki:Graph-disabled has not been created so no message is displayed there. Affected pages are just added to the hidden category. Our own Category:Pages with disabled graphs is also more helpful. PrimeHunter (talk) 20:15, 27 May 2024 (UTC)[reply]

Thanks as ever PrimeHunter, ah, that's a shame, well I guess its just permanently broken and it will be some time until a replacement is made, I wonder if I can do it through Kartographer or something. John Cummings (talk) 20:57, 27 May 2024 (UTC)[reply]

WMF will start working on the graph extension in July, see Mw:Extension:Graph/Plans. Until then use Kartographer, there are templates that use it. Snævar (talk) 21:32, 27 May 2024 (UTC)[reply]

Tech News: 2024-22[edit]

MediaWiki message delivery 00:12, 28 May 2024 (UTC)[reply]

Relocate mobile/desktop button[edit]

I would like to relocate the mobile view/desktop button to the top of the page (preferably, next to talk or in same line with the page title in the far right corner) for ease of access instead of having to scroll to the bottom each time to switch between mobile and desktop mode. Can this be done? Qwerty284651 (talk) 00:18, 28 May 2024 (UTC)[reply]

@Qwerty284651: I don't think that it can be relocated without a MediaWiki change, for which see WP:BUGS (it's worth noting that the Cologne Blue desktop skin already has the "Mobile view" link near the upper right, see e.g. VPT under Cologne Blue). But I'm pretty sure that somebody (not myself) can write some Javascript that will create an additional link in the desired place (the actual Javascript will need to be varied according to the skin). Once it's in place, you can then either leave the existing link alone, or hide it with some CSS:
/* (i) hide the "Mobile view" link when in desktop; (ii) hide the "Desktop" link when in mobile view */
ul#footer-info li#footer-places-mobileview,
ul#f-list li#mobileview,
ul#footer-places li#footer-places-mobileview,
ul#footer-places li#footer-places-desktop-toggle {
  display: none;
}
This goes in your CSS, as it's skin-universal - the first two selectors are for Modern and MonoBook respectively, the third is for all other current skins, the fourth is for mobile.
Don't activate it until the replacement link has been set up, otherwise you will lose the ability to toggle the views. --Redrose64 🌹 (talk) 09:56, 28 May 2024 (UTC)[reply]
@Redrose64, looking at the Cologne Blue skin, I see the whole bottom section (languages, last modified, cats, other links) of the page was moved to the top.
Where can I find the CSS and JS pages for the Cologne Blue skin or any skin currently available, for that matter?
I can always undo the addition in my common.css page if I activate it before link setup. Qwerty284651 (talk) 14:11, 28 May 2024 (UTC)[reply]
If you always want to use the desktop view on mobile see User:Þjarkur/NeverUseMobileVersion. -- LCU ActivelyDisinterested «@» °∆t° 10:16, 28 May 2024 (UTC)[reply]
@ActivelyDisinterested, appreciate the proposal. I recently started using mobile version on mobile, mostly have been on desktop before. Qwerty284651 (talk) 14:00, 28 May 2024 (UTC)[reply]
I've always edited on mobile using the desktop site, the script saves me a lot of wasted time. -- LCU ActivelyDisinterested «@» °∆t° 14:04, 28 May 2024 (UTC)[reply]
Same here. I only use the mobile version for editing tables in VE, although it can be finicky when switching between selecting cells and editing them. Qwerty284651 (talk) 14:20, 28 May 2024 (UTC)[reply]

Bug in table creation[edit]

If I insert a new column with the GUI by clicking "insert before" on a column with colors in them, it breaks the columns.

See here for an example

https://en.wikipedia.org/w/index.php?title=Llama_(language_model)&diff=prev&oldid=1226056830 pony in a strange land (talk) 09:19, 28 May 2024 (UTC)[reply]

Some VisualEditor features don't work with cell formatting templates which add a pipe as part of the table syntax. The code said | rowspan="3" {{yes}}. VisualEditor thinks the cell content is rowspan="3" {{yes}}, but {{yes}} adds both cell attributes and a pipe which separates them from the actual cell content yes. It produces: style="background:#9EFF9E;vertical-align:middle;text-align:center;" class="table-yes"|Yes. You just have to use the source editor for some things. PrimeHunter (talk) 11:27, 28 May 2024 (UTC)[reply]

The obsolete nowrap attribute[edit]

See this edit and User talk:Awesometd#nowrap. The nowrap attribute on a td element, already deprecated in HTML 4 (December 1997), was marked as obsolete in HTML 5 (October 2014). The user says that they are copying its use from other pages, so does anybody know where in Wikipedia such usage is recommended or even suggested? --Redrose64 🌹 (talk) 10:30, 28 May 2024 (UTC)[reply]

I doubt it's suggested anywhere. A few cases may have been added long ago and some users just copy what they saw in other articles. The user is right that it's used in 2024 F1 season. Unsurprisingly it's also in previous seasons. It's common to start such pages with a copy-paste from another season. PrimeHunter (talk) 11:16, 28 May 2024 (UTC)[reply]
At a first estimation there are about 10k uses of it; I'm sure someone can refine that. Izno (talk) 15:26, 28 May 2024 (UTC)[reply]
There's many more obsolete attributes still being used in tables, such as align or bgcolor. If we truly want to get rid of them, the solution would probably be to extend the Linter extension, so that they'll be listed at Special:LintErrors. That's probably a discussion to be had over at WT:LINT. --rchard2scout (talk) 07:56, 29 May 2024 (UTC)[reply]

Mobile view Swiss flag[edit]

There is a bit of an issue on mobile view in when this template: "  Switzerland" (or its variants) is used, the flag will appear stretched horizontally. Also, it’s to be noted this template: "Switzerland" does not have this issue. —TwinBoo (talk) 11:35, 28 May 2024 (UTC)[reply]

File:Flag of Switzerland (Pantone).svg is square. MediaWiki:Minerva.css says:
.flagicon img {
	min-width: 23px;
}
{{flag|Switzerland}} produces:
<span class="flagicon">[[File:Flag of Switzerland (Pantone).svg|23x16px|border |alt=|link=]]  </span>[[Switzerland|Switzerland]]
I reduced the problem to the combination of flagicon and an empty link=. I only see the mobile issue in the first row below.
Code Result Mobile display size
<span class="flagicon">[[File:Flag of Switzerland (Pantone).svg|23x16px|link=]]</span> 23x16px
<span class="flagicon">[[File:Flag of Switzerland (Pantone).svg|23x16px|link=Switzerland]]</span> 23x23px
<span class="flagicon">[[File:Flag of Switzerland (Pantone).svg|23x16px]]</span> 23x23px
[[File:Flag of Switzerland (Pantone).svg|23x16px|link=]] 16x16px
<span class="flagicon">[[File:Flag of Switzerland (Pantone).svg|23px|link=]]</span> 23x23px
They all display the 16×16px https://upload.wikimedia.org/wikipedia/commons/thumb/0/08/Flag_of_Switzerland_%28Pantone%29.svg/16px-Flag_of_Switzerland_%28Pantone%29.svg.png. The mobile stretching just varies. PrimeHunter (talk) 12:16, 28 May 2024 (UTC)[reply]
The minimum width of a flag on mobile is 23px, because without a minimum width, flag icons risk going to 0x0 inside tables and other common elements when on mobile, due to lack of available width. —TheDJ (talkcontribs) 05:45, 29 May 2024 (UTC)[reply]
But can we make it keep the correct width-height ratio in all circumstances? I added a table row only saying 23px instead of 23×16px, but othwerwise identical to the distorted first row. This displays correctly for me as 23×23px in mobile. It apparently takes three things simultaneously to be distorted in mobile: flagicon, wikitext specifying both height and width, and an empty link= which omits a link on the image. PrimeHunter (talk) 11:49, 29 May 2024 (UTC)[reply]
We could turn it into:
.flagicon img {
    min-width: 23px;
    height: auto !important;
}
No ideal, but will work I think... —TheDJ (talkcontribs) 12:09, 29 May 2024 (UTC)[reply]
It works for me in this section. PrimeHunter (talk) 12:42, 29 May 2024 (UTC)[reply]

Template gadgets[edit]

A discussion regarding the new use of "tempalte gadgets" is now open at Wikipedia:Interface_administrators'_noticeboard#Template_gadgets_-_naming_convention, please join in there if interested. — xaosflux Talk 11:53, 28 May 2024 (UTC)[reply]

Initial testing is available for anyone who would like to opt in to the first one of these. See the current bottom of Talk:Conway's Game of Life for info. — xaosflux Talk 20:09, 29 May 2024 (UTC)[reply]

Issue with cast template visuals, but only on Chrome[edit]

Was editing the page for Ezra (2023) and noticed that on Google Chrome, there is a huge issue with spacing. Wish I could show screenshots to detail what I see. But underneath 'Cast', I see a large, multi-paragraph jump of just blank, white space. It nearly takes up the whole screen. I do not see this on mobile, nor do I see it on Microsoft Edge -- just Google Chrome. Unsure how to fix this as I'm newer to Wiki. Is anyone seeing the same thing as me, and do they potentially know how to fix? Squiddyonwiki (talk) 02:02, 29 May 2024 (UTC)[reply]

Not seeing it on my chrome browser (Version 125.0.6422.76, Windows 11), apologies. CMD (talk) 02:46, 29 May 2024 (UTC)[reply]
I see that {{cast listing}} sets the style declaration min-width: min(25em, 100%) - is Chrome interpreting that as expected? First off, the min(...) function is in CSS Values and Units Module Level 4, which is still at the W3C Working Draft stage - not all browser vendors will impement it yet. Second, the spec says

For all three functions, the argument calculations can resolve to any <number>, <dimension>, or <percentage>, but must have a consistent type or else the function is invalid; the result’s type will be the consistent type.

- by my reading of that spec, 25em and 100% are not type-consistent. Chrome may be choking on that. --Redrose64 🌹 (talk) 06:30, 29 May 2024 (UTC)[reply]
min() is implemented by most of the browsers worth discussing. I think your observation about types is perhaps interesting. However, you are allowed to mix units in these min/max/clamp functions (see examples earlier in the page), and percentage is in a sense a unit...? I also know that CSS columns have a complex formula for how wide they are laid out and the 100% may be interfering with that. And that Chrome only recently (a couple years ago) made their CSS columns implementation much closer to fully specification compliant. Izno (talk) 15:18, 29 May 2024 (UTC)[reply]
That investigation just above aside, there is a possibility this was caused by a change that WMF made because they're thinking about how to make tables display appropriately when the width of the page is too narrow, based on your description of what you saw. The task for that is phab:T366119 and an initial bug report about suboptimal display was phab:T366119, after which there was some adjustment to how it functions - namely restricting this functionality to wikitable class tables. (There is still some things being learned there it looks like - though Isarra sorted most of this a while ago in Timeless....) Izno (talk) 15:33, 29 May 2024 (UTC)[reply]
That sounds like what I was seeing. What's weird, though, is that I'm on a Macbook now, still Chrome, and it looks normal. But on a Dell the display is what's bugged. Maybe it's based on the size of the laptop's screen? But unsure, because on my Dell on Microsoft Edge it was fine. Either way, I've never had to do a bug report but I will try to figure that out. Squiddyonwiki (talk) 15:38, 29 May 2024 (UTC)[reply]

Page previews not working[edit]

Since yesterday, page previews of links haven't worked for me. My "Enable page previews" option is turned on. Can anyone help? Thanks! LoganP25 (talk) 20:31, 29 May 2024 (UTC)[reply]

@LoganP25: Do you have an "Edit preview settings" link at the bottom of pages? If so, can you enable it there? PrimeHunter (talk) 20:53, 29 May 2024 (UTC)[reply]
I don't think so LoganP25 (talk) 21:12, 29 May 2024 (UTC)[reply]
@LoganP25: It should be to the right of "Mobile view" if you have it. Do previews work if you log out? Do you have the link there? Do previews work at https://en.wikipedia.org/wiki/Example?safemode=1, logged in or out? Does it work to disable previews at Special:Preferences#mw-prefsection-rendering, save preferences, enable it again and save again? "Navigation popups" should be disabled at Special:Preferences#mw-prefsection-gadgets if you use page previews. Is it? PrimeHunter (talk) 21:28, 29 May 2024 (UTC)[reply]
There's nothing to the right of "Mobile view" for me. Previews work when I'm logged out, but are broken again when I log back in. Previews don't work at the link you sent, and still don't after turning them off and on again. Navigation popups is disabled. Quite the enigma lol. LoganP25 (talk) 22:21, 29 May 2024 (UTC)[reply]
@LoganP25: What is your skin at Special:Preferences#mw-prefsection-rendering? What is your browser? Do previews work logged in at other wikis like simple:Example? You may have to first enable them in preferences there. PrimeHunter (talk) 22:39, 29 May 2024 (UTC)[reply]
My skin is Vector legacy, and I'm browsing on Google Chrome. Previews do work in other wikis, I hadn't thought to check that, but not in the English wikipedia. LoganP25 (talk) 22:47, 29 May 2024 (UTC)[reply]

Production table formatting for correct text alignment[edit]

An experienced editor informed me that a table format - used over years with no negative feedback on numerous articles to display crop production data - "crashes" the text aligning to it in the right text margin. The editor says it works fine in Chrome, but doesn't on any browsers tried on a Windows PC.

The original table format parameters are

{| class="wikitable" style="float:right; clear:left; width:14em; text-align:center;"
|-
! colspan=2|Mango* production – 2022
|-
!  style="background:#ddf; width:75%;"| Country
!  style="background:#ddf; width:25%;"| <small>millions of [[tonne]]s</small>
|-

The editor made a change based on a "wikitable floatright" parameter plus internal table formatting (column alignment left or right) using:

{| class="wikitable floatright" style="width:15em; margin: 20px 20px 0px 20px"
|-
! colspan=2|Mango* production – 2022
|-
!  style="background:#ddf;"| Country
!  style="background:#ddf;"| <small>millions of [[tonne]]s</small>
|-

This is the history of editing. Please comment on parameters with potential text-table alignment effects:

  1. style="float:right
  2. clear:left
  3. style="background:#ddf; width: and the respective 75% and 25% (removed in the revision)
  4. the editor's revision: style="width:15em; margin: 20px 20px 0px 20px"
  5. table display effect on text alignment of different browsers using a Chromebook vs. Windows PC (vs. Apple).

Thanks for looking into this. Zefr (talk) 22:27, 29 May 2024 (UTC)[reply]