Wikipedia:Village pump (technical)/Archive 186
From Wikipedia, the free encyclopedia
Village pump (technical) archive
This page contains discussions that have been archived from Village pump (technical). Please do not edit the contents of this page. If you wish to revive any of these discussions, either start a new thread or use the talk page associated with that topic.
< Older discussions · Archives: A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, AA, AB, AC, AD, AE, AF, AG, AH, AI, AJ, AK, AL, AM, AN, AO, AP, AQ, AR, AS, AT, AU, AV, AW, AX · 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229
New parameter in Template:Infobox language
I am asking to add a new "Status" parameter to the template in connection with the creation of the article Degree of endangerment --友里(Talk) 11:20, 30 November 2020 (UTC)
- From the technical side it's no problem, but it should be discussed with the relevant projects (see the talk page of the template). A description where exactly in the template and how is helpful, too. The template is used in 9000 articles. --mfb (talk) 11:48, 30 November 2020 (UTC)
- Old suggestion: Template talk:Infobox language/Archive 4#endangerment status. See also Template talk:Infobox language/Archive 8#Catalogue of Endangered Languages. PrimeHunter (talk) 23:16, 1 December 2020 (UTC)
Wg-en Wikipedia
Not really a problem, but more of a curiousity question. While the Wikipedia logo may look different for each Wikipedia, most of them are white puzzle balls with an opening on the top. However, wg-en.wikipedia.org (see here) has the meta logo on top, why is that? Also, what does that wiki even look like? I never got a chance to see it, now it’s read only. --AJ1m3,zsd. (talk) 17:52, 2 December 2020 (UTC)
Archive confusion
I'm hoping for a fix to the archives and the archiving templates at Talk:Solomon's Temple. A prefix search shows that talk page has subpages:
- Talk:Solomon's Temple/Archive 1 (only substantive edit was 5 August 2010; covers 2004 to 2010)
- Talk:Solomon's Temple/Archives/ 1 (covers 2009 to 2016)
- Talk:Solomon's Temple/Archives/ 2 (covers 2016 to 2020)
I can't see where that extra slash comes from. Nor the s in "Archives" for that matter. Bonus questions: Solomon's is used three times. Why not just Solomon's? Is {{Archive basics}} really needed? Johnuniq (talk) 06:22, 2 December 2020 (UTC)
- ClueBot III can sometimes format archives like this when it's incorrectly configured, because it's trying to use its format for archiving by date (e.g. Talk:Solomon's Temple/Archives/2010/January). I think I've fixed it ... as explained on User:ClueBot III, the use of the HTML entity as opposed to the real apostrophe can cause problems with the bot. The {{Archive basics}} template is for OneClickArchiver. Graham87 09:57, 2 December 2020 (UTC)
Fully-Protected templates?
On WP:Protection policy#Overview of types of protection, it says that template protection is for high risk templates and modules. If so, why are some high risk templates fully protected? I though template protection was for high risk templates, not full protection. Not just the templates used on the Main Page, which are understandable, but editnotices are supposed to be edited by template editors. Template:Editnotices/Namespace/Module talk is fully protected, and some templates are as well, why is that? --AJ1m3,zsd. (talk) 23:56, 2 December 2020 (UTC)
- @AJ1m3,zsd.: templates are subject to protection just as any other page, generally templates that are incorporated in to fully protected areas such as the mediawiki namespace (such as the example you just pointed out) are fully protected to match the protection of the area they are used within. Additionally, extremely high use templates are fully protected to ensure they are given the highest scrutiny. If you have a question about a specific protection, you can start by asking the protecting admin if they are still active - if you think a page should have protection reduced you may post at WP:RFPP. — xaosflux Talk 00:16, 3 December 2020 (UTC)
Strange span tags
Dimitris Paraskevas has several of these pairs of span tags:
<span class="citation book" contenteditable="false">...book info as plain text ...</span>
<span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=... lots of codes ..." contenteditable="false"> </span>
I assume that these are a side-effect of pasting in a reference from some sort of library record.
Can I clean all this by just replacing both spans with a simple {{cite book}} — or do they have some deeper meaning? — GhostInTheMachine talk to me 19:20, 2 December 2020 (UTC)
- These have been in the article since it was created (original version), I suspect that somebody used WP:SUBST on a citation template that was available in the Greek version but not here. --Redrose64 🌹 (talk) 19:51, 2 December 2020 (UTC)
- This is one of many bugs related to the Content Translation tool. See T218420. The span tags can be removed. Just be careful to preserve the content inside of them. – Jonesey95 (talk) 20:50, 2 December 2020 (UTC)
thanks — GhostInTheMachine talk to me 20:52, 2 December 2020 (UTC)
- @Jonesey95: regarding your comments at T218420 - the span having the attribute
title="ctx_ver=Z39.88-2004&rft_val_fmt=... lots of codes ..."is nothing to do with content translation, it is in fact the COinS metadata for the citation, see WP:COINS. To demonstrate this, go to any Wikipedia page that has refs. Make sure that at least one of the refs uses a citation template (it doesn't matter whether it's{{citation}},{{cite web}},{{cite book}},{{cite journal}}, or another one). Verify from the page history that content translation has never been used. Whilst viewing the rendered article, use your browser's "view page source" feature, often reached via Ctrl+U. There, you will find the spans in question. --Redrose64 🌹 (talk) 22:51, 2 December 2020 (UTC)
- This is one of many bugs related to the Content Translation tool. See T218420. The span tags can be removed. Just be careful to preserve the content inside of them. – Jonesey95 (talk) 20:50, 2 December 2020 (UTC)
Autoaccept error
Please explain why my changes to the article Kalarippayattu which has been protected with autoconfirmed permission are not auto accepted like this [] even if I'm an extended confirmed user?. Thanks Outlander07@talk 17:09, 2 December 2020 (UTC)
Global account information – curious about "Registered" year
I just discovered that my Global account information page says that my account was registered (and attached to en.wiki) in February 2011, even though I actually created it in November 2006 (as seen from the user creation log), and have been editing more or less regularly since then. What does the word "registered" refer to here? Unified login was my first guess, but it looks like that happened a little later than 2011. It's not a big deal, but it makes me curious! --bonadea contributions talk 12:32, 3 December 2020 (UTC)
- @Bonadea: that field isn't very reliable for what people would want to use it for. See phab:T194131 and phab:T138145 for some more technical details, but I don't expect a "fix" to that coming anytime soon. — xaosflux Talk 12:42, 3 December 2020 (UTC)
Permanent
I don't see this anywhere, so I guess I'm the first to ask. Why did I clearly see the word "Permanent" with a down arrow to the right of "Watch this page" while editing, and now I see a fuzzy version of the same thing that doesn't work?— Vchimpanzee • talk • contributions • 21:04, 2 December 2020 (UTC)
- You can choose to watchlist a page you edit forever, or not at all. There are now extra options to watchlist it temporarily. The default, if adding to the watchlist at all, is to add it permanently as before. Certes (talk) 21:40, 2 December 2020 (UTC)
- (after reading the question properly) I recall seeing the fuzzy dropdown on a mockup somewhere in advance of this release. Perhaps you were being shown that mockup rather than the actual dropdown for some reason? Certes (talk) 21:45, 2 December 2020 (UTC)
- It's fuzzy in most cases. I only recall seeing it clearly once.— Vchimpanzee • talk • contributions • 22:10, 2 December 2020 (UTC)
- @Vchimpanzee: It's fuzzy if the "Watch this page" checkbox is deselected; but if that checkbox is selected, the "Permanent" becomes a sharp, clickable drop-down menu. The Watchlist Expiry feature was announced at Wikipedia:Village pump (technical)/Archive 185#New Feature: Watchlist Expiry, and was enabled on en.wp yesterday. Strange thing is that Thursday is tomorrow. --Redrose64 🌹 (talk) 23:04, 2 December 2020 (UTC)
- @Redrose64: It was a configuration change, which are done through backport windows and not the deployment train. The watchlist expiry code has been in MediaWiki for months, it just wasn't enabled here on English Wikipedia until December 1.
- @Vchimpanzee: By "fuzzy" you mean the dropdown is in the disabled state? It was done this way for accessibility. If people don't like it, you can try adding this CSS to Special:MyPage/common.css:
#wpWatchlistExpiryWidget.oo-ui-widget-disabled { visibility: hidden; }
- This will hide the dropdown unless the "Watch this page" checkbox is ticked. — MusikAnimal talk 06:53, 3 December 2020 (UTC)
- I don't check the box but sometimes it is checked anyway and I just don't bother to uncheck it.— Vchimpanzee • talk • contributions • 16:39, 3 December 2020 (UTC)
- @Vchimpanzee: It's fuzzy if the "Watch this page" checkbox is deselected; but if that checkbox is selected, the "Permanent" becomes a sharp, clickable drop-down menu. The Watchlist Expiry feature was announced at Wikipedia:Village pump (technical)/Archive 185#New Feature: Watchlist Expiry, and was enabled on en.wp yesterday. Strange thing is that Thursday is tomorrow. --Redrose64 🌹 (talk) 23:04, 2 December 2020 (UTC)
- It's fuzzy in most cases. I only recall seeing it clearly once.— Vchimpanzee • talk • contributions • 22:10, 2 December 2020 (UTC)
Stacked protections on a page?
There's a page that's indef semi-protected. I'd like to bump that up to ECP for a while, but leave it so when the ECP expires, it falls back to semi. Is such a thing possible? -- RoySmith (talk) 18:38, 30 November 2020 (UTC)
- Not currently. phab:T142209 is around as is phab:T41038. --Izno (talk) 19:43, 30 November 2020 (UTC)
- That sounds like a task for an adminbot, if someone is willing to create one. Suffusion of Yellow (talk) 19:53, 30 November 2020 (UTC)
- The phab tasks are pretty clear, this is really a task for a dev - and has been for 8 years! — xaosflux Talk 19:55, 30 November 2020 (UTC)
- I was going to say, an adminbot could do this pretty easily. The log of a changed entry would probably need to indicate that it is intended the protection be restored to previous on expiry (distinct from just expiring to no protection), but otherwise doesn't seem too complicated. Issue with contributing a patch to the core is, well, more effort, more code, more time to write and even more time for reviews. ProcrastinatingReader (talk) 20:14, 30 November 2020 (UTC)
- Oh, this should be a feature of MediaWiki core. But the bot could be a stop-gap, instead of waiting another 8 years. Even a non-admin bot could make requests to WP:RFPP, say a few hours in advance. Suffusion of Yellow (talk) 20:31, 30 November 2020 (UTC)
- The rule-set for an adminbot would need to be very clear; a bot isn't going to read the contextual meaning of an log summary to know if something is being changed for now or for good (e.g. an admin may really WANT the protection to fully expire in the future) -- or we need clear information sent to admins to know what to expect. I think this is a good idea, but mostly think it should be fixed server-side. — xaosflux Talk 20:37, 30 November 2020 (UTC)
- Yeah, it'd need to be signified using a standard format, and it should be opt-in (ie the default is still expiring) I think, to avoid surprise. Maybe starting a log with {{botprot}} or something to opt-in for the bot, or more specifically with something like {{onexpire|semi|indef}}. Would need to fail gracefully for messed up log entries, which imo is feasible. Alternatively, could have it so temporary protections auto revert to their previous one on expiry, so to have an expiry to no protection an admin would have to first remove the protection, then set the temporary one. I don't think this flow is illogical, but with 1,122 admins such a change will likely cause confusion.
- A core patch is, of course, better but realistically probably not happening anytime soon. Maybe worth adding to Community Wishlist, though? ProcrastinatingReader (talk) 20:52, 30 November 2020 (UTC)
- For some reason, it is possible to have both semiprotection and pending changes enabled at the same time, with different expiries. But you can't have both semi and full protection enabled. EdJohnston (talk) 21:13, 30 November 2020 (UTC)
- I think it's because pending changes (which is part of mw:Extension:FlaggedRevs) isn't actually "page protection" technically. Its data is stored in the flaggedpage_config table, which is distinct to page protections stored in page_restrictions). ProcrastinatingReader (talk) 21:28, 30 November 2020 (UTC)
- Yes, protection and PC are different, a page may have both simultaneously and they may have different durations. Semi-protection and full protection are merely different levels of a single scale that presently has five levels, ranging from unprotected through semi, extended-confirmed and template up to full. A page always occupies exactly one level on this scale for editing, one for moving and (if it's a file) one for upload. When an expiry time is reached, that prot drops right back to unprotected, regardless of the page's prot history. --Redrose64 🌹 (talk) 22:35, 30 November 2020 (UTC)
- I like the idea of a bot, but I think a MVP approach might be best. If I could get an alert (either on my talk page, or something that pops up in my notification feed) that the protection was going to expire soon (say, in the next 24 hours), then I could manually extend or reset it. Or, I like the idea of adding an request to WP:RFPP, that would work too. Keeping a human in the loop, and avoiding giving a bot admin rights both reduce the potential for error.
- The RFPP notice could include the link to the phab ticket, so it could accumulate lots of upvotes :-) -- RoySmith (talk) 17:00, 1 December 2020 (UTC)
- The problem with merely informong the protecting admin is that this person may have ceased to be an admin, or else be inactive during these last 24 hours. Either the bot should restore the old protection, or it should leave a note in a place like RFPP for all admins who handle protection. 109.186.211.111 (talk) 20:56, 1 December 2020 (UTC)
- There is, however, the question of who is now 'responsible' for the protection (for the purpose of accountability etc, and, for Arbitration enforcement (DS) protections, is the "enforcing administrator")? The original protecting admin who intended for an indef protection, the bot (if done auto), or the admin who reprotects an expiring protection at the previous indef level? Note this is not a problem with, for example, PC vis-a-vis page protection, since they can run concurrently. Xaosflux any thoughts? ProcrastinatingReader (talk) 13:09, 3 December 2020 (UTC)
- @ProcrastinatingReader: just like any other admin action, whoever actually does the action. "Bots" are not people, they are just alternate accounts of other people - so the admin-cum-botoperator would natively be accountable for the action. Very very very explicit overrides for this could be allowed if the community wants to support it, and if used the bot should identify this on each use - for example by putting in the log entry something like "Restoring indef protection applied by User:Example". Any 'errors' made by the bot though would still belong to the botop. — xaosflux Talk 16:29, 3 December 2020 (UTC)
- @Xaosflux how about the manual case, eg when expiring protections are notified to RFPP? Does the admin who takes the technical action of restoring the old indef protection now become the "enforcing administrator" / one accountable for the protection? Silly question perhaps, but if so wouldn't this have implications on admins willing to technically restore protections? ProcrastinatingReader (talk) 16:35, 3 December 2020 (UTC)
- @ProcrastinatingReader: I don't follow DS processes much, but if I had to guess each admin touching would still be responsible for what they did (including the admin that decided to allow a protection to expire in the future - as noone should ever assume someone else will make a future action). — xaosflux Talk 18:04, 3 December 2020 (UTC)
- @Xaosflux how about the manual case, eg when expiring protections are notified to RFPP? Does the admin who takes the technical action of restoring the old indef protection now become the "enforcing administrator" / one accountable for the protection? Silly question perhaps, but if so wouldn't this have implications on admins willing to technically restore protections? ProcrastinatingReader (talk) 16:35, 3 December 2020 (UTC)
- The problem with merely informong the protecting admin is that this person may have ceased to be an admin, or else be inactive during these last 24 hours. Either the bot should restore the old protection, or it should leave a note in a place like RFPP for all admins who handle protection. 109.186.211.111 (talk) 20:56, 1 December 2020 (UTC)
- Yes, protection and PC are different, a page may have both simultaneously and they may have different durations. Semi-protection and full protection are merely different levels of a single scale that presently has five levels, ranging from unprotected through semi, extended-confirmed and template up to full. A page always occupies exactly one level on this scale for editing, one for moving and (if it's a file) one for upload. When an expiry time is reached, that prot drops right back to unprotected, regardless of the page's prot history. --Redrose64 🌹 (talk) 22:35, 30 November 2020 (UTC)
- I think it's because pending changes (which is part of mw:Extension:FlaggedRevs) isn't actually "page protection" technically. Its data is stored in the flaggedpage_config table, which is distinct to page protections stored in page_restrictions). ProcrastinatingReader (talk) 21:28, 30 November 2020 (UTC)
- For some reason, it is possible to have both semiprotection and pending changes enabled at the same time, with different expiries. But you can't have both semi and full protection enabled. EdJohnston (talk) 21:13, 30 November 2020 (UTC)
- I was going to say, an adminbot could do this pretty easily. The log of a changed entry would probably need to indicate that it is intended the protection be restored to previous on expiry (distinct from just expiring to no protection), but otherwise doesn't seem too complicated. Issue with contributing a patch to the core is, well, more effort, more code, more time to write and even more time for reviews. ProcrastinatingReader (talk) 20:14, 30 November 2020 (UTC)
- The phab tasks are pretty clear, this is really a task for a dev - and has been for 8 years! — xaosflux Talk 19:55, 30 November 2020 (UTC)
- That sounds like a task for an adminbot, if someone is willing to create one. Suffusion of Yellow (talk) 19:53, 30 November 2020 (UTC)
Straw poll
- Should
an adminbota bot monitor changes in page protection, keep track of "stacked" protection, and report cases where previous protection needs to be restored to WP:RFPP? If this gets a lot of support and few opposes, then it can go to a formal proposal. davidwr/(talk)/(contribs) 21:15, 1 December 2020 (UTC) Updated to replace "an adminbot" with "a bot" davidwr/(talk)/(contribs) 22:15, 1 December 2020 (UTC)- FWIW, it doesn't need to be an adminbot just to report cases to RFPP, only if it wants to restore protections itself. I have a little concern with just reporting to RFPP: that board is backlogged not too infrequently. Between this proposal, and the one on AN, I'm not sure the extra workload to RFPP will be coped with. I mean, just look at WP:RFPP right now... ProcrastinatingReader (talk) 21:29, 1 December 2020 (UTC)
- I've struck the requirement for an adminbot. Thanks. davidwr/(talk)/(contribs) 22:15, 1 December 2020 (UTC)
- Then I'm not sure this needs a proposal. Any bot could maintain a log in its userspace (without approval) which is transcluded into RFPP. This only really needs a discussion if we're automating it. ProcrastinatingReader (talk) 09:42, 2 December 2020 (UTC)
- Bots that operate only in user-space don't need approval? I did not know that. davidwr/(talk)/(contribs) 13:46, 2 December 2020 (UTC)
- Well, for completeness, their own userspace. See WP:BOTUSERSPACE. ProcrastinatingReader (talk) 14:22, 2 December 2020 (UTC)
- Bots that operate only in user-space don't need approval? I did not know that. davidwr/(talk)/(contribs) 13:46, 2 December 2020 (UTC)
- Then I'm not sure this needs a proposal. Any bot could maintain a log in its userspace (without approval) which is transcluded into RFPP. This only really needs a discussion if we're automating it. ProcrastinatingReader (talk) 09:42, 2 December 2020 (UTC)
- I've struck the requirement for an adminbot. Thanks. davidwr/(talk)/(contribs) 22:15, 1 December 2020 (UTC)
- FWIW, it doesn't need to be an adminbot just to report cases to RFPP, only if it wants to restore protections itself. I have a little concern with just reporting to RFPP: that board is backlogged not too infrequently. Between this proposal, and the one on AN, I'm not sure the extra workload to RFPP will be coped with. I mean, just look at WP:RFPP right now... ProcrastinatingReader (talk) 21:29, 1 December 2020 (UTC)
- Support. The way you've got it worded wanders a bit too much into implementation details, but basically yes to the gist of it, which is an automated process for notifying RFPP. -- RoySmith (talk) 21:28, 1 December 2020 (UTC)
- How many of these per week are we talking about? If it is a few, RFPP is fine. If it is a lot, perhaps a sub page off of RFPP? --Guy Macon (talk) 22:25, 1 December 2020 (UTC)
- That question suggests an alternative solution which would not require a bot. RfPP could transclude a subpage of RfPP named for the current date (so a different subpage gets transcluded each day, like RfD etc.) Then an admin could apply a temporary protection indefinitely, also adding an entry to the RfPP subpage named for the appropriate future date requesting that the previous protection be restored on that date. Certes (talk) 22:39, 1 December 2020 (UTC)
- Support as someone who patrols RFPP this would be very useful. From my experience, it's not a high rate so it wouldn't flood RFPP, but it's frequent enough that it is a problem worth fixing. — Wug·a·po·des 23:11, 1 December 2020 (UTC)
- Note if there is a bot, there'll be even less motivation for developers to resolve the trouble ticket. Of course, after waiting for eight years, arguably a fix is never coming. isaacl (talk) 05:03, 2 December 2020 (UTC)
- True, but I don't see this as "a bad thing" if it frees up valuable developer time to work on things that can't be solved by bots. davidwr/(talk)/(contribs) 13:46, 2 December 2020 (UTC)
- A developer solution would provide the capability in a way that didn't require further administrator action for each case, and the resources required to keep the bot running and updated. However it is true enough that this still might be preferable than lowering the priority of other developer tasks. isaacl (talk) 14:18, 2 December 2020 (UTC)
- True, but I don't see this as "a bad thing" if it frees up valuable developer time to work on things that can't be solved by bots. davidwr/(talk)/(contribs) 13:46, 2 December 2020 (UTC)
- No concerns if a bot wants to maintain a report page, suggest it doesn't flood RfPP directly, and use a transcluded page like AIV does. — xaosflux Talk 15:17, 2 December 2020 (UTC)
Template:Tooltip, Template:Hover_title, and Template:Abbr
Please see: Wikipedia:Templates for discussion/Log/2020 December 3#Template:Hover title and Template:Tooltip
Summary:
{{Abbr}}(a wrapper for<abbr>...</abbr>) has long been abused for non-abbreviation markup (against the HTML specs).- We had a template,
{{Tooltip}}, with<span>...</span>for non-abbreviation use, but it was "merged" (not really) and redirected to{{Abbr}}. - The redir was then deprecated (for the reason mentioned above), but the community ignored the deprecation.
- In the interim,
{{Hover title}}was created to do the same thing, but with backwards parameters (and some additional features). - Both the
{{Tooltip}}then-redirect and{{Hover title}}template have been transcluded in tens of thousands of articles, mainly via infoboxes and other templates. - I created a new
{{Tooltip}}template, with all the features of{{Hover title}}but preserving the{{Abbr}}parameter order (to not break deployed translcusions). - The TfM linked above would merge away
{{Hover title}}, but it's going to require flipping the|1=and|2=parameters of its extant instances. - Oh, and the documentation would need updating after merger, of course.
— SMcCandlish ☏ ¢ 😼 23:55, 3 December 2020 (UTC)
Technical question about templates (theoretical)
Suppose following template "mycooltemplate"
<includeonly>{{#invoke:crucialwork|main|param=3}}</includeonly><noinclude>
== About ==
This tempalte is extremely useful.
[[Category:Templates]]
</noinclude>
used on many pages. I change at some time "param=3" to "param=4". This will presumably cause a large amount of work for the server having to rebrew all pages using my template. One month later I notice the typo and change "tempalte" to "template" in the built-in documentation. The question: Will this edit cause extra work for the server, or is it smart enough to notice that there is no need in this case? Taylor 49 (talk) 08:50, 29 November 2020 (UTC)
- @Taylor 49: It appears to be somewhat stupid. You can test it yourself: User:Alexis Reggae/sandbox1 plus User:Alexis Reggae/sandbox2. After this edit sandbox2 was reparsed 5 seconds later. — Alexis Jazz (talk or ping me) 13:42, 29 November 2020 (UTC)
- (original message was split by Taylor 49) Not that you should really worry about this. The developers generally say not to worry about performance/storage. On a more practical note, if you use a separate documentation page (User:Alexis Reggae/sandbox1/doc) an update to the documentation appears to reparse the template page (sandbox1), but not the page that uses said template. (sandbox2) — Alexis Jazz (talk or ping me) 13:42, 29 November 2020 (UTC)
- To answer the question directly, yes, any change to a template page will cause the using pages to be updated. This is part of the reason why widely-used templates have a high level of page protection, and why most templates have a separate documentation page which is transcluded onto the template page. --Izno (talk) 16:22, 29 November 2020 (UTC)
- @Alexis Reggae: The above template is maybe stupid. It is the simplest case to expose the problem. The question is not stupid. I cannot test editing a template used on a huge number of pages (crucial detail in the question) and recheck whether they are getting updated earlier just due to my edit. Taylor 49 (talk) 04:21, 30 November 2020 (UTC)
- Thanks. Thus the WikiMedia software could be "smart" (remove the "noinclude" part, compare, if identical then do NOT rebrew all pages using the template) but currently isn't. Taylor 49 (talk) 04:21, 30 November 2020 (UTC)
- @Taylor 49: You were asking if the edit would "cause extra work for the server, or is it smart enough" and my answer was that the server is "somewhat stupid". I didn't comment on how clever the question was. There is no difference (that I know of) between a template that is used on one page (like User:Alexis Reggae/sandbox1 which despite being in user space is included like a template on User:Alexis Reggae/sandbox2) or on a huge number of pages. Either the page(s) that use the template get reparsed, or they don't. There may be some optimization in planning when and in what order pages get reparsed, not sure about that, but the end result is the same. — Alexis Jazz (talk or ping me) 09:32, 30 November 2020 (UTC)
- @Taylor 49: See also WP:SLOW. For "noinclude" this may indeed be possible, but as documentation is often transcluded the actual gain may not be as much as you think. @Izno: True, though the reason for protection in those cases is, I think, not so much server performance but mostly that updating all pages takes time. (in addition to the visibility of widely-used templates) If a widely-used template gets vandalized, it's less than ideal if it takes half an hour for all the vandalism to actually disappear after rollback because reparsing isn't instant. — Alexis Jazz (talk or ping me) 09:32, 30 November 2020 (UTC)
- Thanks and sorry that I misunderstood about "who" was convicted as stupid, it is the server or actually WikiMedia software. There used to be many arguments for outsourcing template docs to a subpage, but most of them have gone with the advent of LUA and wikidata. This seems to be the last one that is left. Thanks for testing but I suspect that there could be a difference between one use and many uses of a template, and pages with {{#time could be privileged, especially if viewed frequently. Taylor 49 (talk) 12:43, 30 November 2020 (UTC)
- @Taylor 49: I think template docs should be transcluded to prevent accidentally breaking a template while making a change to the documentation and to allow users without special privileges to update documentation of protected templates. How do LUA and Wikidata resolve these issues? — Alexis Jazz (talk or ping me) 13:45, 30 November 2020 (UTC)
- @Alexis Reggae: 1. Most formerly complex templates nowadays consist of nothing beyond a single call to a module. 2. Interwiki bots adding and removing interwiki links all the time have died out. Taylor 49 (talk) 19:41, 30 November 2020 (UTC)
- @Taylor 49: 1. Not true, not even remotely. 2. How does that help users without special privileges to contribute to template documentation of protected templates? — Alexis Jazz (talk or ping me) 20:28, 30 November 2020 (UTC)
- @Alexis Reggae: 1. Not all but many. A problem that I have observed on some wikies is that users add parameters to the docs subpage falsely hoping to add them to the template itself that way. 2. Not at all of course. At least, if same or equivalent template is added to some other wiki then I can link it via wikidata, without editing the (protected) template itself nor the docs subpage. Taylor 49 (talk) 11:01, 4 December 2020 (UTC)
- @Taylor 49: 1. Not true, not even remotely. 2. How does that help users without special privileges to contribute to template documentation of protected templates? — Alexis Jazz (talk or ping me) 20:28, 30 November 2020 (UTC)
- @Alexis Reggae: 1. Most formerly complex templates nowadays consist of nothing beyond a single call to a module. 2. Interwiki bots adding and removing interwiki links all the time have died out. Taylor 49 (talk) 19:41, 30 November 2020 (UTC)
- @Taylor 49: I think template docs should be transcluded to prevent accidentally breaking a template while making a change to the documentation and to allow users without special privileges to update documentation of protected templates. How do LUA and Wikidata resolve these issues? — Alexis Jazz (talk or ping me) 13:45, 30 November 2020 (UTC)
- Thanks and sorry that I misunderstood about "who" was convicted as stupid, it is the server or actually WikiMedia software. There used to be many arguments for outsourcing template docs to a subpage, but most of them have gone with the advent of LUA and wikidata. This seems to be the last one that is left. Thanks for testing but I suspect that there could be a difference between one use and many uses of a template, and pages with {{#time could be privileged, especially if viewed frequently. Taylor 49 (talk) 12:43, 30 November 2020 (UTC)
Testing a technical function
{{Cross-wiki user}} I am testing out a new template, at right, but unfortunately the documentation on how the {{REVISIONUSER}} magic word works with template transclusions is a bit lacking, so I need to do an experiment. Could the first person to see this please edit this page with any comment, I would greatly appreciate it. VanIsaacWScont 16:48, 3 December 2020 (UTC)
- Yes. * Pppery * it has begun... 16:50, 3 December 2020 (UTC)
Talkpage technical error at Talk:Cultural Marxism conspiracy theory
Can someone please have a look at this? I was having a talkpage technical error at Talk:Cultural Marxism conspiracy theory? Relevant version. I have fixed the issue in the current version, but I think it will mess-up the archives when we get to that time. (please
mention me on reply; thanks!) --Emir of Wikipedia (talk) 21:08, 2 November 2020 (UTC)
- If someone could help that would be appreciated. Emir of Wikipedia (talk) 18:33, 3 November 2020 (UTC)
Bumping thread. Emir of Wikipedia (talk) 17:20, 4 November 2020 (UTC) (please
mention me on reply; thanks!)
- @Emir of Wikipedia: I'm not sure I'm seeing what you're looking at or what you might have done to fix it, but it looks like there's a quote box with an unclosed ref tag in it. Look for
<ref name="braune2">. I think this code would produce a "ref invoked but not defined" error on the talk page, but I'm not sure if that error would render inside the quote box, or if it would just mess things up unpredictably. You need to close the tag, otherwise Wikipedia thinks everything after it is part of the reference. You can add a / to the end of the tag (<ref name="braune2" />), but then you also need to define the reference and add a {{reflist-talk}} somewhere in the section. It might be better to pull the URL of the reference from the article and replace the ref tag with an external link on the talk page instead. Ivanvector (Talk/Edits) 17:36, 4 November 2020 (UTC)- Ivanvector. Thanks. I just used an external link, and it looks like that has fixed it. --Emir of Wikipedia (talk) 19:50, 4 November 2020 (UTC)
- This is the edit. Emir of Wikipedia, on a side note, please don't manually archive VPT threads (or in general, threads on any page which uses bot archiving), you used an out-of-sequence archive number with the upshot that when Lowercase sigmabot III (talk · contribs) next visited this page, it moved threads to a different archive. If a thread is resolved, just use
{{resolved}}. --Redrose64 🌹 (talk) 08:18, 6 November 2020 (UTC)
- This is the edit. Emir of Wikipedia, on a side note, please don't manually archive VPT threads (or in general, threads on any page which uses bot archiving), you used an out-of-sequence archive number with the upshot that when Lowercase sigmabot III (talk · contribs) next visited this page, it moved threads to a different archive. If a thread is resolved, just use
- Ivanvector. Thanks. I just used an external link, and it looks like that has fixed it. --Emir of Wikipedia (talk) 19:50, 4 November 2020 (UTC)
- @Emir of Wikipedia: I'm not sure I'm seeing what you're looking at or what you might have done to fix it, but it looks like there's a quote box with an unclosed ref tag in it. Look for
For loops for a category
Is there any way to get {{For loop}} to go through every member of a category? E.g. if I have Category:Colors, I'd like the end result to be equivalent to
{{custom code|red}}
{{custom code|blue}}
{{custom code|yellow}}
...
etc. for every page in Category:Colors. {{u|Sdkb}} talk 23:27, 3 December 2020 (UTC)
- This is not possible. * Pppery * it has begun... 23:40, 3 December 2020 (UTC)
That's too bad; it could be quite helpful for some list pages. If anyone else knows how to get that functionality, please lmk. {{u|Sdkb}} talk 00:00, 4 December 2020 (UTC)- Can we get this sort of thing from Wikidata? Graeme Bartlett (talk) 10:44, 4 December 2020 (UTC)
- @Sdkb: What are you actually trying to accomplish - perhaps it can be done without that module? For example something like this:
- ? — xaosflux Talk 18:15, 4 December 2020 (UTC)
- Xaosflux, long-term, the ultimate goal is to reduce the redundancy between lists and categories. For now, I'm looking for a fairly simple list page (perhaps a table where each column could be sourced from Wikidata) to see if it'd be possible to convert it to a for loop that'd just list out the members of the category.
- I'm not sure the category tree could work, since I don't know there's a way to build any code around it (e.g. if I want another column in the table to list the hex code). {{u|Sdkb}} talk 18:31, 4 December 2020 (UTC)
- There isn't, and that's why I said this was impossible.
<categorytree>is represented by an opaque strip marker if it is given to another template like {{for loop}} and only expanded to an actual category tree later. * Pppery * it has begun... 18:37, 4 December 2020 (UTC)- Hmm, so it sounds like the developers might need to change something before this would become possible. Should I file a phab ticket? {{u|Sdkb}} talk 19:56, 4 December 2020 (UTC)
- The root feature is already reported as phab:T199126. Also note that it used to be possible for modules to read the content of strip markers (and thus indirectly a lot of other goodies like this), until that was deliberately disabled due to phab:T63268 and phab:T88964 * Pppery * it has begun... 20:02, 4 December 2020 (UTC)
- Hmm, so it sounds like the developers might need to change something before this would become possible. Should I file a phab ticket? {{u|Sdkb}} talk 19:56, 4 December 2020 (UTC)
- There isn't, and that's why I said this was impossible.
- ? — xaosflux Talk 18:15, 4 December 2020 (UTC)
RegEx to find misplaced citation templates
Is there an easy and non-server-annoying insource: search that would find {{cite web}} specifically if it's present on the page after the ==External links== section heading? WhatamIdoing (talk) 02:36, 4 December 2020 (UTC)
- This search should get you started. Change the prefix letter once all of the "A" articles are done. There are probably other patterns to search for, but this seems to find plenty of hits to keep people busy. – Jonesey95 (talk) 03:03, 4 December 2020 (UTC)
- There should be plenty of cite web in external links, but there should not be ref tags. Graeme Bartlett (talk) 10:36, 4 December 2020 (UTC)
- This search (for prefix A) should find stray ref tags. Report 111 from WPCHECK also looks relevant; I'm not sure why it's empty, as I would have expected it to flag Alanine etc. Certes (talk) 13:29, 4 December 2020 (UTC)
- WPCheck is using an dump from 1.1.2017, but it uses daily updates which where broken (due to replication failure) when the link was added in November 2017.--Snaevar (talk) 15:15, 4 December 2020 (UTC)
- I'm pretty sure that the OP is looking for a way to implement this RFC prohibiting cite templates in external links. Ref tags are a different thing. – Jonesey95 (talk) 15:30, 4 December 2020 (UTC)
- Yes, plus I should be able to modify your search string to find problems created by User:InternetArchiveBot, which has been replacing ==External links== with links to the Internet Archive (including some that are still working – he's working on it). WhatamIdoing (talk) 19:24, 5 December 2020 (UTC)
- I'm pretty sure that the OP is looking for a way to implement this RFC prohibiting cite templates in external links. Ref tags are a different thing. – Jonesey95 (talk) 15:30, 4 December 2020 (UTC)
- WPCheck is using an dump from 1.1.2017, but it uses daily updates which where broken (due to replication failure) when the link was added in November 2017.--Snaevar (talk) 15:15, 4 December 2020 (UTC)
- This search (for prefix A) should find stray ref tags. Report 111 from WPCHECK also looks relevant; I'm not sure why it's empty, as I would have expected it to flag Alanine etc. Certes (talk) 13:29, 4 December 2020 (UTC)
- There should be plenty of cite web in external links, but there should not be ref tags. Graeme Bartlett (talk) 10:36, 4 December 2020 (UTC)
how to wrap lines?
Hello. This page contains lines of text that extend beyond the right edge of the page border. How to fix the wikicode? Thanks. -- M2545 (talk) 09:53, 6 December 2020 (UTC)
- It's being caused by the table at the top. Removing it will fix your issue, if you don't need it. ProcrastinatingReader (talk) 10:13, 6 December 2020 (UTC)
Template:Non-free use rationale and Template:Non-free use rationale 2
Both are widely used (the first on 438,734 pages, the second on 166,632 pages) but the former causes files to be categorized in Category:Files with no machine-readable author.
Maybe we should just transition to {{Non-free use rationale 2}}? I see no immediate issues when replacing {{Non-free use rationale poster}} with {{Non-free use rationale poster/sandbox}} for example, but more eyes are needed to spot possible problems. There are several other templates that use {{Non-free use rationale}} though, like {{Non-free use rationale album cover}} and {{Non-free use rationale logo}}. JJMC89 made a recent-ish contribution to {{Non-free use rationale 2}} and Jeff G. asked about the issue back in 2017. — Alexis Jazz (talk or ping me) 18:25, 5 December 2020 (UTC)
- Support, but Alexis Jazz how are you going to populate the missing fields? — Jeff G. ツ 18:31, 5 December 2020 (UTC)
- @Jeff G.: Where no author has been entered, the field won't be populated. (in some cases the copyright owner could be copied/moved to author, but this should be evaluated before doing so) But at least it would be possible to enter an author. — Alexis Jazz (talk or ping me) 10:40, 6 December 2020 (UTC)
- Thing is that NFC does not ask users to identify the author/copyright owner, only the source, though things like the Upload Helper, etc. will guide users to use rationale 2 to include this information. So I'm not sure if that category is as necessary compared to the equivalent for license or source which are required elements. (Same with the description category, that's not a required field from an NFCC standpoint) --Masem (t) 18:34, 5 December 2020 (UTC)
- Question: What populates things into Category:Files with no machine-readable author? Doesn't seem to be either of those templates, unless I'm blind. Is it the interface? If so, under what criteria? ProcrastinatingReader (talk) 18:57, 5 December 2020 (UTC)
- Ah. I guess this answers my question. Populated depending on the HTML structure, I'm guessing. @Future Perfect at Sunrise: any reason these can't be wrapperised? ProcrastinatingReader (talk) 19:08, 5 December 2020 (UTC)
- @ProcrastinatingReader: It's magic, an empty file page will appear in Category:Files with no machine-readable license, Category:Files with no machine-readable description, Category:Files with no machine-readable author and Category:Files with no machine-readable source. — Alexis Jazz (talk or ping me) 10:40, 6 December 2020 (UTC)
- Ah. I guess this answers my question. Populated depending on the HTML structure, I'm guessing. @Future Perfect at Sunrise: any reason these can't be wrapperised? ProcrastinatingReader (talk) 19:08, 5 December 2020 (UTC)
Template:Chem help
I have three problems with getting {{Chem}} to work properly at Fumarole mineral. Firstly, the formula for rhabdoborite (Mg12V,Mo,W4/3O6[(BO3)6–x(PO4)xF2–x]) isn't displaying properly. Second, how do I make the formula for lesyukite recognize the dot of Water of crystallization and third, how is the beta modification indicate in the formula for parageorgbokiite? Jo-Jo Eumerus (talk) 15:03, 6 December 2020 (UTC)
Fixed the first problem. The formula for rhabdoborite was so complicated it exceeded the maxmimumum number of parameters {{chem}} can support. * Pppery * it has begun... 15:27, 6 December 2020 (UTC)
Help with template
{{DisestcatUSstate2ndMillennium}} (and similar templates) needs to be adjusted. See how Category:2nd-millennium disestablishments in Washington, D.C. miscategorizes after category rename.
A number of categories in Wikipedia:Categories for discussion/Log/2020 November 23#Various categories related to Washington, D.C. have been renamed, adding the closing comma per MOS:COMMA. This causes problems for categories that transclude the above template. They are now categorized to the old non-existing category. Simply adding a comma to {{DisestcatUSstate2ndMillennium|Washington, D.C.}} would help, but causes another mis-categorization.
I can see two solutions: either the template by itself strips any trailing comma, or some parameter is added.
Other ideas are welcome, as is implementation; the template is protected.
HandsomeFella (talk) 12:29, 6 December 2020 (UTC)
- {{DisestcatUSstate2ndMillennium}} is not protected; you could add {{{comma|}}} to it in the place where a comma is needed and add
|comma=,to the category. Certes (talk) 12:48, 6 December 2020 (UTC)- I think I have taken care of all of these categorization problems. There were multiple template edits required. Drop a note on my talk page if you need further help. – Jonesey95 (talk) 15:27, 6 December 2020 (UTC)
- Thank you very much. HandsomeFella (talk) 19:51, 6 December 2020 (UTC)
- I think I have taken care of all of these categorization problems. There were multiple template edits required. Drop a note on my talk page if you need further help. – Jonesey95 (talk) 15:27, 6 December 2020 (UTC)
A new tool for dealing with edit warring?
At Wikipedia:Administrators' noticeboard#User Koavf block review there was some discussion about using a user's common.css file to hide the revert buttons on diffs and page histories.
I am asking about the technical feasibility. We need to establish that we can do it before discussing whether we should do it.
Of course the editor could bypass this by removing the CSS or by using cut and past to accomplish the revert, but it would make edit warring harder to do. Some CSS that was proposed:
.mw-diff-undo, .mw-history-undo, #tw-revert, [id^="tw-revert-to-"] { display: none; }
You can test this in your own common.css file,
This could be a useful tool in an administrator's toolbox: allowing someone who is edit warring to resume editing but making it harder for them to edit war again.
First question: will this work? Is there some better choice of CSS that would be better?
Second question: would this work on an IP?
An alternative would be to ask the W?F to add a tool that makes all of the undo buttons go away. --Guy Macon (talk) 00:34, 5 December 2020 (UTC)
- It works but you can literally inspect element and show it again. Can use JS to delete the elements entirely but still, bypassable. Those solutions only work for good-faith editors who just suffer from poor impulse control. We could always make some kind of "Revert probation" enforced by edit filters/flagged up by bots (kinda like this), but I mean, I'm not sure it's widespread enough an issue? ProcrastinatingReader (talk) 00:42, 5 December 2020 (UTC)
- Well, for starters, only int-admins can edit other user's css, not sysops, and it would then have to be protected to prevent them from editing it. Second, as PR notes above, any editor (using a browser capable of inspecting elements, so not, e.g. mobile safari) can reenable the buttons, or even later modify that css via javascript. It also won't prevent any API access. I think it's just an inappropriate use of the intadmin and sysop toolset. ~ Amory (u • t • c) 00:55, 5 December 2020 (UTC)
- I'm going to go one step further and suggest that using ad-hoc technical workarounds to bypass a persistent behavioral issue is counterproductive. This user needs to learn how to control themselves. Having the community remove a couple of buttons is exactly the opposite of that. If they feel the need to remove the buttons themselves, they can access their .css at any time. The fact that they haven't chosen to do so themselves already is part of the problem. I would have no issue with posting this code at the edit warring board for editors to stop themselves. But it should be a tool so that editors can demonstrate their own change in behavior, not a half-measure to use instead of the block that is really called for. VanIsaacWScont 01:34, 5 December 2020 (UTC)
- I am not sure exactly what part of "I am asking about the technical feasibility. We need to establish that we can do it before discussing whether we should do it." is so hard to understand, so let's assume that I am only talking about offering the css for anyone to use if they wish to remind themselves not to revert. Now can we discuss whether or not this would actually work?? --Guy Macon (talk) 01:56, 5 December 2020 (UTC)
- We can make it very annoying to revert a change; CSS is one way to do that; it won't work on IPs; and blocking is the only thing that'll actually prevent reverts. Enterprisey (talk!) 03:26, 5 December 2020 (UTC)
- (edit conflict) I agree with Amorymeltzer that this isn't really the sort of business we should be dealing with as int-admins for a behavioral issue. Also, regarding the use of filters suggested by ProcrastinatingReader having to maintain a filter with named users as an argument is a recipe for disaster. Now as far as the good-faith/help someone on 0RR not trip themselves as easily go - if someone wants to make an opt-in userscript or the like that editors could opt-in to, sure go for it. Keep in mind, that if they having competing scripts/gadgets with similar functionality (e.g. Twinkle) or use tools like Huggle - they would need to stop using those for the most part too. As far as the technical aspects go, there are all the caveats/conflicts I just mentioned, also scripts can not be applied to specific or subsets of logged out users. — xaosflux Talk 02:01, 5 December 2020 (UTC)
- I was never very good at cooking. ProcrastinatingReader (talk) 09:32, 5 December 2020 (UTC)
- I am not sure exactly what part of "I am asking about the technical feasibility. We need to establish that we can do it before discussing whether we should do it." is so hard to understand, so let's assume that I am only talking about offering the css for anyone to use if they wish to remind themselves not to revert. Now can we discuss whether or not this would actually work?? --Guy Macon (talk) 01:56, 5 December 2020 (UTC)
- I'm going to go one step further and suggest that using ad-hoc technical workarounds to bypass a persistent behavioral issue is counterproductive. This user needs to learn how to control themselves. Having the community remove a couple of buttons is exactly the opposite of that. If they feel the need to remove the buttons themselves, they can access their .css at any time. The fact that they haven't chosen to do so themselves already is part of the problem. I would have no issue with posting this code at the edit warring board for editors to stop themselves. But it should be a tool so that editors can demonstrate their own change in behavior, not a half-measure to use instead of the block that is really called for. VanIsaacWScont 01:34, 5 December 2020 (UTC)
- I'd suggest maybe allowing the partial blocking of the "undo" and "rollback" functions. That way, if a user wants to revert, they will have to do so manually, but we could potentially block editing old revisions as well. Aasim (talk) 08:23, 5 December 2020 (UTC)
- @Awesome Aasim: actual "rollback" is only available by group membership, so removing that is already possible. — xaosflux Talk 13:06, 5 December 2020 (UTC)
- To answer the question without the waxing on whether we should, yes, this method would help to enforce a ban on reverting. There are several caveats, most mentioned above:
- The CSS file would need to be protected in addition to its innate protection.
- This method require an interface administrator to make the modification to the user CSS file.
- In addition to the implementation of the removal, these are the caveats that remain that a user can work around them:
- The user may use a standard web browser development tool to remove the CSS.
- The user may use either device JavaScript, device CSS, or Wikipedia-site user JavaScript to remove the CSS.
- This method does not prevent a manual reversion.
- This method does not prevent API access either with a custom tool or something like Huggle.
- As above, this method cannot be used to stop unregistered editors from employing undo.
- You can decide if that makes this tool a reasonable one.
- --Izno (talk) 14:33, 5 December 2020 (UTC)
- Thanks! It looks like the answer to my "We need to establish that we can do it before discussing whether we should do it" question is that we can't do any of it (an interface administrator can), if we were able to do it it would not help with IP edits (the obvious thing to try if you find that can't revert is to log off), and it would work poorly in all other situations. Thus I conclude that there is zero point in discussing whether we should do it and that all the words written above on whether we should do it before establishing that we can do it were a waste of everyone's time. --Guy Macon (talk) 17:08, 5 December 2020 (UTC)
- And here we get to the point of my above contribution, which was that this sort of thing should be available for editors to use for themselves. Guy's conclusion above is based on framing the technical question on the basis of a policy assumption. But ignoring that policy assumption which hasn't panned out, we still have a valid technical question: does the code actually work at removing undo functionality, even if it can't be imposed on a user? VanIsaacWScont 17:36, 5 December 2020 (UTC)
- I almost forgot the most important follow-up: If this were put in a CSS package for people to transclude, is there any other code which should be added to remove undo/revert functionality from other tools? VanIsaacWScont 17:40, 5 December 2020 (UTC)
does the code actually work at removing undo functionality
I thought that was abundantly clear. There is no reason one could not make a small script as some page e.g. a subpage of WP:User scripts. Yes, there are probably other rules you could add, but those being the most common for users without rollback off the hand, I doubt anyone is going to go hunting and pecking for others. --Izno (talk) 19:38, 5 December 2020 (UTC)- @Izno: as far as the literal technical functionality, no this code doesn't remove the actual capability of an editor to actually use the undo parameter (which is really just a reversion with a automatic edit summary) - it merely asks their web browser to not display the link to the built in button. They could still technically pass the
undoafterandundoparameters to a request and perform it. @Vanisaac: Undo isn't a permission and an anicient request to make it one was declined all the way back to at least 2008 in phab:T16616 and anything you do with CSS to "remove it" is just a cosmetic hack. — xaosflux Talk 20:37, 5 December 2020 (UTC)- Well at least from my perspective, the cosmetic is what we'd be looking for. Anyone who isn't blocked from editing a page can technically revert an edit after all. I am thinking in terms of a tool for say users under a 0RR/1RR to get rid of the temptation. So the question remains: is the equivalent of an undo/rollback button found in any other tools, and is there code that could disable it from showing up? VanIsaacWScont 22:45, 5 December 2020 (UTC)
- @Vanisaac: for self-censoring, trying to track down all non-built in tools is going to be tough (you could start with those in Category:Wikipedia counter-vandalism tools). Hiding "undo" (provided by the interface) and not giving someone rollback group will take care of most native things - someone self-censoring themselves should not load any antivandalism tools or utilities, and should just stay away from vandalism clean up all together as it almost always involves reverting. This means tools like Twinkle/Redwarn/LAVT/etc. -- instead of trying to hunt down and cripple all such tools, such editors should be told to just not install or use any of them. — xaosflux Talk 00:26, 6 December 2020 (UTC)
- Well at least from my perspective, the cosmetic is what we'd be looking for. Anyone who isn't blocked from editing a page can technically revert an edit after all. I am thinking in terms of a tool for say users under a 0RR/1RR to get rid of the temptation. So the question remains: is the equivalent of an undo/rollback button found in any other tools, and is there code that could disable it from showing up? VanIsaacWScont 22:45, 5 December 2020 (UTC)
- @Izno: as far as the literal technical functionality, no this code doesn't remove the actual capability of an editor to actually use the undo parameter (which is really just a reversion with a automatic edit summary) - it merely asks their web browser to not display the link to the built in button. They could still technically pass the
- Thanks! It looks like the answer to my "We need to establish that we can do it before discussing whether we should do it" question is that we can't do any of it (an interface administrator can), if we were able to do it it would not help with IP edits (the obvious thing to try if you find that can't revert is to log off), and it would work poorly in all other situations. Thus I conclude that there is zero point in discussing whether we should do it and that all the words written above on whether we should do it before establishing that we can do it were a waste of everyone's time. --Guy Macon (talk) 17:08, 5 December 2020 (UTC)
- One of the issues I've noticed after having this for a day or so is that it also gets in the way of self-reverting, which is an annoyance. Levivich harass/hound 06:32, 6 December 2020 (UTC)
- I didn't think the Levivich suffered from undo-itis ;). I think this can probably be solved by using a smarter JavaScript solution for this (rather than just CSS) - and deleting the undo elements entirely also makes them harder to restore. Responding to comments above, sure this probably doesn't make sense as something forced to enforce 0RR/1RR, but as an aid I think it's pretty helpful to remove the temptation of the button. "Annoyance" means it's doing its job, heh. By the way, I'm not sure the "they can just log out" concerns above are problems, it would be pretty blatant. ProcrastinatingReader (talk) 10:16, 6 December 2020 (UTC)
- @ProcrastinatingReader: Levivich suffers from curiosity :-) I'm sure you're right about JS; the CSS is a hack. But while we're on the subject, does
.mw-diff-undo, .mw-history-undo, [id^="tw-revert"] { display: none; }works just as well as.mw-diff-undo, .mw-history-undo, #tw-revert, [id^="tw-revert-to-"] { display: none; }, without the #tw-revert part? - I would think it's a bit nuts to consider doing anything like this as a sanction imposed by others. But as a self-imposed "sanction", I think it could be useful to some. It's already stopped me from making one revert I otherwise would have made, simply because it wasn't "important enough" to trouble myself with a manual revert. (Someone else made the revert anyway later.) I'm not sure if that's for the better or worse in that particular case, but for some people I could see this helping slow themselves down.
- The self-revert thing is a problem, though. I made a mistaken edit and went to self-revert and there was no undo button. Manually self-reverting would have been tricky and might have caused me to introduce even more mistakes. Luckily I still have the restore script installed so I used that. But if this code were used as a self-imposed sanction, it wouldn't be very helpful if it also removed the ability to self-revert. I don't know if JS can come up with a solution where it only hides the undo button for other people's edits. (Is that even possible?) It's probably not worth the time to figure out. Levivich harass/hound 18:05, 6 December 2020 (UTC)
- Yeah, that should work the same. JS could do this since there's a couple easy ways to identify if self-reverting. One way: on top of the CSS, using
$('a[href^="/wiki/User:Levivich"]').closest('td, li').find(".mw-history-undo, .mw-diff-undo").show();should do it. Works when ran in the browser's JavaScript console, so should probably work in common.js too. ProcrastinatingReader (talk) 18:20, 6 December 2020 (UTC)
- Yeah, that should work the same. JS could do this since there's a couple easy ways to identify if self-reverting. One way: on top of the CSS, using
- @ProcrastinatingReader: Levivich suffers from curiosity :-) I'm sure you're right about JS; the CSS is a hack. But while we're on the subject, does
- I didn't think the Levivich suffered from undo-itis ;). I think this can probably be solved by using a smarter JavaScript solution for this (rather than just CSS) - and deleting the undo elements entirely also makes them harder to restore. Responding to comments above, sure this probably doesn't make sense as something forced to enforce 0RR/1RR, but as an aid I think it's pretty helpful to remove the temptation of the button. "Annoyance" means it's doing its job, heh. By the way, I'm not sure the "they can just log out" concerns above are problems, it would be pretty blatant. ProcrastinatingReader (talk) 10:16, 6 December 2020 (UTC)
Contradicting message
If you log out and, for example, go to the page Wikipedia:Index.php (or any other subject page matching the title blacklist,) it will say that the page is template-protected from creation so that only template editors can create it. However, an attempt to load Special:EditPage/Wikipedia:Index.php as an IP address, will say that creation of the page is currently restricted to administrators because the title matches an entry on the local or global blacklists. So, are blacklisted titles editable by template editors, or by admins only? This message is confusing to readers and needs fixing. --Rqkp (talk) 01:30, 7 December 2020 (UTC)
- Template editors have the technical ability to create pages with titles on the title blacklist. They are supposed to use this ability only to edit editnotices, as I learned the hard way. * Pppery * it has begun... 01:33, 7 December 2020 (UTC)
(Nominate) Remove page buttons gone for non admins
Nowhere in the menus can the user find how to (nominate/) remove a page.
Sure, there are Move, Tools, etc.
E.g., on https://en.wikipedia.org/w/index.php?title=Illeis_koebelei&redirect=no .
Anyway, it should be somewhere in the menus, not just for administrators!
Yes, a simple search in help will find the answer. I'm talking about a lack of button.
Ordering of Category:Births by year
Hi, I've noticed that the category is ordered from 1 BC to 1000 BC and then from 1 AD to the current year. I think it would be more fitting for years to be ordered always from oldest to newest but I wanted to ask for opinions before making a change to Template:BirthyrBC. So
- Would it be OK?
- Can I achieve this by replacing
[[Category:Births by year|-{{PAGENAME}}]]
with
[[Category:Births by year|-{{{1}}}{{{2}}}]
Thank you, Rellum (talk) 00:47, 7 December 2020 (UTC)
- I don't think it would change anything. As far as I can tell, the "-" character just acts to sort the BC articles under "-" in the category. It does not appear to be acting as a minus sign. – Jonesey95 (talk) 01:40, 7 December 2020 (UTC)
- Would it act as a minus sign if the whole sort code were a valid number? For example, "-2 BC" comes after "-1 BC" alphanumerically, but would "-2" be sorted before "-1" numerically? If not, does "–2" v. "–1" or any other variant of minus work? Category sorting has changed recently, and the answers may differ from what we knew. Certes (talk) 12:05, 7 December 2020 (UTC)
- I think will work when the job queue gets through the pages. PrimeHunter (talk) 12:17, 7 December 2020 (UTC)
- It worked. I have adapted the custom TOC to the new sort keys. PrimeHunter (talk) 15:58, 7 December 2020 (UTC)
- I think will work when the job queue gets through the pages. PrimeHunter (talk) 12:17, 7 December 2020 (UTC)
- Would it act as a minus sign if the whole sort code were a valid number? For example, "-2 BC" comes after "-1 BC" alphanumerically, but would "-2" be sorted before "-1" numerically? If not, does "–2" v. "–1" or any other variant of minus work? Category sorting has changed recently, and the answers may differ from what we knew. Certes (talk) 12:05, 7 December 2020 (UTC)
Tech News: 2020-50
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
- You can now put pages on your watchlist for a limited period of time. Some wikis already had this function.
Changes later this week
- Information from Wikidata that is used on a wiki page can be shown in recent changes and watchlists on a Wikimedia wiki. To see this you need to turn on showing Wikidata edits in your watchlist in the preferences. Changes to the Wikidata description in the language of a Wikimedia wiki will then be shown in recent changes and watchlists. This will not show edits to languages that are not relevant to your wiki.
The new version of MediaWiki will be on test wikis and MediaWiki.org from 8 December. It will be on non-Wikipedia wikis and some Wikipedias from 9 December. It will be on all wikis from 10 December (calendar).
Future changes
- You can vote on proposals in the Community Wishlist Survey between 8 December and 21 December. The survey decides what the Community Tech team will work on.
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
16:14, 7 December 2020 (UTC)
Halloween references
There is apparently a formatting problem at the Halloween article, the consequence being to display two widely-separated references as being mashed together and to make the intervening 121 refs fail to display, aside form their superscript numbers. I can't spot the flaw causing this; can somebody else have a look? Further details at Talk:Halloween#References. Mutt Lunker (talk) 18:33, 7 December 2020 (UTC)
- unclosed HTML comment. --Redrose64 🌹 (talk) 18:57, 7 December 2020 (UTC)
Resolved
Question about adding wikitext to javascript pages
I created a script that adds a link to my common.js file which I called common.js.js, but I'd like to add a hatnote on my common.js that mentions that it is not the documentation for the script, but it interprets it as JS code. Can I add actual wikitext to the JS page without it thinking that it is JavaScript code? See also: User:JJPMaster/common.js and User:JJPMaster/common.js.js. JJP...MASTER![talk to] JJP... master? 20:29, 7 December 2020 (UTC)
Can't access contributions for myself or other editors - get this error instead
Internal error
[X86uLwpAICAAABM4agwAAAER] 2020-12-07 22:35:27: Fatal exception of type "Error"
Shearonink (talk) 22:38, 7 December 2020 (UTC)
- Special:Contributions seems to be fixed now, but did notice similar errors a while ago. Dl2000 (talk) 22:41, 7 December 2020 (UTC)
- Sorry, my fault, fixed now. See phab:T269634 for some more details DannyS712 (talk) 22:44, 7 December 2020 (UTC)
Read only mode
Just for documentation, I got an error message saying Wikipedia was in read only mode.— Vchimpanzee • talk • contributions • 22:41, 7 December 2020 (UTC)
- And it happened again.— Vchimpanzee • talk • contributions • 22:49, 7 December 2020 (UTC)
- See above. --Izno (talk) 22:52, 7 December 2020 (UTC)
- @Vchimpanzee do you happen to have the specific error message available? DannyS712 (talk) 22:52, 7 December 2020 (UTC)
- If I see it again I'll post it. Is the message below connected?— Vchimpanzee • talk • contributions • 22:59, 7 December 2020 (UTC)
Yes now we can't see the page's history. Larryzhao|Talk|Contribs 22:54, 7 December 2020 (UTC)
Move mobile to end of Footer on Desktop
Not really sure where best place, so when in doubt post on VP.
It would be awesome if the desktop footer was rearranged so that "mobile" was the last item on the footer list, instead of cookie statement.
For certain mobile edits, switching to desktop mode is neccessary and it's nice and simple on the short mobile footer.
Once in desktop, additional links are added and inevitably I click the cookie statement when looking to switch back to mobile mode.
Just seems like it would better to have mobile be the last link and reduce accidental traffic to cookie statement. (Unless of course It's just me, then well carry on)Slywriter (talk) 21:43, 7 December 2020 (UTC)
- @Slywriter: This is in the MediaWiki software, more specifically, the code for the skin. As such, there's nothing that we can do here - you would need to file a change request at phab:. When doing so, you should provide a very strong case for change, since it would not just affect English Wikipedia, or even Wikipedia in other languages - but every single project that uses the MediaWiki software. --Redrose64 🌹 (talk) 22:50, 7 December 2020 (UTC)
Add the following line to your common.js (or the JS for your desktop skin) — $('#footer-places-mobileview').appendTo('#footer-places') — GhostInTheMachine talk to me 10:38, 8 December 2020 (UTC)
- @GhostInTheMachine: Awesome. Worked. Thank you!!! Slywriter (talk) 13:15, 8 December 2020 (UTC)
Notifications are absolutely useless without JavaScript
I get notifications but no indication which of the hundred of wikimedia sites is in question. Please fix it ASAP, thank you. JS is a hazard and was a mistake. --Palosirkka (talk) 18:58, 4 December 2020 (UTC)
- It is 2020. Browsing the internet without JS is likely to be painful. ProcrastinatingReader (talk) 19:05, 4 December 2020 (UTC)
- @ProcrastinatingReader: I keep JS and other scripts off except for web pages that need it to display the content I want to see. It cuts out a lot of advertising and other clutter that I do NOT want to see. More importantly, it saves my computer when I accidently *coughtyposcough* go to a web site that's been hijacked by a script-dependent malware. davidwr/(talk)/(contribs) 20:13, 4 December 2020 (UTC)
- I would tens to judge notifications on Wikipedia to hit none of the problem areas that would cause one to disable JavaScript. While I agree all content should be available without, I similarly think the OP made his bed and now he needs to deal with the consequences. --Izno (talk) 21:20, 4 December 2020 (UTC)
- Agreed; I generally browse the rest of the Internet without JavaScript, but none of the reasons for that choice apply to Wikipedia. Enterprisey (talk!) 02:12, 6 December 2020 (UTC)
- I would tens to judge notifications on Wikipedia to hit none of the problem areas that would cause one to disable JavaScript. While I agree all content should be available without, I similarly think the OP made his bed and now he needs to deal with the consequences. --Izno (talk) 21:20, 4 December 2020 (UTC)
- @ProcrastinatingReader: I keep JS and other scripts off except for web pages that need it to display the content I want to see. It cuts out a lot of advertising and other clutter that I do NOT want to see. More importantly, it saves my computer when I accidently *coughtyposcough* go to a web site that's been hijacked by a script-dependent malware. davidwr/(talk)/(contribs) 20:13, 4 December 2020 (UTC)
- This is bug T135877.--Snaevar (talk) 20:49, 4 December 2020 (UTC)
- Ah, I see, the bug is the lack of a graceful failure combined with showing the editor the notification count in the first place. The bug is also from 2016 which means it probably will never be specifically addressed. What MIGHT happen is that the next time there is a wholesale change to that part of the code, the developers will "solve" the problem one way or the other, possibly by completely hiding the notifications for users who turn scripting or other "technology the web site depends on" off. Oh by the way did I mention that when I view Wikipedia with the classic Line Mode Browser on my VT100 terminal, I don't see any pictures (no, I don't still use a VT100, but someone might)? Oh well, I'll live. On the plus side, I don't have to worry about shock-value content showing up.
davidwr/(talk)/(contribs) 21:29, 4 December 2020 (UTC)
- I believe that telnet.wmflabs.org is still working, if you prefer the old-fashioned approach. WhatamIdoing (talk) 01:27, 6 December 2020 (UTC)
- Unfortunately it was disabled in 2019 (but it wasn't working anyway since 2017). You can still view it by gopher (gopherpedia.com). MarMi wiki (talk) 14:01, 8 December 2020 (UTC)
- I believe that telnet.wmflabs.org is still working, if you prefer the old-fashioned approach. WhatamIdoing (talk) 01:27, 6 December 2020 (UTC)
- Ah, I see, the bug is the lack of a graceful failure combined with showing the editor the notification count in the first place. The bug is also from 2016 which means it probably will never be specifically addressed. What MIGHT happen is that the next time there is a wholesale change to that part of the code, the developers will "solve" the problem one way or the other, possibly by completely hiding the notifications for users who turn scripting or other "technology the web site depends on" off. Oh by the way did I mention that when I view Wikipedia with the classic Line Mode Browser on my VT100 terminal, I don't see any pictures (no, I don't still use a VT100, but someone might)? Oh well, I'll live. On the plus side, I don't have to worry about shock-value content showing up.
- Not to many have it turned off anymore as now basic things use Java even our login button. Would like to ask how they login with no Java?--Moxy 🍁 02:23, 6 December 2020 (UTC)
- Java is a completely different from JavaScript. It's quite possible to log in without JS. Though I personally have JS enabled all the time. – SD0001 (talk) 13:47, 6 December 2020 (UTC)
- Logging in uses a regular HTML form, for which JavaScript is not required. You fill in the fields, click a Log in button, and the form is submitted. It's no different from editing a page. --Redrose64 🌹 (talk) 21:42, 6 December 2020 (UTC)
Viewing stats after move
As I understand, the software doesn't merge viewing figures after an article is moved to a new name. But I'm particularly interested in the 2020 Nagorno-Karabakh war (edit | talk | history | protect | delete | links | watch | logs | views), where 2020 Nagorno-Karabakh conflict (edit | talk | history | protect | delete | links | watch | logs | views) currently shows 2,376,000+ views, while the current name shows 307,000. There seems to be an issue where under the current article name the move log doesn't show anything, only under previous name. Looks like a fix is required so that all move logs would work under the current article names (unless I overlooked something). Brandmeistertalk 13:01, 8 December 2020 (UTC)
- @Brandmeister: Try using the "Include redirects" option . In most all cases, old locations of pages will redirect to the new one, so simply including redirects gives the full picture. You can also use the Redirect Views tool. The issue you point out with the move log is indeed confusing, but expected (a page titled 2020 Nagorno-Karabakh war has never been moved to another title, hence why its move log is empty). — MusikAnimal talk 19:30, 8 December 2020 (UTC)
- Thanks. Yes, this is counter-intuitive and some other articles' logs may be empty for the same reason. Brandmeistertalk 19:50, 8 December 2020 (UTC)
Is there anything in preferences that controls the use of the up/down left/right keys
I can no longer go up and down the screen in Chrome with my up and down keys. I'm probably wrong, but I was fiddling with Preferences recently and thought I saw something relevant and clicked on it, but can't find it again. Thanks. Doug Weller talk 15:18, 6 December 2020 (UTC)
- I don't know about your system, but in general, up/down will only scroll the browser window if that window has the focus. For example, if you click in the search box in the sidebar, pressing up/down will not scroll the main content window on this page. Perhaps there is a clue there. Johnuniq (talk) 22:13, 6 December 2020 (UTC)
- Johnuniq, thanks, but that's not it. Doug Weller talk 12:49, 7 December 2020 (UTC)
- Have you turned the computer off and on? Do any of these work: safemode, meta:, https://phabricator.wikimedia.org/. PrimeHunter (talk) 12:56, 7 December 2020 (UTC)
- PrimeHunter, odd, it works at safe mode until I get to Erin McNaught - it doesn't get stuck at the earlier wikilinks. I think I've rebooted but will do it again, thanks. Doug Weller talk 14:17, 7 December 2020 (UTC)
- Nope, reboot didn't help. Doug Weller talk 11:06, 9 December 2020 (UTC)
- Solved - for some reason I pressed F7 and on Chrome that turns them on an off. Doug Weller talk 11:17, 9 December 2020 (UTC)
- PrimeHunter, odd, it works at safe mode until I get to Erin McNaught - it doesn't get stuck at the earlier wikilinks. I think I've rebooted but will do it again, thanks. Doug Weller talk 14:17, 7 December 2020 (UTC)
- Have you turned the computer off and on? Do any of these work: safemode, meta:, https://phabricator.wikimedia.org/. PrimeHunter (talk) 12:56, 7 December 2020 (UTC)
- Johnuniq, thanks, but that's not it. Doug Weller talk 12:49, 7 December 2020 (UTC)








