Revision as of 18:32, 26 April 2020 view sourceZuluPapa5 (talk | contribs)Extended confirmed users, Pending changes reviewers, Rollbackers6,447 edits →Why does Misplaced Pages keep showing edit conflicts on my own edits?: new section← Previous edit | Latest revision as of 22:13, 11 January 2025 view source Redrose64 (talk | contribs)Autopatrolled, Administrators273,198 edits →Rollback does not count as an "edit": let's test it | ||
Line 1: | Line 1: | ||
{{pp-sock|small=yes}} | |||
<noinclude>{{short description|Page for discussing technical issues about Misplaced Pages}} | |||
<noinclude>{{Short description|Page for discussing Misplaced Pages technical issues}}<!-- | |||
{{pp-move-indef|small=yes}} | |||
--><!-- | |||
{{village pump page header|1=Technical|2=The '''technical''' section of the village pump is used to discuss technical issues ''about'' '''Misplaced Pages'''. Bug reports and feature requests should be made in ] (see ]). Bugs with ] should be reported differently (see ]). | |||
<!-- All of the text for this top section is found at template:Villagepumppages --> | |||
Newcomers to the technical village pump are encouraged to read ] prior to posting here. If you want to report a ] error, please follow ]. Questions about ] in general should be posted at the ]. | |||
|center=<div id="villagepumpfaq" style="padding-right: 30px; text-align: center; margin: 0 auto;">{{FAQ|see also=]|style=margin: 0 auto; width: 85%;|collapsed=yes}}</div> | |||
|3=WP:VPT|4=WP:VP/T|5=WP:TECHPUMP|6=WP:PUMPTECH}}<!-- | |||
. | |||
-->__NEWSECTIONLINK__<!-- | |||
-->{{User:MiszaBot/config | -->{{User:MiszaBot/config | ||
| archive = Misplaced Pages:Village pump (technical)/Archive %(counter)d | | archive = Misplaced Pages:Village pump (technical)/Archive %(counter)d | ||
| algo = old( |
| algo = old(5d) | ||
| counter = |
| counter = 217 | ||
| maxarchivesize = 500k | | maxarchivesize = 500k | ||
| minthreadsleft = 4 | | minthreadsleft = 4 | ||
| minthreadstoarchive = 1 | | minthreadstoarchive = 1 | ||
| archiveheader = {{Misplaced Pages:Village pump/Archive header}} | | archiveheader = {{Misplaced Pages:Village pump/Archive header}} | ||
}}<!-- | |||
}}{{cent}} | |||
__TOC__ | |||
{{anchor|below_toc}} | |||
{{clear}}<!-- | |||
Please do not move these categories to the end of the page. If they are there, they will be removed by the process of archiving the page. | Please do not move these categories to the end of the page. If they are there, they will be removed by the process of archiving the page. | ||
--> | |||
-->] | |||
] | |||
] | ] | ||
] | ] | ||
] | |||
</noinclude><!-- | |||
<!-- | |||
--> | |||
{{Village pump page header|1=Technical|2=The '''technical''' section of the ] is used to discuss technical issues ''about'' '''Misplaced Pages'''. Bug reports and feature requests should be made in ] (see ]). Bugs with ] should be reported differently (see ]). | |||
<!-- All of the text for this top section is found at template:Villagepumppages --> | |||
If you want to report a ] error, please follow ]. Questions about ] in general should be posted at the ]. Discussions are automatically archived after remaining inactive for five days. | |||
|center=<div id="villagepumpfaq" style="clear:both; text-align: center; margin: 0 auto;">{{FAQ|see also=]|style=margin: 0 auto; width: 85%;|collapsed=yes}}</div> | |||
|3=WP:VPT|4=WP:VP/T|5=WP:TECHPUMP|6=WP:PUMPTECH | |||
}}__NEWSECTIONLINK__ | |||
{{centralized discussion|compact=yes}} | |||
__TOC__ | |||
<div style="clear:both;" id="below_toc"></div></noinclude><!-- | |||
Please add new questions to the end of the page. The easiest way to add a question is to click the "New post" link, near the top of the page. | Please add new questions to the end of the page. The easiest way to add a question is to click the "New post" link, near the top of the page. | ||
--> | --> | ||
== Can we do something about the ridiculous message displayed whenever syntax highlighting is taking "too long"? == | |||
{{tq|Syntax highlighting on this page was disabled because it took too long. The maximum allowed highlighting time is 20ms, and your computer took 22ms. Try closing some tabs and programs and clicking "Show preview" or "Show changes". If that doesn't work, try a different web browser, and if that doesn't work, try a faster computer.}}<br><br> | |||
== Two column edit conflict - not working == | |||
The threshold is probably set too low to being with, and most people couldn't care less about it taking 0.03s vs 0.02s, so to tell them that a mere 2/1000 sec difference is "not allowed" is pretty ridiculous. If someone really does have a slow computer, that's hardly by choice, and to tell them to try a faster one is like Captain Obvious rubbing salt into their wound. More often than not, it's not even the fault of the computer, but rather some background crap (thanks, MS!), or the browser, or simply a very large and complex page (and possibly even the (gasp) wiki JS code). Ideally this should be a pref configurable by the user. Or, they could click a button if they don't care about things being slightly slower on the current page as long as they can still get the highlighting (the way browsers pop up slow JS abort/continue messages; in this case it wouldn't be modal, of course). But I think mostly it's about the overly low threshold, because when a large page is taking a number of seconds to load anyway, a few extra thousandths for this hardly make a difference. ] (]) 16:26, 1 January 2025 (UTC) | |||
Just noting that I'm still losing work through edit conflicts, despite having activated two-column edit conflict in beta. Anybody else experiencing this since it was last ] on 6th April? ] (]) 14:08, 10 April 2020 (UTC) | |||
:Yup, just got a "normal" edit conflict earlier today, and I have that beta feature enabled too. ] (]) 02:30, 12 April 2020 (UTC) | |||
::{{ping|Nick Moyes|Enterprisey}}, on what pages have you experienced this issue? --] (]) 04:37, 12 April 2020 (UTC) | |||
:::While trying to make ] on ]. ] (]) 06:40, 12 April 2020 (UTC) | |||
:::{{re|AntiCompositeNumber}} My content loss occurred whilst replying at the Teahouse. (It also occurred on a userpage on Czech Misplaced Pages, but there I assumed I didn't have the two column edit conflict tool enabled.) ] (]) 07:03, 12 April 2020 (UTC) | |||
:::: was that disabled the two-column edit conflict page on talk pages and project-namespace pages. There was no phab task or anything associated with the patch, so I don't have any more details. {{u|Thiemo Kreuz (WMDE)}}, can you provide some insight into what is going on? --] (]) 15:46, 12 April 2020 (UTC) | |||
::::: Hi {{ping|Nick Moyes|Enterprisey|AntiCompositeNumber}} we disabled the Two Column Edit Conflict View for talk pages, because we got the feedback that it is not helpful to solve edit conflicts on talk pages. This is why you see the old interface when having an edit conflict on a talk page. <br> However, we are currently developing and ]. For more information, also see ]. --For the Technical Wishes Team: ] (]) 09:46, 14 April 2020 (UTC) | |||
::::::{{re|Max Klemm (WMDE)}} Thank you for this update. There were times when there seemed to be no interface at all, just a complete loss of edits, so, in the short term, I'll try and remember to copy my replies before posting them at potentially busy fora. (Just in case!) Cheers, ] (]) 10:15, 14 April 2020 (UTC) | |||
::::::{{ping|Max Klemm (WMDE)}} I actually found it super useful on talk pages! Where was that feedback? --] (]) 17:02, 14 April 2020 (UTC) | |||
::::::{{re|Max Klemm (WMDE)}} I believe I had the same experience as {{U|Nick Moyes}} a couple of times on the Teahouse or Help Desk, with no conflict resolution facility (I think***){{Snd}} just an edit window for the whole page (as opposed to just the section I was editing) with my changes missing. I was able to use the browser's (FFox) back button, accept the dialog about resending, and get back to the edit window with my edits in it. I then copied it to a text editor, restarted an edit on the section, pasted my changes back in, and saved successfully. ***It's entirely possible that the page I got had additional language on it telling me there was a conflict and what to do about it{{Snd}} I was too busy panicking and trying to recover to look very carefully. <span style="color:red">—] (])<span style="color:red">]—</span> 02:17, 15 April 2020 (UTC) | |||
:::::::Working for me... <span style="background-color:#90EE90;width:135px;padding:9px 10px 10px 10px">]<sup style="background-color:#ADD8E6;padding:4px 5px 5px 5px">]<sub>]</sub></sup></span> 21:32, 22 April 2020 (UTC) | |||
== Suggestion: display certain hatnotes only if the user has been redirected from certain targets == | |||
nb: I made this suggestion at the redirection template talk page (]) and on phub ( ]) but no one seems to be entirely sure where the right place for it is. Following another suggestion I'm trying it here, too. | |||
I think we should display certain hatnotes only if the user has been redirected from certain targets. For example: | |||
The Blue Album is an album by Weezer. It contains a song called "The World Has Turned and Left Me Here". There is also an episode of a TV show titled "The World Has Turned and Left Me Here". | |||
If you go to the ], it currently displays this hatnote: {{tq|The World Has Turned and Left Me Here" redirects here. For the Vampire Diaries episode, see The World Has Turned and Left Me Here (The Vampire Diaries).}} | |||
I think this hatnote should only be displayed if the user has searched for "The World Has Turned and Left Me Here" and been redirected to ]. My logic is this: | |||
* If you're redirected to the Blue Album article because you were looking for an article about the TV episode, the hatnote is useful. It tells you that you're in the wrong place and gives you a link to the right article. | |||
* If you arrive at the Blue Album article '''any other way''' (most likely more than 99% of cases), the hatnote isn't useful - you almost certainly don't care that there is an episode of a TV show with the same title as a song on this album. It's just clutter. | |||
It would be great if there were a way to display certain hatnotes only if the user has been redirected from certain targets. ] (]) 15:33, 12 April 2020 (UTC) | |||
: | |||
:I'd oppose this. Trying to second-guess what readers will want to see is rarely a fruitful exercise; to stick with your original example, I can easily imagine a fan looking for information on the album finding it interesting that the name of one of its songs was also used as the title of a TV show. Since no reader in the history of Misplaced Pages has ever found a hatnote disruptive (we're talking about {{em|one line}} at the top of an article), this proposal would seem to cause potential disruption to readers for no obvious benefit. | |||
: | |||
:There's a high number of pages where we undoubtedly would need to display the hatnote even to those who typed in the article title verbatim (e.g. if someone searches for "]" there's a decent chance they're actually searching for "]" and vice versa). Thus, if we did go down this route, the <code>display hatnote=yes</code> or <code>display hatnote=no</code> would need to be set manually for {{em|every single redirect on Misplaced Pages}}. To put that in perspective, as of December 2019 when the report last ran there were 8,966,504 mainspace redirects; I'm guessing you'll have difficulty persuading anyone to review nine million pages for little if any obvious benefit. ‑ ] 15:55, 12 April 2020 (UTC) | |||
::{{u|Iridescent}}, I find your first paragraph unconvincing. {{tq|no reader in the history of Misplaced Pages has ever found a hatnote disruptive (we're talking about one line at the top of an article}} - well, ''I'' find it disruptive! And in the case of the Weezer article it adds ''two lines'' about two separate articles, not one. I really do think it adds a lot of clutter that helps only a vanishingly small minority of users. Adding a big lump of text to the top of the article is not a small cost from a usability/readability perspective. | |||
:: | |||
::{{tq| I can easily imagine a fan looking for information on the album finding it interesting}} This is neither here nor there. If encyclopaedic information is worth including in the article then it should be included in the article proper, not delivered in a sideways fashion via a hatnote. And as a general rule, per ], we don't typically consider references to things in other media encyclopaedically notable anyway. | |||
:: | |||
::However, regarding the second paragraph: I have no experience of managing the technical side of this sort of thing so it would be up to other editors to figure out if what I'm proposing could realistically be implemented at all. If the implications of that are unmanageable then the idea is indeed dead on arrival, oh well. | |||
:: | |||
::I'm wondering, though, if we could add an optional flag on redirects to only display a hatnote on certain conditions, so that we wouldn't have to change any existing ones - it would just be added as an exception or override where useful. ] (]) 16:25, 12 April 2020 (UTC) | |||
:Knowing the article from whence one came is not possible in wikitext/Lua. This would be a Javascript addition that would need to be made and I would accordingly oppose it as Not Worth It. --] (]) 16:28, 12 April 2020 (UTC) | |||
::I see. I assumed we had that information in a way that could be used as it says "redirected from <wherever>" when you get redirected. Obviously even if it could still be used this might easily still be Not Worth It. ] (]) 16:42, 12 April 2020 (UTC) | |||
:::Even if it were technically possible, I wouldn't be in favor of it. Just as a reader wikisurfing, hatnotes have led me to surprising and interesting connections that I wasn't aware of. As an editor who uses ] a lot, it would not be helpful if the version of the article that I see is not the same version all readers see. ] ] 16:46, 12 April 2020 (UTC) | |||
:I'd support this if it were technically feasible without performance costs, but I don't think it is. --] (]) 21:44, 12 April 2020 (UTC) | |||
: I think this could be done by adding a hash to the end of the redirect (e.g. <code><nowiki>#redirect ]</nowiki></code>) (which would need the hatnote template to support an ID parameter) then using css's <code>:active</code> pseudoclass to make it visible. <b style="border:1px solid #0800aa"> ] </b> <b style="border:1px solid #006eff"> ] </b> <b style="border:1px solid #00a1ff"> ] </b> 02:44, 13 April 2020 (UTC) | |||
* I like this idea a lot. I don't at all buy the "hatnotes can provide random interesting information" argument — that's not what they're supposed to be for, and they're occupying extremely valuable space at the top of the article. And it wouldn't be necessary to go through all 9 million redirects — just introduce a parameter and let it be adopted as needed. As to the technical side of things, I'm not going to be able to productively contribute to that, but if it's not possible now, perhaps we could tuck this away as a good idea to come back to once Misplaced Pages's coding is in an improved state. <span style="color:#AAA"><small>{{u|</small><span style="border-radius:9em;padding:0 5px;background:#088">]</span><small>}}</small></span> <sup>]</sup> 05:45, 13 April 2020 (UTC) | |||
*Having hatnotes that people will not see when looking at the page directly seems like a potential vandalism time bomb where vandals can place offensive text that will only show up when someone reaches the page from a particular redirect. ] (]) 15:54, 20 April 2020 (UTC) | |||
*:Hmm, that's a really good point. If this moves forward, something will have to be done to address that, but I'm not sure what. <span style="color:#AAA"><small>{{u|</small><span style="border-radius:9em;padding:0 5px;background:#088">]</span><small>}}</small></span> <sup>]</sup> 07:10, 24 April 2020 (UTC) | |||
== Editing news 2020 #1 – Discussion tools == | |||
<em>] • ]</em> | |||
] | |||
The ] has been working on ]. The goal of the talk pages project is to help contributors communicate on wiki more easily. This project is the result of the ]. | |||
] | |||
The team is building a ] to comments now. This early version can sign and indent comments automatically. <strong>Please ].</strong> | |||
*On 31 March 2020, the new {{Int:discussiontools-replylink}} tool was offered as a ] editors at four Wikipedias: ], ], ], and ]. If your community also wants early access to the new tool, contact ]. | |||
*The team is planning some upcoming changes. <strong>Please ] and share your thoughts on the talk page.</strong> The team will test features such as: | |||
**an easy way to mention another editor ("pinging"), | |||
**a rich-text visual editing option, and | |||
**other features identified through user testing or recommended by editors. | |||
To hear more about Editing Team updates, please add your name to the ] section of the project page. You can also watch ] these pages: ], ], ], and ]. | |||
– ] (]) & ] (]) 15:45, 13 April 2020 (UTC) | |||
<!-- Message sent by User:Whatamidoing (WMF)@enwiki using the list at https://en.wikipedia.org/search/?title=Misplaced Pages:VisualEditor/Newsletter&oldid=949352140 --> | |||
: I think this would be a nice beta feature to have. Can it be placed under "Beta" so I can try it out on enwiki? <span style="font-variant: small-caps;">]]]]]</span> 19:02, 13 April 2020 (UTC) | |||
::You can try it on the wikis where it's already in a beta. enwiki is an unlikely candidate for betas because well, enwiki. {{re|Whatamidoing (WMF)}} Does this new tool have some feature in place that prevents or fixes edit conflicts? How does it deal with them? --<span style="font-family:'Trebuchet MS',Geneva,sans-serif">] (] <span style="color:#fac">愛</span> ])</span> 13:27, 14 April 2020 (UTC) | |||
:::], the Reply tool auto-resolves most of edit conflicts (the magic is in ], apparently). If it can't resolve it, you get an error message and the opportunity to copy your message (so you can either reload the page and try again, or open your normal wikitext editor and reply the old-fashioned way). I've seen edit conflicts that were auto-resolved; I've not seen complaints on any of these wikis about it failing (sample size =~500 real-world replies). If anyone wants to test this, remember that you need two accounts to trigger an edit conflict with yourself. MediaWiki overwrites your own edits rather than triggering the edit conflict tools. | |||
:::Anyone who wants to try it out can enable the Beta Feature and leave a note for me on my talk page at any of those wikis, or go to https://fr.wikipedia.org/Utilisatrice:Whatamidoing_(WMF)/Brouillon?dtenable=1 and "Répondre" to your heart's content in my sandbox. ] (]) 16:47, 14 April 2020 (UTC) | |||
::::{{re|Whatamidoing (WMF)}} That sounds good! There's a couple of issues I've come across: 1) sometimes I just get an empty box saying "OK" when clicking "Reply", not sure why. This has happened a few times, refreshing the page fixes it. 2) The "Reply" is disabled as soon as you hit "Reply" on one message, this is not ideal because sometimes you misclick and want to switch to a different editor, ideally you want a prompt asking you to switch replying to that if the editor has started typing a reply to someone else. For info, I am using Safari 13.0.4 on macOS Catalina 10.15.2. --<span style="font-family:'Trebuchet MS',Geneva,sans-serif">] (] <span style="color:#fac">愛</span> ])</span> 19:09, 14 April 2020 (UTC) | |||
::::::# is weird, and is also now ]. | |||
::::::# is deliberate, because it can only handle one Reply at a time. The red "Cancel" button will bring the other Reply buttons back (first copy any text you have already typed and want to keep, of course). ] (]) 22:35, 14 April 2020 (UTC) | |||
::{{u|Awesome Aasim}}, in the mean time, the fantastic user script ] does basically the same thing. ] ]] 22:43, 14 April 2020 (UTC) | |||
:::] and anyone else who uses it: please look at my question at ] ] (]) 20:02, 16 April 2020 (UTC) | |||
:::: I ] with it a little bit. Would I be correct to deduce that it looks for a line (or paragraph, if top-level text) that contains both (a) a link to a User: or User talk: namespace (can be cross-wiki or redlink); and (b) a time stamp in the exact format of the wiki (case-sensitive, same language and timezone, etc.)? | |||
:::: DT added a Reply link with ] but not ]. It appears to want the time stamp to be in the same DOM element and not wrapped in a link or a span. ] (]) 03:58, 18 April 2020 (UTC) | |||
:::::], it looks for a timestamp (exactly that wiki's default format) plus any link to the user's account (user page, user talk, or contributions). It must be one of those pages and not a subpage or redirect. (I believe that in MediaWiki, "a line" is the same as "a paragraph".) | |||
:::::The problem of how to detect signatures in templates such as {{tl|u}} and {{tl|unsigned}} is ]. If you have opinions or advice (e.g., whether it's better to fix the templates or the extension), then please share there. ] (]) 15:46, 21 April 2020 (UTC) | |||
== Updating WikiProject assessment tables by bot == | |||
{{ping|Kelson}} and {{ping|Audiodude}}. Is there a way to make WP 1.0 bot update a given quality assessment table? I am specifically wondering about ]. ] (]) 16:44, 16 April 2020 (UTC) | |||
{{ping|Jo-Jo Emerus}}, you can force an update . Seamounts doesn't appear in the drop down list, so something probably isn't configured correctly. ] (]) 16:18, 20 April 2020 (UTC) | |||
== Mystery of the Mixing Sailors == | |||
Today, I came across a nonsensical draft whilst patrolling new pages titled ], containing the following text: | |||
1. A rich mummy, usually green or bald. | |||
2. To overbreak toes, i.e. to put a cat into a fish or into a dog. | |||
3. To stab an elephant with a nostril. | |||
Mystified by who would think up such a thing, I looked up the text on the Internet and found the same thing pasted on many other wikis and user-editable sites, as well as . Also, the page title ], without the apostrophe, has actually been protected from creation using the title blacklist. Does anybody know who is spamming this stuff across the Web, and for what reason? <b>]] (])</b> 13:28, 18 April 2020 (UTC) | |||
:It's old and appears to always be added by French IP addresses or new accounts. ] is from 2009. It's called "The ideal joke" at ]. It was globally blacklisted in 2011. It's rare enough to just be one odd person. ] posted it and also made ] with only content: "Bill and the maps are sticking well together because they appear to be made of swollen iron and greasy spokes." They got a checkuserblock. ] got one the same minute by the same checkuser. They created ] with: "Moosh drives like a horn because his tie is not more than a crablike queefish. Cats dubbed with strings, a horror diet clowned about a forshipmore then skies linked a dribbloo." I don't expect to find sense in any of this. ] (]) 14:57, 18 April 2020 (UTC) | |||
::The lesson, as always: Misplaced Pages editors will always do something more outlandish than you can imagine. <small>P.S. I know Moosh. She does drive like a horn. – ] (]) 15:35, 18 April 2020 (UTC)</small> | |||
:::This was dealt with using a {{tl|schoolblock}} back in 2015. See ]. – ] ] 09:27, 24 April 2020 (UTC) | |||
== Save edit in Visual Editor, it's asking to save again? == | |||
{{tracked|T250620}} | |||
] | |||
I've seen this three times over the past week or two. I edit a page in the Visual Editor, save my changes, and then I'm back to VE asking me to save. For example, I just made . Yet, I'm looking right now at a "Publish changes" dialog, asking me to save those exact same changes. I just clicked "Publish changes" again, to see what would happen, and it looks like it's just hung. I've got the "Review your changes" barber-pole across the top, with the strips moving to indicate operation in progress. Anybody else been seeing anything like this? -- ] ] 21:53, 18 April 2020 (UTC) | |||
:Just had it happen again, on . I hit "Publish changes", the edit got saved, and I've got another dialog asking me to save. Clicking "Review your changes" shows no changes. Clicking "Publish changes" hangs. -- ] ] 14:55, 19 April 2020 (UTC) | |||
::Wow. Again, on . -- ] ] 15:07, 19 April 2020 (UTC) | |||
:::], can you tell me your web browser and OS? (I get something like this in Firefox on macOS, but only at Wikivoyage.) Also, the next time this happens, could you please open the page history in another tab, and see whether it has posted your changes already? (Please ping me.) ] (]) 15:52, 21 April 2020 (UTC) | |||
::::This is being tracked at {{phab|T250620}}; could you update that with your observations? But, to answer your question, I'm on Chrome / MacOS, and the other editor who was able to reproduce it, the same. And, yes, every time I've checked the history in another window, the history recorded it had been saved. -- ] ] 16:28, 21 April 2020 (UTC) | |||
== ""ntsamr"-pattern spambot filter" == | |||
I noticed this hidden edit filter whilst patrolling the AbuseLog and was wondering what exactly it is. What does the "ntsamr" pattern constitute, i.e. what does this filter look out for in an edit? | |||
Thank you, <b>]] (])</b> 10:54, 19 April 2020 (UTC) | |||
:]. If it's private there might not be much I can publicly say about exactly how it works, but think spambot user pages. The filter is not very reliable for various reasons, although it's not too bad. You might see some examples if you look at the logs of the deleted user pages of the blocked accounts; one such example is another . -- ] <sup>]</sup> 11:16, 19 April 2020 (UTC) | |||
::Ah, I see the pattern now, although the two pages I viewed which that filter had flagged were nothing like that format. <b>]] (])</b> 11:54, 19 April 2020 (UTC) | |||
:::Hello. probably shouldn't have been flagged ? ] (]) 16:16, 21 April 2020 (UTC) | |||
== Change to CS1 (cite xxx) templates is showing warning messages to some editors using custom scripts == | |||
{{Discussion top|reason=Per ], questions and comments relating to the change should occur at ]. Requests for a script should occur at ]. '''<span style="background:#B1810B; padding:2px; border-style:solid; border-width:1px">]]</span>''' 01:57, 22 April 2020 (UTC)}} | |||
If you have the useful ] script installed in your common.js file, you may notice an increase in the number of brown "warning" messages that the script is generating in articles. This is due to a change in the Citation Style 1 (cite book, cite web, etc.) templates that adds {{para|ref|harv}} to those templates by default in order to fix short citation links to those full citations. There was discussion of this change at ], a good (though sometimes quite active) forum to follow if you have an interest in citation formatting and templates. | |||
No action is required on your part, or in the articles in which more messages are appearing. If the brown warning messages bother you, there is advice at the top of ] offering a few options to suppress them. (P.S. Please don't shoot the messenger.) – ] (]) 18:40, 19 April 2020 (UTC) | |||
]]] | |||
:This is what I see now in "Selected works" and "Further reading" sections that use {{tl|cite book}}, {{tl|cite news}}, etc. But if I remove the script that points to the errors, I lose the errors that I want to catch, namely when a long citation hasn't been used as a source. Can someone point to the change that has caused this? Someone has made ref=harv the default. Pinging {{u|Dudley Miles|Dudley}} and {{u|Gerda Arendt|Gerda}} who have also complained about it. ] <small><sup>]</sup></small> 18:33, 21 April 2020 (UTC) | |||
::It's a little unclear to me why the solution to a script malfunctioning is to fork the script. Why isn't the original script being edited so that it stops bugging up? ] (]) 18:35, 21 April 2020 (UTC) | |||
:::{{u|Jo-Jo Eumerus}}, sorry, I can't answer that. They've said we have to ask for a new script to be written. But this change (that ref=harv is now the default) didn't have consensus. It was discussed in 2018 and again recently, this last time by just a few people. There should be wider consensus for changes that affect so many people. ] <small><sup>]</sup></small> 18:38, 21 April 2020 (UTC) | |||
:::{{Re|User:Jo-Jo Eumerus}} because user scripts have security risks, and you can't edit someone else's user script. Maybe interface admin can, but mortals can't. So the solution, if you're not happy with the way a script works, is to make a new one. Or have the user update the script if they are still around and willing. If people don't posses the skills to make their own fork, ] exists to draw on the knowledge of those who can.  <span style="font-variant:small-caps; whitespace:nowrap;">] {] · ] · ] · ]}</span> 18:51, 21 April 2020 (UTC) | |||
::::{{U|SlimVirgin}}, have you forgotten that you have already been involved in a detailed discussion of this change at ]? Your questions have been answered there already. Please do not fork discussions. | |||
:::: | |||
::::{{u|Jo-Jo Eumerus}}: The script is not malfunctioning. It is showing the same no-action-necessary (but occasionally useful) warning (not error) messages that it has always shown, and it is now showing those warnings for an expanded set of templates. That change, like many changes, has resulted in disappointment from some editors who, like most of us, find change difficult. Instructions have been posted in ] telling editors how to modify the script's output, or how to use different scripts. – ] (]) 18:53, 21 April 2020 (UTC) | |||
::::Also, the bit about consensus is obviously false. There was pretty much unanimous consent that this is an improvement to the ease of use of templates and fixes tens of thousands of articles with broken citation anchors. What we have now is 3-4 users discontent that a custom script they use doesn't work exactly the same as it did before, because the script makes assumptions that it shouldn't make, and they refuse to request a new one.  <span style="font-variant:small-caps; whitespace:nowrap;">] {] · ] · ] · ]}</span> 18:54, 21 April 2020 (UTC) | |||
::::{{ec}}Sorry, I wasn't aiming this question at you but at the people who wrote the forks. I don't think the change to the reference templates is a big deal, myself, it just needs a bot to clean out the now-unneeded {{para|ref|harv}} and some repair done to ]. The problem I have is that it's more work to ask people to use new scripts rather than simply adjusting the old ones. {{ping|Headbomb}}, the thing is that Interface Administrators can edit the user scripts and this isn't really a style disagreement but a bug. ] (]) 18:55, 21 April 2020 (UTC) | |||
:::::It's not a bug, as Jonesey95 explained, the script works exactly as intended.  <span style="font-variant:small-caps; whitespace:nowrap;">] {] · ] · ] · ]}</span> 18:59, 21 April 2020 (UTC) | |||
::::::This is not a bug in the script. As I said in the discussion where this back-and-forth should be happening, per ]: The error scripts are still useful for the task described above. If you have full citation templates in a "Works cited" section, and one of them should be but is not connected to an {{tl|sfn}} template, the unused one will show a brown warning message. See for an example. Only one full citation in the Sources section shows the brown warning message. In this case, it is because the sfn template that is trying to use it omits the year. – ] (]) 19:05, 21 April 2020 (UTC) | |||
{{od}}{{u|Trappist the monk}}, would you please revert this change? It needs a broader consensus. ] <small><sup>]</sup></small> 18:56, 21 April 2020 (UTC) | |||
:There is consensus, a minority that refuses to update their scripts does not overrule consensus to provide core functionality to CS1 templates.  <span style="font-variant:small-caps; whitespace:nowrap;">] {] · ] · ] · ]}</span> 18:59, 21 April 2020 (UTC) | |||
::Please link to the consensus. So far you've provided two links: one to a discussion in 2018 and a recent one in which very few people participated, where you requested the change. Which discussion produced the consensus? ] <small><sup>]</sup></small> 19:06, 21 April 2020 (UTC) | |||
:::See ] and links therein, but you already saw that.  <span style="font-variant:small-caps; whitespace:nowrap;">] {] · ] · ] · ]}</span> 19:09, 21 April 2020 (UTC) | |||
::::Four people took part in that discussion. ] <small><sup>]</sup></small> 19:25, 21 April 2020 (UTC) | |||
:Answered at {{slink|Help talk:Citation Style 1#Break}} | |||
:—] (]) 19:10, 21 April 2020 (UTC) | |||
::Not answered, which is why I started discussing it here. The number of people on that other page is limited, and you were involved in making this change and therefore are defending it. ] <small><sup>]</sup></small> 19:25, 21 April 2020 (UTC) | |||
:::That you refuse to hear the answer does not mean this was not answered.  <span style="font-variant:small-caps; whitespace:nowrap;">] {] · ] · ] · ]}</span> 19:29, 21 April 2020 (UTC) | |||
::{{u|Trappist the monk}}, you've suggested two scripts to help with this, but both remove the error messages we need. This change means we no longer see when citations are listed but not used, or we have to put up with big brown error messages in FR and Selected works sections that use {{tl|cite book}}, etc. If this can't be sorted out somehow, then we need to discuss this at AN. I recently tried to add a publisher's name that has one italicized word in it, and the template produced an error message because apparently italics are not allowed in "publisher="? But why not? It seems central decisions are being made that cause editors to lose a lot of time trying to fix or work around them. I don't know what to suggest, but there needs to be some sense of gaining wider consensus before making changes that might cause a problem. ] <small><sup>]</sup></small> 19:37, 21 April 2020 (UTC) | |||
::Pinging {{u|Dudley Miles}} and {{u|Gerda Arendt}} so they know this is here. ] <small><sup>]</sup></small> 19:40, 21 April 2020 (UTC) | |||
:::{{xt|This change means we no longer see when citations are listed but not used, or we have to put up with big brown error messages in FR and Selected works sections that use {{tl|cite book}}, etc. }} So then keep using ], which apparently does display the warnings you want to see. You can't simultaneously want messages and not want them as the same time.  <span style="font-variant:small-caps; whitespace:nowrap;">] {] · ] · ] · ]}</span> 19:41, 21 April 2020 (UTC) | |||
::::I want to see error messages for unused sources when I am editing an article which uses anchors. When I am following the style of an article which does not use anchors, I leave out ref=harv from cite book so that I will not get false error messages. Now that I can no longer use ref=harv there is no way User:Ucucha/HarvErrors.js or any other script can distinguish between the two cases. ] (]) 20:12, 21 April 2020 (UTC) | |||
:::::Again, wrong. CS1 and CS2 behave the same way, so however you 'ignored' errors with CS2 can be used with CS1. Typically done via the addition of {{para|ref|none}}.  <span style="font-variant:small-caps; whitespace:nowrap;">] {] · ] · ] · ]}</span> 20:16, 21 April 2020 (UTC) | |||
::::::I do not know why you keep raising CS1 and CS2. I just asked whether they work the same way and you explained they did not. A script which relied on distinguishing sources depending on whether or not they had ref=none would not help to find unused sources in the countless articles written relying on ref=harv to indicate an anchor. It would give vast numbers of false warnings. ] (]) 20:28, 21 April 2020 (UTC) | |||
:::::::I keep raising this because you keep complaining that CS1 (e.g. {{tl|cite book}}) is problematic while simultaneously claiming that CS2 (e.g. {{tl|citation}}) is not when they now both work exactly the same. This has been explained to you multiple times, including in the sentence ''right above your reply where you claimed i said that CS1 and CS2 worked differently''. It's really hard to have a conversation when you read "CS1 and CS2 behave the same way" to mean "you explained they did not".  <span style="font-variant:small-caps; whitespace:nowrap;">] {] · ] · ] · ]}</span> 20:30, 21 April 2020 (UTC) | |||
:::::::::I do not think that you explained that CS1 means cite book and CS2 means citation. You just assumed that I knew and I assumed they are different protocols for which applied to both templates. ] (]) 20:45, 21 April 2020 (UTC) | |||
::::::::::I mean, it's just in the ''title of the section'' and at the top of ] in the big nutshell box. It's not like you ever indicated you did not know what those meant either.  <span style="font-variant:small-caps; whitespace:nowrap;">] {] · ] · ] · ]}</span> 21:00, 21 April 2020 (UTC) | |||
{{od}}I don't understand why Headbomb doesn't understand what is being said. There is some kind of miscommunication. The issue is that the script we used no longer works. It gives us error messages where there are no errors. If we disable it, we lose the error messages we want. {{u|Trappist the monk}} has come up with two suggested scripts but they had the same problem. The issue is that we need to be able to remove ref=harv. It was a benefit to have a set of templates that allowed that functionality. It made things easy and fast. What you saw as a flaw, we saw as an advantage. ] <small><sup>]</sup></small> 21:05, 21 April 2020 (UTC) | |||
:And I don't understand what you don't understand about using {{para|ref|none}} to suppress anchors, rather than "removing {{para|ref|harv}}" which was a solution that only worked with CS1 templates. You couldn't remove {{para|ref|harv}} in {{tl|citation}} to suppress anchors, so I really don't know why you are so distressed by CS1 and CS2 behaving ''exactly the same way as each other''.  <span style="font-variant:small-caps; whitespace:nowrap;">] {] · ] · ] · ]}</span> 21:08, 21 April 2020 (UTC) | |||
::Your reply is an example of what I mean. This has already been explained to you. {{tl|Citation}} isn't used as much. Most people use the templates you've just changed or caused to change. We can't go around adding ref=none to all these articles. ] <small><sup>]</sup></small> 21:13, 21 April 2020 (UTC) | |||
::Then learn to live with the warnings. Or, again, go make a ] to have a new script made that works to your liking. <span style="font-variant:small-caps; whitespace:nowrap;">] {] · ] · ] · ]}</span> 21:21, 21 April 2020 (UTC) | |||
:::You keep suggesting a new script, but as I pointed out above, it would not help. A script based on ref=none would be a good solution if it had been used from the start, but changing to it in the middle is not going to help with error checking in the many existing articles which relied ref=harv to distinguish between sources which are intended as anchors and those which are not. It may just give false error warnings. ] (]) 21:34, 21 April 2020 (UTC) | |||
::::Giving that you're not happy with how the current script works, and that you want a different behaviour, I fail to see how a new script that worked like you wanted would "not help". You've got a path forward. If you don't want to take it, that's on you.  <span style="font-variant:small-caps; whitespace:nowrap;">] {] · ] · ] · ]}</span> 21:39, 21 April 2020 (UTC) | |||
So that's why I am suddenly getting HarvRef errors on articles where I don't even use HarvRefs. Stuff like this explains why I manually formatted citations for years, and regret now having switched to citation templates. Please fix this. ] (]) 21:51, 21 April 2020 (UTC) | |||
:Again, as was explained multiple times, if you don't want warnings, don't use ] but rather ]. Or make a ] to have a new script that behaves how you want.  <span style="font-variant:small-caps; whitespace:nowrap;">] {] · ] · ] · ]}</span> 21:58, 21 April 2020 (UTC) | |||
::But that turns off all the warnings, including the good ones, does it not? ] <small><sup>]</sup></small> 21:59, 21 April 2020 (UTC) | |||
:::If you went to ] to explain what is a "good warning" and what is a "bad warning" then you could have a script that keeps the "good warnings" and throws away the "bad ones".  <span style="font-variant:small-caps; whitespace:nowrap;">] {] · ] · ] · ]}</span> 22:30, 21 April 2020 (UTC) | |||
::I just tried it. That script turns off at least one of the good warnings. If you use a long citation but not a corresponding short one, there's no warning. It's important to be able to check that kind of thing when doing source reviews. Doing it manually can be very time-consuming. ] <small><sup>]</sup></small> 22:05, 21 April 2020 (UTC) | |||
:: I really don't have time to deal with another citation/bot issue right now, and seriously regret having moved from manual citations to citation templates, because of the never-ending vagaries of bots and citation templates. I am unwatching this discussion. If a solution is found, Sarah has my permission to edit my userspace to implement whatever solution she finds that works. If she does that, I will do the appropriate ctrl-whatever to reload. I assume that whatever solves this problem for Sarah will solve it for me. ] (]) 22:08, 21 April 2020 (UTC) | |||
:::{{RE|SandyGeorgia}} if you used "manual citations", you'd have no warnings and no error flagging whatsoever. So if the warnings annoy you, then use ] and then you'd have errors, without warnings. Or use no script, and have nothing flagged.  <span style="font-variant:small-caps; whitespace:nowrap;">] {] · ] · ] · ]}</span> 22:33, 21 April 2020 (UTC) | |||
I think we are talking past each other a little bit here. {{u|SlimVirgin}}, at this point there is a lot of discussion to go through, would you be able to summarize the cases in which you would like to see warnings? '''<span style="background:#B1810B; padding:2px; border-style:solid; border-width:1px">]]</span>''' 00:17, 22 April 2020 (UTC) | |||
:It would be better to close this thread and continue the conversation at the original venue, per ], or at ] if a new script is desired. Multiple editors have offered to help with a new script request at ]. Citation Style 1 templates are discussed and decisions are made at ] and archived in the talk page archives for that page. Any discussions that are held here about CS1 templates will effectively be lost. – ] (]) 00:53, 22 April 2020 (UTC) | |||
{{Discussion bottom}} | |||
== Combining RandomInCategory with PAGENAME == | |||
I'd like to create a link to a random level 4 vital article. However, it's not as simple as using ], since ] goes to the talk page, not the article itself, and I can't get ] to play nice with {{tl|PAGENAME}}. Help? <span style="color:#AAA"><small>{{u|</small><span style="border-radius:9em;padding:0 5px;background:#088">]</span><small>}}</small></span> <sup>]</sup> 00:36, 20 April 2020 (UTC) | |||
:Unfortunately you can't do that with just core mediawiki, but you could do it with a user script or an external tool. --] (]) 01:00, 20 April 2020 (UTC) | |||
::{{re|AntiCompositeNumber}} In that case, would there be an easy way to set up a category that duplicates ] but goes to the page itself instead? This is for ], so using an individualized or off-wiki method isn't really an option that I can see. <span style="color:#AAA"><small>{{u|</small><span style="border-radius:9em;padding:0 5px;background:#088">]</span><small>}}</small></span> <sup>]</sup> 05:47, 21 April 2020 (UTC) | |||
== File in category not shown == | |||
Hello! | |||
Why isn't ] shown at ] eventhough it should? The correct date category ] was also deleted, probably because the file couldn't be found there either. This is not the first time this happens so it must be a problem in som code somewhere.] (]) 05:48, 20 April 2020 (UTC) | |||
:nulledit solved the issue. I undeleted ] ] (]) 06:00, 20 April 2020 (UTC) | |||
::{{re|Agathoclea}} Thanks. I tried null edit but nothing happened for me. I see the file in the catgory now when you've done it though.] (]) 10:36, 20 April 2020 (UTC) | |||
== JS problem == | |||
{{resolved}} | |||
At ] when I open the page to edit I get "https://en.wikipedia.Org/search/? title=User:Doug_Weller/common.js&actic at line 818: Uncaught Error: Another textSelection API was already registered". Maybe connected, I often get "JavaScript Error script error when I load a Misplaced Pages page - both of these in boxes at the right-hand top of the page. I don't think that the bottom two scripts are installed correctly although the top one works, eg it marks the use of lulu.com at ]. Thanks. ] ] 09:35, 20 April 2020 (UTC) | |||
:{{ping|Doug Weller}} See ] how to investigate and debug. (Especially as your common.js does not have 818 lines.) --] (]) 13:29, 20 April 2020 (UTC) | |||
::{{Re|Doug Weller}} when troubleshooting, keep in mind you have scripts loading from ], ], and also likely ]. — ] <sup>]</sup> 13:51, 20 April 2020 (UTC) | |||
:::{{re|Xaosflux}} Thanks for the reminder. I've managed to get rid of the Javascript message now by doing some cleanup. ] ] 14:09, 20 April 2020 (UTC) | |||
== Collapsible CS1 errors == | |||
I want to make ] collapsible with CSS, but I don't know how to code CSS and I need your help. --] (]) 10:32, 20 April 2020 (UTC) | |||
:What would a "collapsible CS1 error" look like?  <span style="font-variant:small-caps; whitespace:nowrap;">] {] · ] · ] · ]}</span> 11:52, 20 April 2020 (UTC) | |||
::I think they just want to hide them. – ] (]) 12:01, 20 April 2020 (UTC) | |||
:::Also, I expect that for some of these there will be bot passes in the near future, cleaning them up. ] (]) 12:18, 20 April 2020 (UTC) | |||
:::If hiding is the goal see {{slink|Help:CS1_errors#Controlling_error_message_display}}. | |||
:::—] (]) 12:22, 20 April 2020 (UTC) | |||
::An error icon appears near the citation. When you click it, it shows an error which is occured on that cite with the close button. --] (]) 13:24, 24 April 2020 (UTC) | |||
== Removing pages from a category == | |||
In the category ] how can an entry be removed from this? The category talk page has 0 pageviews which led me to ask here. ] (]) 14:08, 20 April 2020 (UTC) | |||
:{{re|Adithyak1997}} to remove pages from a category, you have to edit each page that is in the category and remove the category declaration. — ] <sup>]</sup> 14:09, 20 April 2020 (UTC) | |||
::The category is added by a template. If you want to remove empty categories then try a ] of the category page which is in the category. ] (]) | |||
:::{{replyto|Adithyak1997}} Correct, null edit is the thing to do; it needs to be performed on every single one of the 60+ that presently say "(empty)". A bit tedious, it's one of the tasks that {{user|Joe's Null Bot}} used to do. --] 🌹 (]) 09:17, 21 April 2020 (UTC) | |||
::::It should be better now. I did some null edits. – ] (]) 15:08, 21 April 2020 (UTC) | |||
:::::I have added an explanation to the category. ] (]) 11:26, 24 April 2020 (UTC) | |||
== Talk pages in deleted pages == | |||
{{tracked|T21485}} | |||
Hello! I have a question that may sound a bit silly. I already checked the FAQ and I don't think I saw it there so... | |||
When we delete a certain page, why do "have" to keep its talk page? Those get "lost" and the way I see it, only remain as a burden to the servers (albeit an insignificantly small one). Not many users, to say the least, will ever search for a talk page of a non-existent page. Are there strong reasons we keep them? Apart from the edge cases where users want to go and discuss about something related to the deletion process. Is there a way to track these kind of "friendless" talk pages? Is there a way to delete them simultaneously when we are deleting a certain page? What's the overall general logic in keeping talk pages in these situations? | |||
I'm nearly sure something like this has been answered before and there must be reasons I'm overlooking in my logic but I couldn't find it at the FAQ page so curiosity got the best of me. - ] (]) 14:54, 20 April 2020 (UTC) | |||
:{{re|Klein Muçi}} we don't "have" to keep anything, and we specifically have a policy to allow for their removal (]). Some scripts and tools, such as ] have options to "also" delete a talk page. From the backend, there is no requirements that these pages have an associated page, for example ] has no "page" in the related namespace, and if one were created deleting it wouldn't mean that that talk page should also be deleted; and if say you asked for your userpage to be deleted, there would be no need to also delete your talk page. — ] <sup>]</sup> 15:16, 20 April 2020 (UTC) | |||
::] may have been thinking about user talk pages. Even if we delete a user page, we almost never delete the associated user talk page, even if the user asks us to. We keep it to maintain the user's history. See ]. -- ] (]) 15:29, 20 April 2020 (UTC) | |||
:::{{re|Xaosflux}} Yes, I know of those cases and that policy because I've researched a bit this subject because of my curiosity. But I was referring mostly to the classical, unenhanced way of deleting pages. When you try to move something, you get options that allow you to decide if you also want to move its sub/talk pages. When you delete pages, there are no facilities like these. Wouldn't it be easier to have the same options when deleting pages? I believe there will be thousands, if not more, articles', categories', templates' and what not pages deleted whose talk pages still remain in the project without any specific need. This is certainly the case at SqWiki when I'm an admin. Many admins there don't even know that the talk pages still remain after deleting those kind of pages and those that do know, don't delete them anyway because they think they are needed because of something they don't know yet, because otherwise they'd have the options to delete them together with the page, like the move options. | |||
:::{{re|MelanieN}} No, I know you keep them even when users get retired. Keeping that in mind, I thought maybe a reason for that exists in other namespaces too. I'm asking because, as I said, we have years (more than a decade) of a habit of not deleting talk pages in SqWiki because of the reasons specified above. And since no one really knew the reason why we were doing that (assuming they did know we weren't deleting them, because most of them thought the deletion happened simultaneously) I thought of asking here. And if no general reason really exists for that, I'm starting to think we might need to do a massive cleanup at our community. - ] (]) 15:44, 20 April 2020 (UTC) | |||
::::{{re|Klein Muçi}} that feature has been requested for over 10 years, with noone working on it - see: ]. — ] <sup>]</sup> 15:49, 20 April 2020 (UTC) | |||
::::::{{re|Xaosflux}} I see... So that cleanup I mentioned below is really needed. Any idea of what would be the best approach to this? - ] (]) 16:00, 20 April 2020 (UTC) | |||
::::::::{{re|Klein Muçi}} Is a query such as this what you are looking for: ]? — ] <sup>]</sup> 16:13, 20 April 2020 (UTC) | |||
:::::::::Umm, that one is broken - but something like that (I don't have time to work on it more this min). — ] <sup>]</sup> 16:14, 20 April 2020 (UTC) | |||
::::::::::Maybe its not try that {{re|Klein Muçi}}. — ] <sup>]</sup> 16:18, 20 April 2020 (UTC) | |||
::::::::::] has all the namespaces, though user_talk is expected I think. — ] <sup>]</sup> 16:24, 20 April 2020 (UTC) | |||
:::::::::::{{re|Xaosflux}} I mean, maybe? I'm not sure what namespaces should I search for. Giving it a quick thought, I think there is not one namespace that wouldn't be affected by that problem. And it's the first time I'm seeing this quarry tool so I can't say much about it. Besides, I'm in a dilemma if I can automatize the process or not. Maybe there are unassociated pages that are needed to be like that (like the examples you mentioned above)? {{small|(Besides x2, how deep should the quarry go? Considering that subpages also have talkpages.)}} As I said, I haven't researched much the actual situation in SqWiki because I thought we had a reason for keeping them, since that has been the case for over 10 years now. It's only now I'm considering the said cleanup and I was wondering if you've ever dealt with a situation like this before here, but looks like you haven't. - ] (]) 16:27, 20 April 2020 (UTC) | |||
::::::::::::Basically, there is no way to find these on-wiki, so you have to result to a database analysis, which is what quarry does. The primary example of an appropriate talk page without a matching page would be "user talk". If you do a database review, you could exclude pages with "/" in their titles to eliminate most subpages. — ] <sup>]</sup> 17:29, 20 April 2020 (UTC) | |||
::::{{replyto|Klein Muçi}} Regarding "the classical, unenhanced way of deleting pages" and "When you delete pages, there are no facilities like these." - in fact, there are. When an admin clicks the "Delete" tab, selects a reason and clicks {{button|Delete page}}, they then get presented with ], note the full-width pink box. This box is suppressed if there is no talk page, or when deleting a talk page or a User: page. --] 🌹 (]) 10:21, 21 April 2020 (UTC) | |||
:::::{{re|Redrose64}} I see... Actually, we don't have that system message in our wiki. We have it set up differently. Check for yourself . And even like this there are still some extra steps compared to what happens with move pages. But you offered me a solution for the future. If I ever am able to do that clean up I've mentioned below, I'll set that system message up like in here, hoping we won't get in a similar situation in the future again. Thank you! - ] (]) 11:40, 21 April 2020 (UTC) | |||
:There is also a to find orphan talk pages in all wikis. ] (]) 16:28, 20 April 2020 (UTC) | |||
::{{re|Stryn}} Hey, that's actually pretty good! Is there a way to see the whole list? The limit of 100 results doesn't really do it for me in this case, as you've may have already thought of. Other than that, I think this is perfect for this situation, assuming the list is correct (I tried it at Sq.Wikiquote and it found out only 15 pages. The project is really young but still the low number baffled me.) - ] (]) 17:16, 20 April 2020 (UTC) | |||
:::{{re|Xaosflux}} Do you think the tool above would be an easier solution for me? - ] (]) 18:01, 20 April 2020 (UTC) | |||
::::Did you try downloading the data from the query I ran, #44156? You should be able to do easy text filters to remove user talk and pages with "/". — ] <sup>]</sup> 18:21, 20 April 2020 (UTC) | |||
:::::{{re|Xaosflux}} No, I didn't. I've never worked with that tool before and this looked like an easier solution from the tech side at first glance. But I'll give both a try later then. | |||
::::::Thank you all! :) - ] (]) 18:37, 20 April 2020 (UTC) | |||
:::::::On that link, it is already written and ran, just click the download link at the bottom :D — ] <sup>]</sup> 18:43, 20 April 2020 (UTC) | |||
{{re|Xaosflux}} Haha, yes but I meant learning a bit what to do with it without disturbing you. In what format am I supposed to download it from? And where am I supposed to feed it? Maybe AWB? Or am I off track with the logic here? - ] (]) 18:48, 20 April 2020 (UTC) | |||
:It really depends on what you want to do with it, you probably shoudn't just feed it in to some sort of delte-o-matic. — ] <sup>]</sup> 19:29, 20 April 2020 (UTC) | |||
::{{re|Xaosflux}} I see. Well, I'll download it and maybe discuss it with our VP then. Thank you! :) - ] (]) 19:32, 20 April 2020 (UTC) | |||
:::{{re|Xaosflux}} I'm seeing the downloaded file now. Was it supposed to show user talk pages? Because I'm seeing a lot of those at that file. I thought you had done your quarry in such a way as to remove those? Or have I misunderstood you? - ] (]) 00:27, 21 April 2020 (UTC) | |||
::::The namespace is in there, if you want to do large bulk things, you're going to have to use a text editor, maybe a spreadsheet program, to filter and get the data in just the way you need it - using those is a bit beyond the scope of VPT though! Someone may have some recommended utilities, I usually just use shell scripts or text editors. — ] <sup>]</sup> 01:14, 21 April 2020 (UTC) | |||
:::::{{re|Xaosflux}} Oh, so it's not a mistake. How about subpages? Are those counted too? Just want to know with what information I'm dealing with. I'll try to use Excel for sorting/filtering data. | |||
:::::{{small|Can you run the same quarry for SqQuote when you do find time?}} - ] (]) 01:22, 21 April 2020 (UTC) | |||
::::::Excel should help alot here! ] is for sqq. — ] <sup>]</sup> 01:32, 21 April 2020 (UTC) | |||
:::::::And this query is somewhat 'simple' it does include subpages (they have a "/" in them) but it doesn't exclude them if there is a "root" companion page for example. — ] <sup>]</sup> 01:34, 21 April 2020 (UTC) | |||
::::::::{{re|Xaosflux}} Thank you! I hope that settles it. :) - ] (]) 01:35, 21 April 2020 (UTC) | |||
:::::{{u|Klein Muçi}}, you can use quarry to filter out user talk pages and subpages. See ]. ] (]) 16:10, 21 April 2020 (UTC) | |||
::::::{{re|SD0001}} thank you! I had never seen this tool before so all this is new info for me. Can you run one for SqWiki too? So I have it, just in case. I did get more responses than I hoped for in this question and I'm delighted for that. Now if only I'd get some suggestions on how to handle the situation practically regarding the high number of orphaned talk pages that we have... - ] (]) 16:22, 21 April 2020 (UTC) | |||
== ] == | |||
<section begin="technews-2020-W17"/><div class="plainlinks mw-content-ltr" lang="en" dir="ltr"><div class="plainlinks"> | |||
Latest ''']''' from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. ] are available. | |||
'''Tech News''' | |||
* The next issue of Tech News will be sent out on 4 May 2020. | |||
'''Recent changes''' | |||
* ] The ] is to help smaller wikis that need technical skills. They can learn and share technical skills. | |||
* ] Over-qualified CSS selectors in Wikimedia skins have been removed. <code>div#content</code> is now <code>.mw-body</code>. <code>div.portal</code> is now <code>.portal</code>. <code>div#footer</code> is now <code>#footer</code>. This is so the skins can use ] elements. If your gadgets or user styles used them you will have to update them. | |||
'''Changes later this week''' | |||
* There is no new MediaWiki version this week. | |||
'''Future changes''' | |||
* Some things on the wikis might look weird or not work in ] in the future. Internet Explorer 8 was replaced in 2011. | |||
* The font in the diffs will change. | |||
* ] The ] of MediaWiki will be on test wikis and MediaWiki.org from 28 April next week. It will be on non-Misplaced Pages wikis and some Wikipedias from 29 April next week. It will be on all wikis from 30 April next week (]). | |||
''''']''' prepared by ] and posted by ] • ] • ] • ] • ] • ].'' | |||
</div></div> <section end="technews-2020-W17"/> 18:44, 20 April 2020 (UTC) | |||
<!-- Message sent by User:Johan (WMF)@metawiki using the list at https://meta.wikimedia.org/search/?title=User:Johan_(WMF)/Tech_News_target_list_1&oldid=19961131 --> | |||
== What's going on with ]? == | |||
I discovered this via the ]. Apparently, for U.S. counties, if you search Google for how many coronavirus cases in a particular county, the sidebar pulls data from Misplaced Pages. That's par for the course. However, for some reason for counties in Wisconsin, it is not pulling the number of cases in the county as reported in our article, instead it is pulling from the column for cases per 100,000 people, then dropping the decimal. So, for example, La Crosse County, which has 25 cases, or 21.2 cases per 100,000 people, shows up on Google as having 212 cases. Milwaukee County, which has 2,191 cases or 229.6 per 100,000 people, shows up on Google as having 2,296 cases, and so on. As far as I can tell, that's the only state where Google is doing that. | |||
For comparison, I looked at ], which also lists how many cases per 100,000 people. The Wisconsin chart does have some columns the Michigan chart doesn't have, but overall they are similar. However, Google is correctly pulling the Michigan data from the cases column instead of the cases per 100,000 population. | |||
I know we don't control Google, but can anyone figure out why they are misreading the Wiconsin chart so badly? Perhaps if we can figure out what's wrong we can fix it on our end. ~ '']''<sup>(]|])</sup><small>]</small> 19:36, 20 April 2020 (UTC) | |||
:We can't, it's the scraper they have built that is bugged. I don't know how we can leave them a note, especially that they don't even have the small "Suggest an edit" text at the bottom of COVID-related snippets. --<span style="font-family:'Trebuchet MS',Geneva,sans-serif">] (] <span style="color:#fac">愛</span> ])</span> 20:58, 20 April 2020 (UTC) | |||
::{{ping|MPinchuk (WMF)}} ] (]) 21:38, 20 April 2020 (UTC) | |||
:{{u|ONUnicorn}}, {{u|QEDK}} there is a mailinglist: https://lists.wikimedia.org/mailman/listinfo/covid-19-stats —] (] • ]) 08:42, 21 April 2020 (UTC) | |||
::Thanks, {{u|TheDJ}} :) @{{u|ONUnicorn}}, as noted above, I'm pretty sure this is an issue with how Google's parser is reading the table, so I've given them a heads up about this. The Google team working on this feature is subscribed to the above mailing list, so it's a good way to directly report any issues you're seeing. I've also been monitoring various template and WikiProject talk pages for feedback/bug reports and sending out to the list on a regular basis, so pinging me works, too! ] (]) 13:38, 21 April 2020 (UTC) | |||
::Did not know that we had a mailing list, thanks! --<span style="font-family:'Trebuchet MS',Geneva,sans-serif">] (] <span style="color:#fac">愛</span> ])</span> 14:57, 21 April 2020 (UTC) | |||
=== Wisconsin Corona Virus cases incorrect on page that automatically comes up when googled === | |||
The counts by county for Wisconsin when corona virus cases is googled is so incorrect. When I go into the core they are correct but the page that comes up directly when googled is so off it is scary <!-- Template:Unsigned IP --><small class="autosigned">— Preceding ] comment added by ] (]) 18:39, 21 April 2020 (UTC)</small> | |||
:You might want to post this at ]. This page is for discussing technical issues with Misplaced Pages. -- '''] ]''' 18:41, 21 April 2020 (UTC) | |||
:: | |||
::Are you talking about the "Cases overview" that comes up in the Google Knowledge Graph when you search {{google|wisconsin coronavirus cases}}? If so we have no control over Google, and, although they always claim their information has come from us, it quite often has either come from someone else, or has come from us but is out-of-date. If you want to complain about Knowledge Graph, click the "About this data" link underneath it and a "Send Feedback" link will pop up. ‑ ] 18:46, 21 April 2020 (UTC) | |||
:::See ] - this has been reported to Google. ] (]) 18:52, 21 April 2020 (UTC) | |||
* Word is they are on it, which is good news. --<span style="font-family:'Trebuchet MS',Geneva,sans-serif">] (] <span style="color:#fac">愛</span> ])</span> 21:38, 21 April 2020 (UTC) | |||
:{{done}} It appears to be fixed now. If you notice any other discrepancies between the Google stats card and Misplaced Pages, feel free to ping me or report them to ] (]) 23:55, 21 April 2020 (UTC) | |||
== Word counter == | |||
If anyone wants to test out a new tool, I made a new word counter in ~3 hours: https://wordcount.toolforge.org | |||
Upcoming features include character count (maybe?), API (maybe??) Honestly though, I made this tool only because I saw that ArbCom currently recommends using a commercial advert-filled and I just wanted to get some OSS into the mix. <small>This pandemic has left me with too much free time. {{facepalm}}</small> --<span style="font-family:'Trebuchet MS',Geneva,sans-serif">] (] <span style="color:#fac">愛</span> ])</span> 20:54, 20 April 2020 (UTC) | |||
:Editors who would like to do word counting on-wiki, and don't mind a little JavaScript in their lives, can import ]. I think there is a similar script as well, but I can't put my finger on it at the moment. – ] (]) 23:16, 20 April 2020 (UTC) | |||
::Just adding that prosesize is pretty useful for on-wiki pages, but it counts entire pages on the site only, so there's that. --<span style="font-family:'Trebuchet MS',Geneva,sans-serif">] (] <span style="color:#fac">愛</span> ])</span> 14:59, 21 April 2020 (UTC) | |||
== Loading gadgets on another Misplaced Pages == | |||
English Misplaced Pages has the gadget "{{int:Gadget-ReferenceTooltips}}" and it's very useful. Our ] sets this up using the line <source lang=moin>ReferenceTooltips|ReferenceTooltips.js|ReferenceTooltips.css</source> so there are two actual gadget files and some dependencies. But this is not available at ], which has ]. I've got the idea that I might put appropriate code into ] and ]. The CSS file is easy - the line would be <source lang=css>@import "//en.wikipedia.org/search/?title=MediaWiki:Gadget-ReferenceTooltips.css&action=raw&ctype=text/css";</source> but I'm no JavaScript expert, so would this <source lang=css>mw.loader.using( ).done( | |||
mw.loader.load( '//en.wikipedia.org/search/?title=MediaWiki:Gadget-ReferenceTooltips.js&action=raw&ctype=text/javascript' ); | |||
)</source> work? --] 🌹 (]) 21:31, 20 April 2020 (UTC) | |||
:Are you an interface admin of your wiki? ] (]) 10:30, 21 April 2020 (UTC) | |||
::No, he isn't (and I don't know why you're asking) but anyway you can see the list of intadmins ]. --<span style="font-family:'Trebuchet MS',Geneva,sans-serif">] (] <span style="color:#fac">愛</span> ])</span> 15:01, 21 April 2020 (UTC) | |||
:::That's for English Misplaced Pages (where I ''was'' an intadmin, until that was unbundled from sysop a couple of years back); but I'm asking about Wicipedia Cymraeg, for which the list of intadmins is ]. I rather think that if {{user|Llywelyn2000}} wanted cy.wp to have gadgets, {{heshe|Llywelyn2000}} would already have set up something at ]. Hence my desire to put code into my ''personal'' common.js --] 🌹 (]) 20:35, 21 April 2020 (UTC) | |||
:That isn't the correct syntax. You want: <source lang=js>mw.loader.using( ).then(function() { | |||
mw.loader.load( '//en.wikipedia.org/search/?title=MediaWiki:Gadget-ReferenceTooltips.js&action=raw&ctype=text/javascript' ); | |||
});</source> | |||
:] (]) 15:26, 21 April 2020 (UTC) | |||
:::] - go ahead; that would simplify the editing / adding of references. Thanks! ] (]) 05:21, 22 April 2020 (UTC) | |||
=== Query related to Javascript === | |||
{{moved from|User talk:Redrose64#Query related to Javascript|] 🌹 (]) 19:44, 21 April 2020 (UTC)}} | |||
I have gone through your query in Village Pump related to the gadget. Following is my suggestion: | |||
:1)Paste following lines in ] page. This page is currently protected. | |||
<code> | |||
ReferenceTooltips|ReferenceTooltips.js|ReferenceTooltips.css | |||
</code> | |||
:As you mentioned there regarding dependencies, I think it will be resolved once you add above code.Please check the last point mentioned ]. | |||
:2)Paste the contents of ] file in your wiki just by changing 'en' to 'cy' in the url. The content model also should not change. I think this also requires higher privileges. | |||
:3)The same needs to be done for ] too. | |||
:4)Now, since gadgets have not been run on your wiki, I think something needs to be done related to ResourceLoader which I have not got info from anywhere. My suggestion is to try the above solution and if it goes wrong, I think it can easily be resolved by rolling back. Sorry if I have been too detail. ] (]) 13:28, 21 April 2020 (UTC) | |||
::You have totally misunderstood me. Wicipedia Cymraeg is not "my wiki", nor am I an administrator there. I'm just an ordinary Joe who occasionally edits there, but when doing so misses the rich variety of gadgets provided here at English Misplaced Pages (which ''is'' my home wiki). So my question at VPT was carefully constructed in such a way that it should have been clear that what I want to do is import the en.wp gadget for my own personal use at cy.wp. You should also have noticed that I had already worked out which files were necessary. --] 🌹 (]) 18:40, 21 April 2020 (UTC) | |||
== Change Graph:Lines default axis, labels, legend, and grid color to #54595d grey for color-inversion friendliness == | |||
{{tl|Graph:Lines}} is maintained @ ], and I've naively made some attempts to do this myself @ ], and made a request a few weeks ago @ ], but to no avail. This would bring Graph:Lines in line with ]. Could someone more knowledgeable be able to help? <b>~</b> <span style="font-family:Monotype Corsiva; font-size:16px;">] (] ⋅])</span> 21:40, 20 April 2020 (UTC) | |||
:{{u|Tom.Reding}}, what is color inversion friendliness if i may ask ? —] (] • ]) 08:47, 21 April 2020 (UTC) | |||
::], a fancy way of saying "shows up against a dark background". ‑ ] 09:07, 21 April 2020 (UTC) | |||
:{{u|Tom.Reding}}, ah you mean to use it with something like a darkskin gadget or userscript etc ? —] (] • ]) 15:38, 21 April 2020 (UTC) | |||
== Editor Help == | |||
Whenever I press publish it doesn't work then I have to reload and press publish. Then it works. .<br> | |||
Thanks, <br> | |||
''']''' (], ]) 03:16, 21 April 2020 (UTC) | |||
:], I see you're using the visual editor. Does it sound like the problem that ] reported in ]? ] (]) 18:12, 21 April 2020 (UTC) | |||
::Yeah, that looks exactly like what I'm seeing. Love the video technique :-) -- ] ] 18:31, 21 April 2020 (UTC) | |||
== Diff: One intermediate revision by 12 users not shown == | |||
Can we get the ] program to produce a more reasonable message than "{{xt|One intermediate revision by 12 users not shown}}" when an intervening revdel is involved, as seen in ]? (Possibly related discussions in archives: | |||
], ], and ].) ] (]) 05:19, 21 April 2020 (UTC) | |||
:Probably the second archive link is not related to this. But for the first archive link, I cannot reproduce the issue using what the OP described. (Open the {{History|Misplaced Pages:Historical_Wikipedia_pages/Talk/Gamefoolz|the page history}} and compare the revisions that the OP described). It may have been fixed or maybe there was never a problem there. The issue in the last archive link is a different issue and it has been fixed since. Also what do you think the "x intermediate revision" message should say?– ] (]) 10:26, 21 April 2020 (UTC) | |||
:: Problem reproduced on IE 11, Opera 67, Chrome 80, and Firefox 69. I'm not sure what it should say, but it shouldn't be a logical impossibility. Maybe, "83 revisions by 12 users not shown"? If it doesn't have that information, then maybe, "Many revisions by...". ] (]) 11:55, 21 April 2020 (UTC) | |||
::: shows the message is ] called with <code>(diff-multi-otherusers: 1, 12)</code>. Here at enwiki we could test whether $1 < $2 and add a possible explanation like "One intermediate revision by 12 users not shown. Some revisions may be hidden." But we don't know whether there are hidden revisions when $1 ≥ $2, and it could be confusing to only display the added text when $1 < $2. We don't have access to the real number of revisions without a MediaWiki change which should be requested at ]. ] (]) 13:55, 21 April 2020 (UTC) | |||
::::I found that the real count is intentionally hidden to tackle unrelated issue. There were concerns of leaking "statistics of deleted revisions" too, so the real count for such cases is unlikely to be restored. Also note, what I cannot reproduce is the issue that you linked from ]. I think I made that clear. – ] (]) 14:46, 21 April 2020 (UTC) | |||
::::: Doesn't seem worth a mw software change, does it, so I guess we'll just have to live with it. Thanks, all. ] (]) 18:03, 21 April 2020 (UTC) | |||
== Text direction quirk/problem in wikitext editor == | |||
I ran into this and thought to mention it here; I ran into it in the ] article trying to flesh out the cite which reads: {{box|[https://www.ad-hoc.co.il/ | |||
], 14 January 2008. Retrieved 29 January 2008.}}.I went to the linked page, cut the bold text below the image there (reading פרויקטים בביצוע אד הוק בניה, עבודות גובה ושיקום מבנים, and pasting it here worked OK; maybe it's peculiar to wikilink-labeling), tried to paste it in to label the wikilink there, and got unexpected results in the edit window. I see similar unexpected results doing that here. The text I'm trying to paste in is Hebrew, with R->L direction. I'm not literate in Hebrew, I'm aware of the direction difference, but the results I get here are still unexpected. Just thought I would mention it. I'm using Win10 and Google Chrome if that matters. ] ] <small>(earlier ''Boracay Bill'')</small> 12:08, 21 April 2020 (UTC) | |||
:"unexpected results" is vague. Your url above is rendered because there is a newline before <code>]</code>. Just remove it. Browsers may assume that numbers after right-to-left text is part of that text and should also be displayed right-to-left. You can insert a ] <code>&lrm;</code> before the numbers. With <code>&lrm;</code>: | |||
:‎, 14 January 2008. Retrieved 29 January 2008. | |||
:Without <code>&lrm;</code> | |||
:, 14 January 2008. Retrieved 29 January 2008. | |||
:My Firefox renders "14" in the right place with <code>&lrm;</code> but to the left of the link without it. When it reaches "January" it knows the right-to-left text has ended. It's only to the left in the rendered page for me. In the source text I see it in the right place but browsers may vary. The produced html is in the original order so it all depends on the browser. ] (]) 13:22, 21 April 2020 (UTC) | |||
== Is there a way to find (free) files with more than one (not deleted) version in the history? == | |||
That is, enwiki files which like the Commons file ] have more than one file in their file history. ] (]) 16:22, 21 April 2020 (UTC) | |||
:]. —] 23:34, 21 April 2020 (UTC) | |||
::Thanks. ] (]) 09:01, 22 April 2020 (UTC) | |||
== Detecting references with a bare URL and a ref name == | |||
Hi! I just realized that my bot does not edit bare-URL references with a reference name. | |||
The search regex I use is: | |||
<blockquote><code><nowiki>((?<=(?<!\?)url ?= ?)|(?<=\[)|(?<=<ref>)|(?<=\* ?))(http:\/\/)?(www\.)?example\.com(?!\.)</nowiki></code></blockquote> | |||
This works to find urls in cases like: | |||
* <code><nowiki>*</nowiki><span style="background-color:yellow"><nowiki>http://example.com</nowiki></span><nowiki>/home</nowiki></code> (optional space between asterisk and url) | |||
* <code><nowiki>[</nowiki><span style="background-color:yellow"><nowiki>http://example.com</nowiki></span><nowiki>/home</nowiki></code> | |||
* <code><nowiki><ref></nowiki><span style="background-color:yellow"><nowiki>http://example.com</nowiki></span><nowiki>/home</nowiki></code> | |||
* <code><nowiki>url=</nowiki><span style="background-color:yellow"><nowiki>http://example.com</nowiki></span><nowiki>/home</nowiki></code> (optional space between "url" and "=" and also between "=" and the url) | |||
However, it does not work on bare-URL references with a refname. | |||
I am not sure what sort of thing to do here to guarantee I will capture all somewhat reasonably formatted refs. I need to be able to get all of these, at least: | |||
* <code><nowiki><ref name="many-words-separated-by-hyphens">http://example.com/home</nowiki></code> | |||
* <code><nowiki><ref name="words with spaces">http://example.com/home</nowiki></code> | |||
* <code><nowiki><ref name=name>http://example.com/home</nowiki></code> | |||
* <code><nowiki><ref name=words-with-hyphens-and-no-quotes>http://example.com/home</nowiki></code> | |||
I think I can handle most of the refs with just a lookbehind for <code><nowiki><ref name=.*></nowiki></code> (demo at https://regexr.com/530uv). | |||
However, I would like to ask for a review of this — '''would this cause any problems, and are there any common formats of bare URL references this would not get?''' | |||
BTW here is what the regex would be with the new lookbehind: | |||
<code><nowiki>((?<=(?<!\?)url ?= ?)|(?<=\[)|(?<=<ref name=.*>)|(?<=<ref>)|(?<=\* ?))(http:\/\/)?(www\.)?example\.com(?!\.)</nowiki></code> | |||
(Another regex I worked on for a little was <code><nowiki><ref name="*">http:\/\/example\.com</nowiki></code> (see https://regexr.com/530up), but I don't actually see any reason it is better than the other and it only works on refs with quotes.) | |||
Thanks! ] (]) 23:16, 21 April 2020 (UTC) '''''{{ppor}}''''' | |||
== Automatic redirects from non-breaking hyphens in page titles? == | |||
I was interested in doing a search-and-replace of ] to replace all the hyphens in mentions of "COVID-19" and "SARS-CoV-2" with non-breaking hyphens to prevent unwanted line breaks in the middle of those words. However, doing so broke a ton of wikilinks when I tried to preview the page, since it seems the software doesn't automatically redirect from non-breaking hyphens to breaking hyphens in page names, the same way it does for some capitalization differences. I can see this being an issue at other pages where one might want to make a similar fix, and even if I had fixed things manually at ], the issue would come back as the page evolves. So is there any chance we could do something to the automatic redirect software to take care of this? <span style="color:#AAA"><small>{{u|</small><span style="border-radius:9em;padding:0 5px;background:#088">]</span><small>}}</small></span> <sup>]</sup> 00:41, 22 April 2020 (UTC) | |||
:"COVID-19" and "SARS-CoV-2" are using ]es instead of hyphens, so really titles with non-breaking hyphens and normal hyphens should redirect to the title with minus-hyphens. For example ] exists, but ] and ] do not. We could fix this by using a bot that would create the appropriate redirects and move the page to the version using hyphen-minuses when needed.<span class="nowrap">– ] (])</span> 21:23, 22 April 2020 (UTC) | |||
::Some other solution would be better because using something other than a hyphen will confuse editors and break searching for "COVID-19" with the normal hyphen. ] (]) 00:03, 23 April 2020 (UTC) | |||
:::{{re|BrandonXLF|Johnuniq}} yikes, hyphen-world is complicated haha. Trying to get this straight: so hyphen-minus and hyphen are separate things. And the page titles are all at hyphen-minus. Is hyphen-minus also the grammatically correct option? Is hyphen-minus what you get when you press the button on the keyboard (and thus what people will be searching for)? A bot to fix this sounds fine, if it can't be done more directly than that. Do we know what allows redirects via miscapitalization to work, and could we replicate whatever process does that? This seems more analogous to that situation than anything else. <span style="color:#AAA"><small>{{u|</small><span style="border-radius:9em;padding:0 5px;background:#088">]</span><small>}}</small></span> <sup>]</sup> 07:58, 24 April 2020 (UTC) | |||
::::Hyphen and hyphen-minus are the same thing. I wouldn't think there is anything a bot can fix. ] (]) 08:01, 24 April 2020 (UTC) | |||
:::::{{ping|Johnuniq|sdkb}} They're different. Hyphen-minus (-) is the hyphen on the keyboard and can be used as a hyphen or as a minus sign whereas a hyphen (‐) is only used as a hyphen and is not used as much and its use is discouraged here on Misplaced Pages. <span class="nowrap">– ] (])</span> 19:28, 24 April 2020 (UTC) | |||
:::::See ] and ]. --] 🌹 (]) 20:11, 24 April 2020 (UTC) | |||
::::::{{re|BrandonXLF|Redrose64|Johnuniq}} Okay, so what we need then is a way to automatically redirect any title with a hyphen or non-breaking hyphen to a hyphen-minus. Any ideas on how to do that? I can't figure out how the software does it for capitalization — trying to go to ] (with a lowercase f) just goes to ] (the page title) without even showing there was any redirect. <span style="color:#AAA"><small>{{u|</small><span style="border-radius:9em;padding:0 5px;background:#088">]</span><small>}}</small></span> <sup>]</sup> 01:14, 25 April 2020 (UTC) | |||
:This seems to come from the Gadget ]. This is a user gadget and is not enabled by default here (but available for users to enable). You should report the issue to the author. But also see ] – ] (]) 16:58, 1 January 2025 (UTC) | |||
== Random Link to a mathematics page == | |||
::Thanks a lot, that will probably do it for me. I was uner the impression it was a standard feature. ] (]) 17:36, 1 January 2025 (UTC) | |||
{{tracked|T48918}} | |||
:::Well there is a standard feature as well. You might even be using multiple. See ]. —] (] • ]) 09:57, 2 January 2025 (UTC) | |||
I would like to have a random link to a mathematics page, however most Mathematics pages aren't pages in the ] but in one of its subcategories. So http://wikipedia.org/Special:RandomInCategory/Mathematics doesn't work. Do you have any idea on how I could generate a link that leads to an article recursively? | |||
::::And the problem with the standard feature is that it doesn't have a timeout, so on very large pages it just freezes up the page until the browser eventually offers to kill it. <span class="nowrap">--] (])</span> 00:38, 5 January 2025 (UTC) | |||
:::::On what page does it actually freeze? CodeMirror is heavily optimized and much more performant nowadays. – ] (]) 09:00, 5 January 2025 (UTC) | |||
::::::@] I've been doing a lot of work cleaning up the top of ], and if I don't forget to disable syntax highlighting on any of those pages before editing the page locks up until eventually the browser offers to kill any running scripts. <span class="nowrap">--] (])</span> 21:33, 6 January 2025 (UTC) | |||
== Different assets for light and dark mode? == | |||
PS: I am very new to wikipedia (joined yesterday) and I am glad for any advice you can give me :D | |||
Is there any way to tell Misplaced Pages to display different images / media for Light vs Dark mode users? If not, could this be added in the form of a template, something like this? | |||
] (]) 08:11, 22 April 2020 (UTC) | |||
<pre>{{adaptive|lightmode=]|darkmode=]}}</pre> | |||
:You can use the subcategory as the parameter, or am I missing something? It won't check recursively if that's what you're asking. --<span style="font-family:'Trebuchet MS',Geneva,sans-serif">] (] <span style="color:#fac">愛</span> ])</span> 08:16, 22 April 2020 (UTC) | |||
Due to transparency, some SVG and PNG images have bad contrast when viewed in Dark mode. | |||
:There's no way to generate such a link using just wiki-markup. But you can employ the services of ] for this. Copy paste one of the ] to a page in your userspace, put <code><nowiki>|categories = {{SUBCATS|Mathematics|10}}</nowiki></code>. The bot should edit the page periodically, adding a link to a random article. ] (]) 12:05, 22 April 2020 (UTC) | |||
(repost from ] as they said would be better here) | |||
:] is exploring if a "recurse" option can be used for RandomInCategory. — ] <sup>]</sup> 13:19, 22 April 2020 (UTC) | |||
] (]) 04:38, 2 January 2025 (UTC) | |||
::Thank you for your response. To clarify: I would like to have a link that I can put into my browser, similar to the ] link, so every time I open a new tab, I get to see a mathematics page and learn something new and interesting or edit an article I at least know something about. | |||
::Thanks you ] (]) 19:03, 22 April 2020 (UTC) | |||
:It would have to be hardcoded in CSS. Dark mode is configured on CSS pages through ]. In order to specify a dark and light mode image in a template like that, ] would have to be fixed first. ] (]) 05:07, 2 January 2025 (UTC) | |||
== ƀ == | |||
:Have you tried using class=skin-invert-image already ? —] (] • ]) 09:55, 2 January 2025 (UTC) | |||
:{{tl|If dark}} can be used to select what wikitext to display based on whether or not dark mode is enabled. ] (]) 23:19, 2 January 2025 (UTC) | |||
::Usage of which really should be avoided though. —] (] • ]) 10:33, 4 January 2025 (UTC) | |||
:::I agree that generally speaking, specific colours shouldn't be specified in wikitext, and using the CSS class to ] simplifies maintenance by having just one image. There are cases, such as a company logo with a variant designed for dark mode, where the ability to choose the appropriate image is desirable. ] (]) 17:02, 4 January 2025 (UTC) | |||
::::{{tl|If dark}} may address the OP's question, although actual use of it may not be the best solution to the problem. – ] (]) 13:44, 7 January 2025 (UTC) | |||
== How to use inline style and CSS design tokens to color text? == | |||
I think ] should redirect to ] but a bot has deleted the page and now I cannot fix it. <!-- Template:Unsigned IP --><small class="autosigned">— Preceding ] comment added by ] (]) 14:48, 22 April 2020 (UTC)</small> | |||
:I think this is related to ]. I don't know what the correct action is, but someone here ({{U|Anomie}}?) probably does. See also ]. – ] (]) 15:30, 22 April 2020 (UTC) | |||
::It was renamed by a maintenance script not bot. From the migration plans, it seems even if you recreate it now, the script will move it again. But more importantly, the title will be completely inaccessible when the Unicode upgrade take place, so there's really no point in recreating it since it'll soon not be useful anymore. – ] (]) 17:07, 22 April 2020 (UTC) | |||
:::I think the redirect shouldn't have been removed before WP starts actually using the new Unicode version. How long will the problem persist? Days? Months? <!-- Template:Unsigned IP --><small class="autosigned">— Preceding ] comment added by ] (]) 18:01, 22 April 2020 (UTC)</small> | |||
::::] already goes directly to ], and <code><nowiki>{{uc:ƀ}}</nowiki></code> produces {{uc:ƀ}}. A few links at ] could be updated but it doesn't seem important. A page at ] becomes inaccessible after the link starts going to ], so the moves without leaving a redirect are deliberately made before this. ] (]) 18:46, 22 April 2020 (UTC) | |||
I want to use {{tl|NumBlk2}} to number the chemical formula ] and keep the color of the square brackets in the numbering. | |||
== Is there a way to add other cite template(s) to the drop-down menu in the editing box? == | |||
'''The original chemical formula looked like this:''' | |||
This is more curiosity than anything else, but I could see it being useful. I know the "Templates" drop-down (next to "Named references") has the choices "cite web, book, news, journal". If I wanted to add one - like "cite AV Media", for example, is that possible? ] (]) 19:28, 22 April 2020 (UTC) | |||
:{{u|JimKaatFan}}, you mean the dropdown of ]. It's settings are ], so if you get people to agree on adding it, it can be added. —] (] • ]) 08:39, 23 April 2020 (UTC) | |||
::Thanks. I wasn't looking to force changes on the whole world, but I was wondering if there's a way to modify that dropdown just for myself. Can I change those settings you linked so that the changes only apply to me when I'm logged in? Or is that a technical impossibility? ] (]) 15:52, 23 April 2020 (UTC) | |||
<syntaxhighlight lang="wikitext" inline>{{NumBlk|:|<math chem>\underbrace\ce{PCl5}_{(1)}\ \ce{->}\ \underbrace{t\text{-}\ce{Bu-N=PCl3}}_{(5)}</math>||RawN=y}} | |||
== New revision of audio clip won't load? == | |||
</syntaxhighlight> | |||
{{NumBlk|:|<math chem>\underbrace\ce{PCl5}_{(1)}\ \ce{->}\ \underbrace{t\text{-}\ce{Bu-N=PCl3}}_{(5)}</math>||RawN=y}} | |||
'''The result after using {{tl|NumBlk2}} for numbering:''' | |||
I uploaded the different portion of a song at ], but it loads the same revision (but just trimmed down). Actually, I reverted back and forth, but the current 14-sec one plays something different from the one I intended. --] (]) 21:56, 22 April 2020 (UTC) | |||
:{{Re|George Ho}} I reset the transcode on that, is it working the way you wanted now? — ] <sup>]</sup> 01:17, 23 April 2020 (UTC) | |||
:: Still loads the same clip, which is not the one I intended. The 14-second one is the one I wanted, but somehow the 21-second version is trimmed to 14 seconds. --] (]) 01:29, 23 April 2020 (UTC) | |||
:: On mobile web and mobile app, I can hear the clip that I intended to use. At first, it was strange. The audio was the same while logged-out. Then it turns out that I had to clear the cache of one of my browsers. Now I was able to hear the audio. --] (]) 07:19, 23 April 2020 (UTC) | |||
<syntaxhighlight lang="wikitext" inline>{{NumBlk2|:|<math chem>\underbrace\ce{PCl5}_{(1)}\ \ce{->}\ \underbrace{t\text{-}\ce{Bu-N=PCl3}}_{(5)}</math>|<span style{{=}}"color: var(--color-base);"></span>|RawN=y|Id=math_B2}}</syntaxhighlight> | |||
== Cache issues == | |||
{{NumBlk2|:|<math chem>\underbrace\ce{PCl5}_{(1)}\ \ce{->}\ \underbrace{t\text{-}\ce{Bu-N=PCl3}}_{(5)}</math>|<span style{{=}}"color: var(--color-base);"></span>|RawN=y|Id=math_B2}} | |||
''(The ID must be unique, so I renumbered it to {{EquationNote|B2}}.)'' | |||
So, I'm trying to get the word count java-script thing, and I have to clear my cache, but I've tried many ways but it won't let me. Any advice?? ] (]) 22:47, 22 April 2020 (UTC) | |||
'''But the recommendation is currently restricted to use inside TemplateStyles:''' | |||
== Grab protection timestamps with SQL == | |||
As described , using design tokens directly in an article (e.g. <syntaxhighlight lang="wikitext" inline><span style="color: var(--color-base);">some text</span></syntaxhighlight>) seems problematic. How to color text correctly in an article in light mode and dark mode in this case? Any ideas? Thanks. ] (]) 01:59, 5 January 2025 (UTC) | |||
I've got two queries that list indefinitely protected redirects, ] and ], but I'd like to add a column that lists the timestamp of the protection. How would I modify the query so that it would do that? <b style="font-family:Papyrus">]</b> <small>(] • ])</small> 09:05, 23 April 2020 (UTC) | |||
:So you are adding link content, that you don't want to have colored as link content ? And for that reason you want to apply custom styles ? Is this a recurring pattern ? Then you make a template and use TemplateStyles. —] (] • ]) 11:10, 5 January 2025 (UTC) | |||
:I tried this, but it timed out after 30 minutes so it's probably not the solution. | |||
::Thank you for your advice. It does sound a bit strange to color the link the same color as normal text. I'm not sure if the use of square brackets in numbering occurs very often. If that's not the usual case, maybe it would be better to just use {{tl|NumBlk}} instead of wrapper template {{tl|NumBlk2}}: | |||
::<syntaxhighlight lang=sql>SELECT CONCAT ("]") AS 'Redirect', log_timestamp AS 'Timestamp' FROM page | |||
::<syntaxhighlight lang="wikitext">{{NumBlk|:|<math chem>\underbrace\ce{PCl5}_{(1)}\ \ce{->}\ \underbrace{t\text{-}\ce{Bu-N=PCl3}}_{(5)}</math>|[]]|RawN=y|Attr=id{{=}}math_B3 style{{=}}"margin-left: {{#expr:1.6 * 1}}em;"}}</syntaxhighlight> | |||
JOIN page_restrictions ON page_id = pr_page | |||
<dl><dd><dl><dd> | |||
JOIN logging ON page_id = log_page | |||
{{NumBlk|:|<math chem>\underbrace\ce{PCl5}_{(1)}\ \ce{->}\ \underbrace{t\text{-}\ce{Bu-N=PCl3}}_{(5)}</math>|[''']''']|RawN=y|Attr=id{{=}}math_B3 style{{=}}"margin-left: {{#expr:1.6 * 1}}em;"}} | |||
WHERE pr_type = 'edit' | |||
</dd></dl></dd></dl> | |||
AND pr_level = 'autoconfirmed' | |||
::If it's the usual case, maybe just make a template and use TemplateStyles as you said: <syntaxhighlight lang="wikitext"> | |||
AND page_namespace = 0 | |||
<!-- Template:Token --> | |||
AND page_is_redirect = 1 | |||
<templatestyles src="Token/styles.css" /> | |||
AND pr_expiry = 'infinity' or pr_expiry is null | |||
</syntaxhighlight><syntaxhighlight lang="CSS"> | |||
/* Template:Token/styles.css */ | |||
:<b style="font-family:Papyrus">]</b> <small>(] • ])</small> 09:41, 23 April 2020 (UTC) | |||
::I haven't looked at your quarry queries (should have time later today), but five quick comments based only on what's here: try logging_logindex instead of logging; pasting into would have suggested that; you need parens around AND (pr_expiry = 'infinity' OR pr_expiry IS NULL); this will entirely omit pages without a corresponding log entry (like if the page was moved, instead of being protected at its current title) - try a LEFT JOIN logging_logindex and allow log_type IS NULL as an alternative to 'protect'; ] should be your first impulse for this sort of question, not ]. —] 15:46, 23 April 2020 (UTC) | |||
:::{{ping|Cryptic}} Thanks for the response. I was using these as replacements for ] but {{U|DannyS712}} got the script back up and running, so this problem is moot. I didn't know ] existed, so I'll keep it in mind for the future. <b style="font-family:Papyrus">]</b> <small>(] • ])</small> 15:50, 23 April 2020 (UTC) | |||
.token-color-base { color: var(--color-base); } | |||
== Request: Could someone make a template which links to editing the page in Visual Editor? == | |||
.token-color-disabled { color: var(--color-disabled); } | |||
/* ... (omitted) ... */ | |||
.token-background-color-base { background-color: var(--background-color-base); } | |||
Hi all | |||
.token-background-color-disabled { background-color: var(--background-color-disabled); } | |||
/* ... (omitted) ... */ | |||
</syntaxhighlight> and then use it like this <syntaxhighlight lang="wikitext"> | |||
{{Token}} | |||
{{NumBlk2|:|<math chem>\underbrace\ce{PCl5}_{(1)}\ \ce{->}\ \underbrace{t\text{-}\ce{Bu-N=PCl3}}_{(5)}</math>|<span class{{=}}"token-color-base"></span>|RawN=y|Id=math_B4}} | |||
</syntaxhighlight> | |||
::''(The source code above has not been tested and may contain errors.)'' —] (]) 16:38, 5 January 2025 (UTC) | |||
:::You should not worry about such weird specifics at all. This also produces different colours (= inconsistent behaviour) in the skins that do not use the same token. ] 16:51, 5 January 2025 (UTC) | |||
::::Thank you for reminding me about skins. Coloring text in Misplaced Pages is a lot more complicated than I thought. I haven't started to understand the skin part yet. So far I don't know if there is a correct way to handle coloring for skins and dark mode at the same time. If not, I may have to give up the idea of coloring text completely. Without coloring, I might just use {{tl|NumBlk}} directly like {{EquationNote|B3}}. ] (]) 01:18, 6 January 2025 (UTC) | |||
::::Or do you mean using name of colors or hex code of colors directly in styles.css instead of using design tokens? ] (]) 04:36, 8 January 2025 (UTC) | |||
:::::I mean that this is not an issue you should concern yourself with when you introduce more markup into the code and that markup is incorrect at least in one way. Misplaced Pages won’t be dead tomorrow because brackets are blue colour there. It is a complete non-issue. ] 10:40, 8 January 2025 (UTC) | |||
::::::Rather than telling me what I shouldn't worry about or what I shouldn't concern with, wouldn't it be better if you could just give me links to some relevant guidelines or help pages? I think most official documents have very clear and specific descriptions and explanations, which are relatively easy to understand. And they don't contain emotions directed at specific people. | |||
::::::I raised questions and opinions about design tokens based on the MediaWiki . If you think I have misunderstood the recommendation, you can tell me directly where I misunderstood it. ] (]) 14:53, 8 January 2025 (UTC) | |||
== Broken icon == | |||
I'm currently working on Wikiproject Covid-19 and collating information from UN staff members who are experts on different aspects on COVID-19 e.g agriculture, maternal health , education etc. One thing that I'm finding really difficult is that this information is best displayed in tables but VE is disabled in the Misplaced Pages: namespace. My understanding is this is because all Wikiprojects on English Misplaced Pages are in the Misplaced Pages: namespace which is shared with many other functions and some of these break with VE. | |||
{{tracked|T383023|fixed}} | |||
Hi, can anyone see why ] is broken, nothing seems to have chaned but it's showing as a broken image in the latest admin newsletter. It should be a horizontal red minus to signify remove. ]] 02:43, 6 January 2025 (UTC) | |||
:It seems to be working for me, both in that link and in the news letter in your user talk page (like in <code>- Ferret</code>). | |||
It is not a realistic solution to ask experts and new users to learn how to edit tables in source editor and having tables easily editable would be extremely helpful in many Wikiprojects. I would like a template that I can put at the top of these pages in Wikiprojects which would say something like: | |||
:What browser are you using? Are you using the mobile website (en.m.wikipedia.org)? | |||
:Is it affecting any of the previous newsletters? Is it affecting any of the other icons? – ] (]) (]) 02:58, 6 January 2025 (UTC) | |||
::That's weird it works for you. I'm on Chrome using the desktop site. All previous uses of the icon in old newsletters are broken too wherever I look. ]] 03:49, 6 January 2025 (UTC) | |||
:::I'm on Chrome desktop too... I wonder if your browser console shows any errors (Pressing f12 or <code>three dots button (⋮) > More tools > Developer tools > Console tab</code> and then refreshing the page). | |||
:::There's also the network tab of developer tools, which for me shows a line (the 10th line for me after refreshing) as successfully downloaded - if it had failed it would have been red, and apparently repeated a bunch of times one for each time it appears on your talk page. | |||
:::What it says in the Status column, if it is red, or in Status code if you click it, might be of interest. | |||
:::Also, does that direct link work? – ] (]) (]) 04:48, 6 January 2025 (UTC) | |||
::::Suspect I am in Stephen's position. The direct link says "Unauthorized This server could not verify that you are authorized to access the document you requested." No errors showing up in my console, although the console is forcing the page into mobile view for some reason. ] (]) 04:56, 6 January 2025 (UTC) | |||
:::::Searching ] for that error reveals a very similar error that happened on a beta version (]/])... seeing as it doesn't happen to me, it might be a ] issue rather than a ] issue (which is the data center I'm assigned to) - but I'm just guessing, I've never looked at how these things actually work, it just seems to be a common cause of differences. | |||
:::::I'm pretty sure someone with backend access will have to look into this to find out what the problem is though. | |||
:::::Could try filing a bug report in phabricator? –] (]) (]) 05:59, 6 January 2025 (UTC) | |||
::::::I have the same error and filed ticket ]. ]<sup>]</sup> 07:22, 6 January 2025 (UTC) | |||
:I was having the same problem with ] (used on four articles here and over 30 on some 14 languages of Misplaced Pages) and started a discussion at https://commons.wikimedia.org/Commons:Help_desk#SVG_image_claims_its_thumbnails_are_unauthorized before finding this discussion and the phab link. It would be interesting to learn whether this issue is more widespread. —] (]) 07:33, 6 January 2025 (UTC) | |||
*The bug report has been closed as fixed, please confirm. Issue appears to have been that a database container for thumbnails was mysteriously deleted, it was fixed by 'effectively re-creating the container' - an investigation on how/why it was deleted is now tracked at ]. – ] (]) (]) 15:21, 6 January 2025 (UTC) | |||
'Click here to edit this page with Visual Editor' and the link would simply add ?veaction=edit to the end of the URL | |||
*:The developer said there are 43 thousand containers, this was one of them - I'm guessing that's why it only affected some people and only some of the images. | |||
*:Cyberdog958 had already said in the phab task that it is working for him, before it was closed. Is it working for you four as well, @], @], @] and @]? | |||
*:– (different sig for pings) user in a ], currently at ] (]) 15:53, 6 January 2025 (UTC) | |||
*::Yes, seems it's fixed. Thanks, ] (]) 16:04, 6 January 2025 (UTC) | |||
*::Fixed for me too, thanks all. ]] 20:24, 6 January 2025 (UTC) | |||
=== Image Preview Issue === | |||
Would creating a template to do this be possible? | |||
] | |||
Thanks | |||
I was looking through the Misplaced Pages article for the Buick Regal when I noticed that the thumbnail image for the third generation model is no longer displaying as it should. When I click on the image, it appears as normal, but only when it is clicked on. In Misplaced Pages Commons, the exact same problem is present. It also does not allow for resolution changes as most other images normally do. I have tested this on both Windows and mobile using Apple Safari, Google Chrome, and Microsoft Edge, and the problem remains consistent. I also found that there exist other images on Misplaced Pages Commons that are experiencing a similar problem. This image used to work perfectly before, so what could have changed to cause this? Is there any way this could be remedied? ] (]) 05:07, 6 January 2025 (UTC) | |||
:Might be the same issue as ] above (yet to be determined what the issue is though). | |||
] (]) 10:39, 23 April 2020 (UTC) | |||
:I can see the thumbnail on ] just fine as well. – ] (]) (]) 06:06, 6 January 2025 (UTC) | |||
:We already have {{tl|VEFriendly}}. I think the main reason VisualEditor is not linked by default in Misplaced Pages space is that it's often used for discussions, like this page. ] (]) 10:50, 23 April 2020 (UTC) | |||
::I can confirm it is the same issue, right down to the "Unauthorized" issue when selecting different sizes. Interesting that it seems to work for some yet not for others. I mainly asked as I wasn't sure if the image needed to be replaced due to an issue on Misplaced Pages's end. Hopefully whatever it is it can be patched out later. ] (]) 06:10, 6 January 2025 (UTC) | |||
:: Oh this is perfect, thanks so much :) ] (]) 11:07, 23 April 2020 (UTC) | |||
::: I've made a couple of suggestions for improvements to the template on the talk page (the grammar is weird) https://en.wikipedia.org/Template_talk:VEFriendly | |||
::: Thanks | |||
::: ] (]) 11:18, 23 April 2020 (UTC) | |||
== Common.css issue on Brave == | |||
== Xtools edit count link for IP contribs == | |||
Does anyone know why my common.css doesn't seem to work on Brave? I've just replaced Firefox with it due to its atrocious performance on YouTube with Ublock turned on. Now, I can't get my (very simple) common.css to work with it. Any ideas? ] (]) 10:33, 6 January 2025 (UTC) | |||
Why doesn't the contribs page for IPs show the Xtools Edit count page ()? Also, the "Edit summary search" and "Articles created" links are missing that registered users have. | |||
:The name of the font should be in double quotes since it contains a space. – ] (]) 13:52, 6 January 2025 (UTC) | |||
::I changed it and it still doesn't work (also, it worked without the double quotes on Firefox just fine). The issue is that Brave seems to display the ''wrong'' font, rather than ignoring my common.css altogether. I think it displays DejaVu Serif instead of DejaVu Sans. ] (]) 14:42, 6 January 2025 (UTC) | |||
::I tried uninstalling DejaVu Serif and the problem persists. Why can't Brave follow a simple instruction? ] (]) 14:45, 6 January 2025 (UTC) | |||
:::{{replyto|Sol505000}} The CSS spec for is rather complex. To me, it reads as if you ''don't'' need to quote font names, even if they contain spaces, unless not doing so would cause ambiguity. If Firefox tolerates the absence of the quotes but Brave doesn't, that tells me that the authors of the two browsers have read the spec in different ways. Personally I would err on the safe side and quote them (the quotes need not be double, but must be paired, as in my example stylesheet below). | |||
:::On a related matter, I would not use a single font name - I would supply at least one fallback option, in case the device does not have your preferred font(s) installed; and the last of these fallback fonts should be one of the generic family keywords defined in the spec. Something like this: <syntaxhighlight lang=css>.IPA | |||
{ font-family: "DejaVu Sans", Arial, 'Liberation Sans', sans-serif; }</syntaxhighlight> --] 🌹 (]) 23:06, 6 January 2025 (UTC) | |||
:::Right-click on an element with the IPA class, select "Inspect", enter "font-family" in the filter under "Styles", and you can see what is overriding your custom style. You can also switch to the "Computed" tab and see what fonts are used in "Rendered Fonts" at the bottom. ] (]) 06:08, 7 January 2025 (UTC) | |||
::::Solved, what overrides the font are Brave Shields. Turning them off solves the problem (thankfully, WP isn't full of obnoxious ads that'd get in the way of browsing it). I'll report this to the developers. Thanks for the help everyone. ] (]) 22:29, 7 January 2025 (UTC) | |||
== How to change placement of custom fields on ] == | |||
Xtools stats are useful for analyzing problematic IPs, so the link would be useful to have there. Is there a technical barrier? --] (]) 13:44, 23 April 2020 (UTC) | |||
: No technical barrier, all that would need to happen is an admin making an edit to ]. ] ] 13:59, 23 April 2020 (UTC) | |||
::Thanks. I dropped a suggestion on that template's talkpage. --] (]) 06:44, 24 April 2020 (UTC) | |||
I pretty much have what I want, just not in the location I want. Even if I place the custom fields where I want them in the code, as seen , the displayed output doesn't change, and the custom fields—age and today's date, in this case—still appear at the bottom of the infobox. I want age below birthdate and place and today's date above current time. Also, is there a way to change the border color of the entire border around the infobox? I want it to be black so it looks better. Do I just add {{tq|<nowiki>style="border: 1px solid #000000;"</nowiki>}} somewhere? ''']''' • 23:09, 6 January 2025 (UTC) | |||
== Solve issue with date format in ] == | |||
:{{replyto|Amaury}} When named parameters are used, the order that these are supplied in is immaterial; the order of display is goverened purely by the code inside ]. I don't have time right now to look at the rest, will try to get back later. --] 🌹 (]) 09:36, 7 January 2025 (UTC) | |||
::{{ping|Amaury}} All fields, both custom and other, can only be displayed in the positions they have in the infobox to the right at ]. I suggest including age in the Born field with <code><nowiki>birthdate = {{Birth date and age|1991|11|8}}</nowiki></code> which produces: {{Birth date and age|1991|11|8}}. Today's date can be included in <code>current_time</code> but then the date and time should use the same time zone, unlike now where your time is local but date is UTC. I examined the implementation and you can tag a border color onto another parameter like <code><nowiki>| tablecolor = #CBC3E3; border: 1px solid #000000</nowiki></code>. I don't promise it will always work if the implementation changes. ] (]) 12:39, 7 January 2025 (UTC) | |||
::: {{Re|PrimeHunter}} Okay, so the only way to change the placements of the parameters is to edit the template code itself; however, that shouldn't be done, of course, as it would affect everyone. I originally had the birthdate and age together, but I didn't like how the age in parentheses was going down to a separate line. Although I have now figured something out by from the default 22em to 24em, which gives the age enough space to be on the same line. As for the date, my only minor nitpick with adding the date to the Current Time parameter is that time is technically not a date, so having Current Time also display a date would look weird to me. And, of course, there's no way to change the parameter name just for my own infobox. is what I ended up doing instead. As a final question, is there a way to hide the Wikipedian with the icon thing just for my infobox or no? Thank you so much for help and advice! ''']''' • 22:51, 7 January 2025 (UTC) | |||
::::{{ping|Amaury}} You can change "Wikipedian" with <code>|role=</code>. The row with two dashes will still be there even if you set it to something non-displayed like <code>&nbsp;</code>. You can hide the gender icon with <code>|gender=none</code> but it has other effects. A template call can be wrapped in {{tl|Replace}} or {{tl|MultiReplace}} to change some of the output but it's messy and shouldn't be done in articles. If you try it then ] can be used to find the exact current output. ] (]) 00:22, 8 January 2025 (UTC) | |||
== All templates broken beyond a certain point on a CfD page == | |||
Hi. I would like to ask for some technical help regarding an issue/bug with the ]. In a nutshell, when using the <code>date</code> format for the x-axis in combination with the <code>line</code> graph type, everything (almost, see below) goes fine; however in combination with the <code>rect</code> graph type (i.e. bar charts) the dates are not formatted properly and are shown in Unix date format. Furthermore, the <code>date</code> format – for ''any'' graph type, <code>line</code>, <code>rect</code>, etc – appears to be incompatible with the choice of xMin and xMax values, again for the x-axis. I would suggest that it's better to direct helpers to the ], where there are also graphical examples of the issues, and per ]. Thanks! --] (]) 08:56, 24 April 2020 (UTC) | |||
The ] (]) has all templates broken beyond a certain point in the "]" nomination, which uses ] exactly 1,353 times. Templates beyond this point are replaced by links to the underlying templates. –] (]]) 23:37, 6 January 2025 (UTC) | |||
== Safari (iPadOS) screws up when rendering Misplaced Pages (desktop) == | |||
:{{replyto|LaundryPizza03}} ] strikes again. There are two clues to this: (i) the intended transclusions showing as links, as you describe; (ii) the page being in {{cl|Pages where post-expand include size is exceeded}}. The prime suspect here is ] - do all of them need a {{tlx|lc}}, or just the first one? --] 🌹 (]) 23:53, 6 January 2025 (UTC) | |||
::The issue was fixed by omitting around 1350 {{tlx|lc}} for annual subcategories. They wouldn't even fit on a subpage with no other content. ] (]) 08:31, 7 January 2025 (UTC) | |||
== Enwiki dump? == | |||
I had noticed this issue before, but for some reasons, I didn’t bother to ask about this. Anyways, the issue is this: | |||
# Letters are misaligned, so sometimes words will overlap | |||
# If there’s a section title which should fit in one line in the navigation box, but has two words, Safari renders it in 2 lines | |||
# The issue gets resolved when reloading the page | |||
Device: iPad (2017)<br> | |||
OS: latest iPadOS (no matter what I update it to, the bug stays)<br> | |||
When it began: I’ve forgotten (it’s been so long)<br> | |||
Has anyone else had to deal with this?<br> | |||
] (]) 10:35, 24 April 2020 (UTC)<br> | |||
Post-posting comment: I noticed that this issue is only on Misplaced Pages, and that it usually happens between an ordinary word and a linked word. By the way, I don’t think different browsers can fix this (Apple demands that all browsers use WebKit, and I ''think'' I noticed this issue on Chrome on an iPhone 7) - ] (]) 10:40, 24 April 2020 (UTC) | |||
. Enwiki: | |||
== Request, copy Template:Portal_navigation from Meta to English Misplaced Pages, 'Lua error in package.lua at line 80: module 'Module:Is rtl' not found.' == | |||
* <code><nowiki>2025-01-07 17:19:24 enwiki (new): missing status record</nowiki></code> | |||
Everything else is available. Is this normal? I need a dump. -- ]] 17:26, 7 January 2025 (UTC) | |||
: Probably https://lists.wikimedia.org/hyperkitty/list/xmldatadumps-l@lists.wikimedia.org/thread/5ABHNJRXSR53XBAMNH3TROLTMY5ZXEXF/ ] ] 17:28, 7 January 2025 (UTC) | |||
::Great, thanks. -- ]] 17:57, 7 January 2025 (UTC) | |||
== Undo and thank buttons on Vector 2010 == | |||
Hi all | |||
The undo and thank buttons in page history are coloured with Vector 2022 colours on Vector 2010. I'm not sure when this bug was introduced, but it wasn't there when I edited Misplaced Pages a month ago. <span style="font-family:Garamond,Palatino,serif;font-size:115%;background:-webkit-linear-gradient(red,red,red,blue,blue,blue,blue);-webkit-background-clip:text;-webkit-text-fill-color:transparent">] ]</span> 19:08, 7 January 2025 (UTC) | |||
I'm working on usability for a Wikiproject and want to use https://meta.wikimedia.org/Template:Portal_navigation however I don't understand how to copy it into English Misplaced Pages, I tried to copy it to Wikidata and it didn't work and someone had to fix it. If anyone knows how to copy it across I'd really appreciate it. | |||
== RSS == | |||
Thanks very much | |||
When it comes to such feeds of pages' history, here, is it the feed itself that is not instantaneous, or the bot that delivers it? ~] ] 23:03, 7 January 2025 (UTC) | |||
] (]) 10:42, 24 April 2020 (UTC) | |||
:Why do you think it is not instantaneous ? —] (] • ]) 23:05, 7 January 2025 (UTC) | |||
:Update: I copied it across to Misplaced Pages but I'm getting a big red error message 'Script error: No such module "Portal navigation".' any help would be really appreciated. ] (]) 13:14, 24 April 2020 (UTC) | |||
::The timestamps differ variably, for some reason... I'm just wondering, then, if it's the feeds themselves, or the bots relaying it (as they're some free service, so presumably they don't prioritize them...) ~] ] 12:55, 8 January 2025 (UTC) | |||
::The only thing ] does is to invoke ] so you need to copy ] at a minimum. I don't know whether other things are needed. ] (]) 13:19, 24 April 2020 (UTC) | |||
== Are namespaces supposed to be case insensitive? == | |||
:::Thanks {{ping|PrimeHunter}}, I've done this but now I get the big red error message 'Lua error in package.lua at line 80: module 'Module:Is rtl' not found.' ] (]) 13:30, 24 April 2020 (UTC) | |||
I discovered today that namespaces appear to be case insensitive, as opposed to following the normalization (canonicalization?) rules for page titles. For example, all of these end up at the same place: | |||
::::OH MY GOD I MADE IT WORK :) ] (]) 13:41, 24 April 2020 (UTC) | |||
* ] | |||
== Is there any way in which notification links could be linked to the pages which have been edited == | |||
* ] | |||
* ] | |||
* ] | |||
This isn't mentioned at ], so it's not clear if this is intentional, a bug, or just some silly bit of undefined behavior. Is it intentional? ] ] 02:19, 8 January 2025 (UTC) | |||
Whenever I receive notifications for either https://en.wikipedia.org/James_Gordon_(British_Army_officer,_died_1783) or https://en.wikipedia.org/Cyril_Lloyd_(British_Army_officer) the second part of the link is not live, but black. It's just annoying, rather than serious, but can anything be done? I have to search for the pages instead of simply linking to them. Thanks. ] (]) 12:42, 24 April 2020 (UTC) | |||
: Intentional I think. ] ] 02:54, 8 January 2025 (UTC) | |||
:{{ping|Arbil44}} "notifications" usually refers to the two icons to the right of your username at top of Misplaced Pages pages. Are you referring to notification ''mails''? If so, do you have "HTML" or "Plain text" at "Email format:" at ]? "Plain text" sends a url as a plain text string, e.g. <code><nowiki>https://en.wikipedia.org/James_Gordon_(British_Army_officer,_died_1783)</nowiki></code>. Your own mail software or webmail service ''may'' turn it into a clickable link and ''may'' omit an ending part in parentheses if it guesses it isn't part of the url. I don't know how much "HTML" encodes but maybe it will send a full clickable link so your mail software doesn't have to guess where the url ends. ] (]) 13:12, 24 April 2020 (UTC) | |||
: ] says: "If the target contains a ] prefix, then the whole prefix and the first character after the colon are case-insensitive (so ] links to ])." ] (]) 03:22, 8 January 2025 (UTC) | |||
::Thank you PrimeHunter. Your kind response is a bit too technical for me to fully understand, but I have several pages on my watch list and the links go straight to the relevant pages with no problem, but not the two I mentioned. Here is the latest notification which has caused me to ask the question now. I have emboldened the bit which isn't live in my email, but I suspect will go 'blue' here! Dear Arbil44, | |||
:It's mentioned at ]. ] (]) 08:57, 8 January 2025 (UTC) | |||
:It's been like that fot as long as I can remember, and I joined in May 2009. --] 🌹 (]) 00:34, 9 January 2025 (UTC) | |||
::The oldest mention I found at mw is from 2007 , and the edit summary said "from docs/title.txt in installation". It also means DISPLAYTITLE allows any capitalization in the namespace. ] (]) 09:18, 9 January 2025 (UTC) | |||
== Out-of-line references missing in an imported excerpt == | |||
::The Misplaced Pages page James Gordon (British Army officer, died 1783) has been changed on 20 April 2020 by Necrothesp, see https://en.wikipedia.org/James_Gordon_'''(British_Army_officer,_died_1783)'''for the current revision. | |||
Hello, fellow Wikipedians! | |||
::To view this change, see https://en.wikipedia.org/search/?title=James_Gordon_'''(British_Army_officer,_died_1783)'''&diff=next&oldid=944367213 | |||
::] (]) 13:32, 24 April 2020 (UTC) | |||
:::{{ping|Arbil44}} You were referring to notification mails as I suspected. Click ] and see what is says below "Email format:". If it says "Plain text" then change it to "HTML" and click "Save" at the bottom. ] (]) 13:40, 24 April 2020 (UTC) | |||
::::Thank you again. Did as you suggested and it is already showing "HTML", so what now?! Keep it simple for me to understand please! ] (]) 13:47, 24 April 2020 (UTC) | |||
:::::{{ping|Arbil44}} Watchlist mails are enabled at ] and not ]. They are not a part of the Echo notification system so the Echo preference has no effect on them. They always come as plain text (] from 2008 has a HTML request). It appears there is currently no solution for you, apart from changing to mail software which interprets the url string differently and includes a part in parentheses when it makes a link. But it's impractical to change mail software just for this. My own mail service (Danish webmail so not practical for others) includes the parentheses. There are also mail systems which don't make a clickable link for any url so you are better off than some. ] (]) 14:32, 24 April 2020 (UTC) | |||
::::::Thank you PrimeHunter. I appreciate knowing the situation. It was annoying me and I supposed it would be fixable, but now I know it isn't, then I will stop being irritated (or at least try)! Much appreciate your assistance, thank you. ] (]) 14:51, 24 April 2020 (UTC) | |||
:::::::{{ping|Arbil44}} It's not fixable for you. It could be improved in MediaWiki for some users but hasn't been done. Here are some technical details you are free to ignore since they don't help you. Misplaced Pages sends a mail like this: | |||
<pre> | |||
The Misplaced Pages page Misplaced Pages:Village pump (proposals) has been changed | |||
on 24 April 2020 by Shnizzedy, see | |||
https://en.wikipedia.org/Wikipedia:Village_pump_(proposals) for the | |||
current revision. | |||
I'm stuck on a problem with undefined references in the ] article, current version ] from 26 December 2024. | |||
To view this change, see | |||
https://en.wikipedia.org/search/?title=Misplaced Pages:Village_pump_(proposals)&diff=next&oldid=952863338 | |||
It includes the lead section of ] through the {{t|Excerpt}} template in the {{section link| Frogs in culture | Pepe the Frog in 4chan culture}} section. The included text has 12 references in it, 10 of which are defined in-line and appear to be properly included in the destination ] article. However, the remaining two are defined outside the ]'s lede, which results in {{big|{{color|red|'''Cite error: The named reference ... was invoked but never defined (...)'''}}}}. | |||
For all changes since your last visit, see | |||
https://en.wikipedia.org/search/?title=Misplaced Pages:Village_pump_(proposals)&diff=0&oldid=952863338 | |||
</pre> | |||
:::::::Note that none of it is clickable. It's all plain text. When mail software displays the mail, it may automatically change some of the text to clickable links according to an algorithm chosen by the software. The algorithm in your current mail software apparently says that a link ends if parentheses are reached, so <code><nowiki>https://en.wikipedia.org/Wikipedia:Village_pump_(proposals)</nowiki></code> becomes https://en.wikipedia.org/Wikipedia:Village_pump_<nowiki>(proposals)</nowiki> instead of https://en.wikipedia.org/Wikipedia:Village_pump_(proposals). Many mail services do this. The usual complaint we get is not about watchlists but that a link doesn't work if a user mails the url. In that situation there is a workaround which works in most mail software: Replace <code>(</code> by <code>%28</code> and <code>)</code> by <code>%29</code>: https://en.wikipedia.org/Wikipedia:Village_pump_%28proposals%29. Our software doesn't do this when it sends plain text mails about watchlist changes, and we have no HTML option for this. In HTML you specify exactly where a url starts and ends so there is no ambiguity. Another frequent problem is url's ending in a period like ] which has url <code><nowiki>https://en.wikipedia.org/Martin_Luther_King_Jr.</nowiki></code> Nearly all software will think that the period is ending a sentence and is not part of the url. This includes MediaWiki which produces: https://en.wikipedia.org/Martin_Luther_King_Jr. It works out OK in this case because we made a redirect at ] without the period. ] (]) 15:06, 24 April 2020 (UTC) | |||
Those two are ref named 'Branded' and named 'ADL'. | |||
Well, I certainly did you the courtesy of reading, rather than ignoring, your response, but I followed you only up to a point! Anyway, if I have to change my software/provider/whatever in order to get clickable links, well that would be a bit unnecessary. Anyway, you have been most helpful in explaining that I must just put up with the situation. One small irony is that I put this page on my watchlist, while this discussion was taking place, and the emailed link to this thread does not take me to this thread! Don't worry about explaining that since this matter is now 'resolved'! ] (]) 15:15, 24 April 2020 (UTC) | |||
How can I fix it within the destination article (that is, without moving the references to the lede in the source article)? --] (]) 08:06, 8 January 2025 (UTC) | |||
== HELP! with medical cases chart == | |||
:Certainly the easiest solution is to move the refs to the lead section of the Pepe article, since it doesn't apply ]. Otherwise you have to recreate them as named references in the FiC article (which is not ideal since they could get orphaned) ] (]) 11:12, 8 January 2025 (UTC) | |||
Help. Someone please explain to me how ] renders the colors for recoveries etc. I am trying to add a "Recoveries" light blue color tab to the top of ] but I don't see how to do that. I have been poring over the medical cases chart Template and the .doc Template subpage but I confess - not a coder, don't understand the template explanations. Please don't fix it for me, help me understand so I can do it myself and know how to do it next time. ] (]) 17:38, 24 April 2020 (UTC) | |||
::{{Re|JMF}} Yup, I've considered moving the refs to the lede. However, it could fail in some situations. <br>Suppose a reference is called by its 'Name' attribute from two different sections, and each section is transcluded in a different article. That's quite exotic scenario, but still possible. Then both original sections would have to define the same reference exactly the same way for all three articles to display properly. <br>That's why I would rather like to solve the problem on the 'receiving' side, if possible. {{smiley}} --] (]) 09:11, 9 January 2025 (UTC) | |||
:{{ping|Shearonink}} ] calls {{tl|Medical cases chart}} with <code>|recoveries=n</code> to omit the legend for recoveries. Just remove it or change to <code>|recoveries=y</code>. ] (]) 18:26, 24 April 2020 (UTC) | |||
:::In that case the only real solution is to copy the references into the article containing the {{tl|excerpt}} as list defined references. Especially as leads are not the only type of section that gets transcluded, so LEADCITE isn't always applicable. -- <small>LCU</small> ''']''' <small>''«]» °]°''</small> 23:40, 9 January 2025 (UTC) | |||
::Oh THANK YOU. Sheesh, I don't understand this present chart as well as the previous style, where everything was clearly labeled, row by row...... I wish the documentation or tamplet page itself explained that as clearly as you just did. ] (]) 18:48, 24 April 2020 (UTC) | |||
:And this is one reason section transclusion can be a really bad idea. ] (]) 21:23, 8 January 2025 (UTC) | |||
::{{re|Izno}} What is the solution, then? Possibly copy the whole section and add some HTML comment both at the source and a copy for editors to keep both copies in sync? But I don't know whether HTML comments are visible in Visual Editor... {{smiley|sad}} --] (]) 09:11, 9 January 2025 (UTC) | |||
:::The objective should be immediate verifiability in the article of interest, while promoting ]. Excerpt is either pulling a ]-compliant lead, which has no references, so verifiability is hence a question in the relevant article, or is pulling one which does have references... in which case the other article needs fixing. It's just fundamentally really gross. What should instead happen is a summary of the Pepe article, and I imagine it should be a much shorter summary per ]. ] (]) 20:07, 9 January 2025 (UTC) | |||
:Last time I tried to help on a closely-related matter I got shot down for it. --] 🌹 (]) 00:35, 9 January 2025 (UTC) | |||
::{{re|Redrose64}} Sorry to hear it. Did a requester attack you for your help being inaccurate, or some bystander considered the whole idea wrong and outraged for you helping instead of disouraging the needy one...? --] (]) 09:11, 9 January 2025 (UTC) | |||
:::{{replyto|CiaPan}} ]. It's got a confusing sequence, because after I had fixed the original problem, and explained how, DuncanHill apparently decided to attack me for being an admin - but put those posts ''before'' the earlier replies. It spilled to other pages - note carefully the timestamp of {{diff|User:DuncanHill|prev|1265841465|this edit}} in relation to the timestamps in that archived VPT thread. Then ActivelyDisinterested had a go at me for reverting some edit or other, but never specified what I reverted. --] 🌹 (]) 22:12, 10 January 2025 (UTC) | |||
== Templates that don't display on mobile == | |||
== Making a personal fork of Misplaced Pages's Featured and Good articles. == | |||
{{Today/AD/SH/AH}} | |||
Hi. I wanted to make a personal fork of the English Wikpedia's Featured and Good Articles (over 40,000 total). Uaing article as a guide, I downloaded a "Dump" file of the English Misplaced Pages (over 6,000,000 articles). | |||
Sorry, I know that this is an old chestnut but I hoped that maybe it had been resolved without my noticing. The template {{tl|Today/AD/SH/AH}} does not display on mobiles (or at least not on Android, but that has the largest market share worldwide). Is this a generic problem or something specific to that rather old and limited-use template? (If the latter, I'll go ask the template gurus.) ] (]) 11:03, 8 January 2025 (UTC) | |||
:@] This is intentional. That template is based on {{tl|sidebar}}, which, as it notes in the documentation, does not display on mobile devices. The WMF deliberately removed a bunch of templates (like navboxes) from the mobile site. ] (]) 13:35, 8 January 2025 (UTC) | |||
My questions are: | |||
::Of course! Classic case of looking for a complicated reason (java) for a simple problem{{snd}} I should have spotted that there is nowhere for a sidebar to go. So time for me to see if can be changed to an infobar. ] (]) 16:54, 8 January 2025 (UTC) | |||
:::Indeed, it is more {{tl|infobox}}y than it is {{tl|sidebar}}y. ] (]) 21:15, 8 January 2025 (UTC) | |||
::::Current "emerging consensus" is to replace them all with {{tl|Infobox calendar date today}}, see ]. ] (]) 23:14, 8 January 2025 (UTC) | |||
== Chinese nationality in the infobox refuses display on certain articles == | |||
1. Is there an easy way to download only the Featured and Good articles (along with the necessary Template pages) rather than a dump of the whole encyclopedia? Or: | |||
Am I the only one who noticed how on some articles, for example the Hong Kong activist ], if you add his nationality to the infobox, it is not visible to the readers and doesn't show up in previews. However if you add any other nationality such as Bahamian it does display in the preview. At first I thought maybe this was just a quirk of visual editor, but even in source code, the same problem persists. Here is the diff in case anyone cares to examine it. ] (]) 15:29, 8 January 2025 (UTC) | |||
:The documentation for {{tl|Infobox officeholder}} says the following: | |||
2. Is there an easy and efficient way to auto-delete articles; so that after setting it up, I can just delete the articles I don't want to keep? Such as a script or bot I can use, or point me in the direction of how to code one? | |||
:<code>nationality</code> is ] if the corresponding country is mentioned in <code>birth_place</code>, for example <code>|birth_place = Tokyo, Japan |nationality = Japanese</code>. | |||
:I'm guessing that's why. {{tq|Not displayed}} is a link to ], which seems relevant. – ] (]) (]) 15:50, 8 January 2025 (UTC) | |||
::I see, thanks, that makes sense now. ] (]) 00:20, 9 January 2025 (UTC) | |||
== Multiple citation templates == | |||
Thanks.--] (]) 18:53, 24 April 2020 (UTC) | |||
:What you asking for is very similar to what ] has been doing. ]_] 20:20, 24 April 2020 (UTC) | |||
What you want to do is not terribly difficult, but it does require some programming skills. There is an which lets you do anything you can do via the web front end. There are which let you access this via a wide variety of programming languages. The basic gist would be to (have your program) look at ] and ] and iterate over the entries, downloading the wikitext for each page and saving it locally. Figuring out which templates you need for each pages is only a little bit more complicated. You'll need to parse the wikitext and (possibly recursively) iterate over the transcluded templates, and download those via the api. Again, there's parsers available for a wide variety of programming languages. For somebody experienced in programming and familiar with the API and parser libraries, you could probably knock this off in an afternoon. If you're an experienced programmer but have never used these libraries, probably a couple of days to get used to how they work. -- ] ] 21:26, 24 April 2020 (UTC) | |||
Why there were created multiple citation templetes (like Cite book, Cite journa) if they differ just by a few parameters? I wonder if there could be just one template with various attributes, because in practice the user usually fills up just some of them. ] (]) 16:20, 8 January 2025 (UTC) | |||
== Deleting talk page history == | |||
:All those templates are wrappers for ], but the parameters required/allowed by the different citations types varies. For example, {{tl|cite web}} generates an error if {{para|volume}} is used but {{tl|cite journal}} doesn't. This becomes even more important with the ] used by Visual Editor and various bots, where we want to vary which fields are presented to the editor. <span class="nowrap">--] (])</span> 17:32, 8 January 2025 (UTC) | |||
I noticed somehow deleted their talk page history. I'm not sure how, but it's unfortunate because there were several warnings there. Thank you. ] (]) 21:51, 24 April 2020 (UTC) | |||
:Because people didn't create centralized templates at the time those were created (20 years ago). Someone eventually made {{tl|citation}} and then someone else finally made {{tl|citation/core}} which at least centralized how things were rendered but by that time we had the problem that there were stylistic differences between the two (which we have whittled since). We later turned that template into the aforementioned module when we got ]. If we had the right tools at the time, I suspect there would have been one template and one template only. | |||
:{{U|Magnolia677}} That is a consequence of archiving the history and text by moving it rather than copy-pasting. It is a valid, though rarer, form of archiving. You can see it in the first revision of that page. --] (]) 22:07, 24 April 2020 (UTC) | |||
:I guess we could make a {{tl|citation cs1}} which would do the same things as {{tl|citation}} without requiring the parameter tweaks for the style issue, but the other issue a single template has trouble with is that there are some rules that are harder to enforce (or guess at) when you have only one template. ] (]) 21:21, 8 January 2025 (UTC) | |||
::{{ping|Izno}} How unfortunate. Thanks! ] (]) 22:13, 24 April 2020 (UTC) | |||
::Yup, that sounds me like a reason, that before Lua you would need to format value inserted by the user different way for each type of a resource. Because otherwice it would be maybe better to have one big template providing samples of parameters for each resource type. ] (]) 21:27, 8 January 2025 (UTC) | |||
:::The history still exists, but is now found by looking at . --] 🌹 (]) 23:01, 24 April 2020 (UTC) | |||
:::This is really a matter for ]. --] 🌹 (]) 00:37, 9 January 2025 (UTC) | |||
:::Moving the Cite CS1 templates into one would not be complicated. It could be done with moving "CitationClass" from being a config (template parameter) to being an argument (page parameter). The challenge is getting ] to work - the automatic citation filler in VisualEditor and ] - because it expects one template for news, one for web, one for books, etc. Changing the roughly 6 million pages to one template with a bot is also going to take awhile. You are going to need a conseus for all of this. ] (]) 01:30, 9 January 2025 (UTC) | |||
::::It sounds like you're talking about something like changing <code><nowiki>{{cite web|...}}</nowiki></code> to <code><nowiki>{{cite|web|...}}</nowiki></code>, consolidating to one template while retaining the background module code. I can't see how this would make anything better. Merging the documentation seems likely to cause more confusion than the current situation, since different modes accept different parameters and produce different formatting. I don't see how or why this would be a good idea. – ] (]) 05:26, 9 January 2025 (UTC) | |||
:::::A lot of the documenation is already maintained in a centralised way, through {{tl|Citation Style documentation}}. Take a look at ], which contain the documentation that is identical for all CS1 templates. --] (]) 08:43, 9 January 2025 (UTC) | |||
::::::I am familiar with the documentation and have edited it over the years, which is why I think that it will be difficult to display for a single template with multiple modes. Take a look at the switch and if statements in the code for {{tl|Citation Style documentation/title}}, for example. Editors already complain that the documentation for these templates is too complex; imagine a single documentation page with all of the modes explained on one long, green page. – ] (]) 14:32, 9 January 2025 (UTC) | |||
:::::::Citation templates included quite a lot options. It would be nice to know the persentage of use of each option. We may see then, that some of them have rare use. ] (]) 22:44, 9 January 2025 (UTC) | |||
::::::::Have you looked at the monthly report available in the TemplateData section of the documentation? If you have specific suggestions for changes to one of the cite templates, ] is the correct forum. – ] (]) 23:07, 9 January 2025 (UTC) | |||
::::::::Some options are rarely used because they are rarely needed, but they {{em|are}} needed sometimes. Try citing a chapter in a book without "chapter", "chapter-url", or "chapter-url-access". ] 23:08, 9 January 2025 (UTC) | |||
::::Well, I am not sure if VisualEditor would be a big deal. You just recreate ] and maybe also ]. ] (]) 14:41, 9 January 2025 (UTC) | |||
== External link screening JS script I just made! == | |||
== Question == | |||
Re recent events that I'm not going to mention because of ]/], and also the very concerning {{tl|Plain link}} template which can disguise external links as wikilinks (like {{Plain link|https://google.com|this}}), I made a user script, at ] that presents a "are you sure this is the link you want to visit" screen when clicking through to external links, even if {{tl|Plain link}} has been used or the link has a display name set, showing you the actual URL you are about to visit. This is common on many websites like YouTube, Twitter etc. | |||
I am not sure if this is the correct place for me to post this. | |||
It's also able to prevent spoofing (]) by showing the actual puny code and adding warnings for websites like https://wikipediа.org (spoiler alert: this isn't wikipedia, it's a trick using cyclic letters, you are actually taken to http://xn--wikipedi-86g.org/ which this script will tell you about). | |||
I am working on a tool that allows the review and answering of protected page edit requests. You can view the tool ]. <s>My question is how do we create an edit form so that reviewers do not have to switch between different tabs? Has someone already created one? And I am talking about the edit form that is kind of like the traditional Misplaced Pages edit form.</s><span style="font-variant: small-caps;">]]]]]</span> 23:21, 24 April 2020 (UTC) | |||
:{{U|Awesome Aasim}}, since I don't know if you're doing this for fun or because you think we lack things to help us process protected edits, consider taking a look at ] which can be used to directly answer requests and ] (and related) which can be used to review requests. --] (]) 23:36, 24 April 2020 (UTC) | |||
::(EPH could use an adopter if you are familiar with Javascript. --] (]) 23:37, 24 April 2020 (UTC)) | |||
:::{{ping|Izno}} <s>I have taken a look at the tables (and even have the editprotectedhelper script) installed. I am working on this both so I can learn more about MW gadgets/APIs and so other editors can have an additional tool to use on Misplaced Pages. Yes, we have all these categories, but it takes a ton of clicking to go to the article, edit the article, go back to the talk page, go back to the list, etc. I hope to make this a little faster with this script. My question was: How do we make an "editform"-ish because I have tried making an editform-ish but it did not work.</s> I think I figured it out. Thanks for the suggestion, though! I will definitely consider looking at the EPH script, but I think for now I will just work on my second tool :) Have you tried checking ]? <span style="font-variant: small-caps;">]]]]]</span> 08:33, 25 April 2020 (UTC) | |||
Just wanted to post this here to let everyone know that can now install this (just add <code>importScript('User:MolecularPilot/ExternalLinkScreen.js');</code> to your ] or use Enterprisey's script installer). | |||
== Javascript: remembering dropdown menu selection? == | |||
Stay safe everyone, especially if you are editing in ]! :) ] <sup>]]</sup> 06:14, 9 January 2025 (UTC) | |||
<u>Disclaimer</u>: I'm asking on behalf of another wiki, so I understand if help may be limited in that regard. I am also a newbie with Javascript, so I only understand the barest of basics. I also apologise for the external links as I was unable to get the code to function properly on here. | |||
:Adding that if you want a "try before you buy", here's two link examples of the screen you will see (note that if you have the script installed, it you'll get 2 landing pages before reaching the link as opposed to the usual 1, if you click these): | |||
:*Click {{Plain link|url=https://molecularbot2.toolforge.org/linkCheck.html?url=https://google.com|name=here}} for a regular link. | |||
:* Click on that to see what happens with an ]. | |||
:] <sup>]]</sup> 06:27, 9 January 2025 (UTC) | |||
:Interesting concept. I don't see why you need the toolforge site in the middle though, as that's just executing JS that could be run in the user script itself. – ] (]) 06:46, 9 January 2025 (UTC) | |||
::Also, pulling in punycode.js from Cloudfare CDN is against Toolforge policy. Use https://cdnjs.toolforge.org/ instead. – ] (]) 06:53, 9 January 2025 (UTC) | |||
:::Oh, thanks for the tip, I'll fix the CDN now! (I also realised that I wrote my demo links incorrectly above, so the URL would be "null", which I've just fixed). Re: the use of a website, I think it's better psychologically because it adds a pause while the tool forge page loads and also makes you process (yes, I'm going to a different page) before automatically clicking the button. :) ] <sup>]]</sup> 06:55, 9 January 2025 (UTC) | |||
::::{{u|SD0001}}, CDN fixed now! Thank you so much for your feedback, I really appreciate it! I might add a version that creates popups like Twinkle instead of using the landing page like most of the other websites do, because it may be better suited to our environment here. :) ] <sup>]]</sup> 07:12, 9 January 2025 (UTC) | |||
:I suggest you wrap the script in <code>mw.hook('wikipage.content').add()</code> and find links only in the jQuery node passed to the callback, or it may run before the whole page is loaded. Also all wiki-generated external links have the <code>external</code> or <code>extiw</code> class. ] (]) 10:36, 9 January 2025 (UTC) | |||
This is all a step in the right direction. I'd like to see something else as well, namely a bot that goes around flagging (or even disabling) external links that appear to be deceptive. That would protect editors who haven't installed any js. Exactly what properties would trigger it is a matter for discussion, as is how to catch enough cases without a flood of false positives. ]<sup><small>]</small></sup> 11:27, 9 January 2025 (UTC) | |||
On another wiki that I edit, , there are two templates: and . '''Control selector''' takes in a string where each item is appended with a comma and renders it as a dropdown menu that functions as the switch, while '''Control''' works as the output and displays different content for the item selected in '''Control selector'''. You can observe how this works over on : select an item from the dropdown menu on the right and observe how the icon to its left changes. | |||
:That is what ] is for. It blocks aditions of links that are listed in the list. The way I see it, javascript link warnings are for finding bad links or marking links that are not quite serious enough for Spam-blacklist. ] (]) 00:13, 10 January 2025 (UTC) | |||
'''Control selector''' is dependent on Javascript in the wiki's Mediawiki:common.js file. Below is the code excerpted from the file: | |||
{{cot|title=Code excerpt from SW's MediaWiki:common.js}} | |||
<pre> | |||
===Control Selector template=== | |||
*/ | |||
// Created by ] with help from ] | |||
// jQueryfied by ] | |||
function selectControlSet( ) { | |||
$('span.controlOpt').each(function() { | |||
if ($(this).hasClass('control' + $('#control_selector_select').val())) | |||
$(this).show(); | |||
else | |||
$(this).hide(); | |||
}); | |||
} | |||
:: No, the blacklist is for blocking links to malicious domains that have already been identified. It does not locate new deceptive links to other domains. We have a well-funded organization that plans to add deceptive redirects in order to dox editors and those links are not going to point to the organization's own domains. They will point to new temporary domains designed to be deniable. The question is how we will find those links before unsuspecting editors click on them. ]<sup><small>]</small></sup> 02:04, 10 January 2025 (UTC) | |||
function createControlSelector( ) { | |||
:::Actually a good point re temporary domains, I will make the page warn if they domain is newly registered (i.e. in the last 30 days). Currently, the "do you really want to visit this link" isn't just for suspicious links, it's for all links to non-WMF sites (including Toolforge as anyone can host a tool) because sometimes there is no way to figure out where a link is going until you actually click it (and sometimes a user might expect a wiki link but it's a {{tl|Plain links}} external link), so I thought this would be helpful. For example how do you know where goes without clicking and how about {{Plain links|https://heritage.org/|this}}, you might not even think it leads you off-wiki? ] <sup>]]</sup> 02:11, 10 January 2025 (UTC) | |||
var controlDiv = $('#control_selector_inner'); | |||
:::"...a well-funded organization that plans to add deceptive redirects..."? If that's the case, perhaps the good folks over at ] can help out to prevent that from happening? --] (]) 13:43, 10 January 2025 (UTC) | |||
::::I think that's a typo, Zero probably meant links not redirects. I don't think such links can be caught with a regex-like AbuseFilter pattern (but no links have been posted yet so you never know!) but just made this script to ensure people actually see where a link is taking them (and see appropriate warnings like about IDN homograph attacks and new domains) and confirm that it's correct before heading off-wiki, like many other sites do for safety/privacy. :) ] <sup>]]</sup> 00:29, 11 January 2025 (UTC) | |||
== Redlink count == | |||
if (controlDiv.length == 0) return false; | |||
How to count fastly redlinks here? ] ] (]) 10:40, 9 January 2025 (UTC) | |||
var ControlSelector = $('<select class="ControlSet" id="control_selector_select" />'); | |||
:Open the browser console (see ] for how to open) and use command <code>document.querySelectorAll('a.new')</code>. There are 214. – ] (]) 10:43, 9 January 2025 (UTC) | |||
ControlSelector.change(selectControlSet); | |||
::How to make list of this redlinks? ] (]) 13:04, 9 January 2025 (UTC) | |||
:::<code>copy(.map(e => e.title).join('\n'))</code>. This copies a plain list of titles to the clipboard. – ] (]) 15:19, 9 January 2025 (UTC) | |||
== "Edit" has disappeared and I only have "Edit Source" == | |||
var sysTexts = controlDiv.text().split(','); | |||
for (var i=0; i < Math.min(10, sysTexts.length); i++) { | |||
ControlSelector.append($('<option>', {value: i}).text($.trim(sysTexts))); | |||
} | |||
Despite having (repeatedly) enabled the visual editor the "edit" function has disappeared from all my Misplaced Pages pages, leaving only "edit source", which is beyond my capability. Please help, but assume I am totally stupid in the way you reply - I will not be offended - thanks. ] (]) 17:28, 9 January 2025 (UTC) | |||
controlDiv.empty().append(ControlSelector); | |||
controlDiv.parent().css('display', 'block'); | |||
} | |||
$( createControlSelector ); | |||
</pre> | |||
{{cob}} | |||
:You probably changed the "Editing mode" setting ]. ] ] 17:56, 9 January 2025 (UTC) | |||
My question: is there a way for the dropdown menu item in '''Control selector''' to be remembered on future page visits? Using the test page above as a reference, is it possible to select the second (SNES) or third (GBA) item in the drop down menu, refresh the page, and have it stay on that dropdown menu item instead of reverting back to the first (PSX)? Doing some more research on the topic has led me to believe that user cookies may be involved somehow (this mentions using jquery). | |||
::Sjoerd de Bruin, you are a star! Thanks. ] (]) 18:29, 9 January 2025 (UTC) | |||
== Pipe-related glitch == | |||
Your assistance is most appreciated. —] ( ] • ] ) 23:47, 24 April 2020 (UTC) | |||
: Have you tried using sessionStorage or localStorage? This basically puts the data on a user's computer. This is independent of whether a user is logged in or not. You can read more about it here: https://www.w3schools.com/html/html5_webstorage.asp. Hope this helps! <span style="font-variant: small-caps;">]]]]]</span> 05:24, 25 April 2020 (UTC) | |||
::{{u|Awesome Aasim}}, that seems like it could be what we would use; thanks! Unfortunately I'm not much of a tech wiz, so I'm not sure how we'd incorporate <code>GetItem</code> and <code>SetItem</code> into the code. Would we add that somewhere around <code>var sysTexts</code>? —] ( ] • ] ) 18:01, 25 April 2020 (UTC) | |||
::A lot of the examples I've seen involved typing text and not so much selecting a dropdown menu item, so I'm not sure how much of that was applicable. :P —] ( ] • ] ) 18:03, 25 April 2020 (UTC) | |||
I've been having this happen for quite some time, and still don't know the root cause. Sometimes, although not all the time, a random wikilink (<nowiki>]</nowiki>) will bug out and display a "post-open>" and post-close>" in visible text before and after the link, despite no changing to the source editor or any other input. The best example of this can be found at . The "post" is usually highlighted in orange, so it may be some sort of issue with a script I have installed. A user on the WM Discord told me about a week ago that I'm not the only person that has reported this issue. This could easily be taken as vandalism, so I'd say it's relatively serious. ]<sub>]</sub><sup>]</sup> 17:37, 9 January 2025 (UTC) | |||
== Max page size == | |||
:I'd immediately be looking at some sort of Wordpress or other spelling or blog browser extension.... ] (]) 20:04, 9 January 2025 (UTC) | |||
What is the largest possible size of a page? I once hit 2.1MB but the software can't let me go much farther. Is there a limit, and if so what is it? Thx ] (]) 08:26, 25 April 2020 (UTC) | |||
::That’s the thing, I run Chrome (on my school-issued Chromebook) and Edge (on my home PC), neither of which have extensions installed (I have WWT, but this problem has gone on way before I installed it). ]<sub>]</sub><sup>]</sup> 20:41, 9 January 2025 (UTC) | |||
: I don't think there is a maximum size for pages, but there are limitations on use of templates and processing time. One is the output of templates cannot exceed to 2MB (which is why pages with 500 plus citations using cite templates get into trouble). However, my understanding is that if it is simple text on the page it can be much bigger. — <span style="font-family:Arial;background:#d6ffe6;border:solid 1px;border-radius:5px;box-shadow:darkcyan 0px 1px 1px;"> ] |] </span> 08:37, 25 April 2020 (UTC) | |||
:::The diff which added it is where you used VisualEditor. I only found one other occurrence in searches and it was also you, 30 October 2024 with the ] which is a mode within the VisualEditor extension. The diffs add nowiki which is MediaWiki code and VisualEditor is known for automatically adding nowiki in some situations so VisualEditor is probably involved but it may be a conflict with a script in ]. You should load ] once and not 16 times, but that happened this week so it's not the cause. ] (]) 21:15, 9 January 2025 (UTC) | |||
::The source size limit is determined by ]. We use the MediaWiki default 2 MB = 2×1024×1024 bytes = 2,097,152 bytes. The limit on ] is also 2 MB, meaning a page can reach up to 4 MB in total after template expansions. ] (]) 10:15, 25 April 2020 (UTC) | |||
::::I’ll mess around with my scripts a bit and see what happens. I normally catch it before publishing it by cancelling the edit (which usually fixes it), hence why it’s only shown up twice. ]<sub>]</sub><sup>]</sup> 21:24, 9 January 2025 (UTC) | |||
:I tried loading ] for myself, and immediately saw a visual glitch (just in read mode, not in the editor) that's eerily similar to the problem you get after saving pages: ] (screenshot taken on ]). I can't tell which script of the eleventeen you have is inserting that markup, but it must be its fault. (Also, the way in which it breaks suggest it's vulnerable to ] attacks, by processing HTML incorrectly, which is probably not good for you…) ] <small>]</small> 22:55, 9 January 2025 (UTC) | |||
::It appears to be ]. nowiki is probably added by VisualEditor when the script messes with the page. ] (]) 23:52, 9 January 2025 (UTC) | |||
:::Check out that script’s talk page, it’s definitely this script. Thanks for the help, it’s been really annoying having to deal with this weird visual bug! :) ]<sub>]</sub><sup>]</sup> 23:55, 9 January 2025 (UTC) | |||
::::You could wrap the script in the following, it will then only run on page view. | |||
::::<syntaxhighlight lang="javascript">if (mw.config.get("wgAction") == "view") { | |||
//script here | |||
}</syntaxhighlight> ] (]) 03:08, 10 January 2025 (UTC) | |||
:::@] Thanks for finding the script. I suggested a fix: ]. ] <small>]</small> 17:21, 10 January 2025 (UTC) | |||
== Sections == | |||
== WikiProject assessment category names == | |||
I noticed that some sections are written like: == xxxxx == | |||
I initiated ] thinking that it would be OK to have "WikiProject" in the parent category names but with no need to rename the detailed sub-cats, e.g. ] parenting ]. | |||
and some are written like ==xxxxx==. Some have gaps and some do not. Won't it be better if it was standardized? I prefer the one without gaps because it should save space. | |||
] (]) 06:47, 10 January 2025 (UTC) | |||
:No. Please write articles instead. —] (] • ]) 08:08, 10 January 2025 (UTC) | |||
The category pages look OK like that, but ] has red links now. | |||
::Articles about what? | |||
::] (]) 11:57, 10 January 2025 (UTC) | |||
:::Or fix actual errors, of which there are literally tens of millions. – ] (]) 14:23, 10 January 2025 (UTC) | |||
::::About what????? ] (]) 16:43, 10 January 2025 (UTC) | |||
:The community hasn't made a project-wide standard for this. In general, you can use either style in articles you write, subject to the guidelines that do exist (see ] as a start). But also, in general, match the style that already exists in an article and don't change style in an existing article without reason (see ]). New guideline/rules are added sometimes, of course. I'd suggest editing and being around longer before considering making a proposal about this (not saying you are, just as a suggestion) (it's been discussed, at least tangentially many times: ]).(And welcome to Misplaced Pages and happy editing.) ] (]) 16:16, 10 January 2025 (UTC) | |||
::I got your hint. If you don't want users newer than you to give some proposal here than you should put a password on this page and share it with users who you think is worthy and equal to you. | |||
::] (]) 17:01, 10 January 2025 (UTC) | |||
:::I just was trying to give some background/history, in case you didn't know it. No objection to an actual proposal but I think if you want it to have a chance, you should do enough research to pretty comprehensively explain why and exactly what you'd want different. This is less a technical proposal and more a style or policy one, since English Misplaced Pages can't, as far as I know, make one of them technically impossible (since all Wikipedias share the common ] wikitext parser). ] (]) 17:27, 10 January 2025 (UTC) | |||
:::Please ]. What you proposed is a ]. Cosmetic changes are discouraged because they clutter up watchlists, and require editor time to review without making any improvement to the Encyclopedia. ] 17:27, 10 January 2025 (UTC) | |||
:To address the original question. {{replyto|TrueMoriarty}} The presence or absence of the gaps makes absolutely no difference to either how the heading is displayed, or to how the MediaWiki software process the heading (such as, making section links work). Since they function identically, there is no advantage in altering either form to the other one. | |||
:Further: if an edit is made which does nothing other than remove those gaps, it doesn't save any space at all - in fact, it ''increases'' the amount of disk space that is used, since the MediaWiki software retains all previous versions of a page, effectively forever. You can see this by opening the "History" tab at the top of any page. --] 🌹 (]) 13:16, 11 January 2025 (UTC) | |||
== request for new category == | |||
If I insert a line | |||
Hello. I have created a bot for updating ] to its canonical/non-amp version. The BRFA will soon be approved. For now, I am using inputs from file(s), which were created . '''In short''', would it be possible possible to create a hidden/maintenance category which would contain articles that have "amp" anywhere in their url? False positives are preferred over missing amp url. The bot's programming is comprehensive so false positives wouldn't matter. Kindly let me know if this is possible, or if you need further information. Regards, —usernamekiran ] 10:52, 10 January 2025 (UTC) | |||
|ASSESSMENT_CAT = WikiProject Vancouver articles | |||
:PS: automatically populating category. —usernamekiran ] 11:34, 10 January 2025 (UTC) | |||
it fixes those two red links, but requires all the sub-cats to be renamed. | |||
:: It's possible, but in practice it's very unlikely you'd be able to convince MediaWiki developers to write and merge a change that does this. You'd probably do better to use a ] or process a ]. If you go the database query route, you'll probably need to batch your query with a condition like <syntaxhighlight inline lang="sql">el_id > N AND el_id <= N+1000000</syntaxhighlight> for relevant <code>N</code> to avoid timeouts. You'll also probably find that looking for just "contains 'amp'" gives very many false positives on words like "camp", "campus", "champion", "sample", "example", "Hampshire", and so on. ]] 12:51, 10 January 2025 (UTC) | |||
:Isn't that link just listing pages containing "https://amp." in wikitext? The bot can query for that directly using ] instead of relying on a static list. – ] (]) 13:51, 10 January 2025 (UTC) | |||
::Some sites use path-based amp URLs, so adding searching for something like at least "/amp/" would be needed. But between these two that'd get almost everything. ] (]) 15:37, 10 January 2025 (UTC) | |||
:As SD0001 said, you can use pagegenerators. For example: | |||
<syntaxhighlight lang="python"> | |||
from pywikibot import pagegenerators | |||
site = pywikibot.Site("en", "wikipedia") | |||
If necessary I could rename the sub-cats under G6, but is there an easier fix, please? | |||
gen = pagegenerators.SearchPageGenerator('insource:"https://amp."', site=site) | |||
for page in gen: | |||
#your code | |||
</syntaxhighlight> | |||
– ] <small>(])</small> 16:49, 10 January 2025 (UTC) | |||
* Thanks everyone. I was doubtful about the category, so I was also working on code. But I had come up with: | |||
Other projects somehow allow inconsistencies, e.g. WikiProject Women includes "WikiProject" in the quality categories but not the importance categories. I have no idea how that works through ].– ] ] 19:53, 25 April 2020 (UTC) | |||
<syntaxhighlight lang="python"> | |||
:Ah, for a workaround I will simply redirect the red links that offend the WikiProject template: ], ]. – ] ] 21:34, 25 April 2020 (UTC) | |||
for page in site.allpages(namespace=0): | |||
#.. code | |||
search_term = "https?:\/\/*amp*" | |||
</syntaxhighlight> | |||
But the method suggested by SD0001, and DreamRimmer is less resource intensive. I will go with it. Regarding Anomie's query, I kept the search term intentionally lax, the bot has more regular expressions to weed out URLs containing words like "hampshire". I'm not sure if including such long code/strings in search would be a good idea. Thanks a lot again. —usernamekiran ] 13:22, 11 January 2025 (UTC) | |||
== Group changes by page doesn’t work in mobile view == | |||
== Do rcats (redirect categories) influence the search engine? == | |||
The option to "Group changes by page in recent changes and watchlist" doesn’t work for me in mobile view. Am I missing something? ] (]) 12:38, 10 January 2025 (UTC) | |||
I have long known, or believed to know, that the ] will influence how redirects are treated both in the search results and in the the drop-down list of suggestions in the search box. So that, all other things being equal, a redirect tagged with {{tl|R from misspelling}} will for example be ranked lower than one tagged with {{tl|R from alternative name}}. However, I've just realised that I don't know how I've learned that, and I don't find it in the documentation at ]. Is this really a thing or have I been deceiving myself? – ] 21:54, 25 April 2020 (UTC) | |||
:The only weightage other than relevance is by article-class: ]. --<span style="font-family:'Trebuchet MS',Geneva,sans-serif">] (] <span style="color:#fac">愛</span> ])</span> 22:05, 25 April 2020 (UTC) | |||
::Is "relevance" just a function of edit distance between the search term and the potential target? <sub>signed, </sub>] <sup>]</sup> 22:18, 25 April 2020 (UTC) | |||
:::It's a major part definitely, as any indexing and searching tool will be (I believe you are talking about Levenshtein distance?) - while not exactly (since there are also more factors) the same thing, at a certain level, yes. There's an entire blog on this if you want to take a look: https://www.elastic.co/blog/found-elasticsearch-from-the-bottom-up --<span style="font-family:'Trebuchet MS',Geneva,sans-serif">] (] <span style="color:#fac">愛</span> ])</span> 22:25, 25 April 2020 (UTC) | |||
:::No, "relevance" also depends on the popularity of the page, apparently determined by the number of incoming links. E.g, a search for brings up ] at the top (after ] itself), while all other lesser-known Donalds are further down the list. ] (]) 14:46, 26 April 2020 (UTC) | |||
::Pinging {{u|Thryduulf}}, who I remember had mentioned something about rcats and search suggestions. – ] 14:54, 26 April 2020 (UTC) | |||
:::I believe it used to be the case that redirects tagged as unprintworthy (directly or indirectly) were excluded from the search suggestions (possibly for anything other than an exact match) but this is no longer the case. Redirects that are unprintworthy will generally have fewer incoming links and so naturally de-prioritised, but ] is asking for a way to exclude some pages from the search results/search suggestions (it's been around since 2012 and triaged as low priority though so don't hold your breath). It has been a long-standing principle at RfD though that we don't delete redirects solely to avoid them appearing in the search suggestions box if they are otherwise useful, as the suggestions are only shown to a subset of users (mainly those with javascript enabled who use the internal search engine, the official Android app links to the target directly) and it is not knowable what proportion of users this is. ] (]) 15:45, 26 April 2020 (UTC) | |||
== V22's recent Appearance portlet has bigger min-content in grid than tools? == | |||
== Unsortable table in a template == | |||
I'm trying to troubleshoot ] for when only the appearance menu is pinned to the right sidebar (i.e. tools is unpinned). For some reason, the right sidebar is much larger in this case, despite the grid template still being minmax(0, 1fr) min-content. Any idea why? ] (]) 12:56, 10 January 2025 (UTC) | |||
==] wrong text displayed - mystery solved== | |||
== Why does Misplaced Pages keep showing edit conflicts on my own edits == | |||
] | |||
The word "pleased" should be "convicted". | |||
* In the wiki-text it is "convicted". | |||
* I've done a history search using Wikiblame, I can't find the word "pleased" in recent history | |||
* I've purged the page. | |||
* I've done a nearly-null edit of the section. | |||
* In other browsers the word "convicted" appears, logged in or logged out. | |||
{{collapse top|Expand to see the reason, or puzzle over the mystery a little longer}} | |||
Why does Misplaced Pages keep showing ] on my own edits? | |||
] was re-writing the article, claiming to be translating from Russian to English. | |||
{{collapse bottom}} | |||
All the best: ''] ]''<small> 13:38, 10 January 2025 (UTC).</small><br /> | |||
I'll make an edit to a section or a page > send Publish Changes, receive an ] page > and have to cut & paste from that to a New Edit page > sometimes it works. | |||
== Variable watchlist font sizes in Android desktop view == | |||
No others contributing to the page at the time. | |||
As shown below, when I view my watchlist in Desktop mode in Chrome on my Android phone, the font sizes vary the entire length of the list. It's disruptive! Can it be fixed? | |||
]! | |||
] | |||
] | |||
I know I can use mobile mode, but it has its own shortcomings (such as all the edits to one page not being grouped together) so I often prefer desktop mode. ] (]) 16:12, 10 January 2025 (UTC) | |||
] (]) | |||
:This is a Chrome/Mobile thing where it increases the font size of items which it thinks that you might be interested in. It's been raised on this page several times before, they should be in the page archives. In short: it's outside our control. --] 🌹 (]) 13:21, 11 January 2025 (UTC) | |||
== |
== Rollback does not count as an "edit" == | ||
When an account conducts a ], the edit does not count towards their edit count according to Misplaced Pages, such as at their contributions page. At least, that is what I have observed. Because of this, there is a discrepancy between their edit count according to Misplaced Pages itself and their edit count according to . Is this an intentional feature or a bug? By the way, I am not asking this because I am ], I am just curious as to why this is. ] (]) 21:09, 11 January 2025 (UTC) | |||
Why does Misplaced Pages keep showing ] on my own edits? | |||
: This is a known bug that will be fixed with on the next ]. ]. ] ] 22:07, 11 January 2025 (UTC) | |||
I'll make an edit to a section or a page > send Publish Changes, receive an ] page > and have to cut & paste from that to a New Edit page > sometimes it works. | |||
:{{ec}} Well, let's test it. As I type this, ], just refreshed, says "A user with 273,195 edits". I now make {{diff|Misplaced Pages:Sandbox|prev|1268856733|this edit}}, and I have 273,196 edits. I apply ] to that edit, and I again have 273,196 edits. So there appears to be truth in what you say. I'm wondering if there is some form of lag involved, and my edits might tick up later in the day. --] 🌹 (]) 22:13, 11 January 2025 (UTC) | |||
No others contributing to the page at the time. | |||
]! | |||
] | |||
] (]) |
Latest revision as of 22:13, 11 January 2025
Page for discussing Misplaced Pages technical issues
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.
view · edit Frequently asked questions (see also: Misplaced Pages:FAQ/Technical)
Click "" next to each point to see more details.
|
- Refining the administrator elections process
- Blocks for promotional activity outside of mainspace
- Voluntary RfAs after resignation
- Proposed rewrite of WP:BITE
- LLM/chatbot comments in discussions
Can we do something about the ridiculous message displayed whenever syntax highlighting is taking "too long"?
Syntax highlighting on this page was disabled because it took too long. The maximum allowed highlighting time is 20ms, and your computer took 22ms. Try closing some tabs and programs and clicking "Show preview" or "Show changes". If that doesn't work, try a different web browser, and if that doesn't work, try a faster computer.
The threshold is probably set too low to being with, and most people couldn't care less about it taking 0.03s vs 0.02s, so to tell them that a mere 2/1000 sec difference is "not allowed" is pretty ridiculous. If someone really does have a slow computer, that's hardly by choice, and to tell them to try a faster one is like Captain Obvious rubbing salt into their wound. More often than not, it's not even the fault of the computer, but rather some background crap (thanks, MS!), or the browser, or simply a very large and complex page (and possibly even the (gasp) wiki JS code). Ideally this should be a pref configurable by the user. Or, they could click a button if they don't care about things being slightly slower on the current page as long as they can still get the highlighting (the way browsers pop up slow JS abort/continue messages; in this case it wouldn't be modal, of course). But I think mostly it's about the overly low threshold, because when a large page is taking a number of seconds to load anyway, a few extra thousandths for this hardly make a difference. 61.84.123.149 (talk) 16:26, 1 January 2025 (UTC)
- This seems to come from the Gadget mw:User:Remember the dot/Syntax highlighter. This is a user gadget and is not enabled by default here (but available for users to enable). You should report the issue to the author. But also see mw:User:Remember the dot/Syntax highlighter#Timeout – Ammarpad (talk) 16:58, 1 January 2025 (UTC)
- Thanks a lot, that will probably do it for me. I was uner the impression it was a standard feature. 61.84.123.149 (talk) 17:36, 1 January 2025 (UTC)
- Well there is a standard feature as well. You might even be using multiple. See WP:HILITE. —TheDJ (talk • contribs) 09:57, 2 January 2025 (UTC)
- And the problem with the standard feature is that it doesn't have a timeout, so on very large pages it just freezes up the page until the browser eventually offers to kill it. --Ahecht (TALK
PAGE) 00:38, 5 January 2025 (UTC)- On what page does it actually freeze? CodeMirror is heavily optimized and much more performant nowadays. – SD0001 (talk) 09:00, 5 January 2025 (UTC)
- @SD0001 I've been doing a lot of work cleaning up the top of Special:LongPages, and if I don't forget to disable syntax highlighting on any of those pages before editing the page locks up until eventually the browser offers to kill any running scripts. --Ahecht (TALK
PAGE) 21:33, 6 January 2025 (UTC)
- @SD0001 I've been doing a lot of work cleaning up the top of Special:LongPages, and if I don't forget to disable syntax highlighting on any of those pages before editing the page locks up until eventually the browser offers to kill any running scripts. --Ahecht (TALK
- On what page does it actually freeze? CodeMirror is heavily optimized and much more performant nowadays. – SD0001 (talk) 09:00, 5 January 2025 (UTC)
- And the problem with the standard feature is that it doesn't have a timeout, so on very large pages it just freezes up the page until the browser eventually offers to kill it. --Ahecht (TALK
- Well there is a standard feature as well. You might even be using multiple. See WP:HILITE. —TheDJ (talk • contribs) 09:57, 2 January 2025 (UTC)
- Thanks a lot, that will probably do it for me. I was uner the impression it was a standard feature. 61.84.123.149 (talk) 17:36, 1 January 2025 (UTC)
Different assets for light and dark mode?
Is there any way to tell Misplaced Pages to display different images / media for Light vs Dark mode users? If not, could this be added in the form of a template, something like this?
{{adaptive|lightmode=]|darkmode=]}}
Due to transparency, some SVG and PNG images have bad contrast when viewed in Dark mode.
(repost from WP:TH as they said would be better here)
CrushedAsian255 (talk) 04:38, 2 January 2025 (UTC)
- It would have to be hardcoded in CSS. Dark mode is configured on CSS pages through templatestyles. In order to specify a dark and light mode image in a template like that, Phab:T320322 would have to be fixed first. Snævar (talk) 05:07, 2 January 2025 (UTC)
- Have you tried using class=skin-invert-image already ? —TheDJ (talk • contribs) 09:55, 2 January 2025 (UTC)
- {{If dark}} can be used to select what wikitext to display based on whether or not dark mode is enabled. isaacl (talk) 23:19, 2 January 2025 (UTC)
- Usage of which really should be avoided though. —TheDJ (talk • contribs) 10:33, 4 January 2025 (UTC)
- I agree that generally speaking, specific colours shouldn't be specified in wikitext, and using the CSS class to trigger colour inversion by the dark mode feature simplifies maintenance by having just one image. There are cases, such as a company logo with a variant designed for dark mode, where the ability to choose the appropriate image is desirable. isaacl (talk) 17:02, 4 January 2025 (UTC)
- {{If dark}} may address the OP's question, although actual use of it may not be the best solution to the problem. – Jonesey95 (talk) 13:44, 7 January 2025 (UTC)
- I agree that generally speaking, specific colours shouldn't be specified in wikitext, and using the CSS class to trigger colour inversion by the dark mode feature simplifies maintenance by having just one image. There are cases, such as a company logo with a variant designed for dark mode, where the ability to choose the appropriate image is desirable. isaacl (talk) 17:02, 4 January 2025 (UTC)
- Usage of which really should be avoided though. —TheDJ (talk • contribs) 10:33, 4 January 2025 (UTC)
How to use inline style and CSS design tokens to color text?
I want to use {{NumBlk2}} to number the chemical formula P4-t-Bu#math_B and keep the color of the square brackets in the numbering.
The original chemical formula looked like this:
{{NumBlk|:|<math chem>\underbrace\ce{PCl5}_{(1)}\ \ce{->}\ \underbrace{t\text{-}\ce{Bu-N=PCl3}}_{(5)}</math>||RawN=y}}
The result after using {{NumBlk2}} for numbering:
{{NumBlk2|:|<math chem>\underbrace\ce{PCl5}_{(1)}\ \ce{->}\ \underbrace{t\text{-}\ce{Bu-N=PCl3}}_{(5)}</math>|<span style{{=}}"color: var(--color-base);"></span>|RawN=y|Id=math_B2}}
(The ID must be unique, so I renumbered it to B2.)
But the recommendation is currently restricted to use inside TemplateStyles:
As described here, using design tokens directly in an article (e.g. <span style="color: var(--color-base);">some text</span>
) seems problematic. How to color text correctly in an article in light mode and dark mode in this case? Any ideas? Thanks. Justin545 (talk) 01:59, 5 January 2025 (UTC)
- So you are adding link content, that you don't want to have colored as link content ? And for that reason you want to apply custom styles ? Is this a recurring pattern ? Then you make a template and use TemplateStyles. —TheDJ (talk • contribs) 11:10, 5 January 2025 (UTC)
- Thank you for your advice. It does sound a bit strange to color the link the same color as normal text. I'm not sure if the use of square brackets in numbering occurs very often. If that's not the usual case, maybe it would be better to just use {{NumBlk}} instead of wrapper template {{NumBlk2}}:
{{NumBlk|:|<math chem>\underbrace\ce{PCl5}_{(1)}\ \ce{->}\ \underbrace{t\text{-}\ce{Bu-N=PCl3}}_{(5)}</math>|[]]|RawN=y|Attr=id{{=}}math_B3 style{{=}}"margin-left: {{#expr:1.6 * 1}}em;"}}
- If it's the usual case, maybe just make a template and use TemplateStyles as you said:
<!-- Template:Token --> <templatestyles src="Token/styles.css" />
/* Template:Token/styles.css */ .token-color-base { color: var(--color-base); } .token-color-disabled { color: var(--color-disabled); } /* ... (omitted) ... */ .token-background-color-base { background-color: var(--background-color-base); } .token-background-color-disabled { background-color: var(--background-color-disabled); } /* ... (omitted) ... */
and then use it like this{{Token}} {{NumBlk2|:|<math chem>\underbrace\ce{PCl5}_{(1)}\ \ce{->}\ \underbrace{t\text{-}\ce{Bu-N=PCl3}}_{(5)}</math>|<span class{{=}}"token-color-base"></span>|RawN=y|Id=math_B4}}
- (The source code above has not been tested and may contain errors.) —Justin545 (talk) 16:38, 5 January 2025 (UTC)
- You should not worry about such weird specifics at all. This also produces different colours (= inconsistent behaviour) in the skins that do not use the same token. stjn 16:51, 5 January 2025 (UTC)
- Thank you for reminding me about skins. Coloring text in Misplaced Pages is a lot more complicated than I thought. I haven't started to understand the skin part yet. So far I don't know if there is a correct way to handle coloring for skins and dark mode at the same time. If not, I may have to give up the idea of coloring text completely. Without coloring, I might just use {{NumBlk}} directly like B3. Justin545 (talk) 01:18, 6 January 2025 (UTC)
- Or do you mean using name of colors or hex code of colors directly in styles.css instead of using design tokens? Justin545 (talk) 04:36, 8 January 2025 (UTC)
- I mean that this is not an issue you should concern yourself with when you introduce more markup into the code and that markup is incorrect at least in one way. Misplaced Pages won’t be dead tomorrow because brackets are blue colour there. It is a complete non-issue. stjn 10:40, 8 January 2025 (UTC)
- Rather than telling me what I shouldn't worry about or what I shouldn't concern with, wouldn't it be better if you could just give me links to some relevant guidelines or help pages? I think most official documents have very clear and specific descriptions and explanations, which are relatively easy to understand. And they don't contain emotions directed at specific people.
- I raised questions and opinions about design tokens based on the MediaWiki recommendation. If you think I have misunderstood the recommendation, you can tell me directly where I misunderstood it. Justin545 (talk) 14:53, 8 January 2025 (UTC)
- I mean that this is not an issue you should concern yourself with when you introduce more markup into the code and that markup is incorrect at least in one way. Misplaced Pages won’t be dead tomorrow because brackets are blue colour there. It is a complete non-issue. stjn 10:40, 8 January 2025 (UTC)
- You should not worry about such weird specifics at all. This also produces different colours (= inconsistent behaviour) in the skins that do not use the same token. stjn 16:51, 5 January 2025 (UTC)
- If it's the usual case, maybe just make a template and use TemplateStyles as you said:
Broken icon
Tracked in PhabricatorTask T383023
Resolved
Hi, can anyone see why File:Gnome-colors-list-remove.svg is broken, nothing seems to have chaned but it's showing as a broken image in the latest admin newsletter. It should be a horizontal red minus to signify remove. Stephen 02:43, 6 January 2025 (UTC)
- It seems to be working for me, both in that link and in the news letter in your user talk page (like in
- Ferret
). - What browser are you using? Are you using the mobile website (en.m.wikipedia.org)?
- Is it affecting any of the previous newsletters? Is it affecting any of the other icons? – 2804:F1...CA:8CB5 (::/32) (talk) 02:58, 6 January 2025 (UTC)
- That's weird it works for you. I'm on Chrome using the desktop site. All previous uses of the icon in old newsletters are broken too wherever I look. Stephen 03:49, 6 January 2025 (UTC)
- I'm on Chrome desktop too... I wonder if your browser console shows any errors (Pressing f12 or
three dots button (⋮) > More tools > Developer tools > Console tab
and then refreshing the page). - There's also the network tab of developer tools, which for me shows a 20px-Gnome-colors-list-remove.svg.png line (the 10th line for me after refreshing) as successfully downloaded - if it had failed it would have been red, and apparently repeated a bunch of times one for each time it appears on your talk page.
- What it says in the Status column, if it is red, or in Status code if you click it, might be of interest.
- Also, does that direct link work? – 2804:F1...CA:8CB5 (::/32) (talk) 04:48, 6 January 2025 (UTC)
- Suspect I am in Stephen's position. The direct link says "Unauthorized This server could not verify that you are authorized to access the document you requested." No errors showing up in my console, although the console is forcing the page into mobile view for some reason. CMD (talk) 04:56, 6 January 2025 (UTC)
- Searching phabricator for that error reveals a very similar error that happened on a beta version (phab:T276179/phab:T277016)... seeing as it doesn't happen to me, it might be a codfw issue rather than a eqiad issue (which is the data center I'm assigned to) - but I'm just guessing, I've never looked at how these things actually work, it just seems to be a common cause of differences.
- I'm pretty sure someone with backend access will have to look into this to find out what the problem is though.
- Could try filing a bug report in phabricator? –2804:F1...CA:8CB5 (::/32) (talk) 05:59, 6 January 2025 (UTC)
- I have the same error and filed ticket phab:T383023. cyberdog958 07:22, 6 January 2025 (UTC)
- Suspect I am in Stephen's position. The direct link says "Unauthorized This server could not verify that you are authorized to access the document you requested." No errors showing up in my console, although the console is forcing the page into mobile view for some reason. CMD (talk) 04:56, 6 January 2025 (UTC)
- I'm on Chrome desktop too... I wonder if your browser console shows any errors (Pressing f12 or
- That's weird it works for you. I'm on Chrome using the desktop site. All previous uses of the icon in old newsletters are broken too wherever I look. Stephen 03:49, 6 January 2025 (UTC)
- I was having the same problem with File:Hypercubestar.svg (used on four articles here and over 30 on some 14 languages of Misplaced Pages) and started a discussion at https://commons.wikimedia.org/Commons:Help_desk#SVG_image_claims_its_thumbnails_are_unauthorized before finding this discussion and the phab link. It would be interesting to learn whether this issue is more widespread. —David Eppstein (talk) 07:33, 6 January 2025 (UTC)
- The bug report has been closed as fixed, please confirm. Issue appears to have been that a database container for thumbnails was mysteriously deleted, it was fixed by 'effectively re-creating the container' - an investigation on how/why it was deleted is now tracked at phab:T383053. – 2804:F1...42:FDB7 (::/32) (talk) 15:21, 6 January 2025 (UTC)
- The developer said there are 43 thousand containers, this was one of them - I'm guessing that's why it only affected some people and only some of the images.
- Cyberdog958 had already said in the phab task that it is working for him, before it was closed. Is it working for you four as well, @Stephen, @CMD, @David Eppstein and @SuperMarioA9H5?
- – (different sig for pings) user in a /32, currently at 2804:F14:80F4:1F01:144B:E33B:3E42:FDB7 (talk) 15:53, 6 January 2025 (UTC)
- Yes, seems it's fixed. Thanks, CMD (talk) 16:04, 6 January 2025 (UTC)
- Fixed for me too, thanks all. Stephen 20:24, 6 January 2025 (UTC)
Image Preview Issue
I was looking through the Misplaced Pages article for the Buick Regal when I noticed that the thumbnail image for the third generation model is no longer displaying as it should. When I click on the image, it appears as normal, but only when it is clicked on. In Misplaced Pages Commons, the exact same problem is present. It also does not allow for resolution changes as most other images normally do. I have tested this on both Windows and mobile using Apple Safari, Google Chrome, and Microsoft Edge, and the problem remains consistent. I also found that there exist other images on Misplaced Pages Commons that are experiencing a similar problem. This image used to work perfectly before, so what could have changed to cause this? Is there any way this could be remedied? SuperMarioA9H5 (talk) 05:07, 6 January 2025 (UTC)
- Might be the same issue as #Broken icon above (yet to be determined what the issue is though).
- I can see the thumbnail on Buick Regal just fine as well. – 2804:F1...CA:8CB5 (::/32) (talk) 06:06, 6 January 2025 (UTC)
- I can confirm it is the same issue, right down to the "Unauthorized" issue when selecting different sizes. Interesting that it seems to work for some yet not for others. I mainly asked as I wasn't sure if the image needed to be replaced due to an issue on Misplaced Pages's end. Hopefully whatever it is it can be patched out later. SuperMarioA9H5 (talk) 06:10, 6 January 2025 (UTC)
Common.css issue on Brave
Does anyone know why my common.css doesn't seem to work on Brave? I've just replaced Firefox with it due to its atrocious performance on YouTube with Ublock turned on. Now, I can't get my (very simple) common.css to work with it. Any ideas? Sol505000 (talk) 10:33, 6 January 2025 (UTC)
- The name of the font should be in double quotes since it contains a space. – SD0001 (talk) 13:52, 6 January 2025 (UTC)
- I changed it and it still doesn't work (also, it worked without the double quotes on Firefox just fine). The issue is that Brave seems to display the wrong font, rather than ignoring my common.css altogether. I think it displays DejaVu Serif instead of DejaVu Sans. Sol505000 (talk) 14:42, 6 January 2025 (UTC)
- I tried uninstalling DejaVu Serif and the problem persists. Why can't Brave follow a simple instruction? Sol505000 (talk) 14:45, 6 January 2025 (UTC)
- @Sol505000: The CSS spec for the
font-family:
property is rather complex. To me, it reads as if you don't need to quote font names, even if they contain spaces, unless not doing so would cause ambiguity. If Firefox tolerates the absence of the quotes but Brave doesn't, that tells me that the authors of the two browsers have read the spec in different ways. Personally I would err on the safe side and quote them (the quotes need not be double, but must be paired, as in my example stylesheet below). - On a related matter, I would not use a single font name - I would supply at least one fallback option, in case the device does not have your preferred font(s) installed; and the last of these fallback fonts should be one of the generic family keywords defined in the spec. Something like this:
.IPA { font-family: "DejaVu Sans", Arial, 'Liberation Sans', sans-serif; }
--Redrose64 🌹 (talk) 23:06, 6 January 2025 (UTC) - Right-click on an element with the IPA class, select "Inspect", enter "font-family" in the filter under "Styles", and you can see what is overriding your custom style. You can also switch to the "Computed" tab and see what fonts are used in "Rendered Fonts" at the bottom. Nardog (talk) 06:08, 7 January 2025 (UTC)
- Solved, what overrides the font are Brave Shields. Turning them off solves the problem (thankfully, WP isn't full of obnoxious ads that'd get in the way of browsing it). I'll report this to the developers. Thanks for the help everyone. Sol505000 (talk) 22:29, 7 January 2025 (UTC)
- @Sol505000: The CSS spec for the
How to change placement of custom fields on Template:User infobox
I pretty much have what I want, just not in the location I want. Even if I place the custom fields where I want them in the code, as seen here, the displayed output doesn't change, and the custom fields—age and today's date, in this case—still appear at the bottom of the infobox. I want age below birthdate and place and today's date above current time. Also, is there a way to change the border color of the entire border around the infobox? I want it to be black so it looks better. Do I just add style="border: 1px solid #000000;"
somewhere? Amaury • 23:09, 6 January 2025 (UTC)
- @Amaury: When named parameters are used, the order that these are supplied in is immaterial; the order of display is goverened purely by the code inside Template:User infobox. I don't have time right now to look at the rest, will try to get back later. --Redrose64 🌹 (talk) 09:36, 7 January 2025 (UTC)
- @Amaury: All fields, both custom and other, can only be displayed in the positions they have in the infobox to the right at Template:Infobox Misplaced Pages user#Usage. I suggest including age in the Born field with
birthdate = {{Birth date and age|1991|11|8}}
which produces: (1991-11-08) November 8, 1991 (age 33). Today's date can be included incurrent_time
but then the date and time should use the same time zone, unlike now where your time is local but date is UTC. I examined the implementation and you can tag a border color onto another parameter like| tablecolor = #CBC3E3; border: 1px solid #000000
. I don't promise it will always work if the implementation changes. PrimeHunter (talk) 12:39, 7 January 2025 (UTC)- @PrimeHunter: Okay, so the only way to change the placements of the parameters is to edit the template code itself; however, that shouldn't be done, of course, as it would affect everyone. I originally had the birthdate and age together, but I didn't like how the age in parentheses was going down to a separate line. Although I have now figured something out by increasing the width from the default 22em to 24em, which gives the age enough space to be on the same line. As for the date, my only minor nitpick with adding the date to the Current Time parameter is that time is technically not a date, so having Current Time also display a date would look weird to me. And, of course, there's no way to change the parameter name just for my own infobox. This is what I ended up doing instead. As a final question, is there a way to hide the Wikipedian with the icon thing just for my infobox or no? Thank you so much for help and advice! Amaury • 22:51, 7 January 2025 (UTC)
- @Amaury: You can change "Wikipedian" with
|role=
. The row with two dashes will still be there even if you set it to something non-displayed like
. You can hide the gender icon with|gender=none
but it has other effects. A template call can be wrapped in {{Replace}} or {{MultiReplace}} to change some of the output but it's messy and shouldn't be done in articles. If you try it then Special:ExpandTemplates can be used to find the exact current output. PrimeHunter (talk) 00:22, 8 January 2025 (UTC)
- @Amaury: You can change "Wikipedian" with
- @PrimeHunter: Okay, so the only way to change the placements of the parameters is to edit the template code itself; however, that shouldn't be done, of course, as it would affect everyone. I originally had the birthdate and age together, but I didn't like how the age in parentheses was going down to a separate line. Although I have now figured something out by increasing the width from the default 22em to 24em, which gives the age enough space to be on the same line. As for the date, my only minor nitpick with adding the date to the Current Time parameter is that time is technically not a date, so having Current Time also display a date would look weird to me. And, of course, there's no way to change the parameter name just for my own infobox. This is what I ended up doing instead. As a final question, is there a way to hide the Wikipedian with the icon thing just for my infobox or no? Thank you so much for help and advice! Amaury • 22:51, 7 January 2025 (UTC)
- @Amaury: All fields, both custom and other, can only be displayed in the positions they have in the infobox to the right at Template:Infobox Misplaced Pages user#Usage. I suggest including age in the Born field with
All templates broken beyond a certain point on a CfD page
The CfD page for January 6 (permanent link) has all templates broken beyond a certain point in the "States and territories (dis)established in YYYY" nomination, which uses Template:Lc exactly 1,353 times. Templates beyond this point are replaced by links to the underlying templates. –LaundryPizza03 (dc̄) 23:37, 6 January 2025 (UTC)
- @LaundryPizza03: WP:TLIMIT strikes again. There are two clues to this: (i) the intended transclusions showing as links, as you describe; (ii) the page being in Category:Pages where post-expand include size is exceeded. The prime suspect here is Misplaced Pages:Categories for discussion/Log/2025 January 6#States and territories (dis)established in YYYY - do all of them need a
{{lc}}
, or just the first one? --Redrose64 🌹 (talk) 23:53, 6 January 2025 (UTC)- The issue was fixed by omitting around 1350
{{lc}}
for annual subcategories. They wouldn't even fit on a subpage with no other content. PrimeHunter (talk) 08:31, 7 January 2025 (UTC)
- The issue was fixed by omitting around 1350
Enwiki dump?
Dump files. Enwiki:
2025-01-07 17:19:24 enwiki (new): missing status record
Everything else is available. Is this normal? I need a dump. -- GreenC 17:26, 7 January 2025 (UTC)
- Probably https://lists.wikimedia.org/hyperkitty/list/xmldatadumps-l@lists.wikimedia.org/thread/5ABHNJRXSR53XBAMNH3TROLTMY5ZXEXF/ * Pppery * it has begun... 17:28, 7 January 2025 (UTC)
- Great, thanks. -- GreenC 17:57, 7 January 2025 (UTC)
Undo and thank buttons on Vector 2010
The undo and thank buttons in page history are coloured with Vector 2022 colours on Vector 2010. I'm not sure when this bug was introduced, but it wasn't there when I edited Misplaced Pages a month ago. Daß Wölf 19:08, 7 January 2025 (UTC)
RSS
When it comes to such feeds of pages' history, here, is it the feed itself that is not instantaneous, or the bot that delivers it? ~Lofty abyss 23:03, 7 January 2025 (UTC)
- Why do you think it is not instantaneous ? —TheDJ (talk • contribs) 23:05, 7 January 2025 (UTC)
- The timestamps differ variably, for some reason... I'm just wondering, then, if it's the feeds themselves, or the bots relaying it (as they're some free service, so presumably they don't prioritize them...) ~Lofty abyss 12:55, 8 January 2025 (UTC)
Are namespaces supposed to be case insensitive?
I discovered today that namespaces appear to be case insensitive, as opposed to following the normalization (canonicalization?) rules for page titles. For example, all of these end up at the same place:
- File:Symbol confirmed.svg
- file:Symbol confirmed.svg
- FILE:Symbol confirmed.svg
- FiLe:Symbol confirmed.svg
This isn't mentioned at mw:Manual:Namespace, so it's not clear if this is intentional, a bug, or just some silly bit of undefined behavior. Is it intentional? RoySmith (talk) 02:19, 8 January 2025 (UTC)
- Intentional I think. * Pppery * it has begun... 02:54, 8 January 2025 (UTC)
- Help:Link says: "If the target contains a namespace prefix, then the whole prefix and the first character after the colon are case-insensitive (so uSeR:jimbo Wales links to User:Jimbo Wales)." DMacks (talk) 03:22, 8 January 2025 (UTC)
- It's mentioned at mw:Manual:Page title##1 and #2. Interwiki prefixes and namespace prefixes. PrimeHunter (talk) 08:57, 8 January 2025 (UTC)
- It's been like that fot as long as I can remember, and I joined in May 2009. --Redrose64 🌹 (talk) 00:34, 9 January 2025 (UTC)
- The oldest mention I found at mw is from 2007 namespace prefixes ... are case insensitive, and the edit summary said "from docs/title.txt in installation". It also means DISPLAYTITLE allows any capitalization in the namespace. PrimeHunter (talk) 09:18, 9 January 2025 (UTC)
Out-of-line references missing in an imported excerpt
Hello, fellow Wikipedians!
I'm stuck on a problem with undefined references in the Frogs in culture article, current version Special:PermanentLink/1265294861 from 26 December 2024.
It includes the lead section of Pepe the Frog through the {{Excerpt}} template in the Frogs in culture § Pepe the Frog in 4chan culture section. The included text has 12 references in it, 10 of which are defined in-line and appear to be properly included in the destination Frogs in culture article. However, the remaining two are defined outside the Pepe the Frog's lede, which results in Cite error: The named reference ... was invoked but never defined (...).
Those two are ref named 'Branded' and named 'ADL'.
How can I fix it within the destination article (that is, without moving the references to the lede in the source article)? --CiaPan (talk) 08:06, 8 January 2025 (UTC)
- Certainly the easiest solution is to move the refs to the lead section of the Pepe article, since it doesn't apply WP:LEADCITE. Otherwise you have to recreate them as named references in the FiC article (which is not ideal since they could get orphaned) 𝕁𝕄𝔽 (talk) 11:12, 8 January 2025 (UTC)
- @JMF: Yup, I've considered moving the refs to the lede. However, it could fail in some situations.
Suppose a reference is called by its 'Name' attribute from two different sections, and each section is transcluded in a different article. That's quite exotic scenario, but still possible. Then both original sections would have to define the same reference exactly the same way for all three articles to display properly.
That's why I would rather like to solve the problem on the 'receiving' side, if possible. --CiaPan (talk) 09:11, 9 January 2025 (UTC)- In that case the only real solution is to copy the references into the article containing the {{excerpt}} as list defined references. Especially as leads are not the only type of section that gets transcluded, so LEADCITE isn't always applicable. -- LCU ActivelyDisinterested «@» °∆t° 23:40, 9 January 2025 (UTC)
- @JMF: Yup, I've considered moving the refs to the lede. However, it could fail in some situations.
- And this is one reason section transclusion can be a really bad idea. Izno (talk) 21:23, 8 January 2025 (UTC)
- @Izno: What is the solution, then? Possibly copy the whole section and add some HTML comment both at the source and a copy for editors to keep both copies in sync? But I don't know whether HTML comments are visible in Visual Editor... --CiaPan (talk) 09:11, 9 January 2025 (UTC)
- The objective should be immediate verifiability in the article of interest, while promoting WP:Summary style. Excerpt is either pulling a WP:LEAD-compliant lead, which has no references, so verifiability is hence a question in the relevant article, or is pulling one which does have references... in which case the other article needs fixing. It's just fundamentally really gross. What should instead happen is a summary of the Pepe article, and I imagine it should be a much shorter summary per WP:WEIGHT. Izno (talk) 20:07, 9 January 2025 (UTC)
- @Izno: What is the solution, then? Possibly copy the whole section and add some HTML comment both at the source and a copy for editors to keep both copies in sync? But I don't know whether HTML comments are visible in Visual Editor... --CiaPan (talk) 09:11, 9 January 2025 (UTC)
- Last time I tried to help on a closely-related matter I got shot down for it. --Redrose64 🌹 (talk) 00:35, 9 January 2025 (UTC)
- @Redrose64: Sorry to hear it. Did a requester attack you for your help being inaccurate, or some bystander considered the whole idea wrong and outraged for you helping instead of disouraging the needy one...? --CiaPan (talk) 09:11, 9 January 2025 (UTC)
- @CiaPan: Misplaced Pages:Village pump (technical)/Archive 217#List-defined refs. It's got a confusing sequence, because after I had fixed the original problem, and explained how, DuncanHill apparently decided to attack me for being an admin - but put those posts before the earlier replies. It spilled to other pages - note carefully the timestamp of this edit in relation to the timestamps in that archived VPT thread. Then ActivelyDisinterested had a go at me for reverting some edit or other, but never specified what I reverted. --Redrose64 🌹 (talk) 22:12, 10 January 2025 (UTC)
- @Redrose64: Sorry to hear it. Did a requester attack you for your help being inaccurate, or some bystander considered the whole idea wrong and outraged for you helping instead of disouraging the needy one...? --CiaPan (talk) 09:11, 9 January 2025 (UTC)
Templates that don't display on mobile
Today |
|
Sorry, I know that this is an old chestnut but I hoped that maybe it had been resolved without my noticing. The template {{Today/AD/SH/AH}} does not display on mobiles (or at least not on Android, but that has the largest market share worldwide). Is this a generic problem or something specific to that rather old and limited-use template? (If the latter, I'll go ask the template gurus.) 𝕁𝕄𝔽 (talk) 11:03, 8 January 2025 (UTC)
- @JMF This is intentional. That template is based on {{sidebar}}, which, as it notes in the documentation, does not display on mobile devices. The WMF deliberately removed a bunch of templates (like navboxes) from the mobile site. 86.23.109.101 (talk) 13:35, 8 January 2025 (UTC)
- Of course! Classic case of looking for a complicated reason (java) for a simple problem – I should have spotted that there is nowhere for a sidebar to go. So time for me to see if can be changed to an infobar. 𝕁𝕄𝔽 (talk) 16:54, 8 January 2025 (UTC)
- Indeed, it is more {{infobox}}y than it is {{sidebar}}y. Izno (talk) 21:15, 8 January 2025 (UTC)
- Current "emerging consensus" is to replace them all with {{Infobox calendar date today}}, see user talk:Gonnym#template:Infobox calendar date today. 𝕁𝕄𝔽 (talk) 23:14, 8 January 2025 (UTC)
- Indeed, it is more {{infobox}}y than it is {{sidebar}}y. Izno (talk) 21:15, 8 January 2025 (UTC)
- Of course! Classic case of looking for a complicated reason (java) for a simple problem – I should have spotted that there is nowhere for a sidebar to go. So time for me to see if can be changed to an infobar. 𝕁𝕄𝔽 (talk) 16:54, 8 January 2025 (UTC)
Chinese nationality in the infobox refuses display on certain articles
Am I the only one who noticed how on some articles, for example the Hong Kong activist Nathan Law, if you add his nationality to the infobox, it is not visible to the readers and doesn't show up in previews. However if you add any other nationality such as Bahamian it does display in the preview. At first I thought maybe this was just a quirk of visual editor, but even in source code, the same problem persists. Here is the diff in case anyone cares to examine it. Andro611 (talk) 15:29, 8 January 2025 (UTC)
- The documentation for {{Infobox officeholder}} says the following:
nationality
is not displayed if the corresponding country is mentioned inbirth_place
, for example|birth_place = Tokyo, Japan |nationality = Japanese
.- I'm guessing that's why.
Not displayed
is a link to MOS:INFONAT, which seems relevant. – 2804:F1...96:BB60 (::/32) (talk) 15:50, 8 January 2025 (UTC)- I see, thanks, that makes sense now. Andro611 (talk) 00:20, 9 January 2025 (UTC)
Multiple citation templates
Why there were created multiple citation templetes (like Cite book, Cite journa) if they differ just by a few parameters? I wonder if there could be just one template with various attributes, because in practice the user usually fills up just some of them. Juandev (talk) 16:20, 8 January 2025 (UTC)
- All those templates are wrappers for Module:Citation/CS1, but the parameters required/allowed by the different citations types varies. For example, {{cite web}} generates an error if
|volume=
is used but {{cite journal}} doesn't. This becomes even more important with the Misplaced Pages:TemplateData used by Visual Editor and various bots, where we want to vary which fields are presented to the editor. --Ahecht (TALK
PAGE) 17:32, 8 January 2025 (UTC) - Because people didn't create centralized templates at the time those were created (20 years ago). Someone eventually made {{citation}} and then someone else finally made {{citation/core}} which at least centralized how things were rendered but by that time we had the problem that there were stylistic differences between the two (which we have whittled since). We later turned that template into the aforementioned module when we got WP:Lua. If we had the right tools at the time, I suspect there would have been one template and one template only.
- I guess we could make a {{citation cs1}} which would do the same things as {{citation}} without requiring the parameter tweaks for the style issue, but the other issue a single template has trouble with is that there are some rules that are harder to enforce (or guess at) when you have only one template. Izno (talk) 21:21, 8 January 2025 (UTC)
- Yup, that sounds me like a reason, that before Lua you would need to format value inserted by the user different way for each type of a resource. Because otherwice it would be maybe better to have one big template providing samples of parameters for each resource type. Juandev (talk) 21:27, 8 January 2025 (UTC)
- This is really a matter for Help talk:Citation Style 1. --Redrose64 🌹 (talk) 00:37, 9 January 2025 (UTC)
- Moving the Cite CS1 templates into one would not be complicated. It could be done with moving "CitationClass" from being a config (template parameter) to being an argument (page parameter). The challenge is getting Citoid to work - the automatic citation filler in VisualEditor and RefToolbar - because it expects one template for news, one for web, one for books, etc. Changing the roughly 6 million pages to one template with a bot is also going to take awhile. You are going to need a conseus for all of this. Snævar (talk) 01:30, 9 January 2025 (UTC)
- It sounds like you're talking about something like changing
{{cite web|...}}
to{{cite|web|...}}
, consolidating to one template while retaining the background module code. I can't see how this would make anything better. Merging the documentation seems likely to cause more confusion than the current situation, since different modes accept different parameters and produce different formatting. I don't see how or why this would be a good idea. – Jonesey95 (talk) 05:26, 9 January 2025 (UTC)- A lot of the documenation is already maintained in a centralised way, through {{Citation Style documentation}}. Take a look at all its subpages, which contain the documentation that is identical for all CS1 templates. --rchard2scout (talk) 08:43, 9 January 2025 (UTC)
- I am familiar with the documentation and have edited it over the years, which is why I think that it will be difficult to display for a single template with multiple modes. Take a look at the switch and if statements in the code for {{Citation Style documentation/title}}, for example. Editors already complain that the documentation for these templates is too complex; imagine a single documentation page with all of the modes explained on one long, green page. – Jonesey95 (talk) 14:32, 9 January 2025 (UTC)
- Citation templates included quite a lot options. It would be nice to know the persentage of use of each option. We may see then, that some of them have rare use. Juandev (talk) 22:44, 9 January 2025 (UTC)
- Have you looked at the monthly report available in the TemplateData section of the documentation? If you have specific suggestions for changes to one of the cite templates, Help talk:Citation Style 1 is the correct forum. – Jonesey95 (talk) 23:07, 9 January 2025 (UTC)
- Some options are rarely used because they are rarely needed, but they are needed sometimes. Try citing a chapter in a book without "chapter", "chapter-url", or "chapter-url-access". Donald Albury 23:08, 9 January 2025 (UTC)
- Citation templates included quite a lot options. It would be nice to know the persentage of use of each option. We may see then, that some of them have rare use. Juandev (talk) 22:44, 9 January 2025 (UTC)
- I am familiar with the documentation and have edited it over the years, which is why I think that it will be difficult to display for a single template with multiple modes. Take a look at the switch and if statements in the code for {{Citation Style documentation/title}}, for example. Editors already complain that the documentation for these templates is too complex; imagine a single documentation page with all of the modes explained on one long, green page. – Jonesey95 (talk) 14:32, 9 January 2025 (UTC)
- A lot of the documenation is already maintained in a centralised way, through {{Citation Style documentation}}. Take a look at all its subpages, which contain the documentation that is identical for all CS1 templates. --rchard2scout (talk) 08:43, 9 January 2025 (UTC)
- Well, I am not sure if VisualEditor would be a big deal. You just recreate MediaWiki:Cite-tool-definition.json and maybe also MediaWiki:Citoid-template-type-map.json. Juandev (talk) 14:41, 9 January 2025 (UTC)
- It sounds like you're talking about something like changing
- Yup, that sounds me like a reason, that before Lua you would need to format value inserted by the user different way for each type of a resource. Because otherwice it would be maybe better to have one big template providing samples of parameters for each resource type. Juandev (talk) 21:27, 8 January 2025 (UTC)
External link screening JS script I just made!
Re recent events that I'm not going to mention because of WP:DENY/WP:BEANS, and also the very concerning {{Plain link}} template which can disguise external links as wikilinks (like this), I made a user script, at User:MolecularPilot/ExternalLinkScreen.js that presents a "are you sure this is the link you want to visit" screen when clicking through to external links, even if {{Plain link}} has been used or the link has a display name set, showing you the actual URL you are about to visit. This is common on many websites like YouTube, Twitter etc.
It's also able to prevent spoofing (IDN homograph attack) by showing the actual puny code and adding warnings for websites like https://wikipediа.org (spoiler alert: this isn't wikipedia, it's a trick using cyclic letters, you are actually taken to http://xn--wikipedi-86g.org/ which this script will tell you about).
Just wanted to post this here to let everyone know that can now install this (just add importScript('User:MolecularPilot/ExternalLinkScreen.js');
to your Special:Mypage/common.js or use Enterprisey's script installer).
Stay safe everyone, especially if you are editing in WP:ARBPIA! :) MolecularPilot 06:14, 9 January 2025 (UTC)
- Adding that if you want a "try before you buy", here's two link examples of the screen you will see (note that if you have the script installed, it you'll get 2 landing pages before reaching the link as opposed to the usual 1, if you click these):
- Click here for a regular link.
- Click on that to see what happens with an IDN homograph attack.
- MolecularPilot 06:27, 9 January 2025 (UTC)
- Interesting concept. I don't see why you need the toolforge site in the middle though, as that's just executing JS that could be run in the user script itself. – SD0001 (talk) 06:46, 9 January 2025 (UTC)
- Also, pulling in punycode.js from Cloudfare CDN is against Toolforge policy. Use https://cdnjs.toolforge.org/ instead. – SD0001 (talk) 06:53, 9 January 2025 (UTC)
- Oh, thanks for the tip, I'll fix the CDN now! (I also realised that I wrote my demo links incorrectly above, so the URL would be "null", which I've just fixed). Re: the use of a website, I think it's better psychologically because it adds a pause while the tool forge page loads and also makes you process (yes, I'm going to a different page) before automatically clicking the button. :) MolecularPilot 06:55, 9 January 2025 (UTC)
- SD0001, CDN fixed now! Thank you so much for your feedback, I really appreciate it! I might add a version that creates popups like Twinkle instead of using the landing page like most of the other websites do, because it may be better suited to our environment here. :) MolecularPilot 07:12, 9 January 2025 (UTC)
- Oh, thanks for the tip, I'll fix the CDN now! (I also realised that I wrote my demo links incorrectly above, so the URL would be "null", which I've just fixed). Re: the use of a website, I think it's better psychologically because it adds a pause while the tool forge page loads and also makes you process (yes, I'm going to a different page) before automatically clicking the button. :) MolecularPilot 06:55, 9 January 2025 (UTC)
- Also, pulling in punycode.js from Cloudfare CDN is against Toolforge policy. Use https://cdnjs.toolforge.org/ instead. – SD0001 (talk) 06:53, 9 January 2025 (UTC)
- I suggest you wrap the script in
mw.hook('wikipage.content').add()
and find links only in the jQuery node passed to the callback, or it may run before the whole page is loaded. Also all wiki-generated external links have theexternal
orextiw
class. Nardog (talk) 10:36, 9 January 2025 (UTC)
This is all a step in the right direction. I'd like to see something else as well, namely a bot that goes around flagging (or even disabling) external links that appear to be deceptive. That would protect editors who haven't installed any js. Exactly what properties would trigger it is a matter for discussion, as is how to catch enough cases without a flood of false positives. Zero 11:27, 9 January 2025 (UTC)
- That is what MediaWiki:Spam-blacklist is for. It blocks aditions of links that are listed in the list. The way I see it, javascript link warnings are for finding bad links or marking links that are not quite serious enough for Spam-blacklist. Snævar (talk) 00:13, 10 January 2025 (UTC)
- No, the blacklist is for blocking links to malicious domains that have already been identified. It does not locate new deceptive links to other domains. We have a well-funded organization that plans to add deceptive redirects in order to dox editors and those links are not going to point to the organization's own domains. They will point to new temporary domains designed to be deniable. The question is how we will find those links before unsuspecting editors click on them. Zero 02:04, 10 January 2025 (UTC)
- Actually a good point re temporary domains, I will make the page warn if they domain is newly registered (i.e. in the last 30 days). Currently, the "do you really want to visit this link" isn't just for suspicious links, it's for all links to non-WMF sites (including Toolforge as anyone can host a tool) because sometimes there is no way to figure out where a link is going until you actually click it (and sometimes a user might expect a wiki link but it's a {{Plain links}} external link), so I thought this would be helpful. For example how do you know where this goes without clicking and how about this, you might not even think it leads you off-wiki? MolecularPilot 02:11, 10 January 2025 (UTC)
- "...a well-funded organization that plans to add deceptive redirects..."? If that's the case, perhaps the good folks over at WP:EFR can help out to prevent that from happening? --rchard2scout (talk) 13:43, 10 January 2025 (UTC)
- I think that's a typo, Zero probably meant links not redirects. I don't think such links can be caught with a regex-like AbuseFilter pattern (but no links have been posted yet so you never know!) but just made this script to ensure people actually see where a link is taking them (and see appropriate warnings like about IDN homograph attacks and new domains) and confirm that it's correct before heading off-wiki, like many other sites do for safety/privacy. :) MolecularPilot 00:29, 11 January 2025 (UTC)
- No, the blacklist is for blocking links to malicious domains that have already been identified. It does not locate new deceptive links to other domains. We have a well-funded organization that plans to add deceptive redirects in order to dox editors and those links are not going to point to the organization's own domains. They will point to new temporary domains designed to be deniable. The question is how we will find those links before unsuspecting editors click on them. Zero 02:04, 10 January 2025 (UTC)
Redlink count
How to count fastly redlinks here? ru:Депутаты Верховного Совета Республики Казахстан XII созыва Kaiyr (talk) 10:40, 9 January 2025 (UTC)
- Open the browser console (see Help:CONSOLE for how to open) and use command
document.querySelectorAll('a.new')
. There are 214. – SD0001 (talk) 10:43, 9 January 2025 (UTC)- How to make list of this redlinks? Kaiyr (talk) 13:04, 9 January 2025 (UTC)
copy(.map(e => e.title).join('\n'))
. This copies a plain list of titles to the clipboard. – SD0001 (talk) 15:19, 9 January 2025 (UTC)
- How to make list of this redlinks? Kaiyr (talk) 13:04, 9 January 2025 (UTC)
"Edit" has disappeared and I only have "Edit Source"
Despite having (repeatedly) enabled the visual editor the "edit" function has disappeared from all my Misplaced Pages pages, leaving only "edit source", which is beyond my capability. Please help, but assume I am totally stupid in the way you reply - I will not be offended - thanks. Stagememories (talk) 17:28, 9 January 2025 (UTC)
- You probably changed the "Editing mode" setting here. Sjoerd de Bruin (talk) 17:56, 9 January 2025 (UTC)
- Sjoerd de Bruin, you are a star! Thanks. Stagememories (talk) 18:29, 9 January 2025 (UTC)
Pipe-related glitch
I've been having this happen for quite some time, and still don't know the root cause. Sometimes, although not all the time, a random wikilink (]) will bug out and display a "post-open>" and post-close>" in visible text before and after the link, despite no changing to the source editor or any other input. The best example of this can be found at this diff. The "post" is usually highlighted in orange, so it may be some sort of issue with a script I have installed. A user on the WM Discord told me about a week ago that I'm not the only person that has reported this issue. This could easily be taken as vandalism, so I'd say it's relatively serious. EF 17:37, 9 January 2025 (UTC)
- I'd immediately be looking at some sort of Wordpress or other spelling or blog browser extension.... Izno (talk) 20:04, 9 January 2025 (UTC)
- That’s the thing, I run Chrome (on my school-issued Chromebook) and Edge (on my home PC), neither of which have extensions installed (I have WWT, but this problem has gone on way before I installed it). EF 20:41, 9 January 2025 (UTC)
- The diff which added it is where you used VisualEditor. I only found one other occurrence in searches and it was also you, 30 October 2024 with the mw:2017 wikitext editor which is a mode within the VisualEditor extension. The diffs add nowiki which is MediaWiki code and VisualEditor is known for automatically adding nowiki in some situations so VisualEditor is probably involved but it may be a conflict with a script in User:EF5/common.js. You should load User:Epicgenius/ArticleQuality.js once and not 16 times, but that happened this week so it's not the cause. PrimeHunter (talk) 21:15, 9 January 2025 (UTC)
- I’ll mess around with my scripts a bit and see what happens. I normally catch it before publishing it by cancelling the edit (which usually fixes it), hence why it’s only shown up twice. EF 21:24, 9 January 2025 (UTC)
- The diff which added it is where you used VisualEditor. I only found one other occurrence in searches and it was also you, 30 October 2024 with the mw:2017 wikitext editor which is a mode within the VisualEditor extension. The diffs add nowiki which is MediaWiki code and VisualEditor is known for automatically adding nowiki in some situations so VisualEditor is probably involved but it may be a conflict with a script in User:EF5/common.js. You should load User:Epicgenius/ArticleQuality.js once and not 16 times, but that happened this week so it's not the cause. PrimeHunter (talk) 21:15, 9 January 2025 (UTC)
- That’s the thing, I run Chrome (on my school-issued Chromebook) and Edge (on my home PC), neither of which have extensions installed (I have WWT, but this problem has gone on way before I installed it). EF 20:41, 9 January 2025 (UTC)
- I tried loading your common.js for myself, and immediately saw a visual glitch (just in read mode, not in the editor) that's eerily similar to the problem you get after saving pages: F58156448 (screenshot taken on The Fighting Temeraire). I can't tell which script of the eleventeen you have is inserting that markup, but it must be its fault. (Also, the way in which it breaks suggest it's vulnerable to XSS attacks, by processing HTML incorrectly, which is probably not good for you…) Matma Rex talk 22:55, 9 January 2025 (UTC)
- It appears to be User:Moonythedwarf/extra-unreliable. nowiki is probably added by VisualEditor when the script messes with the page. PrimeHunter (talk) 23:52, 9 January 2025 (UTC)
- Check out that script’s talk page, it’s definitely this script. Thanks for the help, it’s been really annoying having to deal with this weird visual bug! :) EF 23:55, 9 January 2025 (UTC)
- You could wrap the script in the following, it will then only run on page view.
if (mw.config.get("wgAction") == "view") { //script here }
Snævar (talk) 03:08, 10 January 2025 (UTC)
- @PrimeHunter Thanks for finding the script. I suggested a fix: User talk:Moonythedwarf/extra-unreliable#Glitch fix. Matma Rex talk 17:21, 10 January 2025 (UTC)
- Check out that script’s talk page, it’s definitely this script. Thanks for the help, it’s been really annoying having to deal with this weird visual bug! :) EF 23:55, 9 January 2025 (UTC)
- It appears to be User:Moonythedwarf/extra-unreliable. nowiki is probably added by VisualEditor when the script messes with the page. PrimeHunter (talk) 23:52, 9 January 2025 (UTC)
Sections
I noticed that some sections are written like: == xxxxx == and some are written like ==xxxxx==. Some have gaps and some do not. Won't it be better if it was standardized? I prefer the one without gaps because it should save space. TrueMoriarty (talk) 06:47, 10 January 2025 (UTC)
- No. Please write articles instead. —TheDJ (talk • contribs) 08:08, 10 January 2025 (UTC)
- Articles about what?
- TrueMoriarty (talk) 11:57, 10 January 2025 (UTC)
- Or fix actual errors, of which there are literally tens of millions. – Jonesey95 (talk) 14:23, 10 January 2025 (UTC)
- About what????? TrueMoriarty (talk) 16:43, 10 January 2025 (UTC)
- Or fix actual errors, of which there are literally tens of millions. – Jonesey95 (talk) 14:23, 10 January 2025 (UTC)
- The community hasn't made a project-wide standard for this. In general, you can use either style in articles you write, subject to the guidelines that do exist (see MOS:SECTIONHEAD as a start). But also, in general, match the style that already exists in an article and don't change style in an existing article without reason (see MOS:STYLEVAR). New guideline/rules are added sometimes, of course. I'd suggest editing and being around longer before considering making a proposal about this (not saying you are, just as a suggestion) (it's been discussed, at least tangentially many times: arbitrary recent example).(And welcome to Misplaced Pages and happy editing.) Skynxnex (talk) 16:16, 10 January 2025 (UTC)
- I got your hint. If you don't want users newer than you to give some proposal here than you should put a password on this page and share it with users who you think is worthy and equal to you.
- TrueMoriarty (talk) 17:01, 10 January 2025 (UTC)
- I just was trying to give some background/history, in case you didn't know it. No objection to an actual proposal but I think if you want it to have a chance, you should do enough research to pretty comprehensively explain why and exactly what you'd want different. This is less a technical proposal and more a style or policy one, since English Misplaced Pages can't, as far as I know, make one of them technically impossible (since all Wikipedias share the common MediaWiki wikitext parser). Skynxnex (talk) 17:27, 10 January 2025 (UTC)
- Please assume good faith. What you proposed is a cosmetic change. Cosmetic changes are discouraged because they clutter up watchlists, and require editor time to review without making any improvement to the Encyclopedia. Donald Albury 17:27, 10 January 2025 (UTC)
- To address the original question. @TrueMoriarty: The presence or absence of the gaps makes absolutely no difference to either how the heading is displayed, or to how the MediaWiki software process the heading (such as, making section links work). Since they function identically, there is no advantage in altering either form to the other one.
- Further: if an edit is made which does nothing other than remove those gaps, it doesn't save any space at all - in fact, it increases the amount of disk space that is used, since the MediaWiki software retains all previous versions of a page, effectively forever. You can see this by opening the "History" tab at the top of any page. --Redrose64 🌹 (talk) 13:16, 11 January 2025 (UTC)
request for new category
Hello. I have created a bot for updating amp url to its canonical/non-amp version. The BRFA will soon be approved. For now, I am using inputs from file(s), which were created using this list. In short, would it be possible possible to create a hidden/maintenance category which would contain articles that have "amp" anywhere in their url? False positives are preferred over missing amp url. The bot's programming is comprehensive so false positives wouldn't matter. Kindly let me know if this is possible, or if you need further information. Regards, —usernamekiran (talk) 10:52, 10 January 2025 (UTC)
- PS: automatically populating category. —usernamekiran (talk) 11:34, 10 January 2025 (UTC)
- It's possible, but in practice it's very unlikely you'd be able to convince MediaWiki developers to write and merge a change that does this. You'd probably do better to use a Toolforge database query or process a database dump. If you go the database query route, you'll probably need to batch your query with a condition like
el_id > N AND el_id <= N+1000000
for relevantN
to avoid timeouts. You'll also probably find that looking for just "contains 'amp'" gives very many false positives on words like "camp", "campus", "champion", "sample", "example", "Hampshire", and so on. Anomie⚔ 12:51, 10 January 2025 (UTC)
- It's possible, but in practice it's very unlikely you'd be able to convince MediaWiki developers to write and merge a change that does this. You'd probably do better to use a Toolforge database query or process a database dump. If you go the database query route, you'll probably need to batch your query with a condition like
- Isn't that link just listing pages containing "https://amp." in wikitext? The bot can query for that directly using mw:API:Search instead of relying on a static list. – SD0001 (talk) 13:51, 10 January 2025 (UTC)
- Some sites use path-based amp URLs, so adding searching for something like at least "/amp/" would be needed. But between these two that'd get almost everything. Skynxnex (talk) 15:37, 10 January 2025 (UTC)
- As SD0001 said, you can use pagegenerators. For example:
from pywikibot import pagegenerators site = pywikibot.Site("en", "wikipedia") gen = pagegenerators.SearchPageGenerator('insource:"https://amp."', site=site) for page in gen: #your code
– DreamRimmer (talk) 16:49, 10 January 2025 (UTC)
- Thanks everyone. I was doubtful about the category, so I was also working on code. But I had come up with:
for page in site.allpages(namespace=0): #.. code search_term = "https?:\/\/*amp*"
But the method suggested by SD0001, and DreamRimmer is less resource intensive. I will go with it. Regarding Anomie's query, I kept the search term intentionally lax, the bot has more regular expressions to weed out URLs containing words like "hampshire". I'm not sure if including such long code/strings in search would be a good idea. Thanks a lot again. —usernamekiran (talk) 13:22, 11 January 2025 (UTC)
Group changes by page doesn’t work in mobile view
The option to "Group changes by page in recent changes and watchlist" doesn’t work for me in mobile view. Am I missing something? YBG (talk) 12:38, 10 January 2025 (UTC)
V22's recent Appearance portlet has bigger min-content in grid than tools?
I'm trying to troubleshoot m:User:Aaron Liu/v22.css for when only the appearance menu is pinned to the right sidebar (i.e. tools is unpinned). For some reason, the right sidebar is much larger in this case, despite the grid template still being minmax(0, 1fr) min-content. Any idea why? Aaron Liu (talk) 12:56, 10 January 2025 (UTC)
Sergei Skripal wrong text displayed - mystery solved
The word "pleased" should be "convicted".
- In the wiki-text it is "convicted".
- I've done a history search using Wikiblame, I can't find the word "pleased" in recent history
- I've purged the page.
- I've done a nearly-null edit of the section.
- In other browsers the word "convicted" appears, logged in or logged out.
Expand to see the reason, or puzzle over the mystery a little longer |
---|
Google Translate was re-writing the article, claiming to be translating from Russian to English. |
All the best: Rich Farmbrough 13:38, 10 January 2025 (UTC).
Variable watchlist font sizes in Android desktop view
As shown below, when I view my watchlist in Desktop mode in Chrome on my Android phone, the font sizes vary the entire length of the list. It's disruptive! Can it be fixed?
I know I can use mobile mode, but it has its own shortcomings (such as all the edits to one page not being grouped together) so I often prefer desktop mode. Largoplazo (talk) 16:12, 10 January 2025 (UTC)
- This is a Chrome/Mobile thing where it increases the font size of items which it thinks that you might be interested in. It's been raised on this page several times before, they should be in the page archives. In short: it's outside our control. --Redrose64 🌹 (talk) 13:21, 11 January 2025 (UTC)
Rollback does not count as an "edit"
When an account conducts a rollback, the edit does not count towards their edit count according to Misplaced Pages, such as at their contributions page. At least, that is what I have observed. Because of this, there is a discrepancy between their edit count according to Misplaced Pages itself and their edit count according to XTools. Is this an intentional feature or a bug? By the way, I am not asking this because I am obsessed with my edit count, I am just curious as to why this is. Cyrobyte (talk) 21:09, 11 January 2025 (UTC)
- This is a known bug that will be fixed with on the next WP:THURSDAY. T382592. * Pppery * it has begun... 22:07, 11 January 2025 (UTC)
- (edit conflict) Well, let's test it. As I type this, Special:Contributions/Redrose64, just refreshed, says "A user with 273,195 edits". I now make this edit, and I have 273,196 edits. I apply WP:ROLLBACK to that edit, and I again have 273,196 edits. So there appears to be truth in what you say. I'm wondering if there is some form of lag involved, and my edits might tick up later in the day. --Redrose64 🌹 (talk) 22:13, 11 January 2025 (UTC)