Jump to content

Wikipedia:Village pump (technical): Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
 
Line 1: Line 1:
{{pp-sock|small=yes}}
<noinclude>{{short description|Page for discussing technical issues about Wikipedia}}
<noinclude>{{Short description|Page for discussing Wikipedia technical issues}}<!--
{{pp-move-indef|small=yes}}
--><!--
{{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 -->
Newcomers to the technical village pump are encouraged to read [[Wikipedia:Village pump (technical)/Before posting|these guidelines]] prior to posting here. 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="padding-right: 30px; 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__<!--

-->{{User:MiszaBot/config
-->{{User:MiszaBot/config
| archive = Wikipedia:Village pump (technical)/Archive %(counter)d
| archive = Wikipedia:Village pump (technical)/Archive %(counter)d
| algo = old(5d)
| algo = old(5d)
| counter = 190
| counter = 217
| maxarchivesize = 500k
| maxarchivesize = 500k
| minthreadsleft = 4
| minthreadsleft = 4
| minthreadstoarchive = 1
| minthreadstoarchive = 1
| archiveheader = {{Wikipedia:Village pump/Archive header}}
| archiveheader = {{Wikipedia:Village pump/Archive header}}
}}<!--
}}{{cent}}
__TOC__
{{anchor|below_toc}}
{{clear}}<!--


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.
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.


-->
-->[[<!-- OK -->Category:Wikipedia village pump]]
[[Category:Wikipedia village pump]]
[[Category:Non-talk pages that are automatically signed]]
[[Category:Non-talk pages that are automatically signed]]
[[Category:Pages automatically checked for incorrect links]]
[[Category:Pages automatically checked for incorrect links]]
[[Category:Pages that should not be manually archived]]
[[Category:Pages that should not be manually archived]]
</noinclude><!--
<!--
-->

{{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.
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.


-->
-->
== Can we do something about the ridiculous message displayed whenever syntax highlighting is taking "too long"? ==


{{tq|Syntax highlighting on this page was disabled because it took too long. The maximum allowed highlighting time is 20ms, and your computer took 22ms. Try closing some tabs and programs and clicking "Show preview" or "Show changes". If that doesn't work, try a different web browser, and if that doesn't work, try a faster computer.}}<br><br>
== Freenode IRC servers 'takeover' ==
The threshold is probably set too low to being with, and most people couldn't care less about it taking 0.03s vs 0.02s, so to tell them that a mere 2/1000 sec difference is "not allowed" is pretty ridiculous. If someone really does have a slow computer, that's hardly by choice, and to tell them to try a faster one is like Captain Obvious rubbing salt into their wound. More often than not, it's not even the fault of the computer, but rather some background crap (thanks, MS!), or the browser, or simply a very large and complex page (and possibly even the (gasp) wiki JS code). Ideally this should be a pref configurable by the user. Or, they could click a button if they don't care about things being slightly slower on the current page as long as they can still get the highlighting (the way browsers pop up slow JS abort/continue messages; in this case it wouldn't be modal, of course). But I think mostly it's about the overly low threshold, because when a large page is taking a number of seconds to load anyway, a few extra thousandths for this hardly make a difference. [[Special:Contributions/61.84.123.149|61.84.123.149]] ([[User talk:61.84.123.149|talk]]) 16:26, 1 January 2025 (UTC)


:This seems to come from the Gadget [[mw:User:Remember the dot/Syntax highlighter]]. This is a user gadget and is not enabled by default here (but available for users to enable). You should report the issue to the author. But also see [[mw:User:Remember the dot/Syntax highlighter#Timeout]] – [[User:Ammarpad|Ammarpad]] ([[User talk:Ammarpad|talk]]) 16:58, 1 January 2025 (UTC)
<!-- [[User:DoNotArchiveUntil]] 21:01, 24 June 2021 (UTC) -->{{User:ClueBot III/DoNotArchiveUntil|1624568478}}
::Thanks a lot, that will probably do it for me. I was uner the impression it was a standard feature. [[Special:Contributions/61.84.123.149|61.84.123.149]] ([[User talk:61.84.123.149|talk]]) 17:36, 1 January 2025 (UTC)
Background
:::Well there is a standard feature as well. You might even be using multiple. See [[WP:HILITE]]. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 09:57, 2 January 2025 (UTC)
*https://www.kline.sh/
::::And the problem with the standard feature is that it doesn't have a timeout, so on very large pages it just freezes up the page until the browser eventually offers to kill it. <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> 00:38, 5 January 2025 (UTC)
*https://www.vice.com/en/article/m7ev8y/freenode-open-source-korea-crown-prince-takeover
:::::On what page does it actually freeze? CodeMirror is heavily optimized and much more performant nowadays. – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 09:00, 5 January 2025 (UTC)
*https://boingboing.net/2021/05/19/freenode-irc-staff-quit-after-new-owner-seizes-control.html
::::::@[[User:SD0001|SD0001]] I've been doing a lot of work cleaning up the top of [[Special:LongPages]], and if I don't forget to disable syntax highlighting on any of those pages before editing the page locks up until eventually the browser offers to kill any running scripts. <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> 21:33, 6 January 2025 (UTC)


== Different assets for light and dark mode? ==
Traditionally, WMF projects and volunteers coordinated on [[Freenode]] [[IRC]] servers. Should we migrate (or aim to migrate) these projects to [[Libera Chat]] instead? &#32;<span style="font-variant:small-caps; whitespace:nowrap;">[[User:Headbomb|Headbomb]] {[[User talk:Headbomb|t]] · [[Special:Contributions/Headbomb|c]] · [[WP:PHYS|p]] · [[WP:WBOOKS|b]]}</span> 20:13, 20 May 2021 (UTC)


Is there any way to tell Wikipedia to display different images / media for Light vs Dark mode users? If not, could this be added in the form of a template, something like this?
=== Discussion ===
<pre>{{adaptive|lightmode=[[File:Diagram (light mode).svg]]|darkmode=[[File:Diagram (dark mode).svg]]}}</pre>
The question here is to address what we should general aim to try to do. I'm well aware each project is independent and can setup IRC channels wherever they want. However, we could decide that we encourage specific servers and discourage others, and try to migrate the 'official' Wikipedia/Wikimedia IRC channels to Libera instead of Freenode. &#32;<span style="font-variant:small-caps; whitespace:nowrap;">[[User:Headbomb|Headbomb]] {[[User talk:Headbomb|t]] · [[Special:Contributions/Headbomb|c]] · [[WP:PHYS|p]] · [[WP:WBOOKS|b]]}</span> 20:17, 20 May 2021 (UTC)


Due to transparency, some SVG and PNG images have bad contrast when viewed in Dark mode.
:I don't see that this needs an RFC? Wikimedia group contacts have already announced they will migrate to Libera on meta. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 20:22, 20 May 2021 (UTC)
::This affects a lot more than what the WMF does. For example, there's #wikipedia-bag, #wikipedia-en-afc in templates like {{tl|AfC welcome}} (including substed version of it), etc. etc. etc. &#32;<span style="font-variant:small-caps; whitespace:nowrap;">[[User:Headbomb|Headbomb]] {[[User talk:Headbomb|t]] · [[Special:Contributions/Headbomb|c]] · [[WP:PHYS|p]] · [[WP:WBOOKS|b]]}</span> 20:41, 20 May 2021 (UTC)
:::So, why would we go somewhere else? Who has the knowledge in the community for that? Who wants to volunteer for that? [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 20:46, 20 May 2021 (UTC)
::::See the above articles. As for who has the knowledge, there's busloads of technical users here that can help with this. &#32;<span style="font-variant:small-caps; whitespace:nowrap;">[[User:Headbomb|Headbomb]] {[[User talk:Headbomb|t]] · [[Special:Contributions/Headbomb|c]] · [[WP:PHYS|p]] · [[WP:WBOOKS|b]]}</span> 20:48, 20 May 2021 (UTC)
:::::Ok, let me spell it out then: A) We don't need an RFC. An RFC is a waste of the community's time on the point. B) Plain common sense is "go where WMF says they're taking the main channels". [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 20:53, 20 May 2021 (UTC)
::::::[https://lists.wikimedia.org/hyperkitty/list/cloud-announce@lists.wikimedia.org/thread/DWDCL4PY446RUGR7EJKKPBJLOT45QFMI/ Also see here]. -- [[User:RoySmith|RoySmith]] [[User Talk:RoySmith|(talk)]] 21:04, 20 May 2021 (UTC)
:::If I understand correctly, the channels were set up by the individual channel operators? So I suggest they can come up with a proposed plan and publicize it. I imagine most people will be fine with that, but in the event anyone objects, it can be discussed further. (Just as at meta, there may be interest in other chat tools, but that shouldn't stop any transition plan under these specific circumstances.) [[User:Isaacl|isaacl]] ([[User talk:Isaacl|talk]]) 21:06, 20 May 2021 (UTC)
:Wikimedia is migrating to Libera Chat, [https://meta.wikimedia.org/enwiki/w/index.php?title=Wikimedia_Forum&type=revision&diff=21476411&oldid=21475994 that was announced by the IRC Group Contacts] already. See [[m:IRC/Migrating to Libera Chat|IRC/Migrating to Libera Chat]] for some of the technical details, it'll of course take time to update documentation, links etc. [[User:Legoktm|Legoktm]] ([[User talk:Legoktm|talk]]) 21:43, 20 May 2021 (UTC)
:RfC tag removed per discussion above; if this is about notifying as many users as possible rather than inviting feedback, the Signpost and [[WP:AN]] are probably better places for a notification. There is one at [[Wikipedia:Administrators'_noticeboard#IRC_security,_Oversight_notice]]. [[User:ToBeFree|~ ToBeFree]] ([[User talk:ToBeFree|talk]]) 22:49, 20 May 2021 (UTC)
::{{replyto|ToBeFree}} You didn't remove it, you commented it out. [[WP:RFCEND#Duration|There is a difference]]. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 19:25, 21 May 2021 (UTC)
:::...and I had even looked at that section. [[File:Emoji_u1f604.svg|20px|alt=😄]] Thanks for removing it. [[User:ToBeFree|~ ToBeFree]] ([[User talk:ToBeFree|talk]]) 19:27, 21 May 2021 (UTC)


(repost from [[WP:TH]] as they said would be better here)
== Conflict between [[User:Awesome Aasim/addmylinks]] and [[User:BrandonXLF/QuickEdit]] ==
{{resolved}}
{{ping|Awesome Aasim|BrandonXLF}} The editing window for '''QuickEdit''' appears in the text editor for '''addmylinks'''. &#8213;<span style="background:#8FF;border:solid 1px;border-radius:8px;box-shadow:darkgray 2px 2px 2px">&nbsp;[[User:Qwerfjkl|<span style="color:#C00">Qwerfjkl</span>]]&nbsp;&#124;&nbsp;[[User talk:Qwerfjkl|𝕋𝔸𝕃𝕂]]&nbsp;</span>&nbsp;<small>(please use&#32;{{tlx|reply to|Qwerfjkl}} on reply)</small>{{Z181}}<!--Template:Please ping--> 18:50, 3 June 2021 (UTC)
: {{ping|Qwerfjkl}} What do you mean the editing window is appearing in the text editor, what steps do you perform for this to happen? addmylinks has some buttons that look the same as the ones in QuickEdit, but that's the addmylinks text editor and not QuickEdit.
: Do you mean when you save a page using QuickEdit, the page appears in the "My Links" section on the sidebar? <span class="nowrap">– [[User:BrandonXLF|<span style="color:blue;">Brandon</span><span style="color:green;">XLF</span>]] ([[User talk:BrandonXLF|talk]])</span> 19:15, 3 June 2021 (UTC)
::@[[User:Qwerfjkl|Qwerfjkl]] Looks all normal to me. Can you give browser information as well as skin information? [[User:Awesome Aasim|Aasim]] ([[User talk:Awesome Aasim|talk]]) 05:11, 4 June 2021 (UTC)
:::At first, pages appear normally, but when I click the 'quick edit' button, the 'My links' section is replaced with the normal 'QuickEdit' editor. (I'm using the Vector skin, but it might be affected by [[User:TheDJ/mobileVector.css]].) &#8213;<span style="background:#8FF;border:solid 1px;border-radius:8px;box-shadow:darkgray 2px 2px 2px">&nbsp;[[User:Qwerfjkl|<span style="color:#C00">Qwerfjkl</span>]]&nbsp;&#124;&nbsp;[[User talk:Qwerfjkl|𝕋𝔸𝕃𝕂]]&nbsp;</span>&nbsp;<small>(please use&#32;{{tlx|reply to|Qwerfjkl}} on reply)</small>{{Z181}}<!--Template:Please ping--> 06:59, 4 June 2021 (UTC)
::::@[[User:Awesome Aasim|Awesome Aasim]] @[[User:BrandonXLF|BrandonXLF]] This seems to only happen on mobile. &#8213;<span style="background:#8FF;border:solid 1px;border-radius:8px;box-shadow:darkgray 2px 2px 2px">&nbsp;[[User:Qwerfjkl|<span style="color:#C00">Qwerfjkl</span>]]&nbsp;&#124;&nbsp;[[User talk:Qwerfjkl|𝕋𝔸𝕃𝕂]]&nbsp;</span>&nbsp;<small>(please use&#32;{{tlx|reply to|Qwerfjkl}} on reply)</small>{{Z181}}<!--Template:Please ping--> 15:53, 6 June 2021 (UTC)
::::@[[User:Awesome Aasim|Aasim]] @[[User:BrandonXLF|BrandonXLF]] I've used [[User:BrandonXLF/PortletLinks]] to replace Aasim's script. &#8213;<span style="background:#8FF;border:solid 1px;border-radius:8px;box-shadow:darkgray 2px 2px 2px">&nbsp;[[User:Qwerfjkl|<span style="color:#C00">Qwerfjkl</span>]]&nbsp;&#124;&nbsp;[[User talk:Qwerfjkl|𝕋𝔸𝕃𝕂]]&nbsp;</span>&nbsp;<small>(please use&#32;{{tlx|reply to|Qwerfjkl}} on reply)</small>{{Z181}}<!--Template:Please ping--> 19:52, 8 June 2021 (UTC)
:::::{{ping|Qwerfjkl}} I was able to reproduce the issue on the new Vector skin, I'll see what I can do to fix it. <span class="nowrap">– [[User:BrandonXLF|<span style="color:blue;">Brandon</span><span style="color:green;">XLF</span>]] ([[User talk:BrandonXLF|talk]])</span> 20:49, 8 June 2021 (UTC)
::::::{{ping|Qwerfjkl}} The issue should be fixed now. <span class="nowrap">– [[User:BrandonXLF|<span style="color:blue;">Brandon</span><span style="color:green;">XLF</span>]] ([[User talk:BrandonXLF|talk]])</span> 16:40, 9 June 2021 (UTC)
:::::::Thanks! &#8213;<span style="background:#8FF;border:solid 1px;border-radius:8px;box-shadow:darkgray 2px 2px 2px">&nbsp;[[User:Qwerfjkl|<span style="color:#C00">Qwerfjkl</span>]]&nbsp;&#124;&nbsp;[[User talk:Qwerfjkl|𝕋𝔸𝕃𝕂]]&nbsp;</span>&nbsp;<small>(please use&#32;{{tlx|reply to|Qwerfjkl}} on reply)</small>{{Z181}}<!--Template:Please ping--> 17:11, 9 June 2021 (UTC)
::::::@[[User:BrandonXLF|BrandonXLF]] By "new Vector skin", are you referring to User:TheDJ's mobileVector? &#8213;<span style="background:#8FF;border:solid 1px;border-radius:8px;box-shadow:darkgray 2px 2px 2px">&nbsp;[[User:Qwerfjkl|<span style="color:#C00">Qwerfjkl</span>]]&nbsp;&#124;&nbsp;[[User talk:Qwerfjkl|𝕋𝔸𝕃𝕂]]&nbsp;</span>&nbsp;<small>(please use&#32;{{tlx|reply to|Qwerfjkl}} on reply)</small>{{Z181}}<!--Template:Please ping--> 17:17, 9 June 2021 (UTC)
:::::::{{ping|Qwerfjkl}} I'm referring to [[mw:Reading/Web/Desktop Improvements]]. If you go to appearance settings with Vector skin selected and uncheck "Use Legacy Vector" you see the new version of the skin. <span class="nowrap">– [[User:BrandonXLF|<span style="color:blue;">Brandon</span><span style="color:green;">XLF</span>]] ([[User talk:BrandonXLF|talk]])</span> 18:33, 9 June 2021 (UTC)
::::::::Thanks! &#8213;<span style="background:#8FF;border:solid 1px;border-radius:8px;box-shadow:darkgray 2px 2px 2px">&nbsp;[[User:Qwerfjkl|<span style="color:#C00">Qwerfjkl</span>]]&nbsp;&#124;&nbsp;[[User talk:Qwerfjkl|𝕋𝔸𝕃𝕂]]&nbsp;</span>&nbsp;<small>(please use&#32;{{tlx|reply to|Qwerfjkl}} on reply)</small>{{Z181}}<!--Template:Please ping--> 14:55, 11 June 2021 (UTC)


[[User:CrushedAsian255|CrushedAsian255]] ([[User talk:CrushedAsian255|talk]]) 04:38, 2 January 2025 (UTC)
== Mobile/desktop .js pages ==
{{resolved}}
When I load any .js page on the desktop version of Wikipedia, I cannot paste or copy text, so I have to switch to the mobile version. Is there a way to get a round this? (I think [[WP:WikEd|WikEd]] allowed me to view text normally.) &#8213;<span style="background:#8FF;border:solid 1px;border-radius:8px;box-shadow:darkgray 2px 2px 2px">&nbsp;[[User:Qwerfjkl|<span style="color:#C00">Qwerfjkl</span>]]&nbsp;&#124;&nbsp;[[User talk:Qwerfjkl|𝕋𝔸𝕃𝕂]]&nbsp;</span>&nbsp;<small>(please use&#32;{{tlx|reply to|Qwerfjkl}} on reply)</small>{{Z181}}<!--Template:Please ping--> 16:52, 6 June 2021 (UTC)
:There's certainly something odd about the edit box in some circumstances. If you don't get an edit cursor when you click in the edit box, click in the edit summary box instead, then use {{keypress|Shift|Tab}} to get to the main edit box. You should then be able to click with the mouse on the desired editing point. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 18:22, 6 June 2021 (UTC)
:It works for me. Does it work if you log out? Does [https://en.wikipedia.org/wiki/Wikipedia:Sandbox?action=edit&safemode=1 safemode] work? What is your browser? What is your skin at [[Special:Preferences#mw-prefsection-rendering]]? [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 18:28, 6 June 2021 (UTC)
::@[[User:PrimeHunter|PrimeHunter]] @[[User:Redrose64|Redrose64]] I'm using a mobile device, which is why I have to switch to the mobile version to paste anything. &#8213;<span style="background:#8FF;border:solid 1px;border-radius:8px;box-shadow:darkgray 2px 2px 2px">&nbsp;[[User:Qwerfjkl|<span style="color:#C00">Qwerfjkl</span>]]&nbsp;&#124;&nbsp;[[User talk:Qwerfjkl|𝕋𝔸𝕃𝕂]]&nbsp;</span>&nbsp;<small>(please use&#32;{{tlx|reply to|Qwerfjkl}} on reply)</small>{{Z181}}<!--Template:Please ping--> 19:55, 8 June 2021 (UTC)
::@[[User:PrimeHunter|PrimeHunter]] It does not work in safemode, and I'm using the vector skin. I cannot test wether it works when logged out, as [[User:Qwerfjkl/common.js]] isn't editable by a non-interface administrator. &#8213;<span style="background:#8FF;border:solid 1px;border-radius:8px;box-shadow:darkgray 2px 2px 2px">&nbsp;[[User:Qwerfjkl|<span style="color:#C00">Qwerfjkl</span>]]&nbsp;&#124;&nbsp;[[User talk:Qwerfjkl|𝕋𝔸𝕃𝕂]]&nbsp;</span>&nbsp;<small>(please use&#32;{{tlx|reply to|Qwerfjkl}} on reply)</small>{{Z181}}<!--Template:Please ping--> 06:25, 10 June 2021 (UTC)
:::Can you copy and paste when you log out? Safemode does not load any user js page. What do you mean by "load any .js page" in "When I load any .js page on the desktop version of Wikipedia, I cannot paste or copy text"? Are there circumstances where you ''can'' copy and paste in desktop? [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 09:17, 10 June 2021 (UTC)
::::@[[User:PrimeHunter|PrimeHunter]] Normally, when editing on a mobile device in desktop mode (or mobile mode), I can double- or triple-tap on a word to highlight, and an option to copy or paste appears above the selected text. However, in .js pages, this doesn't happen; the text selection behaves wierdly, and instead of options appearing above the selected text, a '...' Box appears, with multiple options that don't work. &#8213;<span style="background:#8FF;border:solid 1px;border-radius:8px;box-shadow:darkgray 2px 2px 2px">&nbsp;[[User:Qwerfjkl|<span style="color:#C00">Qwerfjkl</span>]]&nbsp;&#124;&nbsp;[[User talk:Qwerfjkl|𝕋𝔸𝕃𝕂]]&nbsp;</span>&nbsp;<small>(please use&#32;{{tlx|reply to|Qwerfjkl}} on reply)</small>{{Z181}}<!--Template:Please ping--> 21:28, 10 June 2021 (UTC)
:::::Oh, you are talking about ''editing'' js pages. Loading a js page usualy means a load command to run the script in the page. Try clicking the <code><></code> icon at the left of the toolbar to switch between the normal editor and the code editor. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 21:37, 10 June 2021 (UTC)
::::::Thanks! &#8213;<span style="background:#8FF;border:solid 1px;border-radius:8px;box-shadow:darkgray 2px 2px 2px">&nbsp;[[User:Qwerfjkl|<span style="color:#C00">Qwerfjkl</span>]]&nbsp;&#124;&nbsp;[[User talk:Qwerfjkl|𝕋𝔸𝕃𝕂]]&nbsp;</span>&nbsp;<small>(please use&#32;{{tlx|reply to|Qwerfjkl}} on reply)</small>{{Z181}}<!--Template:Please ping--> 14:57, 11 June 2021 (UTC)


:It would have to be hardcoded in CSS. Dark mode is configured on CSS pages through [[Mw:Extension:TemplateStyles|templatestyles]]. In order to specify a dark and light mode image in a template like that, [[Phab:T320322]] would have to be fixed first. [[User:Snævar|Snævar]] ([[User talk:Snævar|talk]]) 05:07, 2 January 2025 (UTC)
== Weird redirect ==
:Have you tried using class=skin-invert-image already ? —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 09:55, 2 January 2025 (UTC)
{{tracked|T8151}}
:{{tl|If dark}} can be used to select what wikitext to display based on whether or not dark mode is enabled. [[User:Isaacl|isaacl]] ([[User talk:Isaacl|talk]]) 23:19, 2 January 2025 (UTC)
::Usage of which really should be avoided though. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 10:33, 4 January 2025 (UTC)
:::I agree that generally speaking, specific colours shouldn't be specified in wikitext, and using the CSS class to [[mw:Recommendations for night mode compatibility on Wikimedia wikis#Apply filters to dark images with transparent background|trigger colour inversion by the dark mode feature]] simplifies maintenance by having just one image. There are cases, such as a company logo with a variant designed for dark mode, where the ability to choose the appropriate image is desirable. [[User:Isaacl|isaacl]] ([[User talk:Isaacl|talk]]) 17:02, 4 January 2025 (UTC)
::::{{tl|If dark}} may address the OP's question, although actual use of it may not be the best solution to the problem. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 13:44, 7 January 2025 (UTC)


== How to use inline style and CSS design tokens to color text? ==
Does anyone know what's happening [https://en.wikipedia.org/enwiki/w/index.php?title=Wikipedia_talk:WikiProject_Newspapers/Participants&oldid=857300080 here]? It seems like an attempt to create a redirect to a centralized talk page, but the "../" isn't something I've seen before and it's not currently working. <span style="color:#AAA"><small>&#123;{u&#124;</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}&#125;</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 17:58, 7 June 2021 (UTC)
:Hmmm. It is working for me. I haven't seen this shortcut before either, though. --[[User:Florian Blaschke|Florian Blaschke]] ([[User talk:Florian Blaschke|talk]]) 18:24, 7 June 2021 (UTC)
::It's a [[Help:Link#Subpage links|subpage link]] (or rather a parent page link in this case). It should work, but it appears due to a bug, redirects like it haven't worked from at least 2006, see [[phab:T8151]]. <span class="nowrap">– [[User:BrandonXLF|<span style="color:blue;">Brandon</span><span style="color:green;">XLF</span>]] ([[User talk:BrandonXLF|talk]])</span> 18:30, 7 June 2021 (UTC)
:::I really wonder why it works for me then, both on Firefox and Opera. --[[User:Florian Blaschke|Florian Blaschke]] ([[User talk:Florian Blaschke|talk]]) 01:38, 9 June 2021 (UTC)
:{{fixed}} by just explicitly declaring the target. — [[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> 10:46, 8 June 2021 (UTC)
: {{re|Sdkb}} This has always worked fine for me, and I use it sometimes. Here's [[User:Mathglot/sandbox/one|a demo]], just follow the breadcrumbs. Do any of these not work for you? I'm on Win 10/Vivaldi, but I checked it on iOS 14.2 mobile as well. Haven't incorporated it into a redirect, though, so maybe there's something squirrely there. [[User:Mathglot|Mathglot]] ([[User talk:Mathglot|talk]]) 01:56, 12 June 2021 (UTC)
::That works for me! <span style="color:#AAA"><small>&#123;{u&#124;</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}&#125;</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 02:10, 12 June 2021 (UTC)


I want to use {{tl|NumBlk2}} to number the chemical formula [[P4-t-Bu#math_B]] and keep the color of the square brackets in the numbering.
== Bug in "Find edits by user"? ==


'''The original chemical formula looked like this:'''
Bug? The "Next 500 results →" link at
https://sigma.toolforge.org/usersearch.py?name=50.201.195.170+&page=Talk%3AWuhan_Institute_of_Virology&server=enwiki&max= doesn't work. {{u|Σ}} runs it?
(Leads to
https://sigma.toolforge.org/usersearch.py?startdate=None&name=50.201.195.170+&page=Talk%3AWuhan_Institute_of_Virology&server=enwiki&max=500
which leads to itself. Started [https://en.wikipedia.org/enwiki/w/index.php?title=Talk:Wuhan_Institute_of_Virology&offset=&limit=500&tagfilter=&action=history here].)
--[[Special:Contributions/50.201.195.170|50.201.195.170]] ([[User talk:50.201.195.170|talk]]) 23:50, 8 June 2021 (UTC)
:As you noted, this is not part of the English Wikipedia, and you can follow up at [[User talk:Σ]]. — [[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> 00:08, 9 June 2021 (UTC)
::Anyone know why this isn't part of the standard UI? It's part of the API, see https://en.wikipedia.org/enwiki/w/api.php?action=query&titles=Talk%3AWuhan_Institute_of_Virology&prop=revisions&rvuser=50.201.195.170&rvlimit=500. So why do we need an external tool to produce human-readable output? [[User:Suffusion of Yellow|Suffusion of Yellow]] ([[User talk:Suffusion of Yellow|talk]]) 00:33, 9 June 2021 (UTC)
:::Interesting question. The native API result suggests usersearch.py is more severely broken; it finds 0 edits, instead of the many the API finds in the last 500 revisions. Also a bug? (It is "part of the English Wikipedia", xaosflux, in the sense that the tool is linked to from every page like that where I said I started, though at toolforge.org. So? I can follow up on their talk if {{ping|Σ}} doesn't respond to the ping and/or others may help. E.g. if I'm confused and these aren't bugs.) --[[Special:Contributions/50.201.195.170|50.201.195.170]] ([[User talk:50.201.195.170|talk]]) 02:12, 9 June 2021 (UTC)
::::50, we link to many external tools - but we (the editors and admins of wikipedia) don't maintain them. If it is broken to the point being useless, we can remove the external link from the interface or change it to something else - but we can't actually do anything about it being broken any more then if the [[Regional_Internet_registry|RIR]] links on the bottom of your talk page had an error - we have no access to the codebase for that tool, only its maintainer does. Removal or replacement can be discussed at the associated message here: [[MediaWiki talk:Histlegend]]. — [[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> 10:26, 9 June 2021 (UTC)
:::::The people that maintain them often watch this page, or know what the issue is, how to fix it, or provide alternatives. I think this is a perfectly acceptable venue. Because I saw this discussion, I've changed [[MediaWiki:Histlegend]] to point to what should be a fully working tool (disclosure, authored by yours truly). <span style="font-family:sans-serif">&mdash; <span style="font-weight:bold">[[User:MusikAnimal|<span style="color:black; font-style:italic">MusikAnimal</span>]] <sup>[[User talk:MusikAnimal|<span style="color:green">talk</span>]]</sup></span></span> 22:57, 10 June 2021 (UTC)
::::::Yup. I just didn't bother arguing/FTT. --[[Special:Contributions/50.201.195.170|50.201.195.170]] ([[User talk:50.201.195.170|talk]]) 00:05, 13 June 2021 (UTC)
:[[User:Ale jrb/Scripts/userhist.js]] also provides this function as a userscript integrated into [[special:contribs]], though the UI is bit outdated. – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 03:33, 9 June 2021 (UTC)
:Did anyone find the 2 bugs reproducible (or not reproducible)? I guess so, but I don't see anyone mentioning one way or the other. --[[Special:Contributions/50.201.195.170|50.201.195.170]] ([[User talk:50.201.195.170|talk]]) 23:14, 9 June 2021 (UTC)
:This feature works fine in XTools: https://xtools.wmflabs.org/topedits/en.wikipedia.org/50.201.195.170/1/Wuhan_Institute_of_Virology. I've changed [[MediaWiki:Histlegend]] to point to it for the time being. <span style="font-family:sans-serif">&mdash; <span style="font-weight:bold">[[User:MusikAnimal|<span style="color:black; font-style:italic">MusikAnimal</span>]] <sup>[[User talk:MusikAnimal|<span style="color:green">talk</span>]]</sup></span></span> 22:54, 10 June 2021 (UTC)


<syntaxhighlight lang="wikitext" inline>{{NumBlk|:|<math chem>\underbrace\ce{PCl5}_{(1)}\ \ce{->[t\text{-}\ce{Bu-\overset{\oplus}{NH3}.\overset{\ominus}{Cl}}]}\ \underbrace{t\text{-}\ce{Bu-N=PCl3}}_{(5)}</math>|[{{EquationRef|B}}]|RawN=y}}
Up until recently there was not a way to search for edits by IP addresses. At some point this became possible, but I have simply never gotten around to implementing this. <span style="font-family:Euclid Fraktur;background:#FFF">→[[User:Σ|<span style="color:#B00">Σ</span>]][[User talk:Σ|<span style="color:#036">σ</span>]][[Special:Contribs/Σ|<span style="color:#036">ς</span>]].&nbsp;<small>([[User:Σ|Sigma]])</small></span> 10:00, 11 June 2021 (UTC)
</syntaxhighlight>
{{NumBlk|:|<math chem>\underbrace\ce{PCl5}_{(1)}\ \ce{->[t\text{-}\ce{Bu-\overset{\oplus}{NH3}.\overset{\ominus}{Cl}}]}\ \underbrace{t\text{-}\ce{Bu-N=PCl3}}_{(5)}</math>|[{{EquationRef|B}}]|RawN=y}}


'''The result after using {{tl|NumBlk2}} for numbering:'''
:IP addresses have actor IDs just like accounts, so if you go by that it should be the same query for both IPs and accounts. If you want to query for IP ''ranges'' (which XTools only very recently added support for, but it's been technically possible since late 2017), then that does require a different query. Is the source code published anywhere? I'm happy to help. <span style="font-family:sans-serif">&mdash; <span style="font-weight:bold">[[User:MusikAnimal|<span style="color:black; font-style:italic">MusikAnimal</span>]] <sup>[[User talk:MusikAnimal|<span style="color:green">talk</span>]]</sup></span></span> 17:21, 11 June 2021 (UTC)


<syntaxhighlight lang="wikitext" inline>{{NumBlk2|:|<math chem>\underbrace\ce{PCl5}_{(1)}\ \ce{->[t\text{-}\ce{Bu-\overset{\oplus}{NH3}.\overset{\ominus}{Cl}}]}\ \underbrace{t\text{-}\ce{Bu-N=PCl3}}_{(5)}</math>|<span style{{=}}"color: var(--color-base);">[</span>'''B2'''<span style{{=}}"color: var(--color-base);">]</span>|RawN=y|Id=math_B2}}</syntaxhighlight>
::You're right. It's actually already supported, but the link above doesn't work because there's a space at the end. https://sigma.toolforge.org/usersearch.py?name=50.201.195.170&page=Talk%3AWuhan_Institute_of_Virology&max=500&server=enwiki works fine. Oops<span style="font-family:Euclid Fraktur;background:#FFF">→[[User:Σ|<span style="color:#B00">Σ</span>]][[User talk:Σ|<span style="color:#036">σ</span>]][[Special:Contribs/Σ|<span style="color:#036">ς</span>]].&nbsp;<small>([[User:Σ|Sigma]])</small></span> 02:26, 12 June 2021 (UTC)
{{NumBlk2|:|<math chem>\underbrace\ce{PCl5}_{(1)}\ \ce{->[t\text{-}\ce{Bu-\overset{\oplus}{NH3}.\overset{\ominus}{Cl}}]}\ \underbrace{t\text{-}\ce{Bu-N=PCl3}}_{(5)}</math>|<span style{{=}}"color: var(--color-base);">[</span>'''B2'''<span style{{=}}"color: var(--color-base);">]</span>|RawN=y|Id=math_B2}}
:::Ha! So not broken, after all. Though you could strip out the blank spaces server-side, I suppose. Edge case, for sure! Anyway in light of this I've changed [[MediaWiki:Histlegend]] to point back to Sigma's. <span style="font-family:sans-serif">&mdash; <span style="font-weight:bold">[[User:MusikAnimal|<span style="color:black; font-style:italic">MusikAnimal</span>]] <sup>[[User talk:MusikAnimal|<span style="color:green">talk</span>]]</sup></span></span> 05:22, 12 June 2021 (UTC)
::::Thank you for helping, MusikAnimal! Wrong?: Σ: {{tq| the link above doesn't work because there's a space at the end }} Umm...gaslighting? The links in my OP above obviously don't have spaces in 'em. They can't; they're bare URLs. (And no %20's either.) No, they were certainly not working and work now. --[[Special:Contributions/50.201.195.170|50.201.195.170]] ([[User talk:50.201.195.170|talk]]) 00:05, 13 June 2021 (UTC)
:::::The links in OP do have a + sign at the end of the name param, which is the encoding for a space. – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 16:31, 13 June 2021 (UTC)


''(The ID must be unique, so I renumbered it to {{EquationNote|B2}}.)''
=== Change in "Find edits by user"? ===


'''But the recommendation is currently restricted to use inside TemplateStyles:'''
Clicking on "Find edits by user" today is taking me to a new user interface at xtools.wmflabs.org. It was a different one until yesterday. Is there any notice or discussion around this? How can I remove the pie charts that show up in that page? I could not find a way to see a customized result, even after logging in to that site. Or, how can I go back to the older interface? [[User:Jay|'' - Jay'']] <sup>[[User talk:Jay|Talk]]</sup> 13:02, 11 June 2021 (UTC)


As described [https://www.mediawiki.org/wiki/Recommendations_for_night_mode_compatibility_on_Wikimedia_wikis#Use_CSS_variables_or_CSS_design_tokens_with_fallback_for_background_and_text_where_possible here], using design tokens directly in an article (e.g. <syntaxhighlight lang="wikitext" inline><span style="color: var(--color-base);">some text</span></syntaxhighlight>) seems problematic. How to color text correctly in an article in light mode and dark mode in this case? Any ideas? Thanks. [[User:Justin545|Justin545]] ([[User talk:Justin545|talk]]) 01:59, 5 January 2025 (UTC)
:See above. --[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 13:51, 11 June 2021 (UTC)
:So you are adding link content, that you don't want to have colored as link content ? And for that reason you want to apply custom styles ? Is this a recurring pattern ? Then you make a template and use TemplateStyles. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 11:10, 5 January 2025 (UTC)
::I had seen it earlier, and did not know it is related to my query. How is it related to my query? What has happened? [[User:Jay|'' - Jay'']] <sup>[[User talk:Jay|Talk]]</sup> 14:13, 11 June 2021 (UTC)
::Thank you for your advice. It does sound a bit strange to color the link the same color as normal text. I'm not sure if the use of square brackets in numbering occurs very often. If that's not the usual case, maybe it would be better to just use {{tl|NumBlk}} instead of wrapper template {{tl|NumBlk2}}:
:::Ok, so the earlier tool was called WikiBlame and it is broken, and xtools is a temporary replacement? And this discussion is the place where we can get updates on this? [[User:Jay|'' - Jay'']] <sup>[[User talk:Jay|Talk]]</sup> 14:30, 11 June 2021 (UTC)
::<syntaxhighlight lang="wikitext">{{NumBlk|:|<math chem>\underbrace\ce{PCl5}_{(1)}\ \ce{->[t\text{-}\ce{Bu-\overset{\oplus}{NH3}.\overset{\ominus}{Cl}}]}\ \underbrace{t\text{-}\ce{Bu-N=PCl3}}_{(5)}</math>|&lsqb;[[#math_B3|B3]]&rsqb;|RawN=y|Attr=id{{=}}math_B3 style{{=}}"margin-left: {{#expr:1.6 * 1}}em;"}}</syntaxhighlight>
::::WikiBlame is a completely different tool and is still accessible via "Find addition/removal". [[User:Nardog|Nardog]] ([[User talk:Nardog|talk]]) 14:42, 11 June 2021 (UTC)
<dl><dd><dl><dd>
: On second thoughts, can we retain XTools permanently? It is superfast as compared to the earlier tool, and I can live with the pie charts if not customizable. Or is there a way a user can customize the tool to be used for "Find edits by user" via Preferences? [[User:Jay|'' - Jay'']] <sup>''[[User talk:Jay|(Talk)]]''</sup> 05:31, 12 June 2021 (UTC)
{{NumBlk|:|<math chem>\underbrace\ce{PCl5}_{(1)}\ \ce{->[t\text{-}\ce{Bu-\overset{\oplus}{NH3}.\overset{\ominus}{Cl}}]}\ \underbrace{t\text{-}\ce{Bu-N=PCl3}}_{(5)}</math>|&lsqb;'''[[#math_B3|B3]]'''&rsqb;|RawN=y|Attr=id{{=}}math_B3 style{{=}}"margin-left: {{#expr:1.6 * 1}}em;"}}
::These external tools are linked from [[MediaWiki:Histlegend]] - if there are additions/removals or just label changes needed, feel free to suggest an edit at [[MediaWiki talk:Histlegend]]. — [[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> 09:57, 12 June 2021 (UTC)
</dd></dl></dd></dl>
::Seconded: retain XTools permanently. --[[Special:Contributions/50.201.195.170|50.201.195.170]] ([[User talk:50.201.195.170|talk]]) 00:05, 13 June 2021 (UTC)
::If it's the usual case, maybe just make a template and use TemplateStyles as you said: <syntaxhighlight lang="wikitext">
:::I [[Special:Diff/859997601|proposed]] this on [[MediaWiki talk:Histlegend]] over two years ago to no feedback. I'll take the above as sufficient consensus to change the link. I can make the pie charts smaller, @[[User:Jay|Jay]], if that helps. <span style="font-family:sans-serif">&mdash; <span style="font-weight:bold">[[User:MusikAnimal|<span style="color:black; font-style:italic">MusikAnimal</span>]] <sup>[[User talk:MusikAnimal|<span style="color:green">talk</span>]]</sup></span></span> 19:07, 13 June 2021 (UTC)
<!-- Template:Token -->
::::Won't there be thousands of users using the "Find edits by user" functionality, who will be affected? Shouldn't there be a vote, or a customize option? [[User:Jay|'' - Jay'']] <sup>''[[User talk:Jay|(Talk)]]''</sup> 20:13, 13 June 2021 (UTC)
<templatestyles src="Token/styles.css" />
:::::I think it'd make most sense to just have both, similar to how it's done with "Find addition/removal" (e.g. {{xt|Find edits by user <sup>(Alternate)</sup>}}). –&nbsp;[[User talk:Rummskartoffel|<span style="background:linear-gradient(90deg,#e40303,#ff8c00,#ffed00,#008026,#004dff,#750787);color:transparent;background-clip:text;-webkit-background-clip:text;">Rummskartoffel</span>]] 20:29, 13 June 2021 (UTC)
</syntaxhighlight><syntaxhighlight lang="CSS">
::::::As I said, I went the proper route of soliciting feedback before and no one engaged. It definitely doesn't seem worthy of a formal RfC. There's no way to customize this on a per-user basis, so Rummskartoffel's suggestion sounds best. I've restored Sigma's tool as the long-standing default and made XTools an alternate. Hopefully that satisfies everyone :) <span style="font-family:sans-serif">&mdash; <span style="font-weight:bold">[[User:MusikAnimal|<span style="color:black; font-style:italic">MusikAnimal</span>]] <sup>[[User talk:MusikAnimal|<span style="color:green">talk</span>]]</sup></span></span> 23:39, 13 June 2021 (UTC)
/* Template:Token/styles.css */


.token-color-base { color: var(--color-base); }
==Cats visible in mobile view for mobile users==
.token-color-disabled { color: var(--color-disabled); }
Hello, probably just my device, or, are there any other mobile users experiencing categories being visible(in a block like manner) whilst in ''mobile view''? is there a d.i.y manner for me to remedy this? '''[[User:Celestina007|Celestina007]]''' ([[User talk:Celestina007|talk]]) 20:34, 10 June 2021 (UTC)
/* ... (omitted) ... */
:[[WP:ITSTHURSDAY]], I think. This appears to be intentional and working as designed, as step one of a change in mobile category display. See {{phab|T246049}}, which appears to have changed the mobile view to display categories. It may be followed by {{phab|T152199}}, which intends to make them collapsible. {{pb}}This change appears to have been announced as part of the often inscrutable list of updates linked from the above Tech News (and always posted well after the Tech News, so you have to remember to check the link sometime after the Tech News posting). See [[mw:MediaWiki 1.37/wmf.9#MinervaNeue]] for the description of this change. {{pb}}I am not always great at following the phab/gerrit/WMF bread crumbs, and never great at understanding why they work on this fiddly stuff instead of fixing real bugs, so I could have any of this wrong. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 20:54, 10 June 2021 (UTC)
::This change removes the old component that used to do categories on mobile, which had a half dozen open bugs associated with it. So... yes, it fixed real bugs. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 21:09, 10 June 2021 (UTC)
:::And may even enable category gadgets. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 21:09, 10 June 2021 (UTC)
:You can completely hide it by adding {{code|lang=css|#catlinks {display: none;}<nowiki />}} to [[special:MyPage/minerva.css|your minerva.css]]. –&nbsp;[[User:Rummskartoffel|Rummskartoffel]] ([[User talk:Rummskartoffel|talk]]&nbsp;• [[Special:Contributions/Rummskartoffel|contribs]]) 21:02, 10 June 2021 (UTC)


.token-background-color-base { background-color: var(--background-color-base); }
::{{u|Jonesey95}}, {{u|Rummskartoffel}}, {{u|Izno}} thanks, I think I’d probably just opt to hide it ''(if it doesn’t translate to it being invisible in desktop view also'') You coders/script creators and all template editors in general are gifted. This aspect of editing just overwhelms me. '''[[User:Celestina007|Celestina007]]''' ([[User talk:Celestina007|talk]]) 21:19, 10 June 2021 (UTC)
.token-background-color-disabled { background-color: var(--background-color-disabled); }
:::minerva.css only affects the mobile skin, so you'd still see categories while on the desktop version. –&nbsp;[[User:Rummskartoffel|Rummskartoffel]] ([[User talk:Rummskartoffel|talk]]&nbsp;• [[Special:Contributions/Rummskartoffel|contribs]]) 21:26, 10 June 2021 (UTC)
/* ... (omitted) ... */
::::@{{u|Rummskartoffel}}, thanks-a-billion mate. '''[[User:Celestina007|Celestina007]]''' ([[User talk:Celestina007|talk]]) 22:26, 10 June 2021 (UTC)
</syntaxhighlight> and then use it like this <syntaxhighlight lang="wikitext">
{{Token}}
{{NumBlk2|:|<math chem>\underbrace\ce{PCl5}_{(1)}\ \ce{->[t\text{-}\ce{Bu-\overset{\oplus}{NH3}.\overset{\ominus}{Cl}}]}\ \underbrace{t\text{-}\ce{Bu-N=PCl3}}_{(5)}</math>|<span class{{=}}"token-color-base">[</span>'''B4'''<span class{{=}}"token-color-base">]</span>|RawN=y|Id=math_B4}}
</syntaxhighlight>
::''(The source code above has not been tested and may contain errors.)'' —[[User:Justin545|Justin545]] ([[User talk:Justin545|talk]]) 16:38, 5 January 2025 (UTC)
:::You should not worry about such weird specifics at all. This also produces different colours (= inconsistent behaviour) in the skins that do not use the same token. [[user:stjn|stjn]] 16:51, 5 January 2025 (UTC)
::::Thank you for reminding me about skins. Coloring text in Wikipedia is a lot more complicated than I thought. I haven't started to understand the skin part yet. So far I don't know if there is a correct way to handle coloring for skins and dark mode at the same time. If not, I may have to give up the idea of ​​coloring text completely. Without coloring, I might just use {{tl|NumBlk}} directly like {{EquationNote|B3}}. [[User:Justin545|Justin545]] ([[User talk:Justin545|talk]]) 01:18, 6 January 2025 (UTC)
::::Or do you mean using name of colors or hex code of colors directly in styles.css instead of using design tokens? [[User:Justin545|Justin545]] ([[User talk:Justin545|talk]]) 04:36, 8 January 2025 (UTC)
:::::I mean that this is not an issue you should concern yourself with when you introduce more markup into the code and that markup is incorrect at least in one way. Wikipedia won’t be dead tomorrow because brackets are blue colour there. It is a complete non-issue. [[user:stjn|stjn]] 10:40, 8 January 2025 (UTC)
::::::Rather than telling me what I shouldn't worry about or what I shouldn't concern with, wouldn't it be better if you could just give me links to some relevant guidelines or help pages? I think most official documents have very clear and specific descriptions and explanations, which are relatively easy to understand. And they don't contain emotions directed at specific people.
::::::I raised questions and opinions about design tokens based on the MediaWiki [https://www.mediawiki.org/wiki/Recommendations_for_night_mode_compatibility_on_Wikimedia_wikis#Use_CSS_variables_or_CSS_design_tokens_with_fallback_for_background_and_text_where_possible recommendation]. If you think I have misunderstood the recommendation, you can tell me directly where I misunderstood it. [[User:Justin545|Justin545]] ([[User talk:Justin545|talk]]) 14:53, 8 January 2025 (UTC)


== Broken icon ==
*Darn, wrong thread. I thought this was gonna be about uncloaking Romulan felines using cellphones. My bad. [[User:Mathglot|Mathglot]] ([[User talk:Mathglot|talk]]) 23:15, 13 June 2021 (UTC)
{{tracked|T383023|fixed}}
*:I have long thought that the full potential of category{{ndash}}feline humor is too seldom realized. [[User:EEng#s|<b style="color:red;">E</b>]][[User talk:EEng#s|<b style="color:blue;">Eng</b>]] 23:32, 13 June 2021 (UTC)
Hi, can anyone see why [[:File:Gnome-colors-list-remove.svg]] is broken, nothing seems to have chaned but it's showing as a broken image in the latest admin newsletter. It should be a horizontal red minus to signify remove. [[User:Stephen|Step]][[User talk:Stephen|hen]] 02:43, 6 January 2025 (UTC)


:It seems to be working for me, both in that link and in the news letter in your user talk page (like in <code>- Ferret</code>).
== Is the global Lua function <code>type</code> effectively overrideable? ==
:What browser are you using? Are you using the mobile website (en.m.wikipedia.org)?
:Is it affecting any of the previous newsletters? Is it affecting any of the other icons? &ndash; [[Special:Contributions/2804:F14:8096:C101:D8FF:9658:72CA:8CB5|2804:F1...CA:8CB5]] ([[Special:Contribs/2804:F14::/32|::/32]]) ([[User talk:2804:F14:8096:C101:D8FF:9658:72CA:8CB5|talk]]) 02:58, 6 January 2025 (UTC)
::That's weird it works for you. I'm on Chrome using the desktop site. All previous uses of the icon in old newsletters are broken too wherever I look. [[User:Stephen|Step]][[User talk:Stephen|hen]] 03:49, 6 January 2025 (UTC)
:::I'm on Chrome desktop too... I wonder if your browser console shows any errors (Pressing f12 or <code>three dots button (⋮) > More tools > Developer tools > Console tab</code> and then refreshing the page).
:::There's also the network tab of developer tools, which for me shows a [https:/upwiki/wikipedia/commons/thumb/f/f8/Gnome-colors-list-remove.svg/20px-Gnome-colors-list-remove.svg.png 20px-Gnome-colors-list-remove.svg.png] line (the 10th line for me after refreshing) as successfully downloaded - if it had failed it would have been red, and apparently repeated a bunch of times one for each time it appears on your talk page.
:::What it says in the Status column, if it is red, or in Status code if you click it, might be of interest.
:::Also, does that direct link work? &ndash; [[Special:Contributions/2804:F14:8096:C101:D8FF:9658:72CA:8CB5|2804:F1...CA:8CB5]] ([[Special:Contributions/2804:F14::/32|::/32]]) ([[User talk:2804:F14:8096:C101:D8FF:9658:72CA:8CB5|talk]]) 04:48, 6 January 2025 (UTC)
::::Suspect I am in Stephen's position. The direct link says "Unauthorized This server could not verify that you are authorized to access the document you requested." No errors showing up in my console, although the console is forcing the page into mobile view for some reason. [[User:Chipmunkdavis|CMD]] ([[User talk:Chipmunkdavis|talk]]) 04:56, 6 January 2025 (UTC)
:::::Searching [[phab:|phabricator]] for that error reveals a very similar error that happened on a beta version ([[phab:T276179]]/[[phab:T277016]])... seeing as it doesn't happen to me, it might be a [[wikitech:codfw data center|codfw]] issue rather than a [[wikitech:eqiad data center|eqiad]] issue (which is the data center I'm assigned to) - but I'm just guessing, I've never looked at how these things actually work, it just seems to be a common cause of differences.
:::::I'm pretty sure someone with backend access will have to look into this to find out what the problem is though.
:::::Could try filing a bug report in phabricator? &ndash;[[Special:Contributions/2804:F14:8096:C101:D8FF:9658:72CA:8CB5|2804:F1...CA:8CB5]] ([[Special:Contributions/2804:F14::/32|::/32]]) ([[User talk:2804:F14:8096:C101:D8FF:9658:72CA:8CB5|talk]]) 05:59, 6 January 2025 (UTC)
::::::I have the same error and filed ticket [[phab:T383023]]. [[User:Cyberdog958|<span style="color:navy;">''cyberdog''</span><span style="color:orange;">'''958'''</span>]]<sup>[[User talk:Cyberdog958|<span style="color:teal;">Talk</span>]]</sup> 07:22, 6 January 2025 (UTC)
:I was having the same problem with [[:File:Hypercubestar.svg]] (used on four articles here and over 30 on some 14 languages of Wikipedia) and started a discussion at https://commons.wikimedia.org/wiki/Commons:Help_desk#SVG_image_claims_its_thumbnails_are_unauthorized before finding this discussion and the phab link. It would be interesting to learn whether this issue is more widespread. —[[User:David Eppstein|David Eppstein]] ([[User talk:David Eppstein|talk]]) 07:33, 6 January 2025 (UTC)


*The bug report has been closed as fixed, please confirm. Issue appears to have been that a database container for thumbnails was mysteriously deleted, it was fixed by 'effectively re-creating the container' - an investigation on how/why it was deleted is now tracked at [[phab:T383053]]. &ndash; [[Special:Contributions/2804:F14:80F4:1F01:144B:E33B:3E42:FDB7|2804:F1...42:FDB7]] ([[Special:Contributions/2804:F14::/32|::/32]]) ([[User talk:2804:F14:80F4:1F01:144B:E33B:3E42:FDB7|talk]]) 15:21, 6 January 2025 (UTC)
So I made a function in [[Module:Lua class]] (last function) that tries to override/build upon the default <code>type</code> to support new "types". I was testing it in [[User:Alexiscoutinho/sandbox 1]] and noticed that it behaves differently if you are previewing. When you view the sandbox normally, it should contain "table table table". However, if you preview the page (without edits of course) it would now contain "class Base instance" (which is desired). What is going on? Why is the <code>type</code> function behaving differently? [[User:Alexiscoutinho|Alexiscoutinho]] ([[User talk:Alexiscoutinho|talk]]) 21:33, 10 June 2021 (UTC)
*:The developer said there are 43 thousand containers, this was one of them - I'm guessing that's why it only affected some people and only some of the images.
:While OOP is great, I'm not sure that the confusion of another layer would be worthwhile. However, I purged [[User:Alexiscoutinho/sandbox 1]] and it is now showing "class Base instance", the same as in preview. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 00:21, 11 June 2021 (UTC)
*:Cyberdog958 had already said in the phab task that it is working for him, before it was closed. Is it working for you four as well, @[[User:Stephen|Stephen]], @[[User:Chipmunkdavis|CMD]], @[[User:David Eppstein|David Eppstein]] and @[[User:SuperMarioA9H5|SuperMarioA9H5]]?
::Thank you very much! I completely forgot how to fully purge a page. Furthermore, I thought purging was only client side, thus I got quite surprised when the issue persisted in an anonymous tab. [[User:Alexiscoutinho|Alexiscoutinho]] ([[User talk:Alexiscoutinho|talk]]) 01:13, 11 June 2021 (UTC)
*:&ndash; (different sig for pings) user in a [[Special:Contributions/2804:F14::/32|/32]], currently at [[Special:Contributions/2804:F14:80F4:1F01:144B:E33B:3E42:FDB7|2804:F14:80F4:1F01:144B:E33B:3E42:FDB7]] ([[User talk:2804:F14:80F4:1F01:144B:E33B:3E42:FDB7|talk]]) 15:53, 6 January 2025 (UTC)
*::Yes, seems it's fixed. Thanks, [[User:Chipmunkdavis|CMD]] ([[User talk:Chipmunkdavis|talk]]) 16:04, 6 January 2025 (UTC)
*::Fixed for me too, thanks all. [[User:Stephen|Step]][[User talk:Stephen|hen]] 20:24, 6 January 2025 (UTC)


=== Image Preview Issue ===
== Make cross-project links open in a new tab ==


[[File:Image_glitch_on_Buick_Regal_wiki_page.png|thumb|Image preview not displaying correctly]]
Is there any way to make links to other language wikipedias, commons, Wiktionary, etc, open in a new tab? I sometimes forget that they don't behave like normal external links and it's annoying. [[User:DuncanHill|DuncanHill]] ([[User talk:DuncanHill|talk]]) 00:59, 11 June 2021 (UTC)
I was looking through the Wikipedia article for the Buick Regal when I noticed that the thumbnail image for the third generation model is no longer displaying as it should. When I click on the image, it appears as normal, but only when it is clicked on. In Wikipedia Commons, the exact same problem is present. It also does not allow for resolution changes as most other images normally do. I have tested this on both Windows and mobile using Apple Safari, Google Chrome, and Microsoft Edge, and the problem remains consistent. I also found that there exist other images on Wikipedia Commons that are experiencing a similar problem. This image used to work perfectly before, so what could have changed to cause this? Is there any way this could be remedied? [[User:SuperMarioA9H5|SuperMarioA9H5]] ([[User talk:SuperMarioA9H5|talk]]) 05:07, 6 January 2025 (UTC)
:You must have enabled "Open external links in a new tab or window" at [[Special:Preferences#mw-prefsection-gadgets]]. It's not default. I don't know how to extend it to interwiki links. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 01:19, 11 June 2021 (UTC)
::It'll require a bit of javascript. @[[User:DuncanHill|DuncanHill]] You can do it by adding <code>$(function() { $('.extiw').attr('target', '_blank'); });</code> to [[special:mypage/common.js]]. – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 04:20, 11 June 2021 (UTC)
:::Hold down the Command (Mac) or Ctrl (Windows/Linux) key while you click the link. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 06:21, 11 June 2021 (UTC)
::::exactly, by far the easiest way to do it and works on any website. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 07:39, 11 June 2021 (UTC)
:::::indeed, but I thought that was obvious and DuncanHill was looking for an automated solution. – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 10:39, 11 June 2021 (UTC)
: They aren't external links, they're internal within Wikimedia. [[User:Mike Peel|Mike Peel]] ([[User talk:Mike Peel|talk]]) 10:57, 11 June 2021 (UTC)
::[[google:]] doesn't look like an external link, but is. A lot of the [[m:Interwiki map]] is truly external. —[[User:Kusma|Kusma]] ([[User talk:Kusma|talk]]) 12:07, 11 June 2021 (UTC)
::: Weird, I didn't know that was possible (nor do I understand *why* that is possible) but none of the examples before that were external. [[User:Mike Peel|Mike Peel]] ([[User talk:Mike Peel|talk]]) 12:47, 11 June 2021 (UTC)
::::Traditionally most of the other websites that had special interwiki prefixes were other wikis or other free content sites, with some other sites like Google thrown in for convenience. The main difference between the interwiki map links and normal external links (other than the styling) is that interwiki map links do not have the "nofollow" attribute. (I once got so annoyed at Wikia/Fandom's advertising that I [[template talk:Wikia|worked a bit]] to turn "nofollow" on for links that go there). —[[User:Kusma|Kusma]] ([[User talk:Kusma|talk]]) 13:04, 11 June 2021 (UTC)
::{{re|SD0001}} Thanks, that certainly works for commons, wikiquote, etc, doesn't work for the interlanguage links down the left-hand side. {{re|Jonesey95}} and {{re|TheDJ}} actually right-click and open in new tab is what I use, but as I mentioned I sometimes forget, and {{re|Mike Peel}} they may or may not be external but they behave like external links in that the preferences I set here do not apply there, and things like templates that work here do not work there. Anyway, thanks all. [[User:DuncanHill|DuncanHill]] ([[User talk:DuncanHill|talk]]) 16:30, 11 June 2021 (UTC)
:::@[[User:DuncanHill|DuncanHill]] Change <code>'.extiw'</code> to <code>'.extiw .interlanguage-link-target'</code> to cover them as well. – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 16:37, 11 June 2021 (UTC)
::::{{re|SD0001}} That doesn't seem to do anything - and stops it working for commons etc too. [[User:DuncanHill|DuncanHill]] ([[User talk:DuncanHill|talk]]) 16:45, 11 June 2021 (UTC)
:::::@[[User:DuncanHill|DuncanHill]] oops, needed a comma there in between: <code>'.extiw, .interlanguage-link-target'</code> – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 16:52, 11 June 2021 (UTC)
::::::Bingo! {{re|SD0001}}, this will be a great help to me, many thanks. [[User:DuncanHill|DuncanHill]] ([[User talk:DuncanHill|talk]]) 16:55, 11 June 2021 (UTC)


:Might be the same issue as [[#Broken icon]] above (yet to be determined what the issue is though).
== NASA 2gb PNG image too large for Commons? ==
:I can see the thumbnail on [[Buick Regal]] just fine as well. &ndash; [[Special:Contributions/2804:F14:8096:C101:D8FF:9658:72CA:8CB5|2804:F1...CA:8CB5]] ([[Special:Contributions/2804:F14::/32|::/32]]) ([[User talk:2804:F14:8096:C101:D8FF:9658:72CA:8CB5|talk]]) 06:06, 6 January 2025 (UTC)
::I can confirm it is the same issue, right down to the "Unauthorized" issue when selecting different sizes. Interesting that it seems to work for some yet not for others. I mainly asked as I wasn't sure if the image needed to be replaced due to an issue on Wikipedia's end. Hopefully whatever it is it can be patched out later. [[User:SuperMarioA9H5|SuperMarioA9H5]] ([[User talk:SuperMarioA9H5|talk]]) 06:10, 6 January 2025 (UTC)


== Common.css issue on Brave ==
QUESTIONS: Tried uploading a recent NASA 2gb PNG image ( at "https://photojournal.jpl.nasa.gov/archive/PIA24663_fullres.png" on NASA-page => "https://photojournal.jpl.nasa.gov/catalog/PIA24663" ) (takes awhile - ~1hr/?) - but Commons didn't seem to accept it for some reason - is the image file-size too large for Wikipedia? - Is there some workaround? - image seems relevant to several NASA articles (ie, "[[Perseverance (rover)]]", "[[Timeline of Mars 2020]]" and possibly more) - downloaded image file opens OK in my Firefox browser (Wintel10/Firefox/DellXPS8900) - iac - Thanks in advance for a reply - Stay Safe and Healthy !! - [[User:Drbogdan|Drbogdan]] ([[User talk:Drbogdan|talk]]) 11:41, 11 June 2021 (UTC)
:{{re|Drbogdan}} [[c:Commons:Maximum file size]] might be helpful. [[User:Elli|Elli]] ([[User_talk:Elli|talk]] &#124; [[Special:Contributions/Elli|contribs]]) 11:43, 11 June 2021 (UTC)
::"takes awhile" lol.. you don't say.. 2 GB... —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 12:58, 11 June 2021 (UTC)
:@Drbogdan, unless someone wants to count the number of grains of sand on Mars, I don't see why the image dimensions wouldn't be downscaled by 4, and the image saved as jpg, like they did here https://photojournal.jpl.nasa.gov/jpeg/PIA24663.jpg, file size 15 MB (link found [https://photojournal.jpl.nasa.gov/catalog/PIA24663 here]). Those who really need the 2.4 billion pixel image can always go back to NASA. [[User:Ponor|Ponor]] ([[User talk:Ponor|talk]]) 14:19, 11 June 2021 (UTC)
FWIW - seems &mdash; * {{youtube|5jq9b4FrWCg|''Perserverance'' at Van Zyl (AVideo360; 1:40; Spring 2021)}} ([https://photojournal.jpl.nasa.gov/catalog/PIA24663 related site]; [https://photojournal.jpl.nasa.gov/archive/PIA24663_fullres.png 2GB PNG-image]) &mdash; added to "[[Timeline of Mars 2020#External links]]" may be sufficient for now - Thanks for all the comments above - Stay Safe and Healthy !! - [[User:Drbogdan|Drbogdan]] ([[User talk:Drbogdan|talk]]) 14:58, 11 June 2021 (UTC)
:Sometimes the upload gets stuck on the unstash step; if you upload a file with UploadWizard and it "fails", you might still be able to publish it from [[c:Special:UploadStash]]. I've also found [[c:User:Bawolff/stash.js]] to be immensely useful for this purpose. -[[User talk:Fastily|<span style="font-family:'Trebuchet MS';color:Indigo;font-weight:bold;"><span style="font-size:120%;">F</span><span style="font-size:90%;">ASTILY</span></span>]] 08:25, 13 June 2021 (UTC)


Does anyone know why my common.css doesn't seem to work on Brave? I've just replaced Firefox with it due to its atrocious performance on YouTube with Ublock turned on. Now, I can't get my (very simple) common.css to work with it. Any ideas? [[User:Sol505000|Sol505000]] ([[User talk:Sol505000|talk]]) 10:33, 6 January 2025 (UTC)
== Is there a module function that given a table returns a JSON-like tabulated string? ==
:The name of the font should be in double quotes since it contains a space. – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 13:52, 6 January 2025 (UTC)
::I changed it and it still doesn't work (also, it worked without the double quotes on Firefox just fine). The issue is that Brave seems to display the ''wrong'' font, rather than ignoring my common.css altogether. I think it displays DejaVu Serif instead of DejaVu Sans. [[User:Sol505000|Sol505000]] ([[User talk:Sol505000|talk]]) 14:42, 6 January 2025 (UTC)
::I tried uninstalling DejaVu Serif and the problem persists. Why can't Brave follow a simple instruction? [[User:Sol505000|Sol505000]] ([[User talk:Sol505000|talk]]) 14:45, 6 January 2025 (UTC)
:::{{replyto|Sol505000}} The CSS spec for [//www.w3.org/TR/css-fonts-3/#font-family-prop the <code>font-family:</code> property] is rather complex. To me, it reads as if you ''don't'' need to quote font names, even if they contain spaces, unless not doing so would cause ambiguity. If Firefox tolerates the absence of the quotes but Brave doesn't, that tells me that the authors of the two browsers have read the spec in different ways. Personally I would err on the safe side and quote them (the quotes need not be double, but must be paired, as in my example stylesheet below).
:::On a related matter, I would not use a single font name - I would supply at least one fallback option, in case the device does not have your preferred font(s) installed; and the last of these fallback fonts should be one of the generic family keywords defined in the spec. Something like this: <syntaxhighlight lang=css>.IPA
{ font-family: "DejaVu Sans", Arial, 'Liberation Sans', sans-serif; }</syntaxhighlight> --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 23:06, 6 January 2025 (UTC)
:::Right-click on an element with the IPA class, select "Inspect", enter "font-family" in the filter under "Styles", and you can see what is overriding your custom style. You can also switch to the "Computed" tab and see what fonts are used in "Rendered Fonts" at the bottom. [[User:Nardog|Nardog]] ([[User talk:Nardog|talk]]) 06:08, 7 January 2025 (UTC)
::::Solved, what overrides the font are Brave Shields. Turning them off solves the problem (thankfully, WP isn't full of obnoxious ads that'd get in the way of browsing it). I'll report this to the developers. Thanks for the help everyone. [[User:Sol505000|Sol505000]] ([[User talk:Sol505000|talk]]) 22:29, 7 January 2025 (UTC)


== How to change placement of custom fields on [[Template:User infobox]] ==
[[User:Alexiscoutinho|Alexiscoutinho]] ([[User talk:Alexiscoutinho|talk]]) 22:43, 11 June 2021 (UTC)
:[[mw:Extension:Scribunto/Lua reference manual#mw.text.jsonEncode]]
:—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 23:03, 11 June 2021 (UTC)
::Thanks! [[User:Alexiscoutinho|Alexiscoutinho]] ([[User talk:Alexiscoutinho|talk]]) 23:21, 11 June 2021 (UTC)


I pretty much have what I want, just not in the location I want. Even if I place the custom fields where I want them in the code, as seen [https://en.wikipedia.org/enwiki/w/index.php?title=User:Amaury&curid=20895261&diff=1267836184&oldid=1267719440 here], the displayed output doesn't change, and the custom fields—age and today's date, in this case—still appear at the bottom of the infobox. I want age below birthdate and place and today's date above current time. Also, is there a way to change the border color of the entire border around the infobox? I want it to be black so it looks better. Do I just add {{tq|<nowiki>style="border: 1px solid #000000;"</nowiki>}} somewhere? '''[[User:Amaury|Amaury]]''' • 23:09, 6 January 2025 (UTC)
== Hidden maintenance category shows up at top of main category list ==
:{{replyto|Amaury}} When named parameters are used, the order that these are supplied in is immaterial; the order of display is goverened purely by the code inside [[Template:User infobox]]. I don't have time right now to look at the rest, will try to get back later. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 09:36, 7 January 2025 (UTC)
::{{ping|Amaury}} All fields, both custom and other, can only be displayed in the positions they have in the infobox to the right at [[Template:Infobox Wikipedia user#Usage]]. I suggest including age in the Born field with <code><nowiki>birthdate = {{Birth date and age|1991|11|8}}</nowiki></code> which produces: {{Birth date and age|1991|11|8}}. Today's date can be included in <code>current_time</code> but then the date and time should use the same time zone, unlike now where your time is local but date is UTC. I examined the implementation and you can tag a border color onto another parameter like <code><nowiki>| tablecolor = #CBC3E3; border: 1px solid #000000</nowiki></code>. I don't promise it will always work if the implementation changes. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 12:39, 7 January 2025 (UTC)
::: {{Re|PrimeHunter}} Okay, so the only way to change the placements of the parameters is to edit the template code itself; however, that shouldn't be done, of course, as it would affect everyone. I originally had the birthdate and age together, but I didn't like how the age in parentheses was going down to a separate line. Although I have now figured something out by [https://en.wikipedia.org/enwiki/w/index.php?title=User:Amaury&diff=prev&oldid=1268039136 increasing the width] from the default 22em to 24em, which gives the age enough space to be on the same line. As for the date, my only minor nitpick with adding the date to the Current Time parameter is that time is technically not a date, so having Current Time also display a date would look weird to me. And, of course, there's no way to change the parameter name just for my own infobox. [https://en.wikipedia.org/enwiki/w/index.php?title=User:Amaury&diff=prev&oldid=1268044379 This] is what I ended up doing instead. As a final question, is there a way to hide the Wikipedian with the icon thing just for my infobox or no? Thank you so much for help and advice! '''[[User:Amaury|Amaury]]''' • 22:51, 7 January 2025 (UTC)
::::{{ping|Amaury}} You can change "Wikipedian" with <code>|role=</code>. The row with two dashes will still be there even if you set it to something non-displayed like <code>&amp;nbsp;</code>. You can hide the gender icon with <code>|gender=none</code> but it has other effects. A template call can be wrapped in {{tl|Replace}} or {{tl|MultiReplace}} to change some of the output but it's messy and shouldn't be done in articles. If you try it then [[Special:ExpandTemplates]] can be used to find the exact current output. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 00:22, 8 January 2025 (UTC)


== All templates broken beyond a certain point on a CfD page ==
Why am I seeing one hidden category showing up at the top of the main category list at the bottom of an article?


The [[Wikipedia:Categories for discussion/Log/2025 January 6|CfD page for January 6]] ([[Special:Permalink/1267842017|permanent link]]) has all templates broken beyond a certain point in the "[[Wikipedia:Categories for discussion/Log/2025 January 6#States and territories (dis)established in YYYY|States and territories (dis)established in YYYY]]" nomination, which uses [[Template:Lc]] exactly 1,353 times. Templates beyond this point are replaced by links to the underlying templates. –[[User:LaundryPizza03|<b style="color:#77b">Laundry</b><b style="color:#fb0">Pizza</b><b style="color:#b00">03</b>]] ([[User talk:LaundryPizza03|<span style="color:#0d0">d</span>]][[Special:Contribs/LaundryPizza03|<span style="color:#0bf">c̄</span>]]) 23:37, 6 January 2025 (UTC)
On the article [[Simone de Beauvoir]], the first category I see is "[[:Category:Wikipedia articles with WORLDCATID identifiers|Wikipedia articles with WORLDCATID identifiers]]", a maintenance category. The next two cats are [[:Category:Simone de Beauvoir|Simone de Beauvoir]], followed by [[:Category:1908 births|1908 births]]; these two correspond to the first two categories explicitly in the article wikicode. The first category is not in the wikicode anywhere, which is not surprising, as it is a maintenance category that is probably dragged in by a citation with an {{para|oclc}} param.
:{{replyto|LaundryPizza03}} [[WP:TLIMIT]] strikes again. There are two clues to this: (i) the intended transclusions showing as links, as you describe; (ii) the page being in {{cl|Pages where post-expand include size is exceeded}}. The prime suspect here is [[Wikipedia:Categories for discussion/Log/2025 January 6#States and territories (dis)established in YYYY]] - do all of them need a {{tlx|lc}}, or just the first one? --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 23:53, 6 January 2025 (UTC)
::The issue was fixed by omitting around 1350 {{tlx|lc}} for annual subcategories.[https://en.wikipedia.org/enwiki/w/index.php?title=Wikipedia:Categories_for_discussion/Log/2025_January_6&diff=prev&oldid=1267844866] They wouldn't even fit on a subpage with no other content. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 08:31, 7 January 2025 (UTC)


== Enwiki dump? ==
I have my preferences set so that I see hidden maintenance categories, and after the main category list which is displayed to everybody, the hidden cat list starts off with: [[:Category:CS1 maint: numeric names: authors list|CS1 maint: numeric names: authors list]]; [[:Category:CS1 maint: archived copy as title|CS1 maint: archived copy as title]]; [[:Category:Articles with short description|Articles with short description]], and so on. Why doesn't the WORLDCATID maintenance category appear somewhere with these hidden categories, instead of the top of the main category list? Thanks, [[User:Mathglot|Mathglot]] ([[User talk:Mathglot|talk]]) 01:32, 12 June 2021 (UTC)
: Because a since-fixed bug in a series of edits I made to [[Module:Pages with authority control identifiers]] caused the category to no longer register as hidden. I've applied some null edits, and now the category is back to its proper spot. [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 01:44, 12 June 2021 (UTC)
:: {{re|Pppery}}, thanks! [[User:Mathglot|Mathglot]] ([[User talk:Mathglot|talk]]) 02:37, 12 June 2021 (UTC)


[https://dumps.wikimedia.org/backup-index-bydb.html Dump files]. Enwiki:
== Embedding infoboxes ==
* <code><nowiki>2025-01-07 17:19:24 enwiki (new): missing status record</nowiki></code>
Everything else is available. Is this normal? I need a dump. -- [[User:GreenC|<span style="color: #006A4E;">'''Green'''</span>]][[User talk:GreenC|<span style="color: #093;">'''C'''</span>]] 17:26, 7 January 2025 (UTC)
: Probably https://lists.wikimedia.org/hyperkitty/list/xmldatadumps-l@lists.wikimedia.org/thread/5ABHNJRXSR53XBAMNH3TROLTMY5ZXEXF/ [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 17:28, 7 January 2025 (UTC)
::Great, thanks. -- [[User:GreenC|<span style="color: #006A4E;">'''Green'''</span>]][[User talk:GreenC|<span style="color: #093;">'''C'''</span>]] 17:57, 7 January 2025 (UTC)


== Undo and thank buttons on Vector 2010 ==
At [[Miawpukek First Nation]], I tried to embed an infobox in order to remove duplication and shorten the infobox. It didn't work too well. If an editor could look at [[User:Magnolia677/sandbox]] I would appreciate the input. Thank you! [[User:Magnolia677|Magnolia677]] ([[User talk:Magnolia677|talk]]) 10:49, 12 June 2021 (UTC)
:{{fixed}} in your sandbox (top half). – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 13:26, 12 June 2021 (UTC)


The undo and thank buttons in page history are coloured with Vector 2022 colours on Vector 2010. I'm not sure when this bug was introduced, but it wasn't there when I edited Wikipedia a month ago. <span style="font-family:Garamond,Palatino,serif;font-size:115%;background:-webkit-linear-gradient(red,red,red,blue,blue,blue,blue);-webkit-background-clip:text;-webkit-text-fill-color:transparent">[[User:Daß Wölf|Daß]] [[User talk:Daß Wölf|Wölf]]</span> 19:08, 7 January 2025 (UTC)
== No info for special pages, a few others as well? ==
{{tracked|T284960}}
[[google:Special:CreateAccount|googling Special:CreateAccount]] for example, or [[google:Special:UserLogin|googling Special:UserLogin]] or any other special page to my knowledge, I've seen it always says "No information is available for this page. Learn why." Why is that? Also some others like [[google:Wikipedia:Sockpuppet investigations|googling Wikipedia:Sockpuppet investigations]] also don't seem to work either, but it never seems to work for special pages. Why does it not work specifically for special pages, or for any other specific page? It doesn't appear to be the same as noindexing, as you can search for the page, it just doesn't give you info. [[User:54nd60x|54nd60x]] ([[User talk:54nd60x|talk]]) 13:44, 12 June 2021 (UTC)


== RSS ==
:The page at one time was robots.txt blocked to avoid it being indexed. Then google started indexing pages even if they showed up in robots.txt and said we should be using noindex. But noindex cannot easily be detected if the page is also in robots.txt (unless the google bot finds some per chance traversal path that has the pages linked from elsewhere)... and those Special pages were never removed from the robots.txt. Similar for SPI. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 14:42, 12 June 2021 (UTC)
::{{ping|TheDJ}} Why were special pages avoided being indexed? And does it mean that the magic word <nowiki>__NOINDEX__</nowiki> would have no use as it can't be added to a special page. If the pages are not noindexed in robots.txt, why doesn't it give you info for special pages? And in what circumstances would it be best to avoid searching for special pages? [[User:54nd60x|54nd60x]] ([[User talk:54nd60x|talk]]) 01:24, 13 June 2021 (UTC)
:::{{replyto|54nd60x}} Special pages can't be indexed because there is nothing to index: a special page doesn't actually exist until you visit it. When you follow a link to a page like [[Special:Preferences]] the page is generated specifically for ''you''; once served to you it's deleted again; and what you receive is different from what other people receive when they follow exactly the same link. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 07:39, 13 June 2021 (UTC)
::::{{ping|Redrose64}} {{tq|Special pages can't be indexed because there is nothing to index: a special page doesn't actually exist until you visit it.}} Could you please explain that? Does it mean that special pages have visible content but they aren't actually editable as it's just transclusion of MediaWiki pages? Also, why is [[Wikipedia:Sockpuppet investigations]] and perhaps some other non-special pages noindexed? Does it have to do with privacy? [[User:54nd60x|54nd60x]] ([[User talk:54nd60x|talk]]) 10:41, 13 June 2021 (UTC)
:::::Special pages ''could'' be indexed but they aren't. It's a choice that we ask external search engines to not index special pages. They place [[noindex]] in their html, and https://en.wikipedia.org/robots.txt says <code>Disallow: /wiki/Special:</code>. Special pages are generated on demand and often rely on url parameters. Many special pages often change content, depend on the user viewing them, or have rather arbitrary content we don't want random searchers to find instead of our articles. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 21:41, 13 June 2021 (UTC)
{{od|5}}{{ping|PrimeHunter}} I was browsing special pages and found that the content can be changed with ?uselang=$1, as in [[Special:SpecialPages]] vs. [https://en.wikipedia.org/wiki/Special:SpecialPages?uselang=es Special:SpecialPages?uselang=es]. However, I noticed that the content of [[Special:MathWikibase]] is always written in the wiki's language (i.e. it's in Spanish on es.wp and in English on en.wp but the contents are not messages and the content of the page cannot be changed based on user preferences.) Where is the source content of these special pages that allows it to be different across different wikis, and how can it be edited if some major change must be made? [[User:54nd60x|54nd60x]] ([[User talk:54nd60x|talk]]) 00:48, 14 June 2021 (UTC)
:I'm not sure I completely understand your question, but here goes: [[Special:MathWikibase]] is a feature of [[mw:Extension:Math]], and its source code is [https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/Math/+/refs/heads/master/src/SpecialMathWikibase.php here]. It looks like it is supposed to be localised, and the interface messages for it exist, e.g. [[MediaWiki:Math-wikibase-special-form-placeholder/es]], but for some reason only the "main" version seems to be loaded, e.g. [[MediaWiki:Math-wikibase-special-form-placeholder]] (it's a bug, I guess). These "main" versions, unless manually created, always contain the localised message for the default language of the wiki (i.e. [[:es:MediaWiki:Math-wikibase-special-form-placeholder]] is the same as [[:es:MediaWiki:Math-wikibase-special-form-placeholder/es]]), so it works unless you change your language preference from the default. Hope my ramblings make sense (and aren't completely incorrect). –&nbsp;[[User talk:Rummskartoffel|<span style="background:linear-gradient(90deg,#e40303,#ff8c00,#ffed00,#008026,#004dff,#750787);color:transparent;background-clip:text;-webkit-background-clip:text;">Rummskartoffel</span>]] 09:18, 14 June 2021 (UTC)
::https://en.wikipedia.org/wiki/Special:MathWikibase?uselang=qqx also shows something is wrong. [[WP:QQX|qqx]] is supposed to show the name of used MediaWiki messages but it just shows the text of four of the [https://en.wikipedia.org/wiki/Special:AllMessages/Math-wikibase?prefix=Math-wikibase English messages]. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 20:26, 14 June 2021 (UTC)
*OK - so as should have been surmised from above, this is not something we can fix directly here on the English Wikipedia - [[WP:BUG]] requests can be opened about any special page that is being presented by an extension. In the case of [[Special:MathWikibase]] for example, I've opened: [[phab:T284960]]. — [[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> 23:26, 14 June 2021 (UTC)


When it comes to such feeds of pages' history, here, is it the feed itself that is not instantaneous, or the bot that delivers it? ~[[User:Lofty abyss|<span style="color: #800080; font-family: courier new;">Lofty</span>]] [[User talk:Lofty abyss|<span style="color: #000000; font-family: courier new;">abyss</span>]] 23:03, 7 January 2025 (UTC)
== Some user scripts are not working ==


I already addressed this concern at [[Wikipedia talk:User scripts#Not working]] but no one is responding. Help me, please. —<span style="font-size:12pt;font-family:Tw Cen MT;color:black">[[User:HueMan1|hueman1]] ([[User talk:HueMan1|<small>talk</small>]] <small></small> [[Special:Contributions/HueMan1|<small>contributions</small>]])</span> 14:08, 12 June 2021 (UTC)
:Why do you think it is not instantaneous ?[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 23:05, 7 January 2025 (UTC)
::The timestamps differ variably, for some reason... I'm just wondering, then, if it's the feeds themselves, or the bots relaying it (as they're some free service, so presumably they don't prioritize them...) ~[[User:Lofty abyss|<span style="color: #800080; font-family: courier new;">Lofty</span>]] [[User talk:Lofty abyss|<span style="color: #000000; font-family: courier new;">abyss</span>]] 12:55, 8 January 2025 (UTC)
:See [[WP:JSERROR]] on how to report script errors. For starters, you can tell which one isn't working. – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 14:22, 12 June 2021 (UTC)
::{{re|SD0001}} I got this message:
<nowiki>Uncaught ReferenceError: capitalScript is not defined
at <anonymous>:1:701
at domEval (load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:11)
at runScript (load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:13)
at enqueue (load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:11)
at execute (load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:14)
at doPropagation (load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:6)</nowiki>
—<span style="font-size:12pt;font-family:Tw Cen MT;color:black">[[User:HueMan1|hueman1]] ([[User talk:HueMan1|<small>talk</small>]] <small>•</small> [[Special:Contributions/HueMan1|<small>contributions</small>]])</span> 02:23, 14 June 2021 (UTC)
:@[[User:HueMan1|HueMan1]]: [[User:HueMan1/common.js#L-10|line 10]] is invalid syntax. You probably want it to be <code>importScript('User:WikiMasterGhibif/capitalize.js');</code> – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 08:16, 14 June 2021 (UTC)
::{{re|SD0001}} I think everything works now. Thank you! —<span style="font-size:12pt;font-family:Tw Cen MT;color:black">[[User:HueMan1|hueman1]] ([[User talk:HueMan1|<small>talk</small>]] <small>•</small> [[Special:Contributions/HueMan1|<small>contributions</small>]])</span> 08:23, 14 June 2021 (UTC)


== Are namespaces supposed to be case insensitive? ==
== Quarry namespace mapping ==


I discovered today that namespaces appear to be case insensitive, as opposed to following the normalization (canonicalization?) rules for page titles. For example, all of these end up at the same place:
Have you ever been frustrated because there's no way to map namespace numbers to namespace names in a database query? I hereby present {{quarry|55924}} for your amusement. There's hacks, there's ugly hacks, and then there's hacks that are so ugly you're proud of them. -- [[User:RoySmith|RoySmith]] [[User Talk:RoySmith|(talk)]] 16:40, 12 June 2021 (UTC)
:You don't even need to join pagelinks for that: [[quarry:query/55928]].{{pb}}I had a somewhat similar idea a while ago, but using a sandbox with links to [[Talk:Talk]], [[User:User]], [[User talk:User talk]], and so on, so I could just use pl_namespace and pl_title out of pagelinks, and not have to worry about some joker breaking the query by creating extra subpages or inbound links or whatever. I couldn't figure out how to get it working with the main namespace, though.{{pb}}[[quarry:query/55930]]/[[User:Cryptic/ns]], to make it concrete. Munging the titles with MID() etc. like you did could do it, but it stops being brief enough that I'd feel ok pasting it into the middle of real queries. Still better than what I usually resort to like in e.g. [[quarry:query/50255]]. —[[User:Cryptic|Cryptic]] 20:04, 12 June 2021 (UTC)
::My go to is including the namespace number and then using regex change it to <nowiki>{{subst:ns:N}}</nowiki> and then putting it in a sandbox and then it works. A better system would certainly be nice though. --[[User:Trialpears|Trialpears]] ([[User talk:Trialpears|talk]]) 20:22, 12 June 2021 (UTC)
::{{u|Cryptic}}, You win. -- [[User:RoySmith|RoySmith]] [[User Talk:RoySmith|(talk)]] 21:11, 12 June 2021 (UTC)
:This was one of the reasons I created [[User:SDZeroBot/Database report]]. It supports wikilinking titles from the query output, using a namespace number from another column. – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 05:56, 13 June 2021 (UTC)
: Namespaces aren't consistent across wikis - see the identical list rendered on 5 wikis - [[:en:User:Cabayi/ns|English]], [[:c:User:Cabayi/ns|Commons]], [[:d:User:Cabayi/ns|WikiData]], [[:m:User:Cabayi/ns|Meta]], and [[:de:User:Cabayi/ns|German]].
:Since Quarry allows querying different wikis just by changing the specified database from <code>enwiki_p</code>, the SQL should also (preferably) be wiki-neutral to maximise reusability. The method in {{Quarry|55915}}
:::<syntaxhighlight lang="sql">
SELECT CONCAT('[[', IF (pt.pt_namespace=14,':',''), '{{ns:', CAST(pt.pt_namespace AS CHAR), '}}:', pt.pt_title, ']]')
</syntaxhighlight>
:dresses the namespace/page-title as a wikilink in a wiki-neutral way (skipping the use of regex {{u|Trialpears}} mentioned). Thankfully namespace 14 is consistently Category (or equivalent) in needing the colon prefix for all wikis AFAIK. The resultset can be taken as a wikitable & sandboxed on the corresponding wiki.
:User {{u|DerHexer}} is a useful test subject for this query since he's an admin for <code>dewiki_p</code>, <code>enwiki_p</code>, <code>commonswiki_p</code>, & <code>metawiki_p</code>. - [[User:Cabayi|Cabayi]] ([[User talk:Cabayi|talk]]) 07:29, 13 June 2021 (UTC)
::I've learned from experience that the file namespace (consistently 6) also should have a leading colon, otherwise that looks great and I will use it next time. --[[User:Trialpears|Trialpears]] ([[User talk:Trialpears|talk]]) 08:15, 13 June 2021 (UTC)
::{{replyto|Cabayi}} Namespaces -2, -1, and 0 through 15 inclusive ''are'' consistent in their purposes across all WMF wikis, and I think across all MediaWiki wikis also. The non-negative numbers also always occur in pairs: all subject namespaces have an even number, and its corresponding talk namespace is always one greater. Whilst the local names do vary (e.g. User: might be Utilisateur: (French) Benutzer: (German), etc.), the name used on English Wikipedia may be used for all of them (e.g. try following [[:fr:User:Redrose64]]), with one pair of exceptions. These exceptions are namespaces 4/5, which have been localised here to Wikipedia:/Wikipedia talk:, and as you noticed at Commons, Meta etc. the local names are Commons:/Commons talk:, Meta:/Meta talk:, etc. The ''default'' non-localised name for these two namespaces is Project:/Project talk:, and they work everywhere - try following [[Project:Namespace]], [[meta:Project:Namespaces]] or indeed [[:ru:Project:Пространства имён]].
::For namespaces numbered 16 or above, not all of them exist on all wikis, but for those that use a given number, its purpose is the same for all wikis that use the same number - for instance, Module:/Module talk:, where they exist, are always 828/829 although as with namespaces 15 and below, the local names may vary.
::{{replyto|Trialpears}} The File: namespace is like the Category: namespace in that an initial colon is necessary to make a link instead of to activate a feature. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 08:31, 13 June 2021 (UTC)
:::Thanks, {{u|Redrose64}}. I've adjusted {{Quarry|55915}} to handle files as well:
::::<syntaxhighlight lang="sql">
SELECT CONCAT('[[', IF (pt.pt_namespace=6,':',IF (pt.pt_namespace=14,':','')), '{{ns:', CAST(pt.pt_namespace AS CHAR), '}}:', pt.pt_title, ']]') page,
</syntaxhighlight>
:::and salted [[:File:SaltedFile]] for a test example...
{{cot|amended to handle files as well}}
{| class="wikitable"
!page!!protection level
|-
|[[{{ns:0}}:Direct_Deal]]||extendedconfirmed
|-
|[[{{ns:0}}:Fuego_bxndz]]||extendedconfirmed
|-
|[[{{ns:0}}:Janix_Marie_Mendez]]||extendedconfirmed
|-
|[[{{ns:0}}:Janix_Mendez]]||extendedconfirmed
|-
|[[{{ns:0}}:Jim_Gomez]]||extendedconfirmed
|-
|[[{{ns:0}}:Manoj_Verma]]||extendedconfirmed
|-
|[[{{ns:0}}:Naveed_Qazi]]||extendedconfirmed
|-
|[[{{ns:0}}:Naver_Matome_(Service)]]||extendedconfirmed
|-
|[[{{ns:0}}:Naver_matome]]||extendedconfirmed
|-
|[[{{ns:0}}:Sarju_Prasad_Dubey]]||extendedconfirmed
|-
|[[{{ns:0}}:Syed_Mansoor_Ali_Naqvi]]||extendedconfirmed
|-
|[[{{ns:0}}:TourHQ]]||extendedconfirmed
|-
|[[{{ns:0}}:Udit_Bhanu]]||extendedconfirmed
|-
|[[{{ns:0}}:YDNW_Dive]]||extendedconfirmed
|-
|[[{{ns:118}}:Ameel_Shamsi]]||extendedconfirmed
|-
|[[{{ns:118}}:Amit_Bhadana_(youtuber)]]||extendedconfirmed
|-
|[[{{ns:118}}:Fm_Kid]]||extendedconfirmed
|-
|[[{{ns:118}}:Harshil_Anuwadia]]||extendedconfirmed
|-
|[[{{ns:118}}:Juned_Patel]]||extendedconfirmed
|-
|[[{{ns:118}}:P&M_Movies]]||extendedconfirmed
|-
|[[{{ns:118}}:Pawan_Chawla]]||extendedconfirmed
|-
|[[:{{ns:14}}:Railroad_museums_in_Hawaii]]||sysop
|-
|[[{{ns:0}}:Ashraf_Palarakunnummal_(Ashraf_Thamarassery)]]||sysop
|-
|[[{{ns:0}}:COVIDemic]]||sysop
|-
|[[{{ns:0}}:Fox_Sports_Japan_(company)]]||sysop
|-
|[[{{ns:0}}:Juned_Patel]]||sysop
|-
|[[{{ns:0}}:Vivek_Bindra]]||sysop
|-
|[[{{ns:0}}:Y._R._Dudhani]]||sysop
|-
|[[{{ns:0}}:YASH_DUDHANI]]||sysop
|-
|[[{{ns:0}}:Yash_Rajendra_Dudhani]]||sysop
|-
|[[{{ns:118}}:Yash_Dudhani_2]]||sysop
|-
|[[:{{ns:6}}:SaltedFile]]||templateeditor
|}
{{cob}}
:::Since this method doesn't touch on the actual namespace names (localised or global) no adjustment is needed on that front. The SQL is still wiki-agnostic.
:::Cheers, [[User:Cabayi|Cabayi]] ([[User talk:Cabayi|talk]]) 08:54, 13 June 2021 (UTC)


* [[:File:Symbol confirmed.svg]]
==Silly Question==
* [[:file:Symbol confirmed.svg]]
Silly Question: is it possible change to [[User:Talk:Talk]] from [[User:0mtwb9gd5wx]] ? .... [[User:0mtwb9gd5wx|0mtwb9gd5wx]] ([[User talk:0mtwb9gd5wx|talk]]) 08:47, 13 June 2021 (UTC)
* [[:FILE:Symbol confirmed.svg]]
:{{u|0mtwb9gd5wx}}, I think [[WP:UNCONF]] applies and I'd decline it. Other renamers may view it differently and perform the rename. Once done, other users may also see it as [[WP:UNCONF]] and report you to [[WP:UAA]].
* [[:FiLe:Symbol confirmed.svg]]
:It also has the potential to break stuff. Many templates handle usernames and strip leading namespaces. I doubt any of them have been tested for this level of misdirection.
:It's a balancing act, how badly do you want it and how much grief can you tolerate? [[User:Cabayi|Cabayi]] ([[User talk:Cabayi|talk]]) 09:04, 13 June 2021 (UTC)
::Also, [[:m:GRP#Policy]] re frivolous & repeated requests. [[User:Cabayi|Cabayi]] ([[User talk:Cabayi|talk]]) 09:07, 13 June 2021 (UTC)
:::I glanced at the previous post after writing the subsequent one, it was just an amusing idea. .... [[User:0mtwb9gd5wx|0mtwb9gd5wx]] ([[User talk:0mtwb9gd5wx|talk]]) 09:16, 13 June 2021 (UTC)
::::{{u|0mtwb9gd5wx}}, once upon a time I thought <code>for (;;)</code> would be cool/amusing as my [[Infinite_loop#Examples of intentional infinite loops|"forever"]] username. Boy, was I ever wrong. [[User:Cabayi|Cabayi]] ([[User talk:Cabayi|talk]]) 09:25, 13 June 2021 (UTC)


This isn't mentioned at [[:mw:Manual:Namespace]], so it's not clear if this is intentional, a bug, or just some silly bit of undefined behavior. Is it intentional? [[User:RoySmith|RoySmith]] [[User Talk:RoySmith|(talk)]] 02:19, 8 January 2025 (UTC)
== Template:DistroWatch ==
: Intentional I think. [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 02:54, 8 January 2025 (UTC)
* [[Template:DistroWatch]]
: [[Help:Link]] says: "If the target contains a [[Help:Namespace|namespace]] prefix, then the whole prefix and the first character after the colon are case-insensitive (so [[uSeR:jimbo Wales]] links to [[User:Jimbo Wales]])." [[User:DMacks|DMacks]] ([[User talk:DMacks|talk]]) 03:22, 8 January 2025 (UTC)
No documentation, so I '''hacked''' one example, so it needs to be pretty.
.... [[User:0mtwb9gd5wx|0mtwb9gd5wx]] ([[User talk:0mtwb9gd5wx|talk]]) 08:37, 13 June 2021 (UTC)
:It's mentioned at [[:mw:Manual:Page title##1 and #2. Interwiki prefixes and namespace prefixes]]. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 08:57, 8 January 2025 (UTC)
:{{replyto|0mtwb9gd5wx}} Where a template has no documentation, you may use the {{tlx|Bad documentation}} template, you don't need to post here. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 08:49, 13 June 2021 (UTC)
:It's been like that fot as long as I can remember, and I joined in May 2009. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 00:34, 9 January 2025 (UTC)
::The oldest mention I found at mw is from 2007 [https://www.mediawiki.org/enwiki/w/index.php?title=Manual:Code&diff=prev&oldid=62488 namespace prefixes ... are case insensitive], and the edit summary said "from docs/title.txt in installation". It also means DISPLAYTITLE allows any capitalization in the namespace. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 09:18, 9 January 2025 (UTC)
::{{u|0mtwb9gd5wx}}, thanks for improving the documentation! Usually we keep documentation on a separate documentation page such as [[Template:DistroWatch/doc]] if it is longer than a line or two which, I have now done. You also accidentally added it in a way that the documentation was included when the template was used on pages which is another reason it's much simpler to have a dedicated documentation page. --[[User:Trialpears|Trialpears]] ([[User talk:Trialpears|talk]]) 08:54, 13 June 2021 (UTC)
:::{{replyto|Trialpears}}, I am not very familiar the technical infrastructure, so I posted here. Lots of mistakes... .... [[User:0mtwb9gd5wx|0mtwb9gd5wx]] ([[User talk:0mtwb9gd5wx|talk]]) 09:08, 13 June 2021 (UTC)
::::{{u|0mtwb9gd5wx}} No worries =). We all were new once. If you want to make more modifications to the documentation you should do that at [[Template:DistroWatch/doc]] and not [[Template:DistroWatch]]. I think it looks acceptable now. --[[User:Trialpears|Trialpears]] ([[User talk:Trialpears|talk]]) 09:11, 13 June 2021 (UTC)


== Out-of-line references missing in an imported excerpt ==
== Education program (again) ==


Hello, fellow Wikipedians!
About a month ago I brought up the possibility of removing the education program talk namespace at [[Wikipedia:Village pump (technical)/Archive 189#Education program namespace removal]]. This was prompted by [[phab:T217137|T217137]] and similar tasks which resulted in removal from other Wikis following that the namespace was emptied either through deletion or moves. Currently there are 0 pages in the Education program namespace and 1,427 pages in the Education program talk namespace. My plan is to move most pages from their current location of [[Education program talk:FOO]] to [[Wikipedia talk:Education program archive/FOO]]. Some pages that have no significant content (such as the supported by wikied messages) will/have been deleted outright without archiving. Assuming there are no objections in the next few days I will proceed with this plan. --[[User:Trialpears|Trialpears]] ([[User talk:Trialpears|talk]]) 08:38, 13 June 2021 (UTC)
:Good idea, I support this task. 3 months ago I went through the entire Education program talk namespace to fix Lint errors. Many pages like [[Education Program talk:Hanyang University/ English Readings in Information Sociology: Understanding Wikipedia (Fall 2013)/Grading]] have no useful content and can be deleted. [[User:ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ|ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ]] ([[User talk:ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ|talk]]) 15:30, 13 June 2021 (UTC)
::I've now deleted that and 75 other similar grading subpages after verifying that they indeed doesn't have any possibly useful content. --[[User:Trialpears|Trialpears]] ([[User talk:Trialpears|talk]]) 16:36, 13 June 2021 (UTC)


I'm stuck on a problem with undefined references in the [[Frogs in culture]] article, current version [[Special:PermanentLink/1265294861]] from 26 December 2024.
== Vega ==


It includes the lead section of [[Pepe the Frog]] through the {{t|Excerpt}} template in the {{section link| Frogs in culture | Pepe the Frog in 4chan culture}} section. The included text has 12 references in it, 10 of which are defined in-line and appear to be properly included in the destination [[Frogs in culture]] article. However, the remaining two are defined outside the [[Pepe the Frog]]'s lede, which results in {{big|{{color|red|'''Cite error: The named reference ... was invoked but never defined (...)'''}}}}.
A [[Wikipedia:Graphs_and_charts#Vega|how-to guide]] asserts that Vega Code can be copied to wiki and be used to generate charts/graphs. Then, why does [[User:TrangaBellam/sandbox#Code|this code]] not work? [[User:TrangaBellam|TrangaBellam]] ([[User talk:TrangaBellam|talk]]) 10:20, 13 June 2021 (UTC)
:{{yo|User:Yurik}} Are we not supporting 3.0, yet? [[User:TrangaBellam|TrangaBellam]] ([[User talk:TrangaBellam|talk]]) 10:47, 13 June 2021 (UTC)
::{{ping|TrangaBellam}} the only notes I see say we only support v2; this is part of the <code>graph</code> extension though - so you may get some better responses here: [[:mw:Extension talk: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> 11:53, 13 June 2021 (UTC)
:::{{re|Xaosflux}} That talk-page is choc-a-bloc unanswered queries. Nobody pays any heed. [[User:TrangaBellam|TrangaBellam]] ([[User talk:TrangaBellam|talk]]) 13:01, 13 June 2021 (UTC)
:::{{yo|Wugapodes}} Can you help? I saw your comments at [[mw:User talk:Bawolff/Reflections on graphs|this page]]. [[User:TrangaBellam|TrangaBellam]] ([[User talk:TrangaBellam|talk]]) 13:08, 13 June 2021 (UTC)
{{outdent|:::}} Apologies for all the pings. Vega 3.0 (or later versions) are not integrated according to {{phab|T165118}}. {{phab|T223026#7117287}} mentions quite-old developments and I would be interested to know of any updates. [[User:TrangaBellam|TrangaBellam]] ([[User talk:TrangaBellam|talk]]) 13:18, 13 June 2021 (UTC)
:FYI, during the last Community Wishlist Survey, [[m:Community Wishlist Survey 2021/Multimedia and Commons/Improve graphs and interactive content|this task]] received a great support and should be taken over by The Community Tech team in the coming months. [[User:Pamputt|Pamputt]] ([[User talk:Pamputt|talk]]) 21:44, 13 June 2021 (UTC)


Those two are ref [53] named 'Branded' and [54] named 'ADL'.
== Disabled common.js page ==


How can I fix it within the destination article (that is, without moving the references to the lede in the source article)? --[[User:CiaPan|CiaPan]] ([[User talk:CiaPan|talk]]) 08:06, 8 January 2025 (UTC)
On {{oldid2|1028358852|this}} revision of my common.js page, all the code is disabled. &#8213;<span style="background:#8FF;border:solid 1px;border-radius:8px;box-shadow:darkgray 2px 2px 2px">&nbsp;[[User:Qwerfjkl|<span style="color:#C00">Qwerfjkl</span>]]&nbsp;&#124;&nbsp;[[User talk:Qwerfjkl|𝕋𝔸𝕃𝕂]]&nbsp;</span>&nbsp;<small>(please use&#32;{{tlx|reply to|Qwerfjkl}} on reply)</small>{{Z181}}<!--Template:Please ping--> 14:20, 13 June 2021 (UTC)
:Break the long comment line into multiple lines. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 14:44, 13 June 2021 (UTC)


:Certainly the easiest solution is to move the refs to the lead section of the Pepe article, since it doesn't apply [[WP:LEADCITE]]. Otherwise you have to recreate them as named references in the FiC article (which is not ideal since they could get orphaned) [[User:JMF|𝕁𝕄𝔽]] ([[User talk:JMF|talk]]) 11:12, 8 January 2025 (UTC)
== Authority control not autocollapsing ==
::{{Re|JMF}} Yup, I've considered moving the refs to the lede. However, it could fail in some situations. <br>Suppose a reference is called by its 'Name' attribute from two different sections, and each section is transcluded in a different article. That's quite exotic scenario, but still possible. Then both original sections would have to define the same reference exactly the same way for all three articles to display properly. <br>That's why I would rather like to solve the problem on the 'receiving' side, if possible. {{smiley}} --[[User:CiaPan|CiaPan]] ([[User talk:CiaPan|talk]]) 09:11, 9 January 2025 (UTC)
:::In that case the only real solution is to copy the references into the article containing the {{tl|excerpt}} as list defined references. Especially as leads are not the only type of section that gets transcluded, so LEADCITE isn't always applicable. -- <small>LCU</small> '''[[User:ActivelyDisinterested|A<small>ctively</small>D<small>isinterested</small>]]''' <small>''«[[User talk:ActivelyDisinterested|@]]» °[[Special:Contributions/ActivelyDisinterested|∆t]]°''</small> 23:40, 9 January 2025 (UTC)
:And this is one reason section transclusion can be a really bad idea. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 21:23, 8 January 2025 (UTC)
::{{re|Izno}} What is the solution, then? Possibly copy the whole section and add some HTML comment both at the source and a copy for editors to keep both copies in sync? But I don't know whether HTML comments are visible in Visual Editor... {{smiley|sad}} --[[User:CiaPan|CiaPan]] ([[User talk:CiaPan|talk]]) 09:11, 9 January 2025 (UTC)
:::The objective should be immediate verifiability in the article of interest, while promoting [[WP:Summary style]]. Excerpt is either pulling a [[WP:LEAD]]-compliant lead, which has no references, so verifiability is hence a question in the relevant article, or is pulling one which does have references... in which case the other article needs fixing. It's just fundamentally really gross. What should instead happen is a summary of the Pepe article, and I imagine it should be a much shorter summary per [[WP:WEIGHT]]. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 20:07, 9 January 2025 (UTC)
:Last time I tried to help on a closely-related matter I got shot down for it. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 00:35, 9 January 2025 (UTC)
::{{re|Redrose64}} Sorry to hear it. Did a requester attack you for your help being inaccurate, or some bystander considered the whole idea wrong and outraged for you helping instead of disouraging the needy one...? --[[User:CiaPan|CiaPan]] ([[User talk:CiaPan|talk]]) 09:11, 9 January 2025 (UTC)
:::{{replyto|CiaPan}} [[Wikipedia:Village pump (technical)/Archive 217#List-defined refs]]. It's got a confusing sequence, because after I had fixed the original problem, and explained how, DuncanHill apparently decided to attack me for being an admin - but put those posts ''before'' the earlier replies. It spilled to other pages - note carefully the timestamp of {{diff|User:DuncanHill|prev|1265841465|this edit}} in relation to the timestamps in that archived VPT thread. Then ActivelyDisinterested had a go at me for reverting some edit or other, but never specified what I reverted. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 22:12, 10 January 2025 (UTC)


== Templates that don't display on mobile ==
I'm noticing that [[Template:Authority control]] at the bottom of articles isn't autocollapsing today as it usually does. Anyone else notice this? &ndash;&nbsp;[[User:Muboshgu|Muboshgu]]&nbsp;([[User talk:Muboshgu#top|talk]]) 19:11, 13 June 2021 (UTC)
: This is a deliberate result of [[Wikipedia:Village_pump_(proposals)/Archive_181#RfC: look of Authority Control]], where there was consensus for the new style, but no consensus to collapse the template by default. It is also being discussed on the talk page at [[Template talk:authority control#Collapsing the template?]] [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 19:16, 13 June 2021 (UTC)
::{{u|Pppery}}, thanks for the info. &ndash;&nbsp;[[User:Muboshgu|Muboshgu]]&nbsp;([[User talk:Muboshgu#top|talk]]) 20:19, 13 June 2021 (UTC)


{{Today/AD/SH/AH}}
Sorry, I know that this is an old chestnut but I hoped that maybe it had been resolved without my noticing. The template {{tl|Today/AD/SH/AH}} does not display on mobiles (or at least not on Android, but that has the largest market share worldwide). Is this a generic problem or something specific to that rather old and limited-use template? (If the latter, I'll go ask the template gurus.) [[User:JMF|𝕁𝕄𝔽]] ([[User talk:JMF|talk]]) 11:03, 8 January 2025 (UTC)


:@[[User:JMF|JMF]] This is intentional. That template is based on {{tl|sidebar}}, which, as it notes in the documentation, does not display on mobile devices. The WMF deliberately removed a bunch of templates (like navboxes) from the mobile site. [[Special:Contributions/86.23.109.101|86.23.109.101]] ([[User talk:86.23.109.101|talk]]) 13:35, 8 January 2025 (UTC)
::Of course! Classic case of looking for a complicated reason (java) for a simple problem{{snd}} I should have spotted that there is nowhere for a sidebar to go. So time for me to see if can be changed to an infobar. [[User:JMF|𝕁𝕄𝔽]] ([[User talk:JMF|talk]]) 16:54, 8 January 2025 (UTC)
:::Indeed, it is more {{tl|infobox}}y than it is {{tl|sidebar}}y. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 21:15, 8 January 2025 (UTC)
::::Current "emerging consensus" is to replace them all with {{tl|Infobox calendar date today}}, see [[user talk:Gonnym#template:Infobox calendar date today]]. [[User:JMF|𝕁𝕄𝔽]] ([[User talk:JMF|talk]]) 23:14, 8 January 2025 (UTC)


== Chinese nationality in the infobox refuses display on certain articles ==
==!Scrunch! Text/Image flow control: Glens Falls Hospital==
Is there a command which, for lack of a better term, I'd call <nowiki>{{scrunch}}</nowiki> which would do what I requested [[Wikipedia:Help_desk#Text/Image_flow_control:_Glens_Falls_Hospital|here]]? (what someone on the help desk calls "Yes the gap is kind of annoying") [[User:Pi314m|Pi314m]] ([[User talk:Pi314m|talk]]) 00:58, 14 June 2021 (UTC)
:It's not clear what you are asking for. All of the recent revisions look within the realm of reason to me. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 04:04, 14 June 2021 (UTC)


Am I the only one who noticed how on some articles, for example the Hong Kong activist [[Nathan Law]], if you add his nationality to the infobox, it is not visible to the readers and doesn't show up in previews. However if you add any other nationality such as Bahamian it does display in the preview. At first I thought maybe this was just a quirk of visual editor, but even in source code, the same problem persists. Here is the diff in case anyone cares to examine it. [https://en.wikipedia.org/enwiki/w/index.php?title=Nathan_Law&diff=next&oldid=1262073425] [[User:Andro611|Andro611]] ([[User talk:Andro611|talk]]) 15:29, 8 January 2025 (UTC)
::Please look at [[Linden General Hospital]]. The ''History'' section begins without a gap, following the LEAD. By contrast, in [[Glens Falls Hospital]] there is a long gap, what help desk calls "kind of annoying" (and which, via either an existing flow control command, or a new one, I'd like to reduce, if not eliminate). [[User:Pi314m|Pi314m]] ([[User talk:Pi314m|talk]]) 09:25, 14 June 2021 (UTC)
:::{{re|Pi314m}} I'm not seeing any abnormal gaps in [[Glens Falls Hospital]]. Are you referring to the space that is being used by the table of contents section (which is not on the first article because it is so short)? This is normal layout, as seen in this random article I just loaded: [[Gigan]]. How this appears may vary with the screen width of the reader, and also will look a lot different on mobile browsers. — [[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> 10:26, 14 June 2021 (UTC)
::::Yes, I think what you are seeing is the normal space created by the table of contents (TOC). To see a comparable space in some of our highest-quality articles, take a look at [[Babe Ruth]], or [[Four Freedoms (Rockwell)]], or [[Ring ouzel]]. Articles without a TOC (i.e. with three or fewer headings,) will not have this gap. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 16:26, 14 June 2021 (UTC)


:The documentation for {{tl|Infobox officeholder}} says the following:
==Discussion about using CSS margins to modify kerning==
:<code>nationality</code> is [[Wikipedia:Manual of Style/Infoboxes#Nationality and citizenship in infoboxes|not displayed]] if the corresponding country is mentioned in <code>birth_place</code>, for example <code>|birth_place = Tokyo, Japan |nationality = Japanese</code>.
:I'm guessing that's why. {{tq|Not displayed}} is a link to [[MOS:INFONAT]], which seems relevant. &ndash; [[Special:Contributions/2804:F14:80E2:1501:8492:914E:1096:BB60|2804:F1...96:BB60]] ([[Special:Contributions/2804:F14::/32|::/32]]) ([[User talk:2804:F14:80E2:1501:8492:914E:1096:BB60|talk]]) 15:50, 8 January 2025 (UTC)
::I see, thanks, that makes sense now. [[User:Andro611|Andro611]] ([[User talk:Andro611|talk]]) 00:20, 9 January 2025 (UTC)


== Multiple citation templates ==
There is a discussion at [[Template talk:Nihongo#Template-protected_edit request on 7 June_2021 — Kerning issues]] about the use of CSS margins to modify kerning within the Nihongo template. Some technical insight would be appreciated. — [[User:Goszei|Goszei]] ([[User_talk:Goszei|talk]]) 06:26, 14 June 2021 (UTC)


Why there were created multiple citation templetes (like Cite book, Cite journa) if they differ just by a few parameters? I wonder if there could be just one template with various attributes, because in practice the user usually fills up just some of them. [[User:Juandev|Juandev]] ([[User talk:Juandev|talk]]) 16:20, 8 January 2025 (UTC)
== Something broken at [[Schengen Area]] ==


:All those templates are wrappers for [[Module:Citation/CS1]], but the parameters required/allowed by the different citations types varies. For example, {{tl|cite web}} generates an error if {{para|volume}} is used but {{tl|cite journal}} doesn't. This becomes even more important with the [[Wikipedia:TemplateData]] used by Visual Editor and various bots, where we want to vary which fields are presented to the editor. <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> 17:32, 8 January 2025 (UTC)
There is something broken at [[Schengen Area]]: the text seem to be mostly in red with some huge font size. I have slow connection to the internet at the moment and can not debug it. Can someone look at it? --[[User:Jarekt|Jarekt]] ([[User talk:Jarekt|talk]]) 09:57, 14 June 2021 (UTC)
:Because people didn't create centralized templates at the time those were created (20 years ago). Someone eventually made {{tl|citation}} and then someone else finally made {{tl|citation/core}} which at least centralized how things were rendered but by that time we had the problem that there were stylistic differences between the two (which we have whittled since). We later turned that template into the aforementioned module when we got [[WP:Lua]]. If we had the right tools at the time, I suspect there would have been one template and one template only.
:{{u|Jarekt}}, this was caused by recent changes to {{tl|UN_population}}, which I've reverted. {{u|Guarapiranga}}, apologies for the unilateral revert, but [https://en.wikipedia.org/enwiki/w/index.php?title=Template:UN_population&diff=1028476753&oldid=999408762 this change] appears to have had various unintended consequences. [[User:Firefly|<span style="color:#850808;">firefly</span>]] <small>( [[User talk:Firefly|t]] · [[Special:Contributions/Firefly|c]] )</small> 10:14, 14 June 2021 (UTC)
:I guess we could make a {{tl|citation cs1}} which would do the same things as {{tl|citation}} without requiring the parameter tweaks for the style issue, but the other issue a single template has trouble with is that there are some rules that are harder to enforce (or guess at) when you have only one template. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 21:21, 8 January 2025 (UTC)
::{{ping|Firefly}} I've seen a number of similar notes about infobox populations ([https://en.wikipedia.org/enwiki/w/index.php?title=Talk:Nepal&curid=313962&diff=1028537309&oldid=1028501457][https://en.wikipedia.org/enwiki/w/index.php?title=Talk:Africa&diff=1028528684&oldid=1022216989][https://en.wikipedia.org/enwiki/w/index.php?title=Talk:El_Salvador&diff=1028485933&oldid=1027863928]), but couldn't see the issue myself. Would this be the same issue? [[User:Chipmunkdavis|CMD]] ([[User talk:Chipmunkdavis|talk]])
::Yup, that sounds me like a reason, that before Lua you would need to format value inserted by the user different way for each type of a resource. Because otherwice it would be maybe better to have one big template providing samples of parameters for each resource type. [[User:Juandev|Juandev]] ([[User talk:Juandev|talk]]) 21:27, 8 January 2025 (UTC)
:::{{u|Chipmunkdavis}} - yes, almost certainly, as these articles also use the template mentioned above. Now that I've fixed it I can't see any oddities on those pages either. [[User:Firefly|<span style="color:#850808;">firefly</span>]] <small>( [[User talk:Firefly|t]] · [[Special:Contributions/Firefly|c]] )</small> 16:34, 14 June 2021 (UTC)
::::The template had an unbalanced {{tag|includeonly|o}} tag. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 19:46, 14 June 2021 (UTC)
:::This is really a matter for [[Help talk:Citation Style 1]]. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 00:37, 9 January 2025 (UTC)
:::Moving the Cite CS1 templates into one would not be complicated. It could be done with moving "CitationClass" from being a config (template parameter) to being an argument (page parameter). The challenge is getting [[Mw:Extension:Citoid|Citoid]] to work - the automatic citation filler in VisualEditor and [[Wikipedia:RefToolbar|RefToolbar]] - because it expects one template for news, one for web, one for books, etc. Changing the roughly 6 million pages to one template with a bot is also going to take awhile. You are going to need a conseus for all of this. [[User:Snævar|Snævar]] ([[User talk:Snævar|talk]]) 01:30, 9 January 2025 (UTC)
:::My apologies, my intention was to update the figures to latest UN estimates (which are now outdated). I've now fixed the proposed change in the [[Template:UN population/sandbox|sandbox]], and tested it in the aforementioned pages, with no hiccups. If no one finds any other problems with it, I'll put it into production in a few days. Cheers. — [[User:Guarapiranga|𝐆𝐮𝐚𝐫𝐚𝐩𝐢𝐫𝐚𝐧𝐠𝐚]]&nbsp;[[User talk:Guarapiranga|☎]] 00:05, 15 June 2021 (UTC)
::::It sounds like you're talking about something like changing <code><nowiki>{{cite web|...}}</nowiki></code> to <code><nowiki>{{cite|web|...}}</nowiki></code>, consolidating to one template while retaining the background module code. I can't see how this would make anything better. Merging the documentation seems likely to cause more confusion than the current situation, since different modes accept different parameters and produce different formatting. I don't see how or why this would be a good idea. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 05:26, 9 January 2025 (UTC)
:::::A lot of the documenation is already maintained in a centralised way, through {{tl|Citation Style documentation}}. Take a look at [[Special:PrefixIndex/Template:Citation_Style_documentation/|all its subpages]], which contain the documentation that is identical for all CS1 templates. --[[User:Rchard2scout|rchard2scout]] ([[User talk:Rchard2scout|talk]]) 08:43, 9 January 2025 (UTC)
::::::I am familiar with the documentation and have edited it over the years, which is why I think that it will be difficult to display for a single template with multiple modes. Take a look at the switch and if statements in the code for {{tl|Citation Style documentation/title}}, for example. Editors already complain that the documentation for these templates is too complex; imagine a single documentation page with all of the modes explained on one long, green page. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 14:32, 9 January 2025 (UTC)
:::::::Citation templates included quite a lot options. It would be nice to know the persentage of use of each option. We may see then, that some of them have rare use. [[User:Juandev|Juandev]] ([[User talk:Juandev|talk]]) 22:44, 9 January 2025 (UTC)
::::::::Have you looked at the monthly report available in the TemplateData section of the documentation? If you have specific suggestions for changes to one of the cite templates, [[Help talk:Citation Style 1]] is the correct forum. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 23:07, 9 January 2025 (UTC)
::::::::Some options are rarely used because they are rarely needed, but they {{em|are}} needed sometimes. Try citing a chapter in a book without "chapter", "chapter-url", or "chapter-url-access". [[User talk:Donald Albury|Donald Albury]] 23:08, 9 January 2025 (UTC)
::::Well, I am not sure if VisualEditor would be a big deal. You just recreate [[MediaWiki:Cite-tool-definition.json]] and maybe also [[MediaWiki:Citoid-template-type-map.json]]. [[User:Juandev|Juandev]] ([[User talk:Juandev|talk]]) 14:41, 9 January 2025 (UTC)


== External link screening JS script I just made! ==
== Error on [[USer:Qwerfjkl/common.js|my common.js page]] ==


Re recent events that I'm not going to mention because of [[WP:DENY]]/[[WP:BEANS]], and also the very concerning {{tl|Plain link}} template which can disguise external links as wikilinks (like {{Plain link|https://google.com|this}}), I made a user script, at [[User:MolecularPilot/ExternalLinkScreen.js]] that presents a "are you sure this is the link you want to visit" screen when clicking through to external links, even if {{tl|Plain link}} has been used or the link has a display name set, showing you the actual URL you are about to visit. This is common on many websites like YouTube, Twitter etc.
PLease can someone help me fix [https://en.wikipedia.org/enwiki/w/index.php?title=User:Qwerfjkl/common.js&oldid=1028562776 this] revision of my page. &#8213;<span style="background:#8FF;border:solid 1px;border-radius:8px;box-shadow:darkgray 2px 2px 2px">&nbsp;[[User:Qwerfjkl|<span style="color:#C00">Qwerfjkl</span>]]&nbsp;&#124;&nbsp;[[User talk:Qwerfjkl|𝕋𝔸𝕃𝕂]]&nbsp;</span>&nbsp;<small>(please use&#32;{{tlx|reply to|Qwerfjkl}} on reply)</small>{{Z181}}<!--Template:Please ping--> 18:06, 14 June 2021 (UTC)
:{{re|Qwerfjkl}} you have a huge number of scripts loaded - what exactly to you want help with? See [[Wikipedia:Reporting JavaScript errors]] for some information on how to improve your report. If something just isn't working, you should start by disabling all of your scripts and looking for which one isn't working (see also [[mw:Help:Locating broken scripts]]). — [[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:31, 14 June 2021 (UTC)
::@[[User:Xaosflux|Xaosflux]] I believe the error is related with the conditional clause: <syntaxhighlight>
var scriptmanager = 1;
if (scriptmanger == 1) { </syntaxhighlight>
::as it works fine without it. &#8213;<span style="background:#8FF;border:solid 1px;border-radius:8px;box-shadow:darkgray 2px 2px 2px">&nbsp;[[User:Qwerfjkl|<span style="color:#C00">Qwerfjkl</span>]]&nbsp;&#124;&nbsp;[[User talk:Qwerfjkl|𝕋𝔸𝕃𝕂]]&nbsp;</span>&nbsp;<small>(please use&#32;{{tlx|reply to|Qwerfjkl}} on reply)</small>{{Z181}}<!--Template:Please ping--> 18:36, 14 June 2021 (UTC)
:Remove the last comma in the last uncommented line (Rater) of the object scriptsToManage. [[User:MarMi wiki|MarMi wiki]] ([[User talk:MarMi wiki|talk]]) 18:33, 14 June 2021 (UTC)
::{{re|Qwerfjkl}} did [https://en.wikipedia.org/enwiki/w/index.php?title=User%3AQwerfjkl%2Fcommon.js&type=revision&diff=1028568493&oldid=1028566905 that help]? — [[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:44, 14 June 2021 (UTC)
:::@[[User:Xaosflux|Xaosflux]]You haven't edited the correct revision of the page - I've restored it now. &#8213;<span style="background:#8FF;border:solid 1px;border-radius:8px;box-shadow:darkgray 2px 2px 2px">&nbsp;[[User:Qwerfjkl|<span style="color:#C00">Qwerfjkl</span>]]&nbsp;&#124;&nbsp;[[User talk:Qwerfjkl|𝕋𝔸𝕃𝕂]]&nbsp;</span>&nbsp;<small>(please use&#32;{{tlx|reply to|Qwerfjkl}} on reply)</small>{{Z181}}<!--Template:Please ping--> 18:47, 14 June 2021 (UTC)
::::Besides that, a quick lintercheck suggests there are syntax problems in the <code>if (scriptmanger == 0) {</code> section on line 42. — [[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, 14 June 2021 (UTC)
::::Notably ''Missing semicolon.'' errors. — [[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:50, 14 June 2021 (UTC)


It's also able to prevent spoofing ([[IDN homograph attack]]) by showing the actual puny code and adding warnings for websites like https://wikipediа.org (spoiler alert: this isn't wikipedia, it's a trick using cyclic letters, you are actually taken to http://xn--wikipedi-86g.org/ which this script will tell you about).
:::@Qwerfjkl
:::Press F12 (FF/Chrome), switch to Console tab, and do a preview of your common.js page. [[User:MarMi wiki|MarMi wiki]] ([[User talk:MarMi wiki|talk]]) 18:55, 14 June 2021 (UTC)
::::Also, there's a typo; you declare <code>scriptman'''''a'''''ger</code>, but check <code>scriptmanger</code>, without the second "a". <code>scriptmanger</code> is presumably undefined, and will throw an error. [[User:Writ Keeper|Writ&nbsp;Keeper]]&nbsp;[[User Talk: Writ Keeper|&#9863;]][[Special:Contributions/Writ_Keeper|&#9812;]] 18:54, 14 June 2021 (UTC)
:::::@[[User:MarMi wiki|MarMi wiki]] Thanks, that was the problem. &#8213;<span style="background:#8FF;border:solid 1px;border-radius:8px;box-shadow:darkgray 2px 2px 2px">&nbsp;[[User:Qwerfjkl|<span style="color:#C00">Qwerfjkl</span>]]&nbsp;&#124;&nbsp;[[User talk:Qwerfjkl|𝕋𝔸𝕃𝕂]]&nbsp;</span>&nbsp;<small>(please use&#32;{{tlx|reply to|Qwerfjkl}} on reply)</small>{{Z181}}<!--Template:Please ping--> 19:01, 14 June 2021 (UTC)
::::::Passing thanks to Writ Keeper. :) [[User:MarMi wiki|MarMi wiki]] ([[User talk:MarMi wiki|talk]]) 19:06, 14 June 2021 (UTC)
:Also, I get a warning message about this:
<syntaxhighlight>
function importScript(location) {
mw.loader.load( '/enwiki/w/index.php?action=raw&ctype=text/javascript&title=' + encodeURIComponent(location));
}
</syntaxhighlight>
<small>Thanks [[User:Writ Keeper|Writ Keeper]]!</small> <!-- Template:Unsigned --><span class="autosigned" style="font-size:85%;">—&nbsp;Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Qwerfjkl|Qwerfjkl]] ([[User talk:Qwerfjkl#top|talk]] • [[Special:Contributions/Qwerfjkl|contribs]]) 19:29, 14 June 2021 (UTC)</span>


Just wanted to post this here to let everyone know that can now install this (just add <code>importScript('User:MolecularPilot/ExternalLinkScreen.js');</code> to your [[Special:Mypage/common.js]] or use Enterprisey's script installer).
== [[m:Special:MyLanguage/Tech/News/2021/24|Tech News: 2021-24]] ==


Stay safe everyone, especially if you are editing in [[WP:ARBPIA]]! :) [[User:MolecularPilot|<span style="color: #0369a1; font-family:monospace">MolecularPilot</span>]] <sup>[[User talk:MolecularPilot|🧪️]][[Special:Contributions/MolecularPilot|✈️]]</sup> 06:14, 9 January 2025 (UTC)
<section begin="tech-newsletter-content"/><div class="plainlinks">
:Adding that if you want a "try before you buy", here's two link examples of the screen you will see (note that if you have the script installed, it you'll get 2 landing pages before reaching the link as opposed to the usual 1, if you click these):
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/2021/24|Translations]] are available.
:*Click {{Plain link|url=https://molecularbot2.toolforge.org/linkCheck.html?url=https://google.com|name=here}} for a regular link.
:*[https://molecularbot2.toolforge.org/linkCheck.html?url=https://wikipediа.org] Click on that to see what happens with an [[IDN homograph attack]].
:[[User:MolecularPilot|<span style="color: #0369a1; font-family:monospace">MolecularPilot</span>]] <sup>[[User talk:MolecularPilot|🧪️]][[Special:Contributions/MolecularPilot|✈️]]</sup> 06:27, 9 January 2025 (UTC)
:Interesting concept. I don't see why you need the toolforge site in the middle though, as that's just executing JS that could be run in the user script itself. – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 06:46, 9 January 2025 (UTC)
::Also, pulling in punycode.js from Cloudfare CDN is against Toolforge policy. Use https://cdnjs.toolforge.org/ instead. – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 06:53, 9 January 2025 (UTC)
:::Oh, thanks for the tip, I'll fix the CDN now! (I also realised that I wrote my demo links incorrectly above, so the URL would be "null", which I've just fixed). Re: the use of a website, I think it's better psychologically because it adds a pause while the tool forge page loads and also makes you process (yes, I'm going to a different page) before automatically clicking the button. :) [[User:MolecularPilot|<span style="color: #0369a1; font-family:monospace">MolecularPilot</span>]] <sup>[[User talk:MolecularPilot|🧪️]][[Special:Contributions/MolecularPilot|✈️]]</sup> 06:55, 9 January 2025 (UTC)
::::{{u|SD0001}}, CDN fixed now! Thank you so much for your feedback, I really appreciate it! I might add a version that creates popups like Twinkle instead of using the landing page like most of the other websites do, because it may be better suited to our environment here. :) [[User:MolecularPilot|<span style="color: #0369a1; font-family:monospace">MolecularPilot</span>]] <sup>[[User talk:MolecularPilot|🧪️]][[Special:Contributions/MolecularPilot|✈️]]</sup> 07:12, 9 January 2025 (UTC)
:I suggest you wrap the script in <code>mw.hook('wikipage.content').add()</code> and find links only in the jQuery node passed to the callback, or it may run before the whole page is loaded. Also all wiki-generated external links have the <code>external</code> or <code>extiw</code> class. [[User:Nardog|Nardog]] ([[User talk:Nardog|talk]]) 10:36, 9 January 2025 (UTC)


This is all a step in the right direction. I'd like to see something else as well, namely a bot that goes around flagging (or even disabling) external links that appear to be deceptive. That would protect editors who haven't installed any js. Exactly what properties would trigger it is a matter for discussion, as is how to catch enough cases without a flood of false positives. [[User:Zero0000|Zero]]<sup><small>[[User_talk:Zero0000|talk]]</small></sup> 11:27, 9 January 2025 (UTC)
'''Recent changes'''
* Logged-in users on the mobile web can choose to use the [[:mw:Special:MyLanguage/Reading/Web/Advanced mobile contributions|advanced mobile mode]]. They now see categories in a similar way as users on desktop do. This means that some gadgets that have just been for desktop users could work for users of the mobile site too. If your wiki has such gadgets you could decide to turn them on for the mobile site too. Some gadgets probably need to be fixed to look good on mobile. [https://phabricator.wikimedia.org/T284763]
* Language links on Wikidata now works for [[:oldwikisource:Main Page|multilingual Wikisource]]. [https://phabricator.wikimedia.org/T275958]


:That is what [[MediaWiki:Spam-blacklist]] is for. It blocks aditions of links that are listed in the list. The way I see it, javascript link warnings are for finding bad links or marking links that are not quite serious enough for Spam-blacklist. [[User:Snævar|Snævar]] ([[User talk:Snævar|talk]]) 00:13, 10 January 2025 (UTC)
'''Changes later this week'''
* There is no new MediaWiki version this week.


:: No, the blacklist is for blocking links to malicious domains that have already been identified. It does not locate new deceptive links to other domains. We have a well-funded organization that plans to add deceptive redirects in order to dox editors and those links are not going to point to the organization's own domains. They will point to new temporary domains designed to be deniable. The question is how we will find those links before unsuspecting editors click on them. [[User:Zero0000|Zero]]<sup><small>[[User_talk:Zero0000|talk]]</small></sup> 02:04, 10 January 2025 (UTC)
'''Future changes'''
:::Actually a good point re temporary domains, I will make the page warn if they domain is newly registered (i.e. in the last 30 days). Currently, the "do you really want to visit this link" isn't just for suspicious links, it's for all links to non-WMF sites (including Toolforge as anyone can host a tool) because sometimes there is no way to figure out where a link is going until you actually click it (and sometimes a user might expect a wiki link but it's a {{tl|Plain links}} external link), so I thought this would be helpful. For example how do you know where [https://heritage.org/ this] goes without clicking and how about {{Plain links|https://heritage.org/|this}}, you might not even think it leads you off-wiki? [[User:MolecularPilot|<span style="color: #0369a1; font-family:monospace">MolecularPilot</span>]] <sup>[[User talk:MolecularPilot|🧪️]][[Special:Contributions/MolecularPilot|✈️]]</sup> 02:11, 10 January 2025 (UTC)
* In the future we [[m:Special:MyLanguage/IP Editing: Privacy Enhancement and Abuse Mitigation|can't show the IP]] of unregistered editors to everyone. This is because privacy regulations and norms have changed. There is now a rough draft of how [[m:IP Editing: Privacy Enhancement and Abuse Mitigation#Updates|showing the IP to those who need to see it]] could work.
:::"...a well-funded organization that plans to add deceptive redirects..."? If that's the case, perhaps the good folks over at [[WP:EFR]] can help out to prevent that from happening? --[[User:Rchard2scout|rchard2scout]] ([[User talk:Rchard2scout|talk]]) 13:43, 10 January 2025 (UTC)
* German Wikipedia, English Wikivoyage and 29 smaller wikis will be read-only for a few minutes on 22 June. This is planned between 5:00 and 5:30 UTC. [https://phabricator.wikimedia.org/T284530]
::::I think that's a typo, Zero probably meant links not redirects. I don't think such links can be caught with a regex-like AbuseFilter pattern (but no links have been posted yet so you never know!) but just made this script to ensure people actually see where a link is taking them (and see appropriate warnings like about IDN homograph attacks and new domains) and confirm that it's correct before heading off-wiki, like many other sites do for safety/privacy. :) [[User:MolecularPilot|<span style="color: #0369a1; font-family:monospace">MolecularPilot</span>]] <sup>[[User talk:MolecularPilot|🧪️]][[Special:Contributions/MolecularPilot|✈️]]</sup> 00:29, 11 January 2025 (UTC)
* All wikis will be read-only for a few minutes in the week of 28 June. More information will be published in Tech News later. It will also be posted on individual wikis in the coming weeks. [https://phabricator.wikimedia.org/T281515][https://phabricator.wikimedia.org/T281209]

== Redlink count ==

How to count fastly redlinks here? [[:ru:Депутаты Верховного Совета Республики Казахстан XII созыва]] [[User:Kaiyr|Kaiyr]] ([[User talk:Kaiyr|talk]]) 10:40, 9 January 2025 (UTC)
:Open the browser console (see [[Help:CONSOLE]] for how to open) and use command <code>document.querySelectorAll('a.new')</code>. There are 214. – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 10:43, 9 January 2025 (UTC)
::How to make list of this redlinks? [[User:Kaiyr|Kaiyr]] ([[User talk:Kaiyr|talk]]) 13:04, 9 January 2025 (UTC)
:::<code>copy([...document.querySelectorAll('a.new')].map(e => e.title).join('\n'))</code>. This copies a plain list of titles to the clipboard. – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 15:19, 9 January 2025 (UTC)

== "Edit" has disappeared and I only have "Edit Source" ==

Despite having (repeatedly) enabled the visual editor the "edit" function has disappeared from all my Wikipedia pages, leaving only "edit source", which is beyond my capability. Please help, but assume I am totally stupid in the way you reply - I will not be offended - thanks. [[User:Stagememories|Stagememories]] ([[User talk:Stagememories|talk]]) 17:28, 9 January 2025 (UTC)

:You probably changed the "Editing mode" setting [[Special:Preferences#ooui-php-191|here]]. [[User:Sjoerddebruin|<span style="color:var(--color-progressive,#36c); font-weight:var(--font-weight-semi-bold,600); letter-spacing:0.05em;">Sjoerd de Bruin</span>]]&nbsp;[[Overleg gebruiker:Sjoerddebruin|<small style="color:var(--color-progressive,#36c); letter-spacing:0.05em;">({{int:Talkpagelinktext}})</small>]] 17:56, 9 January 2025 (UTC)
::Sjoerd de Bruin, you are a star! Thanks. [[User:Stagememories|Stagememories]] ([[User talk:Stagememories|talk]]) 18:29, 9 January 2025 (UTC)

== Pipe-related glitch ==

I've been having this happen for quite some time, and still don't know the root cause. Sometimes, although not all the time, a random wikilink (<nowiki>[[]]</nowiki>) will bug out and display a "post-open>" and post-close>" in visible text before and after the link, despite no changing to the source editor or any other input. The best example of this can be found at [https://en.wikipedia.org/enwiki/w/index.php?title=Draft:Cooper_Pants_Factory_fire&oldid=1268406459 this diff]. The "post" is usually highlighted in orange, so it may be some sort of issue with a script I have installed. A user on the WM Discord told me about a week ago that I'm not the only person that has reported this issue. This could easily be taken as vandalism, so I'd say it's relatively serious. [[User:EF5|<span style="color:#A188FC;">'''E'''</span>]]<sub>[[User talk:EF5|<span style="color:#A188FC;">'''F'''</span>]]</sub><sup>[[User:EF5/Creations|<span style="color:#A188FC;">'''5'''</span>]]</sup> 17:37, 9 January 2025 (UTC)

:I'd immediately be looking at some sort of Wordpress or other spelling or blog browser extension.... [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 20:04, 9 January 2025 (UTC)
::That’s the thing, I run Chrome (on my school-issued Chromebook) and Edge (on my home PC), neither of which have extensions installed (I have WWT, but this problem has gone on way before I installed it). [[User:EF5|<span style="color:#A188FC;">'''E'''</span>]]<sub>[[User talk:EF5|<span style="color:#A188FC;">'''F'''</span>]]</sub><sup>[[User:EF5/Creations|<span style="color:#A188FC;">'''5'''</span>]]</sup> 20:41, 9 January 2025 (UTC)
:::The diff which added it is [https://en.wikipedia.org/enwiki/w/index.php?title=Cooper_Pants_Factory_fire&diff=prev&oldid=1268400093] where you used VisualEditor. I only found one other occurrence in searches and it was also you, 30 October 2024 [https://en.wikipedia.org/enwiki/w/index.php?title=User:EF5/Jarrell_Lede&diff=next&oldid=1254338168] with the [[:mw:2017 wikitext editor]] which is a mode within the VisualEditor extension. The diffs add nowiki which is MediaWiki code and VisualEditor is known for automatically adding nowiki in some situations so VisualEditor is probably involved but it may be a conflict with a script in [[User:EF5/common.js]]. You should load [[User:Epicgenius/ArticleQuality.js]] once and not 16 times, but that happened this week [https://en.wikipedia.org/enwiki/w/index.php?title=User:EF5/common.js&diff=prev&oldid=1267871376] so it's not the cause. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 21:15, 9 January 2025 (UTC)
::::I’ll mess around with my scripts a bit and see what happens. I normally catch it before publishing it by cancelling the edit (which usually fixes it), hence why it’s only shown up twice. [[User:EF5|<span style="color:#A188FC;">'''E'''</span>]]<sub>[[User talk:EF5|<span style="color:#A188FC;">'''F'''</span>]]</sub><sup>[[User:EF5/Creations|<span style="color:#A188FC;">'''5'''</span>]]</sup> 21:24, 9 January 2025 (UTC)
:I tried loading [[User:EF5/common.js|your common.js]] for myself, and immediately saw a visual glitch (just in read mode, not in the editor) that's eerily similar to the problem you get after saving pages: [[phab:F58156448|F58156448]] (screenshot taken on [[The Fighting Temeraire]]). I can't tell which script of the eleventeen you have is inserting that markup, but it must be its fault. (Also, the way in which it breaks suggest it's vulnerable to [[XSS]] attacks, by processing HTML incorrectly, which is probably not good for you…) [[User:Matma Rex|Matma Rex]] <small>[[User talk:Matma Rex|talk]]</small> 22:55, 9 January 2025 (UTC)
::It appears to be [[User:Moonythedwarf/extra-unreliable]]. nowiki is probably added by VisualEditor when the script messes with the page. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 23:52, 9 January 2025 (UTC)
:::Check out that script’s talk page, it’s definitely this script. Thanks for the help, it’s been really annoying having to deal with this weird visual bug! :) [[User:EF5|<span style="color:#A188FC;">'''E'''</span>]]<sub>[[User talk:EF5|<span style="color:#A188FC;">'''F'''</span>]]</sub><sup>[[User:EF5/Creations|<span style="color:#A188FC;">'''5'''</span>]]</sup> 23:55, 9 January 2025 (UTC)
::::You could wrap the script in the following, it will then only run on page view.
::::<syntaxhighlight lang="javascript">if (mw.config.get("wgAction") == "view") {
//script here
}</syntaxhighlight> [[User:Snævar|Snævar]] ([[User talk:Snævar|talk]]) 03:08, 10 January 2025 (UTC)
:::@[[User:PrimeHunter|PrimeHunter]] Thanks for finding the script. I suggested a fix: [[User talk:Moonythedwarf/extra-unreliable#Glitch fix]]. [[User:Matma Rex|Matma Rex]] <small>[[User talk:Matma Rex|talk]]</small> 17:21, 10 January 2025 (UTC)

== Sections ==

I noticed that some sections are written like: == xxxxx ==
and some are written like ==xxxxx==. Some have gaps and some do not. Won't it be better if it was standardized? I prefer the one without gaps because it should save space.
[[User:TrueMoriarty|TrueMoriarty]] ([[User talk:TrueMoriarty|talk]]) 06:47, 10 January 2025 (UTC)

:No. Please write articles instead. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 08:08, 10 January 2025 (UTC)
::Articles about what?
::[[User:TrueMoriarty|TrueMoriarty]] ([[User talk:TrueMoriarty|talk]]) 11:57, 10 January 2025 (UTC)
:::Or fix actual errors, of which there are literally tens of millions. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 14:23, 10 January 2025 (UTC)
::::About what????? [[User:TrueMoriarty|TrueMoriarty]] ([[User talk:TrueMoriarty|talk]]) 16:43, 10 January 2025 (UTC)
:The community hasn't made a project-wide standard for this. In general, you can use either style in articles you write, subject to the guidelines that do exist (see [[MOS:SECTIONHEAD]] as a start). But also, in general, match the style that already exists in an article and don't change style in an existing article without reason (see [[MOS:STYLEVAR]]). New guideline/rules are added sometimes, of course. I'd suggest editing and being around longer before considering making a proposal about this (not saying you are, just as a suggestion) (it's been discussed, at least tangentially many times: [[Wikipedia talk:Manual of Style/Archive 225#Whitespace wrapping section headings in the source|arbitrary recent example]]).(And welcome to Wikipedia and happy editing.) [[User:Skynxnex|Skynxnex]] ([[User talk:Skynxnex|talk]]) 16:16, 10 January 2025 (UTC)
::I got your hint. If you don't want users newer than you to give some proposal here than you should put a password on this page and share it with users who you think is worthy and equal to you.
::[[User:TrueMoriarty|TrueMoriarty]] ([[User talk:TrueMoriarty|talk]]) 17:01, 10 January 2025 (UTC)
:::I just was trying to give some background/history, in case you didn't know it. No objection to an actual proposal but I think if you want it to have a chance, you should do enough research to pretty comprehensively explain why and exactly what you'd want different. This is less a technical proposal and more a style or policy one, since English Wikipedia can't, as far as I know, make one of them technically impossible (since all Wikipedias share the common [[MediaWiki]] wikitext parser). [[User:Skynxnex|Skynxnex]] ([[User talk:Skynxnex|talk]]) 17:27, 10 January 2025 (UTC)
:::Please [[WP:AGF|assume good faith]]. What you proposed is a [[Wikipedia:Bot policy#Cosmetic changes|cosmetic change]]. Cosmetic changes are discouraged because they clutter up watchlists, and require editor time to review without making any improvement to the Encyclopedia. [[User talk:Donald Albury|Donald Albury]] 17:27, 10 January 2025 (UTC)
:To address the original question. {{replyto|TrueMoriarty}} The presence or absence of the gaps makes absolutely no difference to either how the heading is displayed, or to how the MediaWiki software process the heading (such as, making section links work). Since they function identically, there is no advantage in altering either form to the other one.
:Further: if an edit is made which does nothing other than remove those gaps, it doesn't save any space at all - in fact, it ''increases'' the amount of disk space that is used, since the MediaWiki software retains all previous versions of a page, effectively forever. You can see this by opening the "History" tab at the top of any page. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 13:16, 11 January 2025 (UTC)

== request for new category ==
Hello. I have created a bot for updating [[Accelerated Mobile Pages|amp url]] to its canonical/non-amp version. The BRFA will soon be approved. For now, I am using inputs from file(s), which were created [https://insource.toolforge.org/search?query=https%3A%2F%2Famp.&namespaces=0&language=en&custom_language=&case_sensitive=on using this list]. '''In short''', would it be possible possible to create a hidden/maintenance category which would contain articles that have "amp" anywhere in their url? False positives are preferred over missing amp url. The bot's programming is comprehensive so false positives wouldn't matter. Kindly let me know if this is possible, or if you need further information. Regards, —usernamekiran [[User talk:usernamekiran|(talk)]] 10:52, 10 January 2025 (UTC)
:PS: automatically populating category. —usernamekiran [[User talk:usernamekiran|(talk)]] 11:34, 10 January 2025 (UTC)
:: It's possible, but in practice it's very unlikely you'd be able to convince MediaWiki developers to write and merge a change that does this. You'd probably do better to use a [[wikitech:Help:Toolforge/Database|Toolforge database query]] or process a [[WP:DD|database dump]]. If you go the database query route, you'll probably need to batch your query with a condition like <syntaxhighlight inline lang="sql">el_id > N AND el_id <= N+1000000</syntaxhighlight> for relevant <code>N</code> to avoid timeouts. You'll also probably find that looking for just "contains 'amp'" gives very many false positives on words like "camp", "campus", "champion", "sample", "example", "Hampshire", and so on. [[User:Anomie|Anomie]][[User talk:Anomie|⚔]] 12:51, 10 January 2025 (UTC)
:Isn't that link just listing pages containing "https://amp." in wikitext? The bot can query for that directly using [[mw:API:Search]] instead of relying on a static list. – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 13:51, 10 January 2025 (UTC)
::Some sites use path-based amp URLs, so adding searching for something like at least "/amp/" would be needed. But between these two that'd get almost everything. [[User:Skynxnex|Skynxnex]] ([[User talk:Skynxnex|talk]]) 15:37, 10 January 2025 (UTC)
:As SD0001 said, you can use pagegenerators. For example:
<syntaxhighlight lang="python">
from pywikibot import pagegenerators

site = pywikibot.Site("en", "wikipedia")
gen = pagegenerators.SearchPageGenerator('insource:"https://amp."', site=site)
for page in gen:
#your code
</syntaxhighlight>
– [[User:DreamRimmer|<span style="color:black">'''DreamRimmer'''</span>]] <small>([[User talk:DreamRimmer|'''talk''']])</small> 16:49, 10 January 2025 (UTC)

* Thanks everyone. I was doubtful about the category, so I was also working on code. But I had come up with:
<syntaxhighlight lang="python">
for page in site.allpages(namespace=0):
#.. code
search_term = "https?:\/\/[^ ]*amp[^ ]*"
</syntaxhighlight>
But the method suggested by SD0001, and DreamRimmer is less resource intensive. I will go with it. Regarding Anomie's query, I kept the search term intentionally lax, the bot has more regular expressions to weed out URLs containing words like "hampshire". I'm not sure if including such long code/strings in search would be a good idea. Thanks a lot again. —usernamekiran [[User talk:usernamekiran|(talk)]] 13:22, 11 January 2025 (UTC)


== Group changes by page doesn’t work in mobile view ==
'''''[[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/2021/24|Translate]]&nbsp;• [[m:Tech|Get help]]&nbsp;• [[m:Talk:Tech/News|Give feedback]]&nbsp;• [[m:Global message delivery/Targets/Tech ambassadors|Subscribe or unsubscribe]].''
</div><section end="tech-newsletter-content"/>


The option to "Group changes by page in recent changes and watchlist" doesn’t work for me in mobile view. Am I missing something? [[User:YBG|YBG]] ([[User talk:YBG|talk]]) 12:38, 10 January 2025 (UTC)
20:25, 14 June 2021 (UTC)
<!-- Message sent by User:Johan (WMF)@metawiki using the list at https://meta.wikimedia.org/enwiki/w/index.php?title=Global_message_delivery/Targets/Tech_ambassadors&oldid=21587625 -->


:Or perhaps this is a bug? [[User:YBG|YBG]] ([[User talk:YBG|talk]]) 02:50, 12 January 2025 (UTC)
== Default image margin ==


== V22's recent Appearance portlet has bigger min-content in grid than tools? ==
Quick CSS question, what's the default left margin between the edge of an image and the article body text? I'm trying to get a table to match. <span style="color:#AAA"><small>&#123;{u&#124;</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}&#125;</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 23:34, 14 June 2021 (UTC)


I'm trying to troubleshoot [[m:User:Aaron Liu/v22.css]] for when only the appearance menu is pinned to the right sidebar (i.e. tools is unpinned). For some reason, the right sidebar is much larger in this case, despite the grid template still being minmax(0, 1fr) min-content. Any idea why? [[User:Aaron Liu|<span class="skin-invert" style="color:#0645ad">Aaron Liu</span>]] ([[User talk:Aaron Liu#top|talk]]) 12:56, 10 January 2025 (UTC)
:In which skin? ;) [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 00:32, 15 June 2021 (UTC)
:(The cheaty way is to use <code>floatright</code> or <code>floatleft</code> classes.) [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 00:33, 15 June 2021 (UTC)
::@[[User:Izno|Izno]], Vector ;) Using those classes unfortunately doesn't seem to be working—could you take a glance at [[User:Sdkb/sandbox/testpage]]? <span style="color:#AAA"><small>&#123;{u&#124;</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}&#125;</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 02:09, 15 June 2021 (UTC)
:::Ah, so they don't. In any case, do not assume the margins you have in your skin will reflect the other skins, esp. mobile. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 02:57, 15 June 2021 (UTC)
:::In any case, your browser console will tell you the widths and heights of an arbitrary block on a page, and tell you why those are. --[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 02:59, 15 June 2021 (UTC)
:::yeah table floatleft and float right are exceptions and use different margins historically. I do wonder why though... Maybe that is something that should be discussed ? —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 09:09, 15 June 2021 (UTC)


==[[Sergei Skripal]] wrong text displayed - mystery solved==
== Changing the display of BLP editintro ==
[[File:Enwp Sergei Skripal oddity.png|thumb|Wrong word from unknown source in article - as viewed in Chrome, logged in.]]
The word "pleased" should be "convicted".
* In the wiki-text it is "convicted".
* I've done a history search using Wikiblame, I can't find the word "pleased" in recent history
* I've purged the page.
* I've done a nearly-null edit of the section.
* In other browsers the word "convicted" appears, logged in or logged out.


{{collapse top|Expand to see the reason, or puzzle over the mystery a little longer}}
Can the {{tl|BLP editintro}} be displayed on any article whose talk page contains the {{tl|BLP}} header? [[User:Awesome Aasim|Aasim]] ([[User talk:Awesome Aasim|talk]]) 03:30, 15 June 2021 (UTC)
[[Google Translate]] was re-writing the article, claiming to be translating from Russian to English.
:{{replyto|Awesome Aasim}} As shown in its documentation, the editnotice {{tlx|BLP editintro}} is shown automatically when editing a page categorized as either [[:Category:Living people]] or [[:Category:Possibly living people]]. The edit intro is injected into the edit URL by [[MediaWiki:Common.js]].
{{collapse bottom}}
:On talk pages, the {{tlx|BLP}} message is shown (when viewing, not when editing) if a {{tlx|WikiProject banner shell}} is present, and it has {{para|BLP|yes}}; also if a {{tlx|WikiProject Biography}} is present, and it has {{para|living|yes}}, and is not enclosed in a {{tlx|WikiProject banner shell}}.
:There used to be a bot that looked for pages in {{cl|Living people}} and {{cl|Possibly living people}} and made sure that their talk pages had {{tlx|WikiProject Biography}} with {{para|living|yes}}. I don't think that it is still running. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 08:16, 15 June 2021 (UTC)
::@[[User:Redrose64|Redrose64]] There are non-biographies that have BLP material, but those do not have such editintros. I am wondering if it is possible for any article with the <nowiki>{{BLP}}</nowiki> tag on the talk page to have the BLP editintro show up. [[User:Awesome Aasim|Aasim]] ([[User talk:Awesome Aasim|talk]]) 08:18, 15 June 2021 (UTC)
:::Here's the code: <syntaxhighlight lang=javascript line start=284> if ( mw.config.get( 'wgNamespaceNumber' ) === 0 ) {
$( function () {
if ( document.getElementById( 'disambigbox' ) ) {
addEditIntro( 'Template:Disambig_editintro' );
}
} );


All the best: ''[[User:Rich Farmbrough|Rich]] [[User talk:Rich Farmbrough|Farmbrough]]''<small> 13:38, 10 January 2025 (UTC).</small><br />
$( function () {
var cats = mw.config.get( 'wgCategories' );
if ( !cats ) {
return;
}
if ( $.inArray( 'Living people', cats ) !== -1 || $.inArray( 'Possibly living people', cats ) !== -1 ) {
addEditIntro( 'Template:BLP_editintro' );
}
} );
}</syntaxhighlight> I think that lines 284 and 296 are the significant ones. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 08:36, 15 June 2021 (UTC)
:::is that really needed though ? Kinda a slippery slope if you ask me and before we know it we have even more banners that no one reads on every single page. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 09:06, 15 June 2021 (UTC)


== Variable watchlist font sizes in Android desktop view ==
== Template/Module for penultimate revision ==


As shown below, when I view my watchlist in Desktop mode in Chrome on my Android phone, the font sizes vary the entire length of the list. It's disruptive! Can it be fixed?
Anyone seen a template or Lua function that returns the link or id to the last revision of a given page before the current one? (Bonus points for one that returns the last revision by a given user!)


[[File:Variable watchlist font sizes in Android desktop view.jpg|thumb|left]]
Cheers. — [[User:Guarapiranga|𝐆𝐮𝐚𝐫𝐚𝐩𝐢𝐫𝐚𝐧𝐠𝐚]]&nbsp;[[User talk:Guarapiranga|☎]] 05:13, 15 June 2021 (UTC)
:{{replyto|Guarapiranga}} Do the query string parameters <code>diff=cur&oldid=prev</code> help? As in {{tlx|diff|Wikipedia:Village pump (technical)|cur|prev|this diff}} → {{diff|Wikipedia:Village pump (technical)|cur|prev|this diff}}. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 08:04, 15 June 2021 (UTC)
::Yeah, not sure, {{u|Redrose64}}. What I was aiming to do is show the change in numbers at [[WP:User scripts/Ranking]] to see which scripts are trending by simply comparing the current to the last revision of {{history|WP:User scripts/Most imported scripts}}. If function/template told me the last revision id was 1026222220, I could simply read [[Special:Permalink/1026222220]] into [[Module:User scripts table]]. — [[User:Guarapiranga|𝐆𝐮𝐚𝐫𝐚𝐩𝐢𝐫𝐚𝐧𝐠𝐚]]&nbsp;[[User talk:Guarapiranga|☎]] 08:16, 15 June 2021 (UTC)


I know I can use mobile mode, but it has its own shortcomings (such as all the edits to one page not being grouped together) so I often prefer desktop mode. [[User:Largoplazo|Largoplazo]] ([[User talk:Largoplazo|talk]]) 16:12, 10 January 2025 (UTC)
== HTTP 502 ==
:This is a Chrome/Mobile thing where it increases the font size of items which it thinks that you might be interested in. It's been raised on this page several times before, they should be in the page archives. In short: it's outside our control. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 13:21, 11 January 2025 (UTC)
{{clear}}


== Rollback does not count as an "edit" ==
Is there any reason why Wikipedia appeared to be inaccessible around one hour ago? All other websites were working properly, but every time I tried to go to any Wikipedia page, a WMF error page showed up instead. '''[[User:LSGH|LSGH]]''' ([[User talk:LSGH|talk]]) ([[Special:Contributions/LSGH|contributions]]) 10:19, 15 June 2021 (UTC)
{{tracked|T382592}}
When an account conducts a [[Wikipedia:Rollback|rollback]], the edit does not count towards their edit count according to Wikipedia, such as at their contributions page. At least, that is what I have observed. Because of this, there is a discrepancy between their edit count according to Wikipedia itself and their edit count according to [https://xtools.wmcloud.org/ec/en.wikipedia.org XTools]. Is this an intentional feature or a bug? By the way, I am not asking this because I am [[Wikipedia:Editcountitis|obsessed with my edit count]], I am just curious as to why this is. [[User:Cyrobyte|Cyrobyte]] ([[User talk:Cyrobyte|talk]]) 21:09, 11 January 2025 (UTC)
: This is a known bug that will be fixed with on the next [[WP:THURSDAY]]. [[phab:T382592|T382592]]. [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 22:07, 11 January 2025 (UTC)
:{{ec}} Well, let's test it. As I type this, [[Special:Contributions/Redrose64]], just refreshed, says "A user with 273,195 edits". I now make {{diff|Wikipedia:Sandbox|prev|1268856733|this edit}}, and I have 273,196 edits. I apply [[WP:ROLLBACK]] to that edit, and I again have 273,196 edits. So there appears to be truth in what you say. I'm wondering if there is some form of lag involved, and my edits might tick up later in the day. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 22:13, 11 January 2025 (UTC)


== Background colour for Talk and other pages ==
:There were some network connectivity issues with the Asia-Pacific datacenter ([[phab:T284986|T284986]]) so if that's your closest then it could be the cause. I expect there will be a public [[wikitech:Incident status|incident report]] soon. [[User:the wub|the wub]] [[User_talk:The wub|<span style="color: #008000">"?!"</span>]] 15:31, 15 June 2021 (UTC)


How can I change the background colour of Talk pages without changing Skin. I'm using MonoBook, and the talk page background is blue, but I'd like to change it to white. I presume that I can edit my monobook.css or common.css (I have done previously for other similar things, eg Watchlist, so I'm familiar with the general process).
== Classic vector skin font size ==


How come there are still issues with the font size when using the Classic Vector Skin gadget (e. g. as to the rendering of references and categories)?--[[User:Hildeoc|Hildeoc]] ([[User talk:Hildeoc|talk]]) 14:08, 15 June 2021 (UTC)
Do we have a list of {{em|all}} the tweaks that can be to CSS, rather than having to ask about individual ones? [[User:Mitch Ames|Mitch Ames]] ([[User talk:Mitch Ames|talk]]) 00:47, 12 January 2025 (UTC)
:If that is what you really want to change, you can try adding this to your [[Special:MyPage/monobook.css]] : <syntaxhighlight lang=css>
:{{ping|Hildeoc}} Hard to say without links, browser information, what "gadget" this is about exactly, etc. --[[User:AKlapper (WMF)|AKlapper (WMF)]] ([[User talk:AKlapper (WMF)|talk]]) 17:10, 15 June 2021 (UTC)
body.ns-1 {
background-color: white;
}
</syntaxhighlight> You can pretty much style anything at all, almost every element has a class or ID, view the page source to see them all. — [[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> 01:25, 12 January 2025 (UTC)
:(edit conflict) {{ping|Mitch Ames}} This is the current CSS in MonoBook: <syntaxhighlight lang="css">
div#content,
div#p-cactions li a:hover,
div#p-cactions li.selected a,
div#content div.thumb {
background-color:#F8FCFF;
}
</syntaxhighlight> You could change it to white in [[Special:MyPage/monobook.css]] with !important added to override the existing CSS: <syntaxhighlight lang="css">
div#content,
div#p-cactions li a:hover,
div#p-cactions li.selected a,
div#content div.thumb {
background-color:white !important;
}
</syntaxhighlight> [[CSS]] is a whole language and our skins have numerous things which can be targeted with CSS. A list of all possible tweaks is not realistic but maybe there should be an attempt to list significant tweaks many users may want. Some of [[Wikipedia:User scripts/List]] and [[Special:Preferences#mw-prefsection-gadgets]] make CSS tweaks without users having to copy the CSS. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 01:36, 12 January 2025 (UTC)
::{{section link|Help:User style|CSS}} has some info and sample changes. [[User:Isaacl|isaacl]] ([[User talk:Isaacl|talk]]) 04:11, 12 January 2025 (UTC)


== Image placement is broken on [[Toque macaque]] ==
== Test range for block warning? ==


[[File:Toque macaque screenshot.png|thumb|440px|Screenshot with broken image placement that overlaps references section.]]
[[File:Screen_show_showing_block_warning.png|thumb|right]]
The images in the article [[Toque macaque]] ([[Special:Permalink/1252713864|permalink to current version]]) are not placed correctly on desktop. Sometimes, the right-hand column of images overlaps with the reference section, but not always. –[[User:LaundryPizza03|<b style="color:#77b">Laundry</b><b style="color:#fb0">Pizza</b><b style="color:#b00">03</b>]] ([[User talk:LaundryPizza03|<span style="color:#0d0">d</span>]][[Special:Contribs/LaundryPizza03|<span style="color:#0bf">c̄</span>]]) 02:38, 12 January 2025 (UTC)
From a sub-discussion at [[WP:VPW#IP Masking Update]], you get the attached warning box when you try to block a sensitive IP range. What produces that? Is there some edit filter? Something in the interface? Back-end wikicode? And, more to the point, how can we add [[192.0.2.0/24]], to give admins a safe (sandbox) range to experiment with? -- [[User:RoySmith|RoySmith]] [[User Talk:RoySmith|(talk)]] 17:08, 15 June 2021 (UTC)
:{{ping|LaundryPizza03}} I used {{tl|stack}} to avoid pushing down the left image.[https://en.wikipedia.org/enwiki/w/index.php?title=Toque_macaque&diff=prev&oldid=1268955259] Does that work for you? [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 09:41, 12 January 2025 (UTC)

Latest revision as of 14:48, 12 January 2025

 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.

Can we do something about the ridiculous message displayed whenever syntax highlighting is taking "too long"?

Syntax highlighting on this page was disabled because it took too long. The maximum allowed highlighting time is 20ms, and your computer took 22ms. Try closing some tabs and programs and clicking "Show preview" or "Show changes". If that doesn't work, try a different web browser, and if that doesn't work, try a faster computer.

The threshold is probably set too low to being with, and most people couldn't care less about it taking 0.03s vs 0.02s, so to tell them that a mere 2/1000 sec difference is "not allowed" is pretty ridiculous. If someone really does have a slow computer, that's hardly by choice, and to tell them to try a faster one is like Captain Obvious rubbing salt into their wound. More often than not, it's not even the fault of the computer, but rather some background crap (thanks, MS!), or the browser, or simply a very large and complex page (and possibly even the (gasp) wiki JS code). Ideally this should be a pref configurable by the user. Or, they could click a button if they don't care about things being slightly slower on the current page as long as they can still get the highlighting (the way browsers pop up slow JS abort/continue messages; in this case it wouldn't be modal, of course). But I think mostly it's about the overly low threshold, because when a large page is taking a number of seconds to load anyway, a few extra thousandths for this hardly make a difference. 61.84.123.149 (talk) 16:26, 1 January 2025 (UTC)[reply]

This seems to come from the Gadget mw:User:Remember the dot/Syntax highlighter. This is a user gadget and is not enabled by default here (but available for users to enable). You should report the issue to the author. But also see mw:User:Remember the dot/Syntax highlighter#TimeoutAmmarpad (talk) 16:58, 1 January 2025 (UTC)[reply]
Thanks a lot, that will probably do it for me. I was uner the impression it was a standard feature. 61.84.123.149 (talk) 17:36, 1 January 2025 (UTC)[reply]
Well there is a standard feature as well. You might even be using multiple. See WP:HILITE. —TheDJ (talkcontribs) 09:57, 2 January 2025 (UTC)[reply]
And the problem with the standard feature is that it doesn't have a timeout, so on very large pages it just freezes up the page until the browser eventually offers to kill it. --Ahecht (TALK
PAGE
)
00:38, 5 January 2025 (UTC)[reply]
On what page does it actually freeze? CodeMirror is heavily optimized and much more performant nowadays. – SD0001 (talk) 09:00, 5 January 2025 (UTC)[reply]
@SD0001 I've been doing a lot of work cleaning up the top of Special:LongPages, and if I don't forget to disable syntax highlighting on any of those pages before editing the page locks up until eventually the browser offers to kill any running scripts. --Ahecht (TALK
PAGE
)
21:33, 6 January 2025 (UTC)[reply]

Different assets for light and dark mode?

Is there any way to tell Wikipedia to display different images / media for Light vs Dark mode users? If not, could this be added in the form of a template, something like this?

{{adaptive|lightmode=[[File:Diagram (light mode).svg]]|darkmode=[[File:Diagram (dark mode).svg]]}}

Due to transparency, some SVG and PNG images have bad contrast when viewed in Dark mode.

(repost from WP:TH as they said would be better here)

CrushedAsian255 (talk) 04:38, 2 January 2025 (UTC)[reply]

It would have to be hardcoded in CSS. Dark mode is configured on CSS pages through templatestyles. In order to specify a dark and light mode image in a template like that, Phab:T320322 would have to be fixed first. Snævar (talk) 05:07, 2 January 2025 (UTC)[reply]
Have you tried using class=skin-invert-image already ? —TheDJ (talkcontribs) 09:55, 2 January 2025 (UTC)[reply]
{{If dark}} can be used to select what wikitext to display based on whether or not dark mode is enabled. isaacl (talk) 23:19, 2 January 2025 (UTC)[reply]
Usage of which really should be avoided though. —TheDJ (talkcontribs) 10:33, 4 January 2025 (UTC)[reply]
I agree that generally speaking, specific colours shouldn't be specified in wikitext, and using the CSS class to trigger colour inversion by the dark mode feature simplifies maintenance by having just one image. There are cases, such as a company logo with a variant designed for dark mode, where the ability to choose the appropriate image is desirable. isaacl (talk) 17:02, 4 January 2025 (UTC)[reply]
{{If dark}} may address the OP's question, although actual use of it may not be the best solution to the problem. – Jonesey95 (talk) 13:44, 7 January 2025 (UTC)[reply]

How to use inline style and CSS design tokens to color text?

I want to use {{NumBlk2}} to number the chemical formula P4-t-Bu#math_B and keep the color of the square brackets in the numbering.

The original chemical formula looked like this:

{{NumBlk|:|<math chem>\underbrace\ce{PCl5}_{(1)}\ \ce{->[t\text{-}\ce{Bu-\overset{\oplus}{NH3}.\overset{\ominus}{Cl}}]}\ \underbrace{t\text{-}\ce{Bu-N=PCl3}}_{(5)}</math>|[{{EquationRef|B}}]|RawN=y}}

The result after using {{NumBlk2}} for numbering:

{{NumBlk2|:|<math chem>\underbrace\ce{PCl5}_{(1)}\ \ce{->[t\text{-}\ce{Bu-\overset{\oplus}{NH3}.\overset{\ominus}{Cl}}]}\ \underbrace{t\text{-}\ce{Bu-N=PCl3}}_{(5)}</math>|<span style{{=}}"color: var(--color-base);">[</span>'''B2'''<span style{{=}}"color: var(--color-base);">]</span>|RawN=y|Id=math_B2}}

(The ID must be unique, so I renumbered it to B2.)

But the recommendation is currently restricted to use inside TemplateStyles:

As described here, using design tokens directly in an article (e.g. <span style="color: var(--color-base);">some text</span>) seems problematic. How to color text correctly in an article in light mode and dark mode in this case? Any ideas? Thanks. Justin545 (talk) 01:59, 5 January 2025 (UTC)[reply]

So you are adding link content, that you don't want to have colored as link content ? And for that reason you want to apply custom styles ? Is this a recurring pattern ? Then you make a template and use TemplateStyles. —TheDJ (talkcontribs) 11:10, 5 January 2025 (UTC)[reply]
Thank you for your advice. It does sound a bit strange to color the link the same color as normal text. I'm not sure if the use of square brackets in numbering occurs very often. If that's not the usual case, maybe it would be better to just use {{NumBlk}} instead of wrapper template {{NumBlk2}}:
{{NumBlk|:|<math chem>\underbrace\ce{PCl5}_{(1)}\ \ce{->[t\text{-}\ce{Bu-\overset{\oplus}{NH3}.\overset{\ominus}{Cl}}]}\ \underbrace{t\text{-}\ce{Bu-N=PCl3}}_{(5)}</math>|&lsqb;[[#math_B3|B3]]&rsqb;|RawN=y|Attr=id{{=}}math_B3 style{{=}}"margin-left: {{#expr:1.6 * 1}}em;"}}
If it's the usual case, maybe just make a template and use TemplateStyles as you said:
<!-- Template:Token -->
<templatestyles src="Token/styles.css" />
/* Template:Token/styles.css */

.token-color-base { color: var(--color-base); }
.token-color-disabled { color: var(--color-disabled); }
/* ... (omitted) ... */

.token-background-color-base { background-color: var(--background-color-base); }
.token-background-color-disabled { background-color: var(--background-color-disabled); }
/* ... (omitted) ... */
and then use it like this
{{Token}}
{{NumBlk2|:|<math chem>\underbrace\ce{PCl5}_{(1)}\ \ce{->[t\text{-}\ce{Bu-\overset{\oplus}{NH3}.\overset{\ominus}{Cl}}]}\ \underbrace{t\text{-}\ce{Bu-N=PCl3}}_{(5)}</math>|<span class{{=}}"token-color-base">[</span>'''B4'''<span class{{=}}"token-color-base">]</span>|RawN=y|Id=math_B4}}
(The source code above has not been tested and may contain errors.)Justin545 (talk) 16:38, 5 January 2025 (UTC)[reply]
You should not worry about such weird specifics at all. This also produces different colours (= inconsistent behaviour) in the skins that do not use the same token. stjn 16:51, 5 January 2025 (UTC)[reply]
Thank you for reminding me about skins. Coloring text in Wikipedia is a lot more complicated than I thought. I haven't started to understand the skin part yet. So far I don't know if there is a correct way to handle coloring for skins and dark mode at the same time. If not, I may have to give up the idea of ​​coloring text completely. Without coloring, I might just use {{NumBlk}} directly like B3. Justin545 (talk) 01:18, 6 January 2025 (UTC)[reply]
Or do you mean using name of colors or hex code of colors directly in styles.css instead of using design tokens? Justin545 (talk) 04:36, 8 January 2025 (UTC)[reply]
I mean that this is not an issue you should concern yourself with when you introduce more markup into the code and that markup is incorrect at least in one way. Wikipedia won’t be dead tomorrow because brackets are blue colour there. It is a complete non-issue. stjn 10:40, 8 January 2025 (UTC)[reply]
Rather than telling me what I shouldn't worry about or what I shouldn't concern with, wouldn't it be better if you could just give me links to some relevant guidelines or help pages? I think most official documents have very clear and specific descriptions and explanations, which are relatively easy to understand. And they don't contain emotions directed at specific people.
I raised questions and opinions about design tokens based on the MediaWiki recommendation. If you think I have misunderstood the recommendation, you can tell me directly where I misunderstood it. Justin545 (talk) 14:53, 8 January 2025 (UTC)[reply]

Broken icon

Hi, can anyone see why File:Gnome-colors-list-remove.svg is broken, nothing seems to have chaned but it's showing as a broken image in the latest admin newsletter. It should be a horizontal red minus to signify remove. Stephen 02:43, 6 January 2025 (UTC)[reply]

It seems to be working for me, both in that link and in the news letter in your user talk page (like in - Ferret).
What browser are you using? Are you using the mobile website (en.m.wikipedia.org)?
Is it affecting any of the previous newsletters? Is it affecting any of the other icons? – 2804:F1...CA:8CB5 (::/32) (talk) 02:58, 6 January 2025 (UTC)[reply]
That's weird it works for you. I'm on Chrome using the desktop site. All previous uses of the icon in old newsletters are broken too wherever I look. Stephen 03:49, 6 January 2025 (UTC)[reply]
I'm on Chrome desktop too... I wonder if your browser console shows any errors (Pressing f12 or three dots button (⋮) > More tools > Developer tools > Console tab and then refreshing the page).
There's also the network tab of developer tools, which for me shows a 20px-Gnome-colors-list-remove.svg.png line (the 10th line for me after refreshing) as successfully downloaded - if it had failed it would have been red, and apparently repeated a bunch of times one for each time it appears on your talk page.
What it says in the Status column, if it is red, or in Status code if you click it, might be of interest.
Also, does that direct link work? – 2804:F1...CA:8CB5 (::/32) (talk) 04:48, 6 January 2025 (UTC)[reply]
Suspect I am in Stephen's position. The direct link says "Unauthorized This server could not verify that you are authorized to access the document you requested." No errors showing up in my console, although the console is forcing the page into mobile view for some reason. CMD (talk) 04:56, 6 January 2025 (UTC)[reply]
Searching phabricator for that error reveals a very similar error that happened on a beta version (phab:T276179/phab:T277016)... seeing as it doesn't happen to me, it might be a codfw issue rather than a eqiad issue (which is the data center I'm assigned to) - but I'm just guessing, I've never looked at how these things actually work, it just seems to be a common cause of differences.
I'm pretty sure someone with backend access will have to look into this to find out what the problem is though.
Could try filing a bug report in phabricator? –2804:F1...CA:8CB5 (::/32) (talk) 05:59, 6 January 2025 (UTC)[reply]
I have the same error and filed ticket phab:T383023. cyberdog958Talk 07:22, 6 January 2025 (UTC)[reply]
I was having the same problem with File:Hypercubestar.svg (used on four articles here and over 30 on some 14 languages of Wikipedia) and started a discussion at https://commons.wikimedia.org/wiki/Commons:Help_desk#SVG_image_claims_its_thumbnails_are_unauthorized before finding this discussion and the phab link. It would be interesting to learn whether this issue is more widespread. —David Eppstein (talk) 07:33, 6 January 2025 (UTC)[reply]

Image Preview Issue

Image preview not displaying correctly

I was looking through the Wikipedia article for the Buick Regal when I noticed that the thumbnail image for the third generation model is no longer displaying as it should. When I click on the image, it appears as normal, but only when it is clicked on. In Wikipedia Commons, the exact same problem is present. It also does not allow for resolution changes as most other images normally do. I have tested this on both Windows and mobile using Apple Safari, Google Chrome, and Microsoft Edge, and the problem remains consistent. I also found that there exist other images on Wikipedia Commons that are experiencing a similar problem. This image used to work perfectly before, so what could have changed to cause this? Is there any way this could be remedied? SuperMarioA9H5 (talk) 05:07, 6 January 2025 (UTC)[reply]

Might be the same issue as #Broken icon above (yet to be determined what the issue is though).
I can see the thumbnail on Buick Regal just fine as well. – 2804:F1...CA:8CB5 (::/32) (talk) 06:06, 6 January 2025 (UTC)[reply]
I can confirm it is the same issue, right down to the "Unauthorized" issue when selecting different sizes. Interesting that it seems to work for some yet not for others. I mainly asked as I wasn't sure if the image needed to be replaced due to an issue on Wikipedia's end. Hopefully whatever it is it can be patched out later. SuperMarioA9H5 (talk) 06:10, 6 January 2025 (UTC)[reply]

Common.css issue on Brave

Does anyone know why my common.css doesn't seem to work on Brave? I've just replaced Firefox with it due to its atrocious performance on YouTube with Ublock turned on. Now, I can't get my (very simple) common.css to work with it. Any ideas? Sol505000 (talk) 10:33, 6 January 2025 (UTC)[reply]

The name of the font should be in double quotes since it contains a space. – SD0001 (talk) 13:52, 6 January 2025 (UTC)[reply]
I changed it and it still doesn't work (also, it worked without the double quotes on Firefox just fine). The issue is that Brave seems to display the wrong font, rather than ignoring my common.css altogether. I think it displays DejaVu Serif instead of DejaVu Sans. Sol505000 (talk) 14:42, 6 January 2025 (UTC)[reply]
I tried uninstalling DejaVu Serif and the problem persists. Why can't Brave follow a simple instruction? Sol505000 (talk) 14:45, 6 January 2025 (UTC)[reply]
@Sol505000: The CSS spec for the font-family: property is rather complex. To me, it reads as if you don't need to quote font names, even if they contain spaces, unless not doing so would cause ambiguity. If Firefox tolerates the absence of the quotes but Brave doesn't, that tells me that the authors of the two browsers have read the spec in different ways. Personally I would err on the safe side and quote them (the quotes need not be double, but must be paired, as in my example stylesheet below).
On a related matter, I would not use a single font name - I would supply at least one fallback option, in case the device does not have your preferred font(s) installed; and the last of these fallback fonts should be one of the generic family keywords defined in the spec. Something like this:
.IPA
	{ font-family: "DejaVu Sans", Arial, 'Liberation Sans', sans-serif; }
--Redrose64 🌹 (talk) 23:06, 6 January 2025 (UTC)[reply]
Right-click on an element with the IPA class, select "Inspect", enter "font-family" in the filter under "Styles", and you can see what is overriding your custom style. You can also switch to the "Computed" tab and see what fonts are used in "Rendered Fonts" at the bottom. Nardog (talk) 06:08, 7 January 2025 (UTC)[reply]
Solved, what overrides the font are Brave Shields. Turning them off solves the problem (thankfully, WP isn't full of obnoxious ads that'd get in the way of browsing it). I'll report this to the developers. Thanks for the help everyone. Sol505000 (talk) 22:29, 7 January 2025 (UTC)[reply]

How to change placement of custom fields on Template:User infobox

I pretty much have what I want, just not in the location I want. Even if I place the custom fields where I want them in the code, as seen here, the displayed output doesn't change, and the custom fields—age and today's date, in this case—still appear at the bottom of the infobox. I want age below birthdate and place and today's date above current time. Also, is there a way to change the border color of the entire border around the infobox? I want it to be black so it looks better. Do I just add style="border: 1px solid #000000;" somewhere? Amaury23:09, 6 January 2025 (UTC)[reply]

@Amaury: When named parameters are used, the order that these are supplied in is immaterial; the order of display is goverened purely by the code inside Template:User infobox. I don't have time right now to look at the rest, will try to get back later. --Redrose64 🌹 (talk) 09:36, 7 January 2025 (UTC)[reply]
@Amaury: All fields, both custom and other, can only be displayed in the positions they have in the infobox to the right at Template:Infobox Wikipedia user#Usage. I suggest including age in the Born field with birthdate = {{Birth date and age|1991|11|8}} which produces: (1991-11-08) November 8, 1991 (age 33). Today's date can be included in current_time but then the date and time should use the same time zone, unlike now where your time is local but date is UTC. I examined the implementation and you can tag a border color onto another parameter like | tablecolor = #CBC3E3; border: 1px solid #000000. I don't promise it will always work if the implementation changes. PrimeHunter (talk) 12:39, 7 January 2025 (UTC)[reply]
@PrimeHunter: Okay, so the only way to change the placements of the parameters is to edit the template code itself; however, that shouldn't be done, of course, as it would affect everyone. I originally had the birthdate and age together, but I didn't like how the age in parentheses was going down to a separate line. Although I have now figured something out by increasing the width from the default 22em to 24em, which gives the age enough space to be on the same line. As for the date, my only minor nitpick with adding the date to the Current Time parameter is that time is technically not a date, so having Current Time also display a date would look weird to me. And, of course, there's no way to change the parameter name just for my own infobox. This is what I ended up doing instead. As a final question, is there a way to hide the Wikipedian with the icon thing just for my infobox or no? Thank you so much for help and advice! Amaury22:51, 7 January 2025 (UTC)[reply]
@Amaury: You can change "Wikipedian" with |role=. The row with two dashes will still be there even if you set it to something non-displayed like &nbsp;. You can hide the gender icon with |gender=none but it has other effects. A template call can be wrapped in {{Replace}} or {{MultiReplace}} to change some of the output but it's messy and shouldn't be done in articles. If you try it then Special:ExpandTemplates can be used to find the exact current output. PrimeHunter (talk) 00:22, 8 January 2025 (UTC)[reply]

All templates broken beyond a certain point on a CfD page

The CfD page for January 6 (permanent link) has all templates broken beyond a certain point in the "States and territories (dis)established in YYYY" nomination, which uses Template:Lc exactly 1,353 times. Templates beyond this point are replaced by links to the underlying templates. –LaundryPizza03 (d) 23:37, 6 January 2025 (UTC)[reply]

@LaundryPizza03: WP:TLIMIT strikes again. There are two clues to this: (i) the intended transclusions showing as links, as you describe; (ii) the page being in Category:Pages where post-expand include size is exceeded. The prime suspect here is Wikipedia:Categories for discussion/Log/2025 January 6#States and territories (dis)established in YYYY - do all of them need a {{lc}}, or just the first one? --Redrose64 🌹 (talk) 23:53, 6 January 2025 (UTC)[reply]
The issue was fixed by omitting around 1350 {{lc}} for annual subcategories.[1] They wouldn't even fit on a subpage with no other content. PrimeHunter (talk) 08:31, 7 January 2025 (UTC)[reply]

Enwiki dump?

Dump files. Enwiki:

  • 2025-01-07 17:19:24 enwiki (new): missing status record

Everything else is available. Is this normal? I need a dump. -- GreenC 17:26, 7 January 2025 (UTC)[reply]

Probably https://lists.wikimedia.org/hyperkitty/list/xmldatadumps-l@lists.wikimedia.org/thread/5ABHNJRXSR53XBAMNH3TROLTMY5ZXEXF/ * Pppery * it has begun... 17:28, 7 January 2025 (UTC)[reply]
Great, thanks. -- GreenC 17:57, 7 January 2025 (UTC)[reply]

Undo and thank buttons on Vector 2010

The undo and thank buttons in page history are coloured with Vector 2022 colours on Vector 2010. I'm not sure when this bug was introduced, but it wasn't there when I edited Wikipedia a month ago. Daß Wölf 19:08, 7 January 2025 (UTC)[reply]

RSS

When it comes to such feeds of pages' history, here, is it the feed itself that is not instantaneous, or the bot that delivers it? ~Lofty abyss 23:03, 7 January 2025 (UTC)[reply]

Why do you think it is not instantaneous ? —TheDJ (talkcontribs) 23:05, 7 January 2025 (UTC)[reply]
The timestamps differ variably, for some reason... I'm just wondering, then, if it's the feeds themselves, or the bots relaying it (as they're some free service, so presumably they don't prioritize them...) ~Lofty abyss 12:55, 8 January 2025 (UTC)[reply]

Are namespaces supposed to be case insensitive?

I discovered today that namespaces appear to be case insensitive, as opposed to following the normalization (canonicalization?) rules for page titles. For example, all of these end up at the same place:

This isn't mentioned at mw:Manual:Namespace, so it's not clear if this is intentional, a bug, or just some silly bit of undefined behavior. Is it intentional? RoySmith (talk) 02:19, 8 January 2025 (UTC)[reply]

Intentional I think. * Pppery * it has begun... 02:54, 8 January 2025 (UTC)[reply]
Help:Link says: "If the target contains a namespace prefix, then the whole prefix and the first character after the colon are case-insensitive (so uSeR:jimbo Wales links to User:Jimbo Wales)." DMacks (talk) 03:22, 8 January 2025 (UTC)[reply]
It's mentioned at mw:Manual:Page title##1 and #2. Interwiki prefixes and namespace prefixes. PrimeHunter (talk) 08:57, 8 January 2025 (UTC)[reply]
It's been like that fot as long as I can remember, and I joined in May 2009. --Redrose64 🌹 (talk) 00:34, 9 January 2025 (UTC)[reply]
The oldest mention I found at mw is from 2007 namespace prefixes ... are case insensitive, and the edit summary said "from docs/title.txt in installation". It also means DISPLAYTITLE allows any capitalization in the namespace. PrimeHunter (talk) 09:18, 9 January 2025 (UTC)[reply]

Out-of-line references missing in an imported excerpt

Hello, fellow Wikipedians!

I'm stuck on a problem with undefined references in the Frogs in culture article, current version Special:PermanentLink/1265294861 from 26 December 2024.

It includes the lead section of Pepe the Frog through the {{Excerpt}} template in the Frogs in culture § Pepe the Frog in 4chan culture section. The included text has 12 references in it, 10 of which are defined in-line and appear to be properly included in the destination Frogs in culture article. However, the remaining two are defined outside the Pepe the Frog's lede, which results in Cite error: The named reference ... was invoked but never defined (...).

Those two are ref [53] named 'Branded' and [54] named 'ADL'.

How can I fix it within the destination article (that is, without moving the references to the lede in the source article)? --CiaPan (talk) 08:06, 8 January 2025 (UTC)[reply]

Certainly the easiest solution is to move the refs to the lead section of the Pepe article, since it doesn't apply WP:LEADCITE. Otherwise you have to recreate them as named references in the FiC article (which is not ideal since they could get orphaned) 𝕁𝕄𝔽 (talk) 11:12, 8 January 2025 (UTC)[reply]
@JMF: Yup, I've considered moving the refs to the lede. However, it could fail in some situations.
Suppose a reference is called by its 'Name' attribute from two different sections, and each section is transcluded in a different article. That's quite exotic scenario, but still possible. Then both original sections would have to define the same reference exactly the same way for all three articles to display properly.
That's why I would rather like to solve the problem on the 'receiving' side, if possible. --CiaPan (talk) 09:11, 9 January 2025 (UTC)[reply]
In that case the only real solution is to copy the references into the article containing the {{excerpt}} as list defined references. Especially as leads are not the only type of section that gets transcluded, so LEADCITE isn't always applicable. -- LCU ActivelyDisinterested «@» °∆t° 23:40, 9 January 2025 (UTC)[reply]
And this is one reason section transclusion can be a really bad idea. Izno (talk) 21:23, 8 January 2025 (UTC)[reply]
@Izno: What is the solution, then? Possibly copy the whole section and add some HTML comment both at the source and a copy for editors to keep both copies in sync? But I don't know whether HTML comments are visible in Visual Editor... --CiaPan (talk) 09:11, 9 January 2025 (UTC)[reply]
The objective should be immediate verifiability in the article of interest, while promoting WP:Summary style. Excerpt is either pulling a WP:LEAD-compliant lead, which has no references, so verifiability is hence a question in the relevant article, or is pulling one which does have references... in which case the other article needs fixing. It's just fundamentally really gross. What should instead happen is a summary of the Pepe article, and I imagine it should be a much shorter summary per WP:WEIGHT. Izno (talk) 20:07, 9 January 2025 (UTC)[reply]
Last time I tried to help on a closely-related matter I got shot down for it. --Redrose64 🌹 (talk) 00:35, 9 January 2025 (UTC)[reply]
@Redrose64: Sorry to hear it. Did a requester attack you for your help being inaccurate, or some bystander considered the whole idea wrong and outraged for you helping instead of disouraging the needy one...? --CiaPan (talk) 09:11, 9 January 2025 (UTC)[reply]
@CiaPan: Wikipedia:Village pump (technical)/Archive 217#List-defined refs. It's got a confusing sequence, because after I had fixed the original problem, and explained how, DuncanHill apparently decided to attack me for being an admin - but put those posts before the earlier replies. It spilled to other pages - note carefully the timestamp of this edit in relation to the timestamps in that archived VPT thread. Then ActivelyDisinterested had a go at me for reverting some edit or other, but never specified what I reverted. --Redrose64 🌹 (talk) 22:12, 10 January 2025 (UTC)[reply]

Templates that don't display on mobile

Sorry, I know that this is an old chestnut but I hoped that maybe it had been resolved without my noticing. The template {{Today/AD/SH/AH}} does not display on mobiles (or at least not on Android, but that has the largest market share worldwide). Is this a generic problem or something specific to that rather old and limited-use template? (If the latter, I'll go ask the template gurus.) 𝕁𝕄𝔽 (talk) 11:03, 8 January 2025 (UTC)[reply]

@JMF This is intentional. That template is based on {{sidebar}}, which, as it notes in the documentation, does not display on mobile devices. The WMF deliberately removed a bunch of templates (like navboxes) from the mobile site. 86.23.109.101 (talk) 13:35, 8 January 2025 (UTC)[reply]
Of course! Classic case of looking for a complicated reason (java) for a simple problem – I should have spotted that there is nowhere for a sidebar to go. So time for me to see if can be changed to an infobar. 𝕁𝕄𝔽 (talk) 16:54, 8 January 2025 (UTC)[reply]
Indeed, it is more {{infobox}}y than it is {{sidebar}}y. Izno (talk) 21:15, 8 January 2025 (UTC)[reply]
Current "emerging consensus" is to replace them all with {{Infobox calendar date today}}, see user talk:Gonnym#template:Infobox calendar date today. 𝕁𝕄𝔽 (talk) 23:14, 8 January 2025 (UTC)[reply]

Chinese nationality in the infobox refuses display on certain articles

Am I the only one who noticed how on some articles, for example the Hong Kong activist Nathan Law, if you add his nationality to the infobox, it is not visible to the readers and doesn't show up in previews. However if you add any other nationality such as Bahamian it does display in the preview. At first I thought maybe this was just a quirk of visual editor, but even in source code, the same problem persists. Here is the diff in case anyone cares to examine it. [2] Andro611 (talk) 15:29, 8 January 2025 (UTC)[reply]

The documentation for {{Infobox officeholder}} says the following:
nationality is not displayed if the corresponding country is mentioned in birth_place, for example |birth_place = Tokyo, Japan |nationality = Japanese.
I'm guessing that's why. Not displayed is a link to MOS:INFONAT, which seems relevant. – 2804:F1...96:BB60 (::/32) (talk) 15:50, 8 January 2025 (UTC)[reply]
I see, thanks, that makes sense now. Andro611 (talk) 00:20, 9 January 2025 (UTC)[reply]

Multiple citation templates

Why there were created multiple citation templetes (like Cite book, Cite journa) if they differ just by a few parameters? I wonder if there could be just one template with various attributes, because in practice the user usually fills up just some of them. Juandev (talk) 16:20, 8 January 2025 (UTC)[reply]

All those templates are wrappers for Module:Citation/CS1, but the parameters required/allowed by the different citations types varies. For example, {{cite web}} generates an error if |volume= is used but {{cite journal}} doesn't. This becomes even more important with the Wikipedia:TemplateData used by Visual Editor and various bots, where we want to vary which fields are presented to the editor. --Ahecht (TALK
PAGE
)
17:32, 8 January 2025 (UTC)[reply]
Because people didn't create centralized templates at the time those were created (20 years ago). Someone eventually made {{citation}} and then someone else finally made {{citation/core}} which at least centralized how things were rendered but by that time we had the problem that there were stylistic differences between the two (which we have whittled since). We later turned that template into the aforementioned module when we got WP:Lua. If we had the right tools at the time, I suspect there would have been one template and one template only.
I guess we could make a {{citation cs1}} which would do the same things as {{citation}} without requiring the parameter tweaks for the style issue, but the other issue a single template has trouble with is that there are some rules that are harder to enforce (or guess at) when you have only one template. Izno (talk) 21:21, 8 January 2025 (UTC)[reply]
Yup, that sounds me like a reason, that before Lua you would need to format value inserted by the user different way for each type of a resource. Because otherwice it would be maybe better to have one big template providing samples of parameters for each resource type. Juandev (talk) 21:27, 8 January 2025 (UTC)[reply]
This is really a matter for Help talk:Citation Style 1. --Redrose64 🌹 (talk) 00:37, 9 January 2025 (UTC)[reply]
Moving the Cite CS1 templates into one would not be complicated. It could be done with moving "CitationClass" from being a config (template parameter) to being an argument (page parameter). The challenge is getting Citoid to work - the automatic citation filler in VisualEditor and RefToolbar - because it expects one template for news, one for web, one for books, etc. Changing the roughly 6 million pages to one template with a bot is also going to take awhile. You are going to need a conseus for all of this. Snævar (talk) 01:30, 9 January 2025 (UTC)[reply]
It sounds like you're talking about something like changing {{cite web|...}} to {{cite|web|...}}, consolidating to one template while retaining the background module code. I can't see how this would make anything better. Merging the documentation seems likely to cause more confusion than the current situation, since different modes accept different parameters and produce different formatting. I don't see how or why this would be a good idea. – Jonesey95 (talk) 05:26, 9 January 2025 (UTC)[reply]
A lot of the documenation is already maintained in a centralised way, through {{Citation Style documentation}}. Take a look at all its subpages, which contain the documentation that is identical for all CS1 templates. --rchard2scout (talk) 08:43, 9 January 2025 (UTC)[reply]
I am familiar with the documentation and have edited it over the years, which is why I think that it will be difficult to display for a single template with multiple modes. Take a look at the switch and if statements in the code for {{Citation Style documentation/title}}, for example. Editors already complain that the documentation for these templates is too complex; imagine a single documentation page with all of the modes explained on one long, green page. – Jonesey95 (talk) 14:32, 9 January 2025 (UTC)[reply]
Citation templates included quite a lot options. It would be nice to know the persentage of use of each option. We may see then, that some of them have rare use. Juandev (talk) 22:44, 9 January 2025 (UTC)[reply]
Have you looked at the monthly report available in the TemplateData section of the documentation? If you have specific suggestions for changes to one of the cite templates, Help talk:Citation Style 1 is the correct forum. – Jonesey95 (talk) 23:07, 9 January 2025 (UTC)[reply]
Some options are rarely used because they are rarely needed, but they are needed sometimes. Try citing a chapter in a book without "chapter", "chapter-url", or "chapter-url-access". Donald Albury 23:08, 9 January 2025 (UTC)[reply]
Well, I am not sure if VisualEditor would be a big deal. You just recreate MediaWiki:Cite-tool-definition.json and maybe also MediaWiki:Citoid-template-type-map.json. Juandev (talk) 14:41, 9 January 2025 (UTC)[reply]

Re recent events that I'm not going to mention because of WP:DENY/WP:BEANS, and also the very concerning {{Plain link}} template which can disguise external links as wikilinks (like this), I made a user script, at User:MolecularPilot/ExternalLinkScreen.js that presents a "are you sure this is the link you want to visit" screen when clicking through to external links, even if {{Plain link}} has been used or the link has a display name set, showing you the actual URL you are about to visit. This is common on many websites like YouTube, Twitter etc.

It's also able to prevent spoofing (IDN homograph attack) by showing the actual puny code and adding warnings for websites like https://wikipediа.org (spoiler alert: this isn't wikipedia, it's a trick using cyclic letters, you are actually taken to http://xn--wikipedi-86g.org/ which this script will tell you about).

Just wanted to post this here to let everyone know that can now install this (just add importScript('User:MolecularPilot/ExternalLinkScreen.js'); to your Special:Mypage/common.js or use Enterprisey's script installer).

Stay safe everyone, especially if you are editing in WP:ARBPIA! :) MolecularPilot 🧪️✈️ 06:14, 9 January 2025 (UTC)[reply]

Adding that if you want a "try before you buy", here's two link examples of the screen you will see (note that if you have the script installed, it you'll get 2 landing pages before reaching the link as opposed to the usual 1, if you click these):
MolecularPilot 🧪️✈️ 06:27, 9 January 2025 (UTC)[reply]
Interesting concept. I don't see why you need the toolforge site in the middle though, as that's just executing JS that could be run in the user script itself. – SD0001 (talk) 06:46, 9 January 2025 (UTC)[reply]
Also, pulling in punycode.js from Cloudfare CDN is against Toolforge policy. Use https://cdnjs.toolforge.org/ instead. – SD0001 (talk) 06:53, 9 January 2025 (UTC)[reply]
Oh, thanks for the tip, I'll fix the CDN now! (I also realised that I wrote my demo links incorrectly above, so the URL would be "null", which I've just fixed). Re: the use of a website, I think it's better psychologically because it adds a pause while the tool forge page loads and also makes you process (yes, I'm going to a different page) before automatically clicking the button. :) MolecularPilot 🧪️✈️ 06:55, 9 January 2025 (UTC)[reply]
SD0001, CDN fixed now! Thank you so much for your feedback, I really appreciate it! I might add a version that creates popups like Twinkle instead of using the landing page like most of the other websites do, because it may be better suited to our environment here. :) MolecularPilot 🧪️✈️ 07:12, 9 January 2025 (UTC)[reply]
I suggest you wrap the script in mw.hook('wikipage.content').add() and find links only in the jQuery node passed to the callback, or it may run before the whole page is loaded. Also all wiki-generated external links have the external or extiw class. Nardog (talk) 10:36, 9 January 2025 (UTC)[reply]

This is all a step in the right direction. I'd like to see something else as well, namely a bot that goes around flagging (or even disabling) external links that appear to be deceptive. That would protect editors who haven't installed any js. Exactly what properties would trigger it is a matter for discussion, as is how to catch enough cases without a flood of false positives. Zerotalk 11:27, 9 January 2025 (UTC)[reply]

That is what MediaWiki:Spam-blacklist is for. It blocks aditions of links that are listed in the list. The way I see it, javascript link warnings are for finding bad links or marking links that are not quite serious enough for Spam-blacklist. Snævar (talk) 00:13, 10 January 2025 (UTC)[reply]
No, the blacklist is for blocking links to malicious domains that have already been identified. It does not locate new deceptive links to other domains. We have a well-funded organization that plans to add deceptive redirects in order to dox editors and those links are not going to point to the organization's own domains. They will point to new temporary domains designed to be deniable. The question is how we will find those links before unsuspecting editors click on them. Zerotalk 02:04, 10 January 2025 (UTC)[reply]
Actually a good point re temporary domains, I will make the page warn if they domain is newly registered (i.e. in the last 30 days). Currently, the "do you really want to visit this link" isn't just for suspicious links, it's for all links to non-WMF sites (including Toolforge as anyone can host a tool) because sometimes there is no way to figure out where a link is going until you actually click it (and sometimes a user might expect a wiki link but it's a {{Plain links}} external link), so I thought this would be helpful. For example how do you know where this goes without clicking and how about this, you might not even think it leads you off-wiki? MolecularPilot 🧪️✈️ 02:11, 10 January 2025 (UTC)[reply]
"...a well-funded organization that plans to add deceptive redirects..."? If that's the case, perhaps the good folks over at WP:EFR can help out to prevent that from happening? --rchard2scout (talk) 13:43, 10 January 2025 (UTC)[reply]
I think that's a typo, Zero probably meant links not redirects. I don't think such links can be caught with a regex-like AbuseFilter pattern (but no links have been posted yet so you never know!) but just made this script to ensure people actually see where a link is taking them (and see appropriate warnings like about IDN homograph attacks and new domains) and confirm that it's correct before heading off-wiki, like many other sites do for safety/privacy. :) MolecularPilot 🧪️✈️ 00:29, 11 January 2025 (UTC)[reply]

How to count fastly redlinks here? ru:Депутаты Верховного Совета Республики Казахстан XII созыва Kaiyr (talk) 10:40, 9 January 2025 (UTC)[reply]

Open the browser console (see Help:CONSOLE for how to open) and use command document.querySelectorAll('a.new'). There are 214. – SD0001 (talk) 10:43, 9 January 2025 (UTC)[reply]
How to make list of this redlinks? Kaiyr (talk) 13:04, 9 January 2025 (UTC)[reply]
copy([...document.querySelectorAll('a.new')].map(e => e.title).join('\n')). This copies a plain list of titles to the clipboard. – SD0001 (talk) 15:19, 9 January 2025 (UTC)[reply]

"Edit" has disappeared and I only have "Edit Source"

Despite having (repeatedly) enabled the visual editor the "edit" function has disappeared from all my Wikipedia pages, leaving only "edit source", which is beyond my capability. Please help, but assume I am totally stupid in the way you reply - I will not be offended - thanks. Stagememories (talk) 17:28, 9 January 2025 (UTC)[reply]

You probably changed the "Editing mode" setting here. Sjoerd de Bruin (talk) 17:56, 9 January 2025 (UTC)[reply]
Sjoerd de Bruin, you are a star! Thanks. Stagememories (talk) 18:29, 9 January 2025 (UTC)[reply]

I've been having this happen for quite some time, and still don't know the root cause. Sometimes, although not all the time, a random wikilink ([[]]) will bug out and display a "post-open>" and post-close>" in visible text before and after the link, despite no changing to the source editor or any other input. The best example of this can be found at this diff. The "post" is usually highlighted in orange, so it may be some sort of issue with a script I have installed. A user on the WM Discord told me about a week ago that I'm not the only person that has reported this issue. This could easily be taken as vandalism, so I'd say it's relatively serious. EF5 17:37, 9 January 2025 (UTC)[reply]

I'd immediately be looking at some sort of Wordpress or other spelling or blog browser extension.... Izno (talk) 20:04, 9 January 2025 (UTC)[reply]
That’s the thing, I run Chrome (on my school-issued Chromebook) and Edge (on my home PC), neither of which have extensions installed (I have WWT, but this problem has gone on way before I installed it). EF5 20:41, 9 January 2025 (UTC)[reply]
The diff which added it is [4] where you used VisualEditor. I only found one other occurrence in searches and it was also you, 30 October 2024 [5] with the mw:2017 wikitext editor which is a mode within the VisualEditor extension. The diffs add nowiki which is MediaWiki code and VisualEditor is known for automatically adding nowiki in some situations so VisualEditor is probably involved but it may be a conflict with a script in User:EF5/common.js. You should load User:Epicgenius/ArticleQuality.js once and not 16 times, but that happened this week [6] so it's not the cause. PrimeHunter (talk) 21:15, 9 January 2025 (UTC)[reply]
I’ll mess around with my scripts a bit and see what happens. I normally catch it before publishing it by cancelling the edit (which usually fixes it), hence why it’s only shown up twice. EF5 21:24, 9 January 2025 (UTC)[reply]
I tried loading your common.js for myself, and immediately saw a visual glitch (just in read mode, not in the editor) that's eerily similar to the problem you get after saving pages: F58156448 (screenshot taken on The Fighting Temeraire). I can't tell which script of the eleventeen you have is inserting that markup, but it must be its fault. (Also, the way in which it breaks suggest it's vulnerable to XSS attacks, by processing HTML incorrectly, which is probably not good for you…) Matma Rex talk 22:55, 9 January 2025 (UTC)[reply]
It appears to be User:Moonythedwarf/extra-unreliable. nowiki is probably added by VisualEditor when the script messes with the page. PrimeHunter (talk) 23:52, 9 January 2025 (UTC)[reply]
Check out that script’s talk page, it’s definitely this script. Thanks for the help, it’s been really annoying having to deal with this weird visual bug! :) EF5 23:55, 9 January 2025 (UTC)[reply]
You could wrap the script in the following, it will then only run on page view.
if (mw.config.get("wgAction") == "view") {
//script here
}
Snævar (talk) 03:08, 10 January 2025 (UTC)[reply]
@PrimeHunter Thanks for finding the script. I suggested a fix: User talk:Moonythedwarf/extra-unreliable#Glitch fix. Matma Rex talk 17:21, 10 January 2025 (UTC)[reply]

Sections

I noticed that some sections are written like: == xxxxx == and some are written like ==xxxxx==. Some have gaps and some do not. Won't it be better if it was standardized? I prefer the one without gaps because it should save space. TrueMoriarty (talk) 06:47, 10 January 2025 (UTC)[reply]

No. Please write articles instead. —TheDJ (talkcontribs) 08:08, 10 January 2025 (UTC)[reply]
Articles about what?
TrueMoriarty (talk) 11:57, 10 January 2025 (UTC)[reply]
Or fix actual errors, of which there are literally tens of millions. – Jonesey95 (talk) 14:23, 10 January 2025 (UTC)[reply]
About what????? TrueMoriarty (talk) 16:43, 10 January 2025 (UTC)[reply]
The community hasn't made a project-wide standard for this. In general, you can use either style in articles you write, subject to the guidelines that do exist (see MOS:SECTIONHEAD as a start). But also, in general, match the style that already exists in an article and don't change style in an existing article without reason (see MOS:STYLEVAR). New guideline/rules are added sometimes, of course. I'd suggest editing and being around longer before considering making a proposal about this (not saying you are, just as a suggestion) (it's been discussed, at least tangentially many times: arbitrary recent example).(And welcome to Wikipedia and happy editing.) Skynxnex (talk) 16:16, 10 January 2025 (UTC)[reply]
I got your hint. If you don't want users newer than you to give some proposal here than you should put a password on this page and share it with users who you think is worthy and equal to you.
TrueMoriarty (talk) 17:01, 10 January 2025 (UTC)[reply]
I just was trying to give some background/history, in case you didn't know it. No objection to an actual proposal but I think if you want it to have a chance, you should do enough research to pretty comprehensively explain why and exactly what you'd want different. This is less a technical proposal and more a style or policy one, since English Wikipedia can't, as far as I know, make one of them technically impossible (since all Wikipedias share the common MediaWiki wikitext parser). Skynxnex (talk) 17:27, 10 January 2025 (UTC)[reply]
Please assume good faith. What you proposed is a cosmetic change. Cosmetic changes are discouraged because they clutter up watchlists, and require editor time to review without making any improvement to the Encyclopedia. Donald Albury 17:27, 10 January 2025 (UTC)[reply]
To address the original question. @TrueMoriarty: The presence or absence of the gaps makes absolutely no difference to either how the heading is displayed, or to how the MediaWiki software process the heading (such as, making section links work). Since they function identically, there is no advantage in altering either form to the other one.
Further: if an edit is made which does nothing other than remove those gaps, it doesn't save any space at all - in fact, it increases the amount of disk space that is used, since the MediaWiki software retains all previous versions of a page, effectively forever. You can see this by opening the "History" tab at the top of any page. --Redrose64 🌹 (talk) 13:16, 11 January 2025 (UTC)[reply]

request for new category

Hello. I have created a bot for updating amp url to its canonical/non-amp version. The BRFA will soon be approved. For now, I am using inputs from file(s), which were created using this list. In short, would it be possible possible to create a hidden/maintenance category which would contain articles that have "amp" anywhere in their url? False positives are preferred over missing amp url. The bot's programming is comprehensive so false positives wouldn't matter. Kindly let me know if this is possible, or if you need further information. Regards, —usernamekiran (talk) 10:52, 10 January 2025 (UTC)[reply]

PS: automatically populating category. —usernamekiran (talk) 11:34, 10 January 2025 (UTC)[reply]
It's possible, but in practice it's very unlikely you'd be able to convince MediaWiki developers to write and merge a change that does this. You'd probably do better to use a Toolforge database query or process a database dump. If you go the database query route, you'll probably need to batch your query with a condition like el_id > N AND el_id <= N+1000000 for relevant N to avoid timeouts. You'll also probably find that looking for just "contains 'amp'" gives very many false positives on words like "camp", "campus", "champion", "sample", "example", "Hampshire", and so on. Anomie 12:51, 10 January 2025 (UTC)[reply]
Isn't that link just listing pages containing "https://amp." in wikitext? The bot can query for that directly using mw:API:Search instead of relying on a static list. – SD0001 (talk) 13:51, 10 January 2025 (UTC)[reply]
Some sites use path-based amp URLs, so adding searching for something like at least "/amp/" would be needed. But between these two that'd get almost everything. Skynxnex (talk) 15:37, 10 January 2025 (UTC)[reply]
As SD0001 said, you can use pagegenerators. For example:
from pywikibot import pagegenerators

site = pywikibot.Site("en", "wikipedia")
gen = pagegenerators.SearchPageGenerator('insource:"https://amp."', site=site)
for page in gen:
#your code

DreamRimmer (talk) 16:49, 10 January 2025 (UTC)[reply]

  • Thanks everyone. I was doubtful about the category, so I was also working on code. But I had come up with:
for page in site.allpages(namespace=0):
#.. code
search_term = "https?:\/\/[^ ]*amp[^ ]*"

But the method suggested by SD0001, and DreamRimmer is less resource intensive. I will go with it. Regarding Anomie's query, I kept the search term intentionally lax, the bot has more regular expressions to weed out URLs containing words like "hampshire". I'm not sure if including such long code/strings in search would be a good idea. Thanks a lot again. —usernamekiran (talk) 13:22, 11 January 2025 (UTC)[reply]

Group changes by page doesn’t work in mobile view

The option to "Group changes by page in recent changes and watchlist" doesn’t work for me in mobile view. Am I missing something? YBG (talk) 12:38, 10 January 2025 (UTC)[reply]

Or perhaps this is a bug? YBG (talk) 02:50, 12 January 2025 (UTC)[reply]

V22's recent Appearance portlet has bigger min-content in grid than tools?

I'm trying to troubleshoot m:User:Aaron Liu/v22.css for when only the appearance menu is pinned to the right sidebar (i.e. tools is unpinned). For some reason, the right sidebar is much larger in this case, despite the grid template still being minmax(0, 1fr) min-content. Any idea why? Aaron Liu (talk) 12:56, 10 January 2025 (UTC)[reply]

Sergei Skripal wrong text displayed - mystery solved

Wrong word from unknown source in article - as viewed in Chrome, logged in.

The word "pleased" should be "convicted".

  • In the wiki-text it is "convicted".
  • I've done a history search using Wikiblame, I can't find the word "pleased" in recent history
  • I've purged the page.
  • I've done a nearly-null edit of the section.
  • In other browsers the word "convicted" appears, logged in or logged out.
Expand to see the reason, or puzzle over the mystery a little longer

Google Translate was re-writing the article, claiming to be translating from Russian to English.

All the best: Rich Farmbrough 13:38, 10 January 2025 (UTC).[reply]

Variable watchlist font sizes in Android desktop view

As shown below, when I view my watchlist in Desktop mode in Chrome on my Android phone, the font sizes vary the entire length of the list. It's disruptive! Can it be fixed?

I know I can use mobile mode, but it has its own shortcomings (such as all the edits to one page not being grouped together) so I often prefer desktop mode. Largoplazo (talk) 16:12, 10 January 2025 (UTC)[reply]

This is a Chrome/Mobile thing where it increases the font size of items which it thinks that you might be interested in. It's been raised on this page several times before, they should be in the page archives. In short: it's outside our control. --Redrose64 🌹 (talk) 13:21, 11 January 2025 (UTC)[reply]

Rollback does not count as an "edit"

When an account conducts a rollback, the edit does not count towards their edit count according to Wikipedia, such as at their contributions page. At least, that is what I have observed. Because of this, there is a discrepancy between their edit count according to Wikipedia itself and their edit count according to XTools. Is this an intentional feature or a bug? By the way, I am not asking this because I am obsessed with my edit count, I am just curious as to why this is. Cyrobyte (talk) 21:09, 11 January 2025 (UTC)[reply]

This is a known bug that will be fixed with on the next WP:THURSDAY. T382592. * Pppery * it has begun... 22:07, 11 January 2025 (UTC)[reply]
(edit conflict) Well, let's test it. As I type this, Special:Contributions/Redrose64, just refreshed, says "A user with 273,195 edits". I now make this edit, and I have 273,196 edits. I apply WP:ROLLBACK to that edit, and I again have 273,196 edits. So there appears to be truth in what you say. I'm wondering if there is some form of lag involved, and my edits might tick up later in the day. --Redrose64 🌹 (talk) 22:13, 11 January 2025 (UTC)[reply]

Background colour for Talk and other pages

How can I change the background colour of Talk pages without changing Skin. I'm using MonoBook, and the talk page background is blue, but I'd like to change it to white. I presume that I can edit my monobook.css or common.css (I have done previously for other similar things, eg Watchlist, so I'm familiar with the general process).

Do we have a list of all the tweaks that can be to CSS, rather than having to ask about individual ones? Mitch Ames (talk) 00:47, 12 January 2025 (UTC)[reply]

If that is what you really want to change, you can try adding this to your Special:MyPage/monobook.css :
body.ns-1 {
  background-color: white;
}
You can pretty much style anything at all, almost every element has a class or ID, view the page source to see them all. — xaosflux Talk 01:25, 12 January 2025 (UTC)[reply]
(edit conflict) @Mitch Ames: This is the current CSS in MonoBook:
div#content,
div#p-cactions li a:hover,
div#p-cactions li.selected a,
div#content div.thumb {
  background-color:#F8FCFF;
}
You could change it to white in Special:MyPage/monobook.css with !important added to override the existing CSS:
div#content,
div#p-cactions li a:hover,
div#p-cactions li.selected a,
div#content div.thumb {
  background-color:white !important;
}
CSS is a whole language and our skins have numerous things which can be targeted with CSS. A list of all possible tweaks is not realistic but maybe there should be an attempt to list significant tweaks many users may want. Some of Wikipedia:User scripts/List and Special:Preferences#mw-prefsection-gadgets make CSS tweaks without users having to copy the CSS. PrimeHunter (talk) 01:36, 12 January 2025 (UTC)[reply]
Help:User style § CSS has some info and sample changes. isaacl (talk) 04:11, 12 January 2025 (UTC)[reply]

Image placement is broken on Toque macaque

Screenshot with broken image placement that overlaps references section.

The images in the article Toque macaque (permalink to current version) are not placed correctly on desktop. Sometimes, the right-hand column of images overlaps with the reference section, but not always. –LaundryPizza03 (d) 02:38, 12 January 2025 (UTC)[reply]

@LaundryPizza03: I used {{stack}} to avoid pushing down the left image.[7] Does that work for you? PrimeHunter (talk) 09:41, 12 January 2025 (UTC)[reply]