Policy | Technical | Proposals | Idea lab | WMF | Miscellaneous |
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.
Frequently asked questions (see also:
Wikipedia:FAQ/Technical) Click "[show]" next to each point to see more details.
|
DannyS712 bot, a bot which is supposed to look after various daily or weekly maintenance tasks, hasn't made any edits since July 1, including failing to update Wikipedia:Database reports/Polluted categories (2) in eleven days despite that being a thing that's supposed to happen weekly, but the bot's maintainer says on their own userpage that they're not around much lately, and they haven't made any Wikipedia edits at all since July 3, so there's no way to know when they'll be back in order to look into it if I approach them personally (especially in July, when any editor could very well be on vacation for a couple of weeks). So could somebody take a quick gander into whether there's a problem with the bot, and maybe jumpstart it again if there is? Thanks. Bearcat ( talk) 15:53, 12 July 2024 (UTC)
I assume that since loads of stuff has stopped working with every skin except Vector (2022), this is a deliberate way of forcing editors to switch to it even though no one wanted it in the first place. Nice call! ——Serial Number 54129 09:58, 15 July 2024 (UTC)
The title of this thread is rather hyperbolic, but there is something to be said about how this breakage came to be. Wikipedia depends on hundreds (if not thousands) of add-on front-end scripts (and other back-end tools) to do essential work. I don't think it's hyperbolic at all to say that if all these tools were to suddenly stop working, it would be very difficult to keep things going. These tools depend on navigating (and in many cases, modifying) the structure of a rendered page. As such, the structure of the HTML is an essential API, just as much as any of the other documented APIs. The problem is, it's not documented. And as we've seen here, it's subject to change with little or no notice, breaking stuff willy-nilly. That needs to change. RoySmith (talk) 14:29, 15 July 2024 (UTC)
Is there a way to edit/change the “Recommended articles” that appear at the bottom of articles in mobile view? Blueboar ( talk) 19:19, 16 July 2024 (UTC)
{{#related:Manhattan}}
(and others) at the bottom of the article, written in the wikitext just above the categories.{{#related:}}
. We rarely do that.
PrimeHunter (
talk)
01:58, 17 July 2024 (UTC)
'wgRelatedArticlesFooterAllowedSkins' =>
'default' => 'minerva', 'timeless' ], // T144812, T181242
'dewiki' => 'minerva' ], // T278611
'eswikinews' => [], // T230660
'frwikinews' => [], // T341105
'htwiki' => 'minerva', 'vector', 'vector-2022', 'timeless' ], // T126826, T298916
'hewiki' => 'minerva', 'vector', 'vector-2022', 'timeless' ], // T191573, T298916
'wikivoyage' => 'minerva', 'vector', 'vector-2022', 'timeless' ], // T298916
'zhwikinews' => [], // T299856
],
Does anyone know of a template or module which would allow me to give it two strings and simply return the one that comes first alphabetically (perhaps with a switch to choose between ascending or descending order)? Josh ( talk) 22:28, 18 July 2024 (UTC)
{{minstring|foo|bar|biz}} --> bar
? —
xaosflux
Talk
22:48, 18 July 2024 (UTC)
{{
Switch by pattern|_input= 'children' and 'adult humans' |adult humans|children|_returnall=x |_returncaptures=x |_outputsep=_with_}}
→ adult humans_with_children can help. You can use |_outputsep={{sp}}with{{sp}}
as well. This way you may need no further processing for your category name.
Ponor (
talk)
18:44, 19 July 2024 (UTC) + 19:36, 19 July 2024 (UTC)
{bravo,[[alpha]],charlie,alphabet}
does the link need to be delinked, or should the brackets be sorted? —
xaosflux
Talk
14:39, 19 July 2024 (UTC)
local p = {}
:p.main = function ( frame )
: str1 = frame.args[1]
: str2 = frame.args[2]
: if str1 < str2 then
: return str1
: else
: return str2
: end
:end
:return p
Has anyone else been experiencing MediaWiki errors? I tried a few projects and got them across the board. I hope it's over now. ꧁ Zanahary꧂ 00:18, 19 July 2024 (UTC)
MediaWiki internal error. Original exception: [34ac1401-8578-4b58-a1be-36b1278fa8bf] 2024-07-19 00:14:57: Fatal exception of type "Wikimedia\Rdbms\DBUnexpectedError" Exception caught inside exception handler. Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.
I thought I'd lost two or three hours of work on Timeline of the attempted assassination of Donald Trump, i.e. the entire new article. When I set about to begin it anew this morning, lo! It was all there! Passingly strange and a P.I.T.A. kencf0618 ( talk) 16:59, 20 July 2024 (UTC)
I'll just note that the phab ticket is currently marked "Open, In Progress, Unbreak Now!". Translating from techno-speak, that basically means, "We know about it, we're working on it, and it's our highest priority issue at the moment". So we should just get out of their hair and let them work on it. RoySmith (talk) 16:47, 21 July 2024 (UTC)
MediaWiki internal error
What does this mean? — Maile ( talk) 01:30, 21 July 2024 (UTC)
I have been getting repeated "MediaWiki internal error.
Original exception: [d0d3b60c-5f72-4e07-ae15-3451f56eefcf] 2024-07-21 21:00:09: Fatal exception of type "Wikimedia\Rdbms\DBUnexpectedError"
Exception caught inside exception handler.
Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information."
messages tonight, had them last night too. the bit inside the square brackets changes each time. Happens when I click on a page link on my watchlist. Edge on Win11, also happens on Chrome on Android. DuncanHill ( talk) 21:07, 21 July 2024 (UTC)
Attempting to post a reply on a talk page, and it fails to post, with the error:
[81c7ca0f-eea1-42f7-8924-5a63e7dbb4cf] Caught exception of type Wikimedia\Rdbms\DBUnexpectedError
I'm betting I'll probably get the same error while trying to report this error... cheers. anastrophe, an editor he is. 01:29, 21 July 2024 (UTC)
How can I generate a list of pages containing {{
sic}}
with the optional |hide=
argument? --
Green
C
05:19, 19 July 2024 (UTC)
{{
search link}}
I'd not seen before). My goal is to find uses of {{sic}}
embedded in URLs ie.
hastemplate:sic insource:hide insource:/\| *hide *=/ insource:/[-]\{\{sic/, has about 80. To get them all I'd probably need to change the last regex to insource:/[^ ]{{sic/
then use a bot to see if it's in a URL, in which case might as well use the larger number from Jonesey95. Only trying to understand how widespread this intractable problem is. Employing {{sic}}
or not in these situations is a bad choice either way, and I don't see a good solution. If you don't add {{sic}}
then users and user scripts/AWB etc search and replace misspellings, breaking the URL. If you do add {{sic}}
, it breaks bots and tools which can't parse multiple encoding schemes, it violates the IETF RFC on URL encoding standards. In theory bots and tools should account for it, but it's an edge case and difficult to program for, I'd be surprised if any tools or bots are aware of it. --
Green
C
15:11, 19 July 2024 (UTC)
When I edit admin-protected pages like Template:Disambig editnotice, I get nearly-white text on a very light pink background, and it's nearly invisible. Does anyone know where this color is set? Is that part of the skin CSS?
BTW, I added class=skin-invert to that template, but the results are pretty ugly in dark mode. It (and many other templates) could probably use upgrading to CSS variables with the palette from [1], though it's very difficult for me to edit it safely at the moment. -- Beland ( talk) 03:46, 20 July 2024 (UTC)
Hello, I'm working on a fairly large page that may be coming up against some technical limits. One may be the Unstrip post-expand size. But I can't say I understand much about this datum and the help files don't say much. Do these stats look problematic? Except for the Unstrip post-expand size value none are more than about 50% of the limit.
Post-expand include size 1,155,959/2,097,152 bytes Template argument size 9,599/2,097,152 bytes Highest expansion depth 16/100 Expensive parser function count 37/500 Unstrip recursion depth 1/20 Unstrip post-expand size 4,254,075/5,000,000 bytes
My understanding is that the Post-expand include size is a hard limit, but don't know about Unstrip post-expand size. Mr. Swordfish ( talk) 21:55, 20 July 2024 (UTC)
We have a question at Talk:List of common misconceptions#Split proposal about Help:Template limits. This is one of our largest pages, with 569,144 bytes of wikitext, 869 refs, and 1,220 templates. I think it would be best to answer it over there. WhatamIdoing ( talk) 22:20, 20 July 2024 (UTC)
<style>
tags at the end of the article (like for the portal bar) might wind up broken. "Manual" deduplication for the cite template styles (i.e. sticking one <templatestyles src="Module:Citation/CS1/styles.css" />
before the <references />
and passing an arg to all the cite templates to have them not include that) might work, but in more general cases you'd want to be careful that the on-demand section loading for the mobile apps (if they still do that) doesn't break.
Anomie
⚔
13:13, 21 July 2024 (UTC)I think something may be wrong with Lowercase sigmabot III. Looking at its contributions, it only archived 4 talk pages on the 19th, about 80 on the 20th, and only 4 so far today. For comparison, it usually seems to archive many hundreds or thousands (for example on the 18th it archived well over 700). Any insight? GhostOfNoMeme 09:28, 21 July 2024 (UTC)
I'm not sure if this is the correct place to post a request. Could someone please check the page Dylan Dog and fix the infobox? I'm a bit out of practice with formatting standards. Also, what would have been the correct place to make this request? Thanks! 100.19.66.49 ( talk) 15:30, 21 July 2024 (UTC)
In dark mode, at {{ Soulfly}}, the actual link for Soulfly is an extremely dark grey that is difficult to see on a black background. Also, when editing, anything that is NOT a link is grey text on a white background. It was not this way before. Does anyone know how to fix this? -- Jax 0677 ( talk) 21:35, 21 July 2024 (UTC)
color: #202122
to several parameter styles. I'm still using the Dark Mode gadget rather than the Foundation version, and I'm not experiencing the issue in Vector 2022.
Folly Mox (
talk)
10:17, 22 July 2024 (UTC)
So I rrecently used my iPhone to access the Teahouse and the scrreen flickered between normal and black for about 10 seconds before going all black. Restarting the app doesn't fix this either. Unfortunately I have no image of this, but to describe it:
I noticed that extremely long pages or threads will completely black-out iPhone screens (including the Teahouse, which is notoriously long). This can be a serious issue when trying to access something in-the-moment, and the Teahouse still is completely broken on my phone. I have no idea if this is even a Wikipedia-side issue, but yea. Just anted to make ya'll aware of this. I'll try to get an image tomorrow, it's prretty hard to explain. Sir MemeGod ._. ( talk - contribs - created articles) 04:16, 22 July 2024 (UTC)
Apologies if this is not the right place for my query. While using the Wikipedia app on iOS with a 4G connection, I received a notification from my provider stating I had only 5GB left in my data package. Eight minutes later, I received another message saying my data package was completely used up. Upon checking my cellular usage settings, I found that the Wikipedia app had consumed 6.8GB of data in just about 10 minutes. What could be the cause of this? 141.196.107.237 ( talk) 05:08, 22 July 2024 (UTC)
Courtesy link:
Wikipedia:Copying text from other sources § Can I copy from open license or public domain sources?
Courtesy link:
Draft:License compatibility
If that subject line does not look cryptic to you, I would love to have your advice. I am trying to spin off the table about License compatibility that you can view here, into a template so I can use it in multiple articles, and add user-configurable style, and I am running into problems using CSS to reproduce the blue background in the first row. Currently, the template is at Draft:License compatibility. I am busy on two tracks: adding parameters for user stylability, and moving the original style to Draft:License compatibility/styles.css as default style. In trying to reproduce the original table style with the blue background and bolded white font in the top row as seen here, I tried the following at Draft:License compatibility/styles.css:
.lic-comp tbody tr:first-child {
background-color:blue;
color:white;
}
but it doesn't seem to be working properly; instead of rendering the top row with blue background, it is rendering the *second row* with blue background, and I don't understand why. Thanks for any tips you can offer. Mathglot ( talk) 09:33, 22 July 2024 (UTC)
<tbody>
, not <thead>
, even if the first one(s) include only <th>
s. If the table is sortable, jquery.tablesorter puts the first row in <thead>
for JavaScript-enabled users. You should probably add a class to the row itself rather than rely on a pseudo-class.
Nardog (
talk)
09:45, 22 July 2024 (UTC)
Html for table
|
---|
|
|- class="..."
.
Nardog (
talk)
10:11, 22 July 2024 (UTC)
class= dir= id= lang= style= title=
) attributes that are valid on
a <tr>
element are also permitted on |-
, which is the direct equivalent in Wikitext. --
Redrose64 🌹 (
talk)
19:09, 22 July 2024 (UTC)th
to your code:.lic-comp tbody tr:first-child th {
background-color:blue;
color:white;
}
<th>
, not <tr>
, so it takes precedence over your custom style in TemplateStyles. .lic-comp tr:first-child > th
is one way to do it.
Nardog (
talk)
10:50, 22 July 2024 (UTC)
Help! I've somehow broken a friend's talkpage so that the indentations have turned into parentheses. I don't know how you even do that....
Adam Cuerden (
talk)Has about 8.9% of all
FPs.
11:35, 22 July 2024 (UTC)
It was a stray </div> from a section higher. Adam Cuerden ( talk)Has about 8.9% of all FPs. 13:13, 22 July 2024 (UTC)
I would like to transclude this section and only that section of that page to here. I tried using templates like Template:Excerpt, but I can't seem to figure it out. I am hoping that someone can provide me with some guidance on how I can do this? Interstellarity ( talk) 21:23, 22 July 2024 (UTC)
{{#section-h:Wikipedia:Vital_articles/Level/4/People|People}}
. See
Help:Labeled section transclusion and
Help:Section#Section transclusion for details. —
andrybak (
talk)
00:01, 23 July 2024 (UTC)
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Feature News
Project Updates
Learn more
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe. You can also get other news from the Wikimedia Foundation Bulletin.
MediaWiki message delivery 00:01, 23 July 2024 (UTC)
I would like to add a parameter called `committee_url` to Template:Infobox technology standard (see my comment there). I tried unsuccessfully to add it, but the template update didn't seem to propagate, such that I couldn't properly update the documentation. The edit was undone, I am boosting this request here given it is a quiet template. Tule-hog ( talk) 03:22, 23 July 2024 (UTC)
I am often editing dates in citations manually, there might be tools to help? Specifically things like converting all |date=
to mdy/dmy, and converting certain parameters to iso. Do tools like this exist? --
Green
C
17:06, 23 July 2024 (UTC)
I stumbled upon this diff, where for some reason all lua calls fail. Does someone know why? — Alien333 ( what I did & why I did it wrong) 18:04, 23 July 2024 (UTC)
I would like to edit the headings so that they are one level down like in here. I know I could probably do it the old-fashioned way, but it would probably take up a lot of time to do so. I'm looking for an easy solution that I can use so that it will bring the headings one level down. For example: if it is a level 2 heading, I would like it into a level 3 heading. What would you recommend I do? Please ping me in your response. Interstellarity ( talk) 23:23, 23 July 2024 (UTC)
==([^=]*?)==
, replace ===$1===
, mark the find as a regex find, and then hit the appropriate go button.
Izno (
talk)
23:46, 23 July 2024 (UTC)
^((={1,5})[^=\n][^\n]*\2)
=$1=
Perhaps this is impossible, but I noticed that Talk:AC/DC is technically a subpage of the unrelated Talk:AC disambiguation, merely due to the backslash's double function as a title & subpage sorter (classic Wikipedia shenanigans). Is this removable somehow? Not a huge issue, but certainly not ideal either. Aza24 (talk) 06:18, 24 July 2024 (UTC)
.page-Talk_AC_DC .subpages {display:none;}
in
MediaWiki:Common.css but I don't support it. Each unwanted link would need its own code and the increased CSS size doesn't seem worth it. It would still be a subpage with other associated features.
PrimeHunter (
talk)
10:41, 24 July 2024 (UTC)
.mw-parser-output
and this isn't there.
* Pppery *
it has begun...
15:30, 24 July 2024 (UTC)
On this page, Wikipedia:Vital articles/Level/4, when I click the edit link on a particular section, any section, it brings me to the section before the one I clicked. I recently transcluded the sections so I'm not sure if this is part of the problem and it is buggy right now since this is new, but I am working on it to try to bring it so it can be stable and free from bugs. Interstellarity ( talk) 22:00, 24 July 2024 (UTC)
When a wikilink on a page points to that same page, it displays as bold rather than regular blue. These are not clickable links, as one is already on that page. As of...recently...however, the mouse cursor over these items still turns from the normal pointer into the hand as if it were a regular link. Vector2022, Firefox-115.13.0esr. Examples tested are [[User:DMacks]] on User:DMacks and spot-checking several navboxes (mainspace pages that transclude templates with a link to the mainspace page). DMacks ( talk) 22:38, 24 July 2024 (UTC)
I use Wikipedia on my laptop and PC, which both have roughly the same size screens. Now, I haven't made any setting changes, and everything is fine on my laptop, but on my PC, out of the blue, Wikipedia is no longer using the full page width. For some things! Talk pages are fine, infoboxes are where they should be, same with end of article templates and category lists. It's just the article text itself (and any images in the article) that isn't using the full screen - its right-hand border is roughly in line with the standard infobox position. I've taken a few screenshots to illustrate the problem.
[6] (regular article with infobox)
[7] (categories at end of article)
[8] (talk page)
[9] (editing)
Any help would be very much appreciated. Bertaut ( talk) 00:15, 25 July 2024 (UTC)
?safemode=1
in the URL bar and then hit your version of "go" and see if the issue persists.
Izno (
talk)
00:29, 25 July 2024 (UTC)
We have a dark mode now, but I'm confused about how templates should handle background colors. An editor raised a specific issue at Template_talk:Bar_chart#Dark_mode_error, and I asked that individual, but maybe other people will have this same confusion.
The issue is that many templates use a pale (but not white) background to set boxes aside from the main content. These templates typically leave the "color" property of text alone. The default color is black but becomes white in dark mode. The resulting pale text on a pale background is unreadable. For example, activate dark mode and check out Prince Albert, Saskatchewan#Demographics. The glowing template there is {{ Canada census}}. It uses the background colors #f8f9fa and lavender and does not change the "color" property of the text. [10] This seems to be a bug in dark mode, but I see many similar templates listed at this bug-tracking page as if they are template bugs: [11]
The recommendations from the WMF seem to suggest defining a light and dark background color on each template? [12] If that's the answer, then that's the answer, but seems like a massive amount of work when templates exist for years without being fixed for mobile, screen readers, narrow screens, the new desktop theme, and so on.
Also, what does this mean for templates that allow a user to set the background? On {{ bar chart}} this would make the text unreadable on at least one of the two modes, and so user-determined colors would need to be disabled. [13] I looked up a version of Elie Wiesel that I know has the background-color set at the page level for its {{ quote box}}es. [14] I see "html.skin-theme-clientpref-night .quotebox:not(.notheme)" disabling both "background" and "color" properties at the site's theme level. This appears to have been done for many widely used templates (infoboxes and nav boxes), but what is expected for other templates?
I imagine the background colors cannot just be turned off because templates like {{ legend}} use them for meaning. But is there no way for the site to automatically figure that black text with a custom background color should not become white? Rjjiii ( talk) 05:57, 25 July 2024 (UTC)
Policy | Technical | Proposals | Idea lab | WMF | Miscellaneous |
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.
Frequently asked questions (see also:
Wikipedia:FAQ/Technical) Click "[show]" next to each point to see more details.
|
DannyS712 bot, a bot which is supposed to look after various daily or weekly maintenance tasks, hasn't made any edits since July 1, including failing to update Wikipedia:Database reports/Polluted categories (2) in eleven days despite that being a thing that's supposed to happen weekly, but the bot's maintainer says on their own userpage that they're not around much lately, and they haven't made any Wikipedia edits at all since July 3, so there's no way to know when they'll be back in order to look into it if I approach them personally (especially in July, when any editor could very well be on vacation for a couple of weeks). So could somebody take a quick gander into whether there's a problem with the bot, and maybe jumpstart it again if there is? Thanks. Bearcat ( talk) 15:53, 12 July 2024 (UTC)
I assume that since loads of stuff has stopped working with every skin except Vector (2022), this is a deliberate way of forcing editors to switch to it even though no one wanted it in the first place. Nice call! ——Serial Number 54129 09:58, 15 July 2024 (UTC)
The title of this thread is rather hyperbolic, but there is something to be said about how this breakage came to be. Wikipedia depends on hundreds (if not thousands) of add-on front-end scripts (and other back-end tools) to do essential work. I don't think it's hyperbolic at all to say that if all these tools were to suddenly stop working, it would be very difficult to keep things going. These tools depend on navigating (and in many cases, modifying) the structure of a rendered page. As such, the structure of the HTML is an essential API, just as much as any of the other documented APIs. The problem is, it's not documented. And as we've seen here, it's subject to change with little or no notice, breaking stuff willy-nilly. That needs to change. RoySmith (talk) 14:29, 15 July 2024 (UTC)
Is there a way to edit/change the “Recommended articles” that appear at the bottom of articles in mobile view? Blueboar ( talk) 19:19, 16 July 2024 (UTC)
{{#related:Manhattan}}
(and others) at the bottom of the article, written in the wikitext just above the categories.{{#related:}}
. We rarely do that.
PrimeHunter (
talk)
01:58, 17 July 2024 (UTC)
'wgRelatedArticlesFooterAllowedSkins' =>
'default' => 'minerva', 'timeless' ], // T144812, T181242
'dewiki' => 'minerva' ], // T278611
'eswikinews' => [], // T230660
'frwikinews' => [], // T341105
'htwiki' => 'minerva', 'vector', 'vector-2022', 'timeless' ], // T126826, T298916
'hewiki' => 'minerva', 'vector', 'vector-2022', 'timeless' ], // T191573, T298916
'wikivoyage' => 'minerva', 'vector', 'vector-2022', 'timeless' ], // T298916
'zhwikinews' => [], // T299856
],
Does anyone know of a template or module which would allow me to give it two strings and simply return the one that comes first alphabetically (perhaps with a switch to choose between ascending or descending order)? Josh ( talk) 22:28, 18 July 2024 (UTC)
{{minstring|foo|bar|biz}} --> bar
? —
xaosflux
Talk
22:48, 18 July 2024 (UTC)
{{
Switch by pattern|_input= 'children' and 'adult humans' |adult humans|children|_returnall=x |_returncaptures=x |_outputsep=_with_}}
→ adult humans_with_children can help. You can use |_outputsep={{sp}}with{{sp}}
as well. This way you may need no further processing for your category name.
Ponor (
talk)
18:44, 19 July 2024 (UTC) + 19:36, 19 July 2024 (UTC)
{bravo,[[alpha]],charlie,alphabet}
does the link need to be delinked, or should the brackets be sorted? —
xaosflux
Talk
14:39, 19 July 2024 (UTC)
local p = {}
:p.main = function ( frame )
: str1 = frame.args[1]
: str2 = frame.args[2]
: if str1 < str2 then
: return str1
: else
: return str2
: end
:end
:return p
Has anyone else been experiencing MediaWiki errors? I tried a few projects and got them across the board. I hope it's over now. ꧁ Zanahary꧂ 00:18, 19 July 2024 (UTC)
MediaWiki internal error. Original exception: [34ac1401-8578-4b58-a1be-36b1278fa8bf] 2024-07-19 00:14:57: Fatal exception of type "Wikimedia\Rdbms\DBUnexpectedError" Exception caught inside exception handler. Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.
I thought I'd lost two or three hours of work on Timeline of the attempted assassination of Donald Trump, i.e. the entire new article. When I set about to begin it anew this morning, lo! It was all there! Passingly strange and a P.I.T.A. kencf0618 ( talk) 16:59, 20 July 2024 (UTC)
I'll just note that the phab ticket is currently marked "Open, In Progress, Unbreak Now!". Translating from techno-speak, that basically means, "We know about it, we're working on it, and it's our highest priority issue at the moment". So we should just get out of their hair and let them work on it. RoySmith (talk) 16:47, 21 July 2024 (UTC)
MediaWiki internal error
What does this mean? — Maile ( talk) 01:30, 21 July 2024 (UTC)
I have been getting repeated "MediaWiki internal error.
Original exception: [d0d3b60c-5f72-4e07-ae15-3451f56eefcf] 2024-07-21 21:00:09: Fatal exception of type "Wikimedia\Rdbms\DBUnexpectedError"
Exception caught inside exception handler.
Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information."
messages tonight, had them last night too. the bit inside the square brackets changes each time. Happens when I click on a page link on my watchlist. Edge on Win11, also happens on Chrome on Android. DuncanHill ( talk) 21:07, 21 July 2024 (UTC)
Attempting to post a reply on a talk page, and it fails to post, with the error:
[81c7ca0f-eea1-42f7-8924-5a63e7dbb4cf] Caught exception of type Wikimedia\Rdbms\DBUnexpectedError
I'm betting I'll probably get the same error while trying to report this error... cheers. anastrophe, an editor he is. 01:29, 21 July 2024 (UTC)
How can I generate a list of pages containing {{
sic}}
with the optional |hide=
argument? --
Green
C
05:19, 19 July 2024 (UTC)
{{
search link}}
I'd not seen before). My goal is to find uses of {{sic}}
embedded in URLs ie.
hastemplate:sic insource:hide insource:/\| *hide *=/ insource:/[-]\{\{sic/, has about 80. To get them all I'd probably need to change the last regex to insource:/[^ ]{{sic/
then use a bot to see if it's in a URL, in which case might as well use the larger number from Jonesey95. Only trying to understand how widespread this intractable problem is. Employing {{sic}}
or not in these situations is a bad choice either way, and I don't see a good solution. If you don't add {{sic}}
then users and user scripts/AWB etc search and replace misspellings, breaking the URL. If you do add {{sic}}
, it breaks bots and tools which can't parse multiple encoding schemes, it violates the IETF RFC on URL encoding standards. In theory bots and tools should account for it, but it's an edge case and difficult to program for, I'd be surprised if any tools or bots are aware of it. --
Green
C
15:11, 19 July 2024 (UTC)
When I edit admin-protected pages like Template:Disambig editnotice, I get nearly-white text on a very light pink background, and it's nearly invisible. Does anyone know where this color is set? Is that part of the skin CSS?
BTW, I added class=skin-invert to that template, but the results are pretty ugly in dark mode. It (and many other templates) could probably use upgrading to CSS variables with the palette from [1], though it's very difficult for me to edit it safely at the moment. -- Beland ( talk) 03:46, 20 July 2024 (UTC)
Hello, I'm working on a fairly large page that may be coming up against some technical limits. One may be the Unstrip post-expand size. But I can't say I understand much about this datum and the help files don't say much. Do these stats look problematic? Except for the Unstrip post-expand size value none are more than about 50% of the limit.
Post-expand include size 1,155,959/2,097,152 bytes Template argument size 9,599/2,097,152 bytes Highest expansion depth 16/100 Expensive parser function count 37/500 Unstrip recursion depth 1/20 Unstrip post-expand size 4,254,075/5,000,000 bytes
My understanding is that the Post-expand include size is a hard limit, but don't know about Unstrip post-expand size. Mr. Swordfish ( talk) 21:55, 20 July 2024 (UTC)
We have a question at Talk:List of common misconceptions#Split proposal about Help:Template limits. This is one of our largest pages, with 569,144 bytes of wikitext, 869 refs, and 1,220 templates. I think it would be best to answer it over there. WhatamIdoing ( talk) 22:20, 20 July 2024 (UTC)
<style>
tags at the end of the article (like for the portal bar) might wind up broken. "Manual" deduplication for the cite template styles (i.e. sticking one <templatestyles src="Module:Citation/CS1/styles.css" />
before the <references />
and passing an arg to all the cite templates to have them not include that) might work, but in more general cases you'd want to be careful that the on-demand section loading for the mobile apps (if they still do that) doesn't break.
Anomie
⚔
13:13, 21 July 2024 (UTC)I think something may be wrong with Lowercase sigmabot III. Looking at its contributions, it only archived 4 talk pages on the 19th, about 80 on the 20th, and only 4 so far today. For comparison, it usually seems to archive many hundreds or thousands (for example on the 18th it archived well over 700). Any insight? GhostOfNoMeme 09:28, 21 July 2024 (UTC)
I'm not sure if this is the correct place to post a request. Could someone please check the page Dylan Dog and fix the infobox? I'm a bit out of practice with formatting standards. Also, what would have been the correct place to make this request? Thanks! 100.19.66.49 ( talk) 15:30, 21 July 2024 (UTC)
In dark mode, at {{ Soulfly}}, the actual link for Soulfly is an extremely dark grey that is difficult to see on a black background. Also, when editing, anything that is NOT a link is grey text on a white background. It was not this way before. Does anyone know how to fix this? -- Jax 0677 ( talk) 21:35, 21 July 2024 (UTC)
color: #202122
to several parameter styles. I'm still using the Dark Mode gadget rather than the Foundation version, and I'm not experiencing the issue in Vector 2022.
Folly Mox (
talk)
10:17, 22 July 2024 (UTC)
So I rrecently used my iPhone to access the Teahouse and the scrreen flickered between normal and black for about 10 seconds before going all black. Restarting the app doesn't fix this either. Unfortunately I have no image of this, but to describe it:
I noticed that extremely long pages or threads will completely black-out iPhone screens (including the Teahouse, which is notoriously long). This can be a serious issue when trying to access something in-the-moment, and the Teahouse still is completely broken on my phone. I have no idea if this is even a Wikipedia-side issue, but yea. Just anted to make ya'll aware of this. I'll try to get an image tomorrow, it's prretty hard to explain. Sir MemeGod ._. ( talk - contribs - created articles) 04:16, 22 July 2024 (UTC)
Apologies if this is not the right place for my query. While using the Wikipedia app on iOS with a 4G connection, I received a notification from my provider stating I had only 5GB left in my data package. Eight minutes later, I received another message saying my data package was completely used up. Upon checking my cellular usage settings, I found that the Wikipedia app had consumed 6.8GB of data in just about 10 minutes. What could be the cause of this? 141.196.107.237 ( talk) 05:08, 22 July 2024 (UTC)
Courtesy link:
Wikipedia:Copying text from other sources § Can I copy from open license or public domain sources?
Courtesy link:
Draft:License compatibility
If that subject line does not look cryptic to you, I would love to have your advice. I am trying to spin off the table about License compatibility that you can view here, into a template so I can use it in multiple articles, and add user-configurable style, and I am running into problems using CSS to reproduce the blue background in the first row. Currently, the template is at Draft:License compatibility. I am busy on two tracks: adding parameters for user stylability, and moving the original style to Draft:License compatibility/styles.css as default style. In trying to reproduce the original table style with the blue background and bolded white font in the top row as seen here, I tried the following at Draft:License compatibility/styles.css:
.lic-comp tbody tr:first-child {
background-color:blue;
color:white;
}
but it doesn't seem to be working properly; instead of rendering the top row with blue background, it is rendering the *second row* with blue background, and I don't understand why. Thanks for any tips you can offer. Mathglot ( talk) 09:33, 22 July 2024 (UTC)
<tbody>
, not <thead>
, even if the first one(s) include only <th>
s. If the table is sortable, jquery.tablesorter puts the first row in <thead>
for JavaScript-enabled users. You should probably add a class to the row itself rather than rely on a pseudo-class.
Nardog (
talk)
09:45, 22 July 2024 (UTC)
Html for table
|
---|
|
|- class="..."
.
Nardog (
talk)
10:11, 22 July 2024 (UTC)
class= dir= id= lang= style= title=
) attributes that are valid on
a <tr>
element are also permitted on |-
, which is the direct equivalent in Wikitext. --
Redrose64 🌹 (
talk)
19:09, 22 July 2024 (UTC)th
to your code:.lic-comp tbody tr:first-child th {
background-color:blue;
color:white;
}
<th>
, not <tr>
, so it takes precedence over your custom style in TemplateStyles. .lic-comp tr:first-child > th
is one way to do it.
Nardog (
talk)
10:50, 22 July 2024 (UTC)
Help! I've somehow broken a friend's talkpage so that the indentations have turned into parentheses. I don't know how you even do that....
Adam Cuerden (
talk)Has about 8.9% of all
FPs.
11:35, 22 July 2024 (UTC)
It was a stray </div> from a section higher. Adam Cuerden ( talk)Has about 8.9% of all FPs. 13:13, 22 July 2024 (UTC)
I would like to transclude this section and only that section of that page to here. I tried using templates like Template:Excerpt, but I can't seem to figure it out. I am hoping that someone can provide me with some guidance on how I can do this? Interstellarity ( talk) 21:23, 22 July 2024 (UTC)
{{#section-h:Wikipedia:Vital_articles/Level/4/People|People}}
. See
Help:Labeled section transclusion and
Help:Section#Section transclusion for details. —
andrybak (
talk)
00:01, 23 July 2024 (UTC)
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Feature News
Project Updates
Learn more
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe. You can also get other news from the Wikimedia Foundation Bulletin.
MediaWiki message delivery 00:01, 23 July 2024 (UTC)
I would like to add a parameter called `committee_url` to Template:Infobox technology standard (see my comment there). I tried unsuccessfully to add it, but the template update didn't seem to propagate, such that I couldn't properly update the documentation. The edit was undone, I am boosting this request here given it is a quiet template. Tule-hog ( talk) 03:22, 23 July 2024 (UTC)
I am often editing dates in citations manually, there might be tools to help? Specifically things like converting all |date=
to mdy/dmy, and converting certain parameters to iso. Do tools like this exist? --
Green
C
17:06, 23 July 2024 (UTC)
I stumbled upon this diff, where for some reason all lua calls fail. Does someone know why? — Alien333 ( what I did & why I did it wrong) 18:04, 23 July 2024 (UTC)
I would like to edit the headings so that they are one level down like in here. I know I could probably do it the old-fashioned way, but it would probably take up a lot of time to do so. I'm looking for an easy solution that I can use so that it will bring the headings one level down. For example: if it is a level 2 heading, I would like it into a level 3 heading. What would you recommend I do? Please ping me in your response. Interstellarity ( talk) 23:23, 23 July 2024 (UTC)
==([^=]*?)==
, replace ===$1===
, mark the find as a regex find, and then hit the appropriate go button.
Izno (
talk)
23:46, 23 July 2024 (UTC)
^((={1,5})[^=\n][^\n]*\2)
=$1=
Perhaps this is impossible, but I noticed that Talk:AC/DC is technically a subpage of the unrelated Talk:AC disambiguation, merely due to the backslash's double function as a title & subpage sorter (classic Wikipedia shenanigans). Is this removable somehow? Not a huge issue, but certainly not ideal either. Aza24 (talk) 06:18, 24 July 2024 (UTC)
.page-Talk_AC_DC .subpages {display:none;}
in
MediaWiki:Common.css but I don't support it. Each unwanted link would need its own code and the increased CSS size doesn't seem worth it. It would still be a subpage with other associated features.
PrimeHunter (
talk)
10:41, 24 July 2024 (UTC)
.mw-parser-output
and this isn't there.
* Pppery *
it has begun...
15:30, 24 July 2024 (UTC)
On this page, Wikipedia:Vital articles/Level/4, when I click the edit link on a particular section, any section, it brings me to the section before the one I clicked. I recently transcluded the sections so I'm not sure if this is part of the problem and it is buggy right now since this is new, but I am working on it to try to bring it so it can be stable and free from bugs. Interstellarity ( talk) 22:00, 24 July 2024 (UTC)
When a wikilink on a page points to that same page, it displays as bold rather than regular blue. These are not clickable links, as one is already on that page. As of...recently...however, the mouse cursor over these items still turns from the normal pointer into the hand as if it were a regular link. Vector2022, Firefox-115.13.0esr. Examples tested are [[User:DMacks]] on User:DMacks and spot-checking several navboxes (mainspace pages that transclude templates with a link to the mainspace page). DMacks ( talk) 22:38, 24 July 2024 (UTC)
I use Wikipedia on my laptop and PC, which both have roughly the same size screens. Now, I haven't made any setting changes, and everything is fine on my laptop, but on my PC, out of the blue, Wikipedia is no longer using the full page width. For some things! Talk pages are fine, infoboxes are where they should be, same with end of article templates and category lists. It's just the article text itself (and any images in the article) that isn't using the full screen - its right-hand border is roughly in line with the standard infobox position. I've taken a few screenshots to illustrate the problem.
[6] (regular article with infobox)
[7] (categories at end of article)
[8] (talk page)
[9] (editing)
Any help would be very much appreciated. Bertaut ( talk) 00:15, 25 July 2024 (UTC)
?safemode=1
in the URL bar and then hit your version of "go" and see if the issue persists.
Izno (
talk)
00:29, 25 July 2024 (UTC)
We have a dark mode now, but I'm confused about how templates should handle background colors. An editor raised a specific issue at Template_talk:Bar_chart#Dark_mode_error, and I asked that individual, but maybe other people will have this same confusion.
The issue is that many templates use a pale (but not white) background to set boxes aside from the main content. These templates typically leave the "color" property of text alone. The default color is black but becomes white in dark mode. The resulting pale text on a pale background is unreadable. For example, activate dark mode and check out Prince Albert, Saskatchewan#Demographics. The glowing template there is {{ Canada census}}. It uses the background colors #f8f9fa and lavender and does not change the "color" property of the text. [10] This seems to be a bug in dark mode, but I see many similar templates listed at this bug-tracking page as if they are template bugs: [11]
The recommendations from the WMF seem to suggest defining a light and dark background color on each template? [12] If that's the answer, then that's the answer, but seems like a massive amount of work when templates exist for years without being fixed for mobile, screen readers, narrow screens, the new desktop theme, and so on.
Also, what does this mean for templates that allow a user to set the background? On {{ bar chart}} this would make the text unreadable on at least one of the two modes, and so user-determined colors would need to be disabled. [13] I looked up a version of Elie Wiesel that I know has the background-color set at the page level for its {{ quote box}}es. [14] I see "html.skin-theme-clientpref-night .quotebox:not(.notheme)" disabling both "background" and "color" properties at the site's theme level. This appears to have been done for many widely used templates (infoboxes and nav boxes), but what is expected for other templates?
I imagine the background colors cannot just be turned off because templates like {{ legend}} use them for meaning. But is there no way for the site to automatically figure that black text with a custom background color should not become white? Rjjiii ( talk) 05:57, 25 July 2024 (UTC)