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 = 91
|algo = old(7d)
|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:ويكيبيديا:الميدان/تقنية]]
[[ca:Viquipèdia:La taverna/Arxius/Tecnicismes/Recent]]
[[cs:Wikipedie:Pod lípou (technika)]]
[[es:Wikipedia:Café/Portal/Archivo/Técnica/Actual]]
[[fa:ویکی‌پدیا:قهوه‌خانه/فنی]]
[[ka:ვიკიპედია:ყავახანა/ტექნიკური საკითხები]]
[[kk:Уикипедия:Ауыл құдығы/техникалық]]
[[hu:Wikipédia:Kocsmafal (műszaki)]]
[[mk:Википедија:Селска чешма (Техника)]]
[[mr:विकिपीडिया:चावडी/तांत्रिक प्रश्न]]
[[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)
: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>
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. [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 15:56, 20 May 2024 (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>
Error: The MinervaNeue skin cannot be loaded. Check that all of its files are installed properly.

#0 C:\php\mediawiki\core\includes\GlobalFunctions.php(91): ExtensionRegistry->queue('C:\\php\\mediawik...')<br>
#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.
: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>
Backtrace:<br>
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. – [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 21:04, 20 May 2024 (UTC)

: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)
: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 <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)
::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>'''

Appears to have worked. – [[User:Wbm1058|wbm1058]] ([[User talk:Wbm1058|talk]]) 01:17, 21 May 2024 (UTC)
:{{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 ===
:::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)
::::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. – [[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 ===
{{collapse top|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<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>
git: 'review' is not a git command. See 'git --help'.

'''c:\php\mediawiki\core>'''<code>git-review -s --verbose</code><br>
'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)
* 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.
: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)

==== review installation log ====
'''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>'''

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)

: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 don't know whether that's a problem or not, but I proceeded as if it wasn't.

'''c:\php\mediawiki\core>'''<code>git pull --rebase origin master</code><br>
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>
wbm1058@gerrit.wikimedia.org: Permission denied (publickey).<br>
fatal: Could not read from remote repository.

Please make sure you have the correct access rights<br>
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.

'''c:\php\mediawiki\core>'''<code>eval `ssh-agent`</code><br>
'eval' is not recognized as an internal or external command,<br>
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 ~<br>
$ eval `ssh-agent`<br>
Agent pid 272<br>

Bill@Mobile-laptouch MINGW64 ~<br>
$ ssh-add ~/.ssh/id_ed25519<br>
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)

: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)
:"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)
::(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)<br>
$ 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)
: 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 ===
[[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)
: 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 ==
=== Link classifier missing in Vector 2022 ===

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)

: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)
::Thank you. That worked. [[User:Bkonrad|older]] ≠ [[User talk:Bkonrad|wiser]] 23:40, 20 May 2024 (UTC)
::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)
:: 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)

=== Prompt for edit summary on rollback from watchlist? ===

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. {{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)
== Problem with box padding ==


:@[[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)
Hi,
::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)
:::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 ==
On [http://en.wikipedia.org/w/index.php?title=User:Tommyjb&oldid=431579422 my user page], I'm getting extra left-padding in the box on the right.


<section begin="technews-2024-W21"/><div class="plainlinks">
I created a simpler test case in [http://en.wikipedia.org/w/index.php?title=User:Tommyjb/Sandbox&oldid=431580136 my sandbox]. Here is the code:
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'''
<code>
* 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]
:<nowiki>{{Boxboxtop|About|backgroundcolor=lightblue}}</nowiki>
* 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]
:
:<nowiki>{{Userboxtop|}}</nowiki>
:<nowiki>{{User en}}</nowiki>
:<nowiki>{{User Wikipedian for|year=2005|month=12|day=5}}</nowiki>
:<nowiki>{{Userboxbottom}}</nowiki>
:
:<nowiki>{{Boxboxbottom}}</nowiki>
</code>


'''Changes later this week'''
[http://i.imgur.com/DaIo6.png Here] is what I see. The left margin is far bigger than the right margin. Does anyone know how to fix this?
* [[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]].''
<font face="Tahoma">—[[User:Tommyjb|<font color="blue">Tommyjb</font>]] [[User_talk:Tommyjb|<font color="orange">Talk!</font>]] <small>(12:57, 30 May 2011)</small></font>
</div><section end="technews-2024-W21"/>
:{{done}} [[User:Wasbeer|<b style="white-space:nowrap;text-shadow:#000 0em 0em 0.4em,#5a0 -0.2em -0.2em 0.4em,#00a 0.2em 0.2em 0.4em;color:#ddd">Wasbeer</b>]] 02:12, 11 June 2011 (UTC)


<bdi lang="en" dir="ltr">[[User:MediaWiki message delivery|MediaWiki message delivery]]</bdi> 23:01, 20 May 2024 (UTC)
== Hiding top edits ==
<!-- 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 ==
I used to be able to hide items on my contrib list that were most recently edited by me (via a doohickey in my monobook) - since the contrib lists have changed to enable an editor to only see their top edits, this no longer works, which is a real pain. Is there any way of being able to again just see contribs which have been edited since my last edit (other than adding several thousand new items to my already-bloated watchlist)? [[User:Grutness|Grutness]]...''<small><font color="#008822">[[User_talk:Grutness|wha?]]</font></small>'' 01:04, 4 June 2011 (UTC)
:[[User:Markhurd/hidetopcontrib.js]] is still working for me with the Vector skin - any good? -- [[User:John of Reading|John of Reading]] ([[User talk:John of Reading|talk]]) 06:45, 4 June 2011 (UTC)
::I'll try that, thanks. [[User:Grutness|Grutness]]...''<small><font color="#008822">[[User_talk:Grutness|wha?]]</font></small>'' 19:11, 4 June 2011 (UTC)
:Grutness, since you're using my top-edit hiding script in [[WP:03|nothingthree.js]] (at least in your vector.js), could you please let me know what browser/OS/etc. you're using? The script still works perfectly for me, so the bug that breaks it for you is probably trivial to fix. I've had no problems with it in Safari, and I debugged it a little for IE fairly recently. <span style="white-space:nowrap;">{&#123;[[User:Nihiltres|<span style="color:#233D7A;">Nihiltres</span>]]&#124;[[User talk:Nihiltres|talk]]&#124;[[Special:Contributions/Nihiltres|edits]]&#124;[[WP:03|⚡]]}&#125;</span> 16:17, 4 June 2011 (UTC)
::Safari 5.0.2 on the machine I'm currently on... I suspect the other computer I sometimes use has an earlier version of Safari. [[User:Grutness|Grutness]]...''<small><font color="#008822">[[User_talk:Grutness|wha?]]</font></small>'' 19:11, 4 June 2011 (UTC)
::::My dilapidated old laptop is running Safari 3.0.4, and it's stopped working on that, too. [[User:Grutness|Grutness]]...''<small><font color="#008822">[[User_talk:Grutness|wha?]]</font></small>'' 00:52, 6 June 2011 (UTC)
:::I'm so far unable to replicate the problem. Try [[WP:BYPASS|clearing your cache]], in case the problem is a fluke. <span style="white-space:nowrap;">{&#123;[[User:Nihiltres|<span style="color:#233D7A;">Nihiltres</span>]]&#124;[[User talk:Nihiltres|talk]]&#124;[[Special:Contributions/Nihiltres|edits]]&#124;[[WP:03|⚡]]}&#125;</span> 02:25, 5 June 2011 (UTC)
::::Seems to be working again on 5.0.2 - may have been a cache problem. [[User:Grutness|Grutness]]...''<small><font color="#008822">[[User_talk:Grutness|wha?]]</font></small>'' 00:55, 7 June 2011 (UTC)
:::::Uh...no. It worked again once on 5.0.2 - and hasn't worked again since. Doesn't seem to work at all now in either 5.0.2 or 3.0.4. I'll try the Markhurd one, I think... [[User:Grutness|Grutness]]...''<small><font color="#008822">[[User_talk:Grutness|wha?]]</font></small>'' 10:47, 10 June 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)
== CentralNotice about Board of Trustees election ==
: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) ==
Every Wikipedia page I visit says:
The Wikimedia Board of Trustees election has started. [http://en.wikipedia.org/w/index.php?title=Special:SecurePoll/vote/200 Please vote].
When I click that link it says "Sorry, your account on the English Wikipedia does not meet the voting requirements for this election." Right underneath the request to vote!
Can we please modify this to only be shown to the users it applies to? It's really a slap in the face to the users to say "regardless of what you've contributed so far, it's not enough to count for us, so we don't want you as part of this community."


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?
Thanks,


[[User:WBTtheFROG|WBTtheFROG]] ([[User talk:WBTtheFROG|talk]]) 02:23, 9 June 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)


I completely agree with what you said. I understand that I haven't contributed a lot to Wikipedia, but do I really need it rubbed in my face? [[User:Ybrik222|Ybrik222]] ([[User talk:Ybrik222|talk]]) 17:10, 12 June 2011 (UTC)
: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)
::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!
::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)
:::@[[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)
::::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)
:::::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)
::::::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 ==
== augmenting article history ==


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.
Sometimes an article has a history which is not adequately represented by the list of editors in the history tab. This creates a licensing, especially when automated tools such as [[PediaPress]] use the history information. The simplest example of this problem is when a section of article A is used as the basis for new article B. Another example is a paragraph from article A being added to article B. The usual practise is to describe this is the edit summary when saving the edit to article B, but an automated tool can't reliably parse this edit summary. However if that isnt done, how do we 'amend' or 'augment' the history to reflect this?


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. 🫤
We sometimes place {{tl|Copied}} on the talk page.


[[User:Augnablik|Augnablik]] ([[User talk:Augnablik|talk]]) 12:32, 22 May 2024 (UTC)
Another case to consider is where article A is later deleted; currently we usually keep the history of article A public, or we record its history on the talk page.


: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)
However a note on the talk page doesn't appear to comply with the GFDL's expectation that there is a history 'section' (which we interpret as the history tab). I've placed this on the technical VP page as I am wondering if we can create a solution where the amended history is in an easily detectable location and consumable format, and this is noted on the history tab when needed. If we create pages named "Talk:[Article]/History notice" (like we do with [[:Category:Wikipedia article FAQs|FAQs]]) or "Template:History notice/[Article]" (similar to [[WP:Page notice|page notices]]), automated tools can look for its presence and include it, and a message (such as [[mediawiki:histlegend]]) can do the same. <span style="font-variant:small-caps">[[User:John Vandenberg|John Vandenberg]] <sup>'''([[User talk:John Vandenberg|chat]])'''</sup></span> 13:28, 9 June 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 ==
:I'm not trying to immediately go off track here, but before getting in to this can I ask a honest question? In all seriousness... why does this matter? Don't get me wrong, I'm all for giving credit where credit is due, but... what are the details of the potential licensing issue, here? I don't think that this can be adequately addressed without firmly establishing the details of the problem. Besides... according to [[Wikipedia:Reusing Wikipedia content]], the page can't have been undated since November 2008 in order to export text under a GFDL license, right?<br/>—&nbsp;[[User:Ohms law|<span style="font-family: Courier New, monospace ;font-style:italic">V = IR</span>]] <span style="font-variant:small-caps">([[User talk:Ohms law|Talk]]&thinsp;&bull;&thinsp;[[Special:Contributions/Ohms law|Contribs]])</span> 16:43, 9 June 2011 (UTC)


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'll leave the technical issue aside (just passing through), but our content is dually licensed. Reusers can export content under CC-By-SA ''or'' GFDL. If content ''cannot'' be exported under GFDL, we are required to indicate as much in the footer, history or discussion pages, but that should not apply to content copied from other Wikipedia articles, unless so indicated. (Just to note: this is not legal advice or an "official Wikimedia Foundation" statement. :)) --[[User:Mdennis (WMF)|Maggie Dennis]] ([[User talk:Mdennis (WMF)|talk]]) 19:07, 9 June 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)
::{{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)
:::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)
::::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)
:::::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)
::::::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 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 ==
::I cant see where [[Wikipedia:Reusing Wikipedia content]] mentions November 2008.
::As Maggie has pointed out, if an article can not be re-used under the GFDL, we are required to inform potential reusers when they cant use the GFDL. Currently we say that potential re-users will need to read a) the footer, b) the history and c) the discussion pages to determine whether they can copy a Wikipedia page. Even for a single Wikipedia page, that could involve hours of reading. If a human wants to copy more than a few pages, the amount of reading they must do quickly becomes ridiculous. Automated tools can't read; even if we used consistent templates for automated tools to parse, needing to parse the article text and article discussion pages is a big job if they only want to determine whether or not additional attribution is needed. <small>(I think I need to find some examples where an automated tool has bungled the attribution by relying on the list of usernames...)</small>
::[[Wikipedia:Verbatim copying under the GFDL#History Section]] currently can't provide a single description of what the 'history' section in the GFDL refers to. If we can include notes on the history tab, we can migrate our existing notes, recommend that contributors record credits in this way, and eventually inform consumers that they can a) link to the 'history tab' as a single record of the attribution for that article, and b) automatically construct an attribution block by combining the history information and the text on the associated "History notice" page if it exists. <span style="font-variant:small-caps">[[User:John Vandenberg|John Vandenberg]] <sup>'''([[User talk:John Vandenberg|chat]])'''</sup></span> 23:53, 9 June 2011 (UTC)
:::I think that this is part of an overall problem of attribution of any article text that was not original text written for that article. This could include the following.
:::* Text copied from another article on the same language wiki.
:::* Text translated from another WMF wiki.
:::* Text copied from a website that uses CC-BY-SA (or GFDL before Nov 2008)
:::* Text submitted and verified by an OTRS ticket.
:::* Text in the public domain.
:::Unfortunately there doesn't seem to be a standard method (or even place) for indicating that some text has been copied from elsewhere. This is particularly true for translations which I have seen attributed in the article text itself, on the talk page and occasionally via history comments. I was toying with the idea of proposing a more standard mechanism whereby these attributions would be put inside a (collapsible) template on the talk page but something that could appear on the history page would be even better IMO. However, doing this on the history page would obviously require an MW software change.
:::I think that any potential re-users need to have a fairly good idea of the origin of all the article's text. Another reason that this may be important is if some of the text was published before 1923 but written by someone who died less than 70 years ago. Any re-user in a country that follows the PMA-70 rule could not legally reprint that text. [[User:Boissière|Boissière]] ([[User talk:Boissière|talk]]) 17:13, 12 June 2011 (UTC)
:::: I think we can transclude a note onto the history tab without any MW software change - we can use [[mediawiki:histlegend]] as a temporary solution at least.
:::: Thank you for expanding on the types of attribution issues which we are not addressed in a standardised manner. I think we should build a list of good examples below. Feel free to add examples, and replace any where you have a better example of the same problem.
:::: I dont think we need to include OTRS tags verification.
:::: Your final comment about "pre-1923 text which is not 70pma" is an interesting problem which frequently arises on English Wikisource, where we put a very distinctive notice on the bottom of the text. Do you know of any instances where such ''text'' has been reused in English Wikipedia? If so, I agree that should be prominently mentioned. English Wikipedia has a similar problem with ''images''; although the images are clearly tagged, they are used in articles without any way for the casual reader to know the article includes images which are illegal in their country. <span style="font-variant:small-caps">[[User:John Vandenberg|John Vandenberg]] <sup>'''([[User talk:John Vandenberg|chat]])'''</sup></span> 11:54, 14 June 2011 (UTC)
::::: I don't currently have any examples of pre-1923 text though I did wonder if, for example, any of the poems of the First World War poets were reproduced substantially but I can't readily find any (poetry's not really my thing though). So this is perhaps more theoretical at present. By the way I have added a couple of examples of translation attribution to the list below. Is this the sort of thing that you are looking for? [[User:Boissière|Boissière]] ([[User talk:Boissière|talk]]) 22:32, 14 June 2011 (UTC)
:::::: Thank you. I've added ''[[The Sniper (poem)|The Sniper]]'', ''[[Ode of Remembrance]]'', ''[[Suicide in the Trenches]]'' and ''[[Scratchbury_Camp#Poetry|On Scratchbury Camp]]'' below. <span style="font-variant:small-caps">[[User:John Vandenberg|John Vandenberg]] <sup>'''([[User talk:John Vandenberg|chat]])'''</sup></span> 14:14, 15 June 2011 (UTC)
:Some examples of internal moving I'm aware of that created attribution problems (this is quite common when an article is split): [[Talk:History of Greek and Roman Egypt]] has the main notices, with [[Talk:History of Ptolemaic Egypt]] and [[Talk:Egypt (Roman province)]] having the corresponding notices. Sometimes the problem goes the other way (with a merge), but in this case it was a split after a long history at one location. I'm not sure it is entirely practical to attribute very old fragments of text that have been moved back-and-forth and up-and-down and all around, but certainly the movement of large chunks of text should be tracked and links made to or copies maintained of the editing history. [[User:Carcharoth|Carcharoth]] ([[User talk:Carcharoth|talk]]) 00:14, 17 June 2011 (UTC)
::But again... I'm not trying to be flippant here or anything, I'm honestly curious: why? What exactly is the interest in attributing specific bits of text in an article to specific users?<br/>—&nbsp;[[User:Ohms law|<span style="font-family: Courier New, monospace ;font-style:italic">V = IR</span>]] <span style="font-variant:small-caps">([[User talk:Ohms law|Talk]]&thinsp;&bull;&thinsp;[[Special:Contributions/Ohms law|Contribs]])</span> 00:36, 17 June 2011 (UTC)
::: The GFDL requires that each new author is listed. See §4.I. We state that our text is available under the GFDL. For pages which are only available under CC-BY-SA, we must say so. Which means we need some consistent way of recording that a page isnt available under the GFDL. <span style="font-variant:small-caps">[[User:John Vandenberg|John Vandenberg]] <sup>'''([[User talk:John Vandenberg|chat]])'''</sup></span> 05:20, 17 June 2011 (UTC)
::::but... it doesn't say that specific bits of text need to be attributed to specific authors. Does it? We already ''do'' list each author, one way or another (as has already been outlined here), so... I guess that I'm just not clear on what the problem is. I have to be honest and admit that I don't see that there actually is anything to worry about here regardless, but it appears as though yourself and others are saying that there is some sort of legal issue here. Why should ''we'', as editors, be concerned about issues that responsible reusers and the Foundation should consult a competent lawyer about regardless of what any editor here says or does?<br/>—&nbsp;[[User:Ohms law|<span style="font-family: Courier New, monospace ;font-style:italic">V = IR</span>]] <span style="font-variant:small-caps">([[User talk:Ohms law|Talk]]&thinsp;&bull;&thinsp;[[Special:Contributions/Ohms law|Contribs]])</span> 06:03, 17 June 2011 (UTC)
::::: If you don't care issues like this, why are you bothering to commenting here? Most ''editors'' don't hang around VPT. Some of us do care about current and potential re-users, especially when they are wanting to comply with the license and want advice. If you think this problem can be solved by a lawyer, then you havent understood the problem. If re-using Wikipedia content requires consulting a lawyer, we've failed to achieve the goals of http://freedomdefined.org/. I am often asked questions about reusing content, and I currently need to say that people should not re-use Wikipedia content unless they analyse the full edit history of the page and the associated talk page. The most 'freedom' supporting lawyer in the world will say "the advice of Wikipedia is sound, which is that you can not reuse Wikipedia content unless you manually eyeball every revision of the page and its associated talk page" and their client will say "oh, well that is impractical".<br/>Do you think it is practical for anyone to reuse Wikipedia content only after reading every revision of page and talk page? <span style="font-variant:small-caps">[[User:John Vandenberg|John Vandenberg]] <sup>'''([[User talk:John Vandenberg|chat]])'''</sup></span> 07:01, 17 June 2011 (UTC)


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.
----
;Examples
* [[Optics]], which has a note on the talk page and a separate history at [[Talk:Optics/Wikisource history]]. The results of the "contributors" tool can be seen [http://toolserver.org/~daniel/WikiSense/Contributors.php?wikilang=en&wikifam=.wikipedia.org&grouped=on&page=Optics here] and [http://toolserver.org/~soxred93/articleinfo/index.php?article=Optics&lang=en&wiki=wikipedia], and of course there is no mention of ScienceApologist/128.59.171.155 or [[user:Awadewit]]. The "Article Sources and Contributors" section of [[Book:Physics]] is six pages of usernames, but ScienceApologist doesnt get a mention.
* [[Kubla Khan]] was imported from simple.wikipedia.[http://en.wikipedia.org/w/index.php?title=Kubla_Khan&diff=369484490&oldid=366018762] and the attribution is a note on the talk page: [[Talk:Kubla_Khan#update_from_Ottava_Rima]]. The author of the rewrite was banned user [[User:Ottava Rima]]. He had made some edits to that page before being banned, so he does appear in [http://toolserver.org/~daniel/WikiSense/Contributors.php?wikilang=en&wikifam=.wikipedia.org&grouped=on&page=Kubla_Khan Contributors]
* [[Elegy Written in a Country Churchyard]] is also an import of [[User:Ottava Rima]]'s work on simple wikipedia, however this time there is no mention of him in the [http://toolserver.org/~daniel/WikiSense/Contributors.php?wikilang=en&wikifam=.wikipedia.org&grouped=on&page=Elegy_Written_in_a_Country_Churchyard Contributor list], and there is no obvious attribution note on the talk page (comments mention Ottava Rima, but nobody says the article was written by Ottava Rima).
* [[Nucleosol]] has a {{tl|CCBYSASource}} note at the bottom which says that it includes text from [http://www.wikidoc.org/index.php?title=Nucleosol wikidoc]. The WikiDoc page has two editors: [[user:Marshallsumter]] is also an editor of the WP article however [[user:Zorkun]] hasnt edited the Wikipedia page, so they are not attributed.
* [[Colin_Gunton]] includes {{tl|Theopedia}} at the bottom, however it does not contain a link to [http://www.theopedia.com/Colin_Gunton theopedia] or any authorship information, so I am 100% confident that is violating their copyright.
* [[David Douillet]] contains a (very small) template on the [[Talk:David Douillet|talk page]] saying that it is a translation of the corresponding fr.wiki article (but no details of which version of that page it is translated from and certainly no author info).
* [[Hélène Dorion]] says (at the bottom) that it "contains information from the equivalent article on the French Wikipedia" with wikilinks to the relevant article and also to the fr.wiki mainpage for some reason.
* [[The Sniper (poem)]], [[Ode of Remembrance]] and [[Suicide in the Trenches]] include a PD-1923 text which is not PD in the country of origin which requires 70pma. (Does [[Scratchbury_Camp#Poetry|On Scratchbury Camp]] fit within PD-1923? If not, it is a copyright infringement)


{{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}}.
== WikiProject category templates ==


Thanks. [[User:Bearcat|Bearcat]] ([[User talk:Bearcat|talk]]) 13:46, 25 May 2024 (UTC)
A large number of WikiProject categories have been CFDed to use "importance" rather than "priority" - the list is at [[Wikipedia:Categories for discussion/Working/Manual#Other]]. However I can't locate the precise point to adjust the templates that populate them - is anyone able to find and initiate the change? [[User:Timrollpickering|Timrollpickering]] ([[User talk:Timrollpickering|talk]]) 07:11, 10 June 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)
== TW SPI reporting not working ==
::{{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 sock reporting component of Twinkle is not working. [[User:Dr.K.|Dr.K.]]&nbsp;<small><sup style="position:relative">[[User talk:Dr.K.|λogos]]<span style="position:relative;bottom:-2.0ex;left:-5.2ex;*left:-5.5ex">[[Special:Contributions/Dr.K.|πraxis]]</span></sup></small> 07:34, 10 June 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).
:Please see [[WT:Twinkle]] —[[User:Department of Redundancy Department|DoRD]] ([[User talk:Department of Redundancy Department|talk]]) 15:35, 10 June 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.
== Huggle ==


Any ideas/confirmation?
I'm trying to configure Huggle so that no talk pages are included. I can't seem to get the command right. The command I found [[Wikipedia:Huggle/Configuration#User configuration|Here]] seems to be (namespaces:"alltalk") If I read the parameter correct wrapping (alltalk) with ("") disables Huggle from reading and loading talk pages. What is happening is talk pages are still being loaded and when exiting Huggle it reverts the command off my huggle.css page. What am I doing wrong ? [[User:Mlpearc|<span style='font-family:;color:#800020'>'''Mlpearc'''</span>]] <small>[[User_talk:Mlpearc|<span style='font-family:;color:#CFB53B'>'''powwow'''</span>]]</small> 15:19, 10 June 2011 (UTC)


:Probably best asked at [[Wikipedia:Huggle/Feedback]].&nbsp;–&nbsp;[[User:Ukexpat|ukexpat]] ([[User talk:Ukexpat|talk]]) 16:15, 10 June 2011 (UTC)
All the best: ''[[User:Rich Farmbrough|Rich]] [[User talk:Rich Farmbrough|Farmbrough]]''<small> 15:02, 25 May 2024 (UTC).</small><br />
: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:
::I think you need to add {{code|namespaces:-alltalk}} to your CSS page. You'd probably have to ask on the Huggle talk pages why it's removing stuff though. — [[User:Bility|Bility]] ([[User talk:Bility|talk]]) 16:17, 10 June 2011 (UTC)
: <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 ==
:::Thank you, and Hello Ukexpat, long time no read {{smiley}} . [[User:Mlpearc|<span style='font-family:;color:#800020'>'''Mlpearc'''</span>]] <small>[[User_talk:Mlpearc|<span style='font-family:;color:#CFB53B'>'''powwow'''</span>]]</small> 16:36, 10 June 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)
== Last login - "touched field" ==


: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)
In the discussion about inactive admins, [[User:Ohms law]] mentioned [[Wikipedia:Village_pump_(proposals)/suspend_sysop_rights_of_inactive_admins#Touched_field|here]] a "touched field" in the [[:MW:User_table#user_touched|user table]], and mentioned that there are likely extensions that already make use of it. I was watching that post but no responses were forthcoming. Do any such extensions exist? How feasible would it be to give certain users (crats, CUs, etc.) access to last-login information? I'm not trying to weigh the ''merit'' of a function like this, just the feasibility. ▫ '''[[User:JohnnyMrNinja|<font color="#202040">Johnny</font><font color="#204040">Mr</font><font color="#206040">Nin</font><font color="#204040">ja</font>]]''' 16:42, 10 June 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've done some looking around, [[:MW:Extension:LastLoginTime]] seems to allow users to see their own login time, and [[:MW:Extension:UserSnoop]] seems to allow an array of functions and requires a special right. Could these be easily modified for the purpose? ▫ '''[[User:JohnnyMrNinja|<font color="#202040">Johnny</font><font color="#204040">Mr</font><font color="#206040">Nin</font><font color="#204040">ja</font>]]''' 03:46, 12 June 2011 (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 ==
== How does one colour a an entire column in a table? ==


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)
Eg. In the [[List of metropolitan areas in the Americas]], I want to seperate the cities located in North America from those in south America so I was thinking of making them different colors. Can anybody help? <small><span class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:ThisguyYEAH|ThisguyYEAH]] ([[User talk:ThisguyYEAH|talk]] • [[Special:Contributions/ThisguyYEAH|contribs]]) 19:20, 10 June 2011 (UTC)</span></small><!-- Template:Unsigned --> <!--Autosigned by SineBot-->
:I think you'd have to color each cell individually, but please don't - we shouldn't convey information using color alone. I think the county is sufficient, or you could include a symbol to state which continent. --[[User:Golbez|Golbez]] ([[User talk:Golbez|talk]]) 19:41, 10 June 2011 (UTC)


:What is your specific search query? [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 17:56, 25 May 2024 (UTC)
== Sorting talk pages with a template ==
::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===
'''Please assist''' {{tl|OnThisDay}} adds talk pages in the form of (e.g.) <nowiki>Category:Selected anniversaries articles (March 2009)|{{PAGENAME}}</nowiki>, which means that a page such as [[Talk:The Beatles]] gets sorted as "The Beatles" rather than "Beatles"&mdash;is there a way to fix this? Thanks. —[[User:Koavf|Justin (koavf)]]❤[[User talk:Koavf|T]]☮[[Special:Contributions/Koavf|C]]☺[[Special:Emailuser/Koavf|M]]☯ 20:53, 10 June 2011 (UTC)
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)
:Yes, you can wrap {{code|<nowiki>{{PAGENAME}}</nowiki>}} in a custom sort parameter, like {{code|<nowiki>{{{catsort|{{PAGENAME}}}}}</nowiki>}} so that it uses the parameter but defaults to the page name so it can be safely omitted if you don't need it and won't affect already-transcluded OnThisDay templates. — [[User:Bility|Bility]] ([[User talk:Bility|talk]]) 21:21, 10 June 2011 (UTC)
::Quite a lot of templates which categorise a page will force the sort key to <code><nowiki>{{PAGENAME}}</nowiki></code>, which has always puzzled me. This would make sense if the normal action in the absence of a sortkey was to take the namespace into account (i.e. that putting <code><nowiki>[[Category:Test]]</nowiki></code> onto Talk:Foobar would sort that page under T, not F); but it doesn't work that way - Talk:Foobar sorts under F. It's a pain because a forced sortkey like this defeats the action of <code><nowiki>{{DEFAULTSORT:}}</nowiki></code>; and on talk pages, the <code><nowiki>{{DEFAULTSORT:}}</nowiki></code> is normally simulated by adding the {{para|listas}} parameter to one of the WikiProject banners (usually the first one).
::I was actually looking at this specific case quite recently - the template concerned isn't {{tlx|OnThisDay}} itself, but {{tlx|OnThisDay/link}}, which contains the following:
:::<code><nowiki>[[Category:Selected anniversaries ({{#time:F Y|{{{date}}}}})|{{PAGENAME}}]]</nowiki></code>
::It beats me why this particular template should require a default sort key to be defeated. Personally I think that it could be simplified to
:::<code><nowiki>[[Category:Selected anniversaries ({{#time:F Y|{{{date}}}}})]]</nowiki></code>
::I suppose this should be brought up either at [[Template talk:OnThisDay]] or at [[Wikipedia talk:Selected anniversaries]]. --[[User:Redrose64|<span style="color:#d30000; background:#ffeeee">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 13:51, 11 June 2011 (UTC)
:::<nowiki>{{PAGENAME}}</nowiki> is always the base page name, not the full name including the namespace. Therefore, your suggested edit would place all pages in that category under the T of Talk:. [[User talk:Ucucha|Ucucha]] 12:22, 14 June 2011 (UTC)
::::Your first statement is correct; the full name including the namespace would be <code><nowiki>{{FULLPAGENAME}}</nowiki></code>. But your second is incorrect: this is easily demonstrated by locating a talk page which has no banners (because they might cloud the issue by invoking a hidden <code><nowiki>{{DEFAULTSORT:}}</nowiki></code>), and onto that, add a category without specifying a sort key, and after saving, look in the category to see where it's been sorted. See [[Talk:Sioux Webserver]] and the only category that it's in - [http://en.wikipedia.org/w/index.php?title=Category:Unassessed_Computing_articles&from=SI Category:Unassessed Computing articles]. For me, I see it sorted under S, not under T. --[[User:Redrose64|<span style="color:#d30000; background:#ffeeee">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 13:54, 14 June 2011 (UTC)
:::::You're right. I'm almost sure it previously was as I wrote; the change might have to do with the new sort collation algorithm. [[User talk:Ucucha|Ucucha]] 13:56, 14 June 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)
== New messages bar ==


== Mass revdel across pages of one contributor ==
The bar, no matter what colour it's in is bloody annoying. I propose that we use a central notice style notice, that would be far less intrusive and would be just as effective. —<span style="font-family:trebuchet ms;">'''[[User:Ancient Apparition|James]] <sup>([[User talk:Ancient Apparition|Talk]] • [[Special:Contributions/Ancient Apparition|Contribs]])</sup>''' • '''3:45pm''' •</span> 05:45, 11 June 2011 (UTC)
*I think part of the reason for the conspicuousness (is that a word?) is so that you're alerted in case someone is trying to reach you urgently. For example, someone might be trying to tell you that a string of edits you're making is causing a problem. It's doubly annoying in AWB, where you not only get a window telling you that you have messages, but the whole process gets stopped until you address it. Not that I'd change that, I'm just sayin'. --[[User:Auntof6|Auntof6]] ([[User talk:Auntof6|talk]]) 05:53, 11 June 2011 (UTC)
*Indeed. It strikes fear into into the most established users :P You're not going to succeed in changing it for everyone (it's too engrained now), but you could probably restyle yours to be more like a central notice. - [[User:Jarry1250|Jarry1250]]&nbsp;<sup>[''[[Special:Contributions/Jarry1250|Weasel?]] [[User_talk:Jarry1250|Discuss]].'']</sup> 10:34, 11 June 2011 (UTC)
**I use a lovely light blue and even then it's still bloody annoying :P I'm not so confident with CSS, I wouldn't know how to make it look like the central notice, though it would be nice if this were the default. I've come across quite a few users who'd rather get emailed. —<span style="font-family:trebuchet ms;">'''[[User:Ancient Apparition|James]] <sup>([[User talk:Ancient Apparition|Talk]] • [[Special:Contributions/Ancient Apparition|Contribs]])</sup>''' • '''9:46pm''' •</span> 11:46, 12 June 2011 (UTC)
***Well now of course you do get emailed (by default). I guess you could probably just hide it? Or make the background white? Those are relatively simple operations. - [[User:Jarry1250|Jarry1250]]&nbsp;<sup>[''[[Special:Contributions/Jarry1250|Weasel?]] [[User_talk:Jarry1250|Discuss]].'']</sup> 13:18, 12 June 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)
== "Mark all edits minor by default" is now disabled for all users ==


: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)
Just a heads up, "Mark all edits minor by default" is now disabled for all users, this is for the completion of [[bugzilla:24313]]. For users that want this facility, you can use the [[WP:Userscript]] that can be found [[mw:Snippets/Mark_minor_edit|here]] or several from the original [[Wikipedia:Village_pump_(technical)/Archive_78#Preference_to_mark_all_edits_minor_by_default_asked_to_be_removed_in_bugzilla:24313|VPT]] discussion. [[User:Peachey88|Peachey88]] <sup>([[User_Talk:Peachey88|T]]&nbsp;<span style="font-weight:bold;">&middot;</span>&#32; [[Special:Contributions/Peachey88|C]])</sup> 07:38, 11 June 2011 (UTC)


== Track listing/Professional ratings overlap for music albums ==
:I've gone ahead and fixed the heading title; I changed "not" to "now". '''[[User:Graham87|Graham]]'''<font color="green">[[User talk:Graham87|87]]</font> 07:50, 11 June 2011 (UTC)


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)
== Redirect capitalization tool ==


== Template gadgets ==
I have just discovered that "[[Google Phone]]" and "[[Google phone]]" redirect to different places. When a redirect is being created, maybe it would be useful if there were a built-in Wikipedia tool that checks alternative capitalizations and prompts the contributor if they already exist; if alternative capitalizations do not exist, then the tool could ask the contributor if he/she wants to create them. [[User:LittleBenW|LittleBen]] ([[User talk:LittleBenW|talk]]) 14:05, 11 June 2011 (UTC)
:Feature request should be made in [[bugzilla:]]. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 13:57, 12 June 2011 (UTC)


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)
== DNS alias for moble wikipedia ==
: 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 ==
http://en.m.wikipedia.org/ is the URL of the mobile-phone/small-device optimised version of wikipedia. However, the similar URL http://m.en.wikipedia.org/ is not supported. It would be nice if they latter was a DNS alias to the former. Or http://m.en.wikipedia.org/$FOO is a HTTP 301 (Moved Permanently) redirect to http://en.m.wikipedia.org/$FOO. -- [[User:Csmiller|CS Miller]] ([[User talk:Csmiller|talk]]) 16:44, 11 June 2011 (UTC)
:I am fairly certain that is a [[bugzilla:|bugzilla]] sort of request. [[User:Killiondude|Killiondude]] ([[User talk:Killiondude|talk]]) 22:48, 12 June 2011 (UTC)


[https://en.m.wikipedia.org/w/index.php?title=Clan_Livingstone&diff=prev&diffonly=1&oldid=1225714396]
:I filed [[bugzilla:29364]] about this. --[[User:MZMcBride|MZMcBride]] ([[User talk:MZMcBride|talk]]) 00:48, 13 June 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)
== Image thumbnail purge request ==


: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)
The thumbnail for the image [[:File:Barclays_Cycle_Hire_bike_handlebar.jpg]], which is used on [[Barclays Cycle Hire]] is corrupt (has black bands through it); the full-size image sees to be fine. I've followed the instructions at [[Wikipedia:Purge#For_images]] to no avail. Could someone force a purge for me? [[User:Csmiller|CS Miller]] ([[User talk:Csmiller|talk]]) 16:53, 11 June 2011 (UTC)
::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)
:The image itself seems corrupt; it generate bands at any but the original resolution. <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> 18:30, 11 June 2011 (UTC)
::I'm not sure whether it's the image or the scaling algorithm. And the band are visible only at size of 482 px of smaller. <tt>[[User:Svick|User&lt;Svick&gt;]].[[User talk:Svick|Talk()]][[User:Svick/Signature|;]]</tt> 22:42, 11 June 2011 (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)
:::This is [[bugzilla:24854]], an upstream bug in the image conversion software [[ImageMagick]] that Wikipedia uses. Work around is to convert the image from CMYK to RGB and reupload. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 13:56, 12 June 2011 (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)
::::Shouldn't all images be uploaded in the RGB colourspace rather than CMYK? CMYK is for printed images not for screen display.&nbsp;–&nbsp;[[User:Ukexpat|ukexpat]] ([[User talk:Ukexpat|talk]]) 20:28, 15 June 2011 (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 />


== Category search / Related search ==
== New diff preview problem ==


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)
The search box in Wikipedia doesn't search categories for a search term by default. Would it be helpful to have an "(include) categories" option check box next to "search"? It seems that a "topic name" can appear as a category name but not as an article name, making it difficult to find.


:@[[User:The wub|The wub]]? [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 15:47, 27 May 2024 (UTC)
A related idea: sometimes there are many nearly-identical articles about the same topic. If they have not been placed in the same category then they may be difficult to find. Google is perhaps the best tool for finding such articles. Would a "use Google to search" option be useful (if both Google and Wikipedia agreed to permit this)? [[User:LittleBenW|LittleBen]] ([[User talk:LittleBenW|talk]]) 19:55, 11 June 2011 (UTC)
::@[[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)
:Both exist already. In the first case, don't enter any search criteria at first, but instead click the [http://en.wikipedia.org/w/index.php?title=Special%3ASearch&search=&button= magnifying glass], and then click on [http://en.wikipedia.org/w/index.php?title=Special:Search&fulltext=Search&advanced=1&ns0=1&redirs=0&search= Advanced]. This produces a series of checkboxes headed "Search in namespaces:", so you can select and deselect any one or more of the twenty namespaces before entering your search criteria. As regards Google search restricted to Wikipedia: [http://www.google.com/custom?sa=Google+Search&domains=wikipedia.org&sitesearch=wikipedia.org see here]. --[[User:Redrose64|<span style="color:#d30000; background:#ffeeee">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 20:15, 11 June 2011 (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 ==
:At [[Special:Preferences#preftab-6]] you can choose to include categories in searches by default. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 00:09, 12 June 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)
::Thanks for pointing out that you can get "Advanced Search" options by doing an empty search. Maybe most ordinary users would never work this out. Wouldn't an "Advanced" link next to the "Search" label above the search box on Wikipedia pages make it more obvious that advanced search options are available? [[User:LittleBenW|LittleBen]] ([[User talk:LittleBenW|talk]]) 03:16, 12 June 2011 (UTC)
:::Nah, link clutter is bad. There are already way too many things to click in the Wikipedia interface. Most people will never need this either. [[Help:Searching]] explains all this and is linked from the Search results page. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 13:51, 12 June 2011 (UTC)
::::I don't know, with the instant search thing now (Open Search?), getting to the "advanced search" functionality isn't exactly intuitive. I agree that link clutter is bad, but... I had no idea about the empty search technique, for example (thanks for the tip Redrose64, by the way).<br/>—&nbsp;[[User:Ohms law|<span style="font-family: Courier New, monospace ;font-style:italic">V = IR</span>]] <span style="font-variant:small-caps">([[User talk:Ohms law|Talk]]&thinsp;&bull;&thinsp;[[Special:Contributions/Ohms law|Contribs]])</span> 14:04, 12 June 2011 (UTC)
:::::Surely it's unacceptably unintuitive. Google would surely not display a "search options" link next to its search box (on Google.com) if that really were "unacceptable link clutter". [[User:LittleBenW|LittleBen]] ([[User talk:LittleBenW|talk]]) 14:44, 13 June 2011 (UTC)
::::::Perhaps we should add an "Advanced" element below "containing" in the dropdown. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 22:37, 15 June 2011 (UTC)
:::::::Sounds like a good idea, to me. :)<br/>—&nbsp;[[User:Ohms law|<span style="font-family: Courier New, monospace ;font-style:italic">V = IR</span>]] <span style="font-variant:small-caps">([[User talk:Ohms law|Talk]]&thinsp;&bull;&thinsp;[[Special:Contributions/Ohms law|Contribs]])</span> 23:53, 15 June 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)
== Javascript banner lag is driving me insane ==


== Why has my map broken? ==
Every link I click on, the page loads and then (after a half-second delay) shifts down 40px to accomodate the "Wikimedia Board of Trustees" banner or some other crap. There has to be a way to incorporate these banners into the source code rather than making them load dynamically. I'm constantly clicking on wrong links because the banner will move things around as I'm trying to click them. —[[User:Designate|Designate]] ([[User talk:Designate|talk]]) 20:40, 11 June 2011 (UTC)
:Nope, pages are cached, so adding them into the sourcecode would invalidate ALL cached pages, when enabled or disabled. (Which would bring down wikipedia). —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 13:45, 12 June 2011 (UTC)
::Agreed, but is there anything else that could be done to stop the content jumping up and down as the page loads? --[[User:DanielRigal|DanielRigal]] ([[User talk:DanielRigal|talk]]) 20:24, 12 June 2011 (UTC)
::The CSS could be changed to leave a blank padding area while the content loads. That depends on it being a consistent size. —[[User:Designate|Designate]] ([[User talk:Designate|talk]]) 20:44, 12 June 2011 (UTC)
:::For those of us that don't have JS running a blank space that never get populated would be a bad idea. [[User:HumphreyW|HumphreyW]] ([[User talk:HumphreyW|talk]]) 20:48, 12 June 2011 (UTC)
::::That sounds less annoying than having the page jump around. —[[User:Designate|Designate]] ([[User talk:Designate|talk]]) 23:07, 12 June 2011 (UTC)


Hi all
== Need to have a more details box. ==


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.
I am not sure if this can already be done in Wikipedia or not.


Not all readers of Wikipedia share the same intellect level. Some need more explanation to get the point. All these details on the other hand will put off more intelligent readers and will make the article too long. One way to get around this is to provide (say) a small '+' icon in places which contain more details. Readers who need to read that can click it and reveal a floating tool tip. IMHO this will allow to maintain article's brevity but at the same time will be accessible to all readers.


--[[User:Applegrew|Apple Grew]] ([[User talk:Applegrew|talk]]) 06:22, 12 June 2011 (UTC)
[[User:John Cummings|John Cummings]] ([[User talk:John Cummings|talk]]) 18:55, 27 May 2024 (UTC)
:This is what links are for. If you don't understand a concept, you can click a link that explains it in more detail. <tt>[[User:Svick|User&lt;Svick&gt;]].[[User talk:Svick|Talk()]][[User:Svick/Signature|;]]</tt> 10:42, 12 June 2011 (UTC)


: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)
== Template fix needed for new user pages ==
::[[: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)


Could an expert please look at [[Template talk:New user bar]] - the template is currently showing an incorrect "[Edit]" link on lots of new user pages. This is a fully-protected template, so ideally it needs someone who is an expert ''and'' an admin. -- [[User:John of Reading|John of Reading]] ([[User talk:John of Reading|talk]]) 11:29, 12 June 2011 (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)
:Done. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 13:48, 12 June 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)
== [[List of centenarians (sportspeople)]] ==


== Tech News: 2024-22 ==
Could someone with the necessary technical skills help out [http://en.wikipedia.org/w/index.php?title=Talk%3AList_of_centenarians_%28sportspeople%29&action=historysubmit&diff=423240554&oldid=423240025 here]. Citations to a baseball stats resource are causing anomalous footnotes. Thanks. [[User:David in DC|David in DC]] ([[User talk:David in DC|talk]]) 23:11, 12 June 2011 (UTC)


<section begin="technews-2024-W22"/><div class="plainlinks">
: You can't remove the bullet from the template, so it's best to just use plain text, like [http://en.wikipedia.org/w/index.php?title=List_of_centenarians_%28sportspeople%29&diff=433965315&oldid=433886417 this]. <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> 23:59, 12 June 2011 (UTC)
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.
:: Thank you for starting me off. I've fixed all of the anomolous entries. [[User:David in DC|David in DC]] ([[User talk:David in DC|talk]]) 17:01, 13 June 2011 (UTC)


'''Recent changes'''
== Stuff not showing up for users who are not logged in ==
* 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]].
* [[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'''
Hi,
* [[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]
I tried to describe the issue at the help desk [[Wikipedia:Help_desk#Stuff_not_showing_up_for_users_who_are_not_logged_in.|here]], they pointed me in this direction.
* 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]
And I tried a bit of debugging after I saw it reported initially by someone else [[Wikipedia:Help_desk/Archives/2011_May_20#Changes_made_on_a_page_have_been_saved_but_are_not_showing_up_when_not_logged_in.|here]].


'''''[[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'm pretty sure it's not a local cache or a particular browser issue (I've tried IE8 and Mozilla) - and I've seen it multiple times, despite frequently clearing my cache (as I have a fairly old machine - still running xp).
</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)
I had a quick search in these archives - and the closest article I could find was [[Wikipedia:Village_pump_(technical)/Archive_87#pages_cached_for_logged-in_users.3F|this]]
<!-- 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 ==
Would I be right in thinking that it's something to do with a backlog for the 'squid' (whatever that might be?) not updating to the 'full data' rather than the 'fairly recent copy data' for people who are not logged in? And trying to look at the implications would that mean all IP addresses (rather than logged in users) trying to edit something have a risk that their edit is trying to be applied to something older than the full data ? [[User:EdwardLane|EdwardLane]] ([[User talk:EdwardLane|talk]]) 08:34, 13 June 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)
== Page load never finishes (again) - is it the Wikimania banner? ==
:{{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?
The issue previously described in [[WP:Village pump (technical)/Archive 88#Page loading never stops]] has started occurring again. I am on Firefox 3.6.17 (I won't use FF 4 because it is so slow as to be unusable). With IE 8 the page eventually loads, but with a significant delay - this delay seems to wait for the Wikimania 2011 banner to appear. Note the banner never gets to appear in FF.
::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 ==
Google Chrome seems to behave properly (though for unrelated reasons I don't wish to use it). Anyone know what's going on? [[User:Jan1nad|<span style="color:#009d43;font-weight:bold">''Jan<span style="font-size:80%;">1</span>naD''</span>]] <sup>(''[[User talk:Jan1nad|talk]] • [[Special:Contributions/Jan1nad|contrib]]'')</sup> 10:55, 13 June 2011 (UTC)


If I insert a new column with the GUI by clicking "insert before" on a column with colors in them, it breaks the columns.
:FF has now started behaving (and the banner does not appear). [[User:Jan1nad|<span style="color:#009d43;font-weight:bold">''Jan<span style="font-size:80%;">1</span>naD''</span>]] <sup>(''[[User talk:Jan1nad|talk]] • [[Special:Contributions/Jan1nad|contrib]]'')</sup> 10:58, 13 June 2011 (UTC)


See here for an example
== Rollback from watchlist ==


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)
{{resolved|...sort of. The script apparently works, but something in my setup is causing it to fail. —[[User:Department of Redundancy Department|DoRD]] ([[User talk:Department of Redundancy Department|talk]]) 14:16, 15 June 2011 (UTC)}}
: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)
I have had [[User:Zvn/confirmwatchlistrollback.js]] in my .js for quite a while to prevent accidental rollbacks from the watchlist. Unfortunately, it has stopped working and I accidentally rollbacked an edit while browsing on my iPad this morning. I tested it a while back using FF4 and it doesn't work there, either. I don't often use rollback from the watchlist, so I don't know when it stopped working.


== The obsolete nowrap attribute ==
When I click on rollback, the script gives a confirmation popup as designed, but then goes ahead with the rollback without waiting for an answer. Perhaps someone who knows about these things can figure out what's wrong. P.S. I'm using Vector. Thanks! —[[User:Department of Redundancy Department|DoRD]] ([[User talk:Department of Redundancy Department|talk]]) 12:25, 13 June 2011 (UTC)


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)
Or, if another solution is available, I'd be glad to consider it. —[[User:Department of Redundancy Department|DoRD]] ([[User talk:Department of Redundancy Department|talk]]) 15:53, 13 June 2011 (UTC)
: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)
:You could [[Wikipedia:Village pump (technical)/Archive 55#This week's software updates|remove it altogether]] or you could use a different account on your iPad that doesn't have the rollback privilege (using a watchlist token to access your main watchlist). –[[user:xeno|<font face="verdana" color="black">'''xeno'''</font>]][[user talk:xeno|<font color="black"><sup>talk</sup></font>]] 16:01, 13 June 2011 (UTC)
: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)
::I also found [[Wikipedia:Village pump %28technical%29/Archive 83#Rollbacking technical assist|this more specific hack]], but I like(d) the ability to abort a rollback from the watchlist even using FF. I have another unused account, but occasionally do admin stuff on the iPad. —[[User:Department of Redundancy Department|DoRD]] ([[User talk:Department of Redundancy Department|talk]]) 17:28, 13 June 2011 (UTC)
: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)
:::I'm sure someone more script-savvy can fix the actual root cause for you. –[[user:xeno|<font face="verdana" color="black">'''xeno'''</font>]][[user talk:xeno|<font color="black"><sup>talk</sup></font>]] 22:17, 13 June 2011 (UTC)
: Could you [[WP:BYPASS|bypass your browser cache]] and try again? [[User talk:Amalthea|<span style="font-variant:small-caps;color:#832">Amalthea</span>]] 13:36, 14 June 2011 (UTC)
::With FF4, I'm still getting the same behavior. With Safari 5 and mobile Safari, the popop waits for a response, but goes ahead with the rollback even if you click cancel. —[[User:Department of Redundancy Department|DoRD]] ([[User talk:Department of Redundancy Department|talk]]) 13:57, 14 June 2011 (UTC)
::: Well, works for me, in both these browsers (Windows versions). Might be a conflict with one of your other scripts or gadgets? [[User talk:Amalthea|<span style="font-variant:small-caps;color:#832">Amalthea</span>]] 14:43, 14 June 2011 (UTC)
::::I'm at a loss, then. I disabled everything except the above script and still encountered the same behavior. I didn't change any of my gadgets, though, so the conflict may be there. I give up and will instead disable links on mobile Safari. Thanks for trying, though! —[[User:Department of Redundancy Department|DoRD]] ([[User talk:Department of Redundancy Department|talk]]) 16:04, 14 June 2011 (UTC)


== Secure server login ==
== Mobile view Swiss flag ==


Over the past 24 hours or so, I've noticed that the screen for logging in no longer offers a link to the login page that uses the secure server. Is there still an option of logging in via the secure server? If so, how should one do it? Thanks. --[[User:Tryptofish|Tryptofish]] ([[User talk:Tryptofish|talk]]) 20:17, 13 June 2011 (UTC)
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)
:[[:File:Flag of Switzerland (Pantone).svg]] is square. [[MediaWiki:Minerva.css]] says:
:It seems to come and go. --[[User:Tryptofish|Tryptofish]] ([[User talk:Tryptofish|talk]]) 20:24, 13 June 2011 (UTC)
:<syntaxhighlight lang="css">
::The main page is [https://secure.wikimedia.org/wikipedia/en/wiki/Main_Page here] and the login link is [https://secure.wikimedia.org/wikipedia/en/wiki/Special:UserLogin here]. For ''most'' URLs on Wikipedia, you just alter the first bit from <code>ht<span />tp://en.wikipedia.org/</code> to <code>ht<span />tps://secure.wikimedia.org/wikipedia/en/</code> --[[User:Redrose64|<span style="color:#d30000; background:#ffeeee">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 21:43, 13 June 2011 (UTC)
.flagicon img {
:::OK, thanks. What I notice, though, is when one goes to the login page for the regular server, there is usually some text just below the box where one logs in, under the title "'''Secure your account:'''", and beginning with the line "Consider logging in on the secure server" with "secure server" blue-linked to the login page you link above. Over the past 24 hours or so, that text has been disappearing (just leaving the login box with blank space below it) and reappearing. I'm getting the impression that this disappearance may be a bug rather than a feature. (By the way, I use Firefox 4.0.1.) --[[User:Tryptofish|Tryptofish]] ([[User talk:Tryptofish|talk]]) 21:57, 13 June 2011 (UTC)
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 ==
== Office hours to discuss Article Feedback Tool ==


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)
Hi everyone, I just wanted to announce that this Thursday the 16th at 18:00 UTC, there will be an IRC office hours concerning the [[Wikipedia:Article Feedback Tool|Article Feedback Tool]] ([[:mw:Article feedback|full documentation]]) which is currently in experimental partial deployment. I'll be moderating mainly for [[Erik Möller]], but hopefully we'll be joined by most of the Foundation staff who've contributed to this feature. Just to clarify, we want to stick to two general topics:
# The strategic goals the feature aims to address. In other words, its purpose.
# Plans for developing and deploying it further.
If you have bugs to report or specific design feedback, as always Bugzilla and MediaWiki.org are respectively the best places to discuss those two things. For the office hours we'd like to stick to a broader explanation of the feature and its future. Time conversion links and other documentation for IRC office hours are [[:meta:IRC office hours|on Meta]]. Looking forward to chatting, <font style="font-family: Georgia">[[User:Steven (WMF)|Steven Walling at work]]</font> 22:17, 13 June 2011 (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)
:[[:m:IRC office hours/Office hours 2011-06-16|Logs posted]]. Thanks to everyone who attended. :) <font style="font-family: Georgia">[[User:Steven (WMF)|Steven Walling at work]]</font> 20:01, 16 June 2011 (UTC)


== Issue with cast template visuals, but only on Chrome ==
== Problem resetting password ==


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)
Hi, I've got an account "dez" that I haven't used for a while, and I have time between jobs to catch up on some edits etc, and when I tried to login my password didn't work, so I used the "email reset password" button but the email never came through ( to dez@blanchfield.com.au ) for some reason, I've chatted to a bunch of great folk ( SudoGhost / Hersford ) and they recommended I come here for help. Is there someone here with access who can check that my "dez" account is linked to my "dez@blanchfield.com.au" email address as I'm doing a "tail -f /var/log/maillog" and nothing from wiki has come through yet? Help please ;-) Many thanks, Dez Blanchfield. <span style="font-size: smaller;" class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/203.16.243.213|203.16.243.213]] ([[User talk:203.16.243.213|talk]]) 04:10, 15 June 2011 (UTC)</span><!-- Template:UnsignedIP --> <!--Autosigned by SineBot-->
:The login {{user|dez}} doesn't seem to have ever been used. However, it ''is'' [http://en.wikipedia.org/w/index.php?title=Special%3AListUsers&username=Dez&group=&limit=50 registered]; so you really have two choices - (a) [[WP:ACCOUNT|create a different login]] or (b) [[WP:USURP|usurp the Dez account]].
:BTW - per [[WP:TPG|the talk page guidelines]], please start new discussion threads at the bottom of discussion pages; and always remember to sign your postings with four tildes <code>~~<span />~~</code>. --[[User:Redrose64|<span style="color:#d30000; background:#ffeeee">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 10:03, 15 June 2011 (UTC)
::I'll add that there isn't a way to check what, if any, email address was used when you registered that account, so I'd also suggest that you simply register a new one. However, [http://en.wikipedia.org/w/index.php?title=Special:ListUsers&limit=500&username=Dez there are a bunch of accounts] starting with Dez, so be sure you're trying the correct one. —[[User:Department of Redundancy Department|DoRD]] ([[User talk:Department of Redundancy Department|talk]]) 14:13, 15 June 2011 (UTC)
:"dez" has no email set, so you can't reset the password. –[[user:xeno|<font face="verdana" color="black">'''xeno'''</font>]][[user talk:xeno|<font color="black"><sup>talk</sup></font>]] 14:20, 15 June 2011 (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)
== erroneously prompted new EL captchas ==
::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 ==
I've inquired about this issue over at [[Wikipedia:Help desk#New external links false positives]] and was pointed here. To reiterate:


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)
I frequently get the non-autoconfirmed new EL captcha, although I haven't added any new external link. It happens seemingly at random, and may happen even on the simplest of edits (e.g. correcting a typo). One example diff where this happened to me is [http://en.wikipedia.org/w/index.php?title=Gulliver%27s_Travels_%282010_film%29&action=historysubmit&diff=434264224&oldid=434089799 here].
:{{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)
:@[[User:LoganP25|LoganP25]] Hello. I also had the same problem [[Wikipedia:Help desk#Page previews not showing up|here]], but fortunately I made it! So I would like to share my solution to you as well.
:The replies that you made to the questions of @[[User:PrimeHunter|PrimeHunter]] about having the link of "Edit preview settings" at the bottom of pages, the matter of "whether or not login/logout has an affect on page preview", "Navigation popups" options disabled or not along with all the other factors you mentioned matches '''exactly''' with mine. But I solved it in a different way.
:Firstly, go to the "Appearence" in your "Preferences" & check the box of the "Enable page previews" (if its already checked then follow the next steps). Now, go to the "User profile", click on "Set your global preferences". On the "Appearance", there you should enable the (another) page preview option (both of the boxes should be checked). Save it & again return to your (original) "Appearance" in your "Preferences" just to make sure that, two things are there — the "Enable page previews" is not only ''checked'' but also grayed out & the "Set a local exception for this global preference" is ''unchecked''.
:Hope it helps. [[User:Anggona Era|ERA]] ([[User talk:Anggona Era|talk]]) 13:40, 30 May 2024 (UTC)
::That worked, thank you so much! [[User:LoganP25|LoganP25]] ([[User talk:LoganP25|talk]]) 14:03, 30 May 2024 (UTC)
:::Glad you finally worked it out. It sounds like a bug if you have to set a global preference to make a local preference work. I haven't heard of that before and didn't expect it. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 14:15, 30 May 2024 (UTC)


== Production table formatting for correct text alignment ==
I've searched through BugZilla but couldn't find a ticket about this. Is it a known issue, or should I file a new bug report? Asking since there appears to be no markup/editing-related explanation. --[[Special:Contributions/213.196.218.59|213.196.218.59]] ([[User talk:213.196.218.59|talk]]) 15:59, 15 June 2011 (UTC)


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.
== List identifiers in small font ==


The original table format parameters are
When a list is created in small font, the list numbers or bullets appear in regular size font. Any workaround suggestions, besides numbering the list manually? Thanks. {{unsigned|Yuckhil|00:55, 16 June 2011 (UTC)}}
<syntaxhighlight lang=wikitext>
{| 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>
|-
</syntaxhighlight>
The editor made a change based on a "wikitable floatright" parameter plus internal table formatting (column alignment left or right) using:
<syntaxhighlight lang=wikitext>
{| 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>
|-
</syntaxhighlight>
[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
<small>
# clear:left
# First numbered item
# style="background:#ddf; width: and the respective 75% and 25% (removed in the revision)
# Second numbered item
# the editor's revision: style="width:15em; margin: 20px 20px 0px 20px"
</small>
# 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)
<small>
:{{replyto|Zefr}} The <code>floatright</code> class, when used on a table, is equivalent to setting the <syntaxhighlight inline lang=css>float:right; clear:right; margin: 0 0 0.5em 0.5em;</syntaxhighlight> styles. Notice two things: (i) the <code>clear</code> is for ''right'' not for left; (ii) it doesn't affect text alignment within the cells. You shouldn't need to explicitly set margin values if you are also using the <code>floatright</code> class. For an axample of <code>floatright</code> without other styles, see the "Distribution of locomotives, March 1974" table in [[British Rail Class 24#Operation]]. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 16:52, 30 May 2024 (UTC)
* First bullet list item
* Second bullet list item
</small>


== OpenStreetMaps in Croatian? Is it just me? ==
:The bullet cannot be changed (it is an image), but the numbers can. The best way to do so is using a {{tag|div|open}}. <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> 01:32, 16 June 2011 (UTC)


The OpenStreetMap maps in the infoboxes at [[Radio City Music Hall]] and [[Carnegie Hall]] (and probably other locations) seem to be in Serbo-Croatian; at least all of the place names are spelled phonetically according to Serbo-Croatian rules. Is this true for everyone, or is there some weird setting in my Preferences I need to change? If it's true for everyone, can it be fixed? Surely OpenStreetMap has an English-language version of their map of Manhattan. —[[User:Mahagaja|Mahāgaja]] · [[User talk:Mahagaja|''talk'']] 11:28, 30 May 2024 (UTC)
<div style="font-size: smaller;">
# First numbered item
# Second numbered item
</div>


:I see this, too. If I click through to get a large map, it affects all of Manhattan but not the other boroughs, New Jersey, or (as far as I can tell) any other place. [[User:Rbrwr|rbrwr]][[User talk:Rbrwr|<sup>&plusmn;</sup>]] 12:41, 30 May 2024 (UTC)
== JavaScript disappearances... ==
::For me it affects most but not all of Manhattan. Also raised at [[Talk:Manhattan#Question about the map]]. [[User:Chipmunkdavis|CMD]] ([[User talk:Chipmunkdavis|talk]]) 12:52, 30 May 2024 (UTC)
:[[phab:T366136]] for this issue. related ticket: [[phab:T195318]]. [[User:Robertsky|– robertsky]] ([[User talk:Robertsky|talk]]) 13:03, 30 May 2024 (UTC)


==New Gadget for viewing CT images==
I seem to be having problems with JavaScript add-ons in the last couple of weeks. First, the script I was using to hide top edits in my contrib list stopped working - Nihiltres managed to fix it, briefly, but it's since stopped working again - and now I seem to have lost the HotCat function. Bearing in mind that I am completely an "end user" and wouldn't be able to tell a variable from an if/else function: 1) what has happened - is it something I've done, or a change in WP functionality, and 2) what can I do to get those things working again? Note that I'm using the monobook skin on Safari 5.0.2, ands I have tried all the standard IT consultant things (purging cache, logging out and back in, turning computer off and on, etc.) [[User:Grutness|Grutness]]...''<small><font color="#008822">[[User_talk:Grutness|wha?]]</font></small>'' 10:56, 16 June 2011 (UTC)
We at Wiki Project Med have built a gadget to view stacks of images such a as CT scans, which you can see here[https://mdwiki.org/wiki/Mesenteric_ischemia#Diagnosis]. We are wanting to install it on EN WP.


Previously mentioned to [[User:MusikAnimal]] [https://en.wikipedia.org/wiki/User_talk:MusikAnimal/Archive_47#Wondering_if_you_would_be_willing_to_install_a_CT_scan_viewer? here] who want to verify community consensus first.
== CSS margins, width help ==


We have an earlier version working on Commons[https://commons.wikimedia.org/wiki/User:Doc_James/Test#Axial]. Based on [https://commons.wikimedia.org/wiki/Template:PD-medical Template:PD-medical] we have collected a few thousand complete CT and MRI scans of various conditions. [[User:Doc James|<span style="color:#0000f1">'''Doc James'''</span>]] ([[User talk:Doc James|talk]] · [[Special:Contributions/Doc James|contribs]] · [[Special:EmailUser/Doc James|email]]) 19:13, 29 May 2024 (UTC)
I am trying to make [[template:weather box]] play nice with right floating infoboxes, but I am afraid I do not know enough CSS to make this happen. The basic issue is that the current weather box sets the width to 90%, which appears to be based on the browser window width, so this causes lots of white space (see [http://en.wikipedia.org/w/index.php?title=Williams,_Arizona&oldid=434645084 here]). What I would like to do is have it push itself up and reduce its width to sit nicely in this open space. I was able to do this by removing the "width:90%" statement and adding "margin-left:5%" and "margin-right:5%" in the version shown [http://en.wikipedia.org/w/index.php?title=Williams,_Arizona&oldid=434644990 here], if the sandbox is still the same as how I left it. The problem is that now the box does not expand and contract when you change the width of the browser window, so it is more narrow in the case when there is no floating infobox on the right (see [http://en.wikipedia.org/w/index.php?title=Colorado_Springs,_Colorado&oldid=434648997 here] vs. [http://en.wikipedia.org/w/index.php?title=Colorado_Springs,_Colorado&oldid=434649166 here]. So, I am wondering if there is a way to have it always at a width of 90%, but have that width computed after subtracting the right floating elements, or if the only solution is to just reduce the width. Thank you. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 20:48, 16 June 2011 (UTC)


:Tough one. Ambox does what you want; it has a 10% margin set, but no widht. It's trick is to expand the right-side table cell to 100%, to cause the ambox table to take all available width (minus the 10%), even next to a floating element (see [[Template:Ambox/testcases]]). But where ambox only has two cells, the weather box has many. And trying to set it's header to 100% didn't work either. <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:20, 16 June 2011 (UTC)
:@[[User:Doc James|Doc James]] about how many pages would this need to run on? We are currently experimenting with our very first implementation of Template Gadgets (see a couple sections up) right now, which I imagine would be the way we would want to implement this (and most certainly not by hooking a full page text analyzer in to common.js). — [[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> 18:49, 30 May 2024 (UTC)
::A template gadget version has been copied to mediawiki.org as a demo. See [[mw:Template:ImageStackPopup]] [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 19:00, 30 May 2024 (UTC)
:: Yes, I got the idea for the "margin-left, margin-right" trick from ambox. A way around this might be to wrap the entire box inside another element (e.g. a div or a table) which expands the way we want it. I will do some more testing. Thank you. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 22:50, 16 June 2011 (UTC)
:::So [[User:Xaosflux]] sounds like it only loads when a specific category is present already. [[User:Doc James|<span style="color:#0000f1">'''Doc James'''</span>]] ([[User talk:Doc James|talk]] · [[Special:Contributions/Doc James|contribs]] · [[Special:EmailUser/Doc James|email]]) 19:21, 30 May 2024 (UTC)
:: One method that works, using your hint, is to just add a very short blank row with set dimensions and at least two cells, like [http://en.wikipedia.org/w/index.php?title=User%3AFrietjes%2Fbox&action=historysubmit&diff=434670606&oldid=434667976 this]. To not make it so obvious, I then removed merged it with the row above. It's sort of a hack but closer to what we want. The only issue with this is that I had to specify the relative width for the far left cell, which isn't that bad, but is a slight change in the default format. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 23:17, 16 June 2011 (UTC)
::::@[[User:Doc James|Doc James]] yes, where said category would come along with a template that would wrap whatever is being used. It sounds like all instances of this would use some template so that part isn't hard. What order of magnitude of pages would you expect this would get used on? — [[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:23, 30 May 2024 (UTC)
:::::[[User:Xaosflux]] few thousand at most, [[User:Doc James|<span style="color:#0000f1">'''Doc James'''</span>]] ([[User talk:Doc James|talk]] · [[Special:Contributions/Doc James|contribs]] · [[Special:EmailUser/Doc James|email]]) 19:44, 30 May 2024 (UTC)
:::Thanks for the note. — [[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:24, 30 May 2024 (UTC)
:@[[User:Doc James|Doc James]], As one of our professors often says, "One view is no view in Radiology." From a content perspective, I am confident that these imaging stacks will enhance the quality of our radiology related articles. Looking forward to seeing this implemented soon. <small><sub><span style="color:grey;">signed, </span></sub></small>[[User:511KeV|<span style="font-family:sans-serif; color:#FF1100; text-shadow:.2em .2em .4em #AfAfB1;">'''511KeV'''</span>]] [[User_talk:511KeV|<sup> '' (talk)''</sup>]] 19:03, 30 May 2024 (UTC)
:Moral support for the idea, bug-report for the implementation: the stack is scrolled by a left–right slider, but when hovering over the image the stack scrolls when I move the mouse up-and-down and not side-to-side. [[User:DMacks|DMacks]] ([[User talk:DMacks|talk]]) 19:49, 30 May 2024 (UTC)

Latest revision as of 19:49, 30 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]
@LoganP25 Hello. I also had the same problem here, but fortunately I made it! So I would like to share my solution to you as well.
The replies that you made to the questions of @PrimeHunter about having the link of "Edit preview settings" at the bottom of pages, the matter of "whether or not login/logout has an affect on page preview", "Navigation popups" options disabled or not along with all the other factors you mentioned matches exactly with mine. But I solved it in a different way.
Firstly, go to the "Appearence" in your "Preferences" & check the box of the "Enable page previews" (if its already checked then follow the next steps). Now, go to the "User profile", click on "Set your global preferences". On the "Appearance", there you should enable the (another) page preview option (both of the boxes should be checked). Save it & again return to your (original) "Appearance" in your "Preferences" just to make sure that, two things are there — the "Enable page previews" is not only checked but also grayed out & the "Set a local exception for this global preference" is unchecked.
Hope it helps. ERA (talk) 13:40, 30 May 2024 (UTC)[reply]
That worked, thank you so much! LoganP25 (talk) 14:03, 30 May 2024 (UTC)[reply]
Glad you finally worked it out. It sounds like a bug if you have to set a global preference to make a local preference work. I haven't heard of that before and didn't expect it. PrimeHunter (talk) 14:15, 30 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]

@Zefr: The floatright class, when used on a table, is equivalent to setting the float:right; clear:right; margin: 0 0 0.5em 0.5em; styles. Notice two things: (i) the clear is for right not for left; (ii) it doesn't affect text alignment within the cells. You shouldn't need to explicitly set margin values if you are also using the floatright class. For an axample of floatright without other styles, see the "Distribution of locomotives, March 1974" table in British Rail Class 24#Operation. --Redrose64 🌹 (talk) 16:52, 30 May 2024 (UTC)[reply]

OpenStreetMaps in Croatian? Is it just me?[edit]

The OpenStreetMap maps in the infoboxes at Radio City Music Hall and Carnegie Hall (and probably other locations) seem to be in Serbo-Croatian; at least all of the place names are spelled phonetically according to Serbo-Croatian rules. Is this true for everyone, or is there some weird setting in my Preferences I need to change? If it's true for everyone, can it be fixed? Surely OpenStreetMap has an English-language version of their map of Manhattan. —Mahāgaja · talk 11:28, 30 May 2024 (UTC)[reply]

I see this, too. If I click through to get a large map, it affects all of Manhattan but not the other boroughs, New Jersey, or (as far as I can tell) any other place. rbrwr± 12:41, 30 May 2024 (UTC)[reply]
For me it affects most but not all of Manhattan. Also raised at Talk:Manhattan#Question about the map. CMD (talk) 12:52, 30 May 2024 (UTC)[reply]
phab:T366136 for this issue. related ticket: phab:T195318. – robertsky (talk) 13:03, 30 May 2024 (UTC)[reply]

New Gadget for viewing CT images[edit]

We at Wiki Project Med have built a gadget to view stacks of images such a as CT scans, which you can see here[18]. We are wanting to install it on EN WP.

Previously mentioned to User:MusikAnimal here who want to verify community consensus first.

We have an earlier version working on Commons[19]. Based on Template:PD-medical we have collected a few thousand complete CT and MRI scans of various conditions. Doc James (talk · contribs · email) 19:13, 29 May 2024 (UTC)[reply]

@Doc James about how many pages would this need to run on? We are currently experimenting with our very first implementation of Template Gadgets (see a couple sections up) right now, which I imagine would be the way we would want to implement this (and most certainly not by hooking a full page text analyzer in to common.js). — xaosflux Talk 18:49, 30 May 2024 (UTC)[reply]
A template gadget version has been copied to mediawiki.org as a demo. See mw:Template:ImageStackPopup Bawolff (talk) 19:00, 30 May 2024 (UTC)[reply]
So User:Xaosflux sounds like it only loads when a specific category is present already. Doc James (talk · contribs · email) 19:21, 30 May 2024 (UTC)[reply]
@Doc James yes, where said category would come along with a template that would wrap whatever is being used. It sounds like all instances of this would use some template so that part isn't hard. What order of magnitude of pages would you expect this would get used on? — xaosflux Talk 19:23, 30 May 2024 (UTC)[reply]
User:Xaosflux few thousand at most, Doc James (talk · contribs · email) 19:44, 30 May 2024 (UTC)[reply]
Thanks for the note. — xaosflux Talk 19:24, 30 May 2024 (UTC)[reply]
@Doc James, As one of our professors often says, "One view is no view in Radiology." From a content perspective, I am confident that these imaging stacks will enhance the quality of our radiology related articles. Looking forward to seeing this implemented soon. signed, 511KeV (talk) 19:03, 30 May 2024 (UTC)[reply]
Moral support for the idea, bug-report for the implementation: the stack is scrolled by a left–right slider, but when hovering over the image the stack scrolls when I move the mouse up-and-down and not side-to-side. DMacks (talk) 19:49, 30 May 2024 (UTC)[reply]