Wikipedia:Village pump (technical)

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
 Policy Technical Proposals Idea lab Miscellaneous 
The technical section of the village pump is used to discuss technical issues about Wikipedia. Bug reports and feature requests should be made in Phabricator (see how to report a bug). Bugs with security implications should be reported differently (see how to report security bugs).

Newcomers to the technical village pump are encouraged to read these guidelines prior to posting here. 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.

Frequently asked questions (FAQ) (see also: Wikipedia:FAQ/Technical)
Click "[show]" next to each point to see more details.
If something looks wrong, purge the server's cache, then bypass your browser's cache.
This tends to solve most issues, including improper display of images, user-preferences not loading, and old versions of pages being shown.
Font size changed unexpectedly?
You may have accidentally changed the font size on your browser for a particular website by pressing a shortcut key or scrollwheel without realising it. Try resetting the zoom with Ctrl+0 (typing the digit zero while holding down the control key) or adjusting the zoom with Ctrl++ or Ctrl+-. Alternatively, look for the View option on your browser's menu and reset it to 100%.
No, we will not use JavaScript to set focus on the search box.
This would interfere with usability, accessibility, keyboard navigation and standard forms. See bug 1864. There is an accesskey property on it (default to accesskey="f" in English), and for logged in users there is a gadget available in your preferences.
No, we will not add a spell-checker, or spell-checking bot.
You can use a web browser such as Firefox, which has a spell checker.
If you have problems making your fancy signature work, check Wikipedia:How to fix your signature.
If you changed to another skin and cannot change back, use this link.
Alternatively, you can press Tab until the "Save" button is highlighted, and press Enter. Using Mozilla Firefox also seems to solve the problem.
If an image thumbnail is not showing, try purging its image description page.
If the image is from Wikimedia Commons, you might have to purge there too. If it doesn't work, try again before doing anything else. Some ad blockers, proxies, or firewalls block URLs containing /ad/ or ending in common executable suffixes. This can cause some images or articles to not appear.
Numbers listed in parentheses in the "Recent changes" section, on history pages and in your watchlist are the number of added or removed bytes.
For server or network status, please see Wikimedia Metrics.
« Archives, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174

Contents


Editing formatting bar break code[edit]

Currently, when editing the source text (i.e. not the visual editor), under the "advanced" formatting tab there is a button to insert a line break, which inserts the code <br>. As discussed at WP:LINEBREAK, this can break several of the available syntax highlighters for wikicode in the editing view (mis-highlighting all text in the page after the occurrence of that tag), and so should be avoided. Is it possible to change the interface so it inserts <br /> instead? (I apologize if I'm not using the right vocuablary.) MarginalCost (talk) 21:00, 4 June 2019 (UTC)

MarginalCost, if a syntaxhighlighter cannot handle a simple br tag, it's broken and shouldn't be used. —TheDJ (talkcontribs) 23:13, 4 June 2019 (UTC)
@TheDJ: Okay, new topic: The built-in Wikipedia syntax highlighter available through the user preferences/gadgets menu is broken and shouldn't be used.
If <br /> is the recommended output, why stick with the less-preferred one? MarginalCost (talk) 23:40, 4 June 2019 (UTC)
Gadgets are not official. They are maintained entirely by volunteers. --Izno (talk) 00:05, 5 June 2019 (UTC)
This is a long-standing known issue with the syntax highlighter, and there are periodic fruitless arguments about it on this page. Since the MW parser outputs <br />, and that form allows the syntax highlighter to help editors find and fix other syntax problems, it seems to me that the least bad option is to insert <br /> as the preferred option. I can find only one Phabricator task that relates to br tags and syntax highlighting (linked at the right side of this section), but I'm pretty sure I have seen others. – Jonesey95 (talk) 08:30, 5 June 2019 (UTC)
The button used to insert <br />, but this was changed by TheDJ in T150172. Perhelion argued at the time that <br /> should be replaced because HTML5 prefers <br>. However, <br /> is valid HTML5, and the MediaWiki parser will convert <br> to <br />. From what I can see, there's two options: go full-on <br>, which includes changing the parser, fixing the syntax highlighters, and changing the advice on WP:LINEBREAK, or go full-on <br />, which only needs a revert of that change by TheDJ. I'm in favour of the latter. Opinions? (also pinging Fomafix, who commented on that phab task.) rchard2scout (talk) 11:01, 5 June 2019 (UTC)
Rchard2scout It just doesn't matter that much, unless you are the type of person that cares about adding or removing spaces between heading syntax and the heading content... Fruitless arguments indeed. Harmonisation of the wikicode is NOT needed here and a waste of editor time. Tools should be able to handle both, both are allowed wikicode, both are allowed in html5, one is better xml, the other better html5. I personally don't see the need for either wikEd or Remember theDots syntaxhighligh lib. Neither are used by more than a couple of people in the grant scope of things. And confusing users with documentation on details of line break syntax.. really.. who reads that and comes away with any level of understanding ?? A line break is <br> done. —TheDJ (talkcontribs) 13:26, 5 June 2019 (UTC)
Interesting support, with details, for <br> from a dev: diff "...<br> is valid wikitext...". I support that view—simple is good and changing wikitext to insert a space and a slash is pointless and confusing for onlookers. Johnuniq (talk) 00:25, 6 June 2019 (UTC)
Alright, TheDJ's arguments and Tim Starling's explanation have me convinced. One interesting quote from that reply by Tim: RemexHtml "will initially output "<br />" for compatibility with parser tests", which means it could be changed in the future, and we really shouldn't base our decisions about wikitext on the HTML output it generates. Let's not fix things that ain't broken, and those who care about syntax highlighting gadgets should fix their syntax highlighting gadgets. rchard2scout (talk) 19:08, 6 June 2019 (UTC)

Just so you know, the space in <br /> is entirely optional (personally I think <br/> looks better without the space). <br> without the slash is in no way "better" HTML5. The main reason why I don't want to support <br> in the syntax highlighter is because it's confusing to have some tags be automatically closing while other tags like <references/> require the slash. Also, I don't want to have to maintain an ever-growing list of automatically-closing tags. —Remember the dot (talk) 00:34, 9 June 2019 (UTC)

In HTML, the only valid self-closing tags are the void elements, and in fact any self-closed tag in the list of all valid HTML tags not present in the list of void elements is an error (e.g. <span/>). So, you probably should also not support the invalid HTML (except where appearing inside of e.g. <pre>). In the list there, only a couple of those appear as wikitext (though <source> has different semantics in wikitext). That list basically hasn't changed since HTML 4. So...
As for confusion, there's nothing you can do about that--some tags will be self-closing in some situations, and we've introduced a few others to wikitext (e.g. <section> for section transclusion), and some tags will never be self-closing, as is the case for that vast majority of the HTML tags you can write in wikitext (<code>, <div>... and just about every other). What's actually confusing is when a maintained gadget breaks on valid wikitext and then we get discussions like this one.... --Izno (talk) 02:29, 9 June 2019 (UTC)
Sure there's something we can do about that: Deprecate the use of <br> without the slash (maybe show a warning if the non-slashed version is used) and stop considering it "valid" wikitext. It's just not a popular solution because people insist that requiring the slash on tags like <references/> and <section/> but not on <br> and <hr> is somehow more straightforward. —Remember the dot (talk) 06:41, 9 June 2019 (UTC)
The reason it's unpopular is because it's valid HTML, which enjoys a consensus your gadget does not. Right now both of the WMF-sanctioned highlighters (one in the 2017 WTE and the other in the 2010) work just fine (if more-simply in other aspects). A whitelist/blacklist on your part is not hard to maintain once initially implemented and could even be maintained by another editor if you are disinterested. --Izno (talk) 15:50, 9 June 2019 (UTC)
HTML5 made everything "valid", including <p> and <div> tags without accompanying </p> and </div>. This syntax cannot be supported in the syntax highlighter without major detriment to its performance. Nevertheless, you are welcome to get permission to move mw:User:Remember the dot/Syntax highlighter and mw:User:Remember the dot/Syntax highlighter.js out of the User namespace, edit them based on community consensus, update mw:MediaWiki:Gadget-DotsSyntaxHighlighter.js to match, and continue to maintain the shared fork by adding new translations etc. If you implement automatically-closing tags nicely--with a voidTags config parameter analogous to nowikiTags and sourceTags--I won't revert it. Considering how strongly people seem to feel about this, I'm surprised that no one has done that already. —Remember the dot (talk) 20:36, 9 June 2019 (UTC)
No, the </p> tag has never been required until recently (it wasn't mentioned in HTML 1, was implicitly optional in HTML 2.0, explicitly optional in HTML 3.2 and HTML 4, and became conditionally optional in HTML 5); whereas the </div> tag has always been mandatory (HTML 3.2, HTML 4 and HTML5 spec). --Redrose64 🌹 (talk) 22:50, 9 June 2019 (UTC)
Oh interesting. Thanks for pointing out that HTML5 doesn't deserve all the blame for implicit </p> tags and implicit </div> is still technically forbidden. However, the fact remains that the syntax highlighter wouldn't be able to support implicit </p> without major, performance-killing modifications. —Remember the dot (talk) 23:20, 9 June 2019 (UTC)
.
Between HTML 4 and 5, there were some iterations of XHTML. Closing tags (or self-closing where no content) were required for everything including <p>...</p>, <hr/>, etc., so that it would validate as proper XML. The space before the slash was an optional but recommended kludge to keep earlier parsers happy (It's valid SGML, and HTML4 parsers would see the slash as an invalid attribute). As mentioned above, <references/> isn't any kind of (X)HTML, it's XHTML-inspired wikicode (and well-formed XML).
When I view HTML source on a Wikipedia page as delivered to the browser, the <p>...</p> tags are paired not naked. If MediaWiki hasen't turned that on its head to go fully down the HTML5 rabbit-hole, then I say our tools should keep inserting XHTML-compatible <br />. The instant counter-argument is that MW emits <!DOCTYPE html>. Sigh. (Although there's an HTML5-style doctype, does MediaWiki create anything else that's not good XML?)
Anybody know what Visual Editor inserts for br?
Pelagic (talk) 09:17, 16 June 2019 (UTC)
Yes, I forgot about XHTML 1.0. That was essentially HTML 4.01 with a few extensions and a much tighter syntax: there were no optional tags; tag and attribute names had to be lowercase; all attribute values had to be quoted; etc. But XHTML was more of an offshoot from the main route, rather than a step in the progression. --Redrose64 🌹 (talk) 10:35, 16 June 2019 (UTC)
The latest HTML5 spec states "This specification defines an abstract language for describing documents and applications...There are various concrete syntaxes that can be used to transmit resources that use this abstract language, two of which are defined in this specification...The first such concrete syntax is the HTML syntax...The second concrete syntax is the XHTML syntax...This specification defines the latest version of the XHTML syntax, known simply as 'XHTML'." So no, XHTML was not a temporary deviation from the main route; HTML and XHTML continue in parallel as equivalent syntaxes for representing essentially the same content. —Remember the dot (talk) 14:30, 16 June 2019 (UTC)
It states at the top "W3C Working Draft, 18 October 2018". This is not a W3C Recommendation, so is in a fluid state and not to be considered definitive or final. See World Wide Web Consortium Process Document, section 6.1.2. --Redrose64 🌹 (talk) 23:05, 16 June 2019 (UTC)
In addition to the HTML 5.3 specification I linked above, the HTML 5.0, HTML 5.1, and HTML 5.2 specifications all say the exact same thing about XHTML. XHTML has been there all along and it's unlikely to disappear. —Remember the dot (talk) 06:13, 19 June 2019 (UTC)

KISS. Keep It Simple, Stupid. KISS principle. I use <br> all the time on wikis outside Wikipedia. Don't f*ck it up by requiring the use of <br /> in wikitext editing in the MediaWiki software. And you notice how <br /> with the space can wrap to 2 lines in the wikitext. Yet more confusion. <br> is simpler than </br> too. Or <br/>. People forget where to put the slashes for all of these tags. I still do sometimes. -- Timeshifter (talk) 09:29, 9 June 2019 (UTC)

If MediaWiki required <references> and <section> instead of <references /> and <section />, I would agree with you. However, requiring the slash on some tags but not others, or leaving it up to the whim of the author, is not KISS. The default "tag soup" serialization of HTML5 is in fact the antithesis of the KISS principle. —Remember the dot (talk) 20:36, 9 June 2019 (UTC)
I agree, Remember the dot. If the core software is XML-compatible, then the add-ons, toolbars, templates, etc. should be also. If we can output code that works in HTML5 and XHTML, then why not? Pelagic (talk) 09:17, 16 June 2019 (UTC)

By the way, if the network connection is fast enough, it's actually faster to send data uncompressed than to send it in a compressed format and then decompress it on the receiving end. For the same reason, 10 or 20 years from now I suspect XHTML5 will surge in popularity because it puts so much less strain on the CPU. —Remember the dot (talk) 20:54, 9 June 2019 (UTC)

Definitely not, with thinner and thinner fab processes, devices will be more efficient and more powerful as well (a reminder that we have AI/ML on our smartphones now). You're right about the first point as we are approach higher bandwidths, but not so much about the second, the end winners are going to be JavaScript and Python as resource-hunger becomes less and less of an issue and everyone wants a scripting language to just do anything, no doubt. --qedk (tc) 14:41, 16 June 2019 (UTC)
Intel has been trying for years to go from a 14 nanometer process to a 10 nanometer process and still hasn't succeeded in mass-producing 10nm chips. Silicon atoms are only 0.2nm in diameter, so 10nm means lithography that is 50 atoms wide. At some point in the near future, we just won't be able to go any smaller and unless someone discovers a better semiconductor than silicon, we will be at the limit of single-thread general-purpose CPU performance. The bottom line is that we can't rely on CPUs getting faster any more; instead we are compelled to write more efficient software. You can already see the effects of this shift in the increasing popularity of C and C++ and the emergence of new compiled languages like Cython, Go, and Rust, as well as interest in binary (non-textual) data formats such as BSON and Protocol Buffers. —Remember the dot (talk) 15:08, 16 June 2019 (UTC)
Oh and how could I forget WebAssembly, which is basically a compiled version of JavaScript? —Remember the dot (talk) 15:13, 16 June 2019 (UTC)
And of course, massively-parallel hardware (and software that must adapt to that) —PaleoNeonate – 15:16, 16 June 2019 (UTC)
TSMC and Samsung are already mass-producing 7nm, whether Intel catches up is irrelevant. And just to remind you, in terms of stats, JavaScript and Python are the only languages to not lose out in the TIOBE index rankings (Python is the largest gainer) and both of them are now on the top of StackOverflow stats, with JS leading in terms of numbers and Python in terms of growth of the numbers. ...instead we are compelled to write more efficient software, this statement was probably true in the conventional times but now we are moving at a different pace and maybe this statement will come to fruit in the later part of the next decade but not earlier than that. --qedk (tc) 15:34, 16 June 2019 (UTC)

chem quirks[edit]

How to type things like "t-Bu" using the <chem> tag?

According to mhchem, it should be something like $t${-}Bu, using $...$ for italics and {-} to indicate that the hyphen is really a hyphen (instead of a bond).

In the present-day <chem>:

$t${-}Bu produces (very wrong),
\mathit{t}{-}Bu produces (italic t, but {-} still makes a bond),
\mathit{t}\text{-}Bu produces (how?!),
\mathit{t}\text-Bu produces a syntax error.

Is there any reasonable way to get hyphens inside <chem>? The question is not about workarounds for this particular case, but about the general approach that will work in more complex examples, like "[t-Bu]2O" over a reaction arrow inside <chem>. — Mikhail Ryazanov (talk) 03:22, 7 June 2019 (UTC)

Have you looked at {{Chem}}? It might work for you. – Jonesey95 (talk) 04:58, 7 June 2019 (UTC)
{{Chem}} only helps to make some lower and upper indices, so it is of no use here. Especially for "more complex examples, like '[t-Bu]2O' over a reaction arrow". — Mikhail Ryazanov (talk) 19:13, 7 June 2019 (UTC)
According to Help:Displaying a formula#Chemistry, <chem>X</chem> is just shorthand for <math chem>\ce{X}</math>. This makes it possible to not have everything in the \ce tag. The next problem is that everything in <math> is in LaTeX math mode, which doesn't have a hyphen, only a minus sign. I played around a little and put together <math chem>t\textrm{-}\ce{Bu}</math>, which produces . Would something like that work for you? --rchard2scout (talk) 22:10, 7 June 2019 (UTC)
Partially, thanks. Now the question is how to make "[t-Bu]2O"? Unmatched ] inside \ce{} produces a TeX parse error. (I've also noticed that <chem>\textrm-</chem> does not fail like <chem>\text-</chem>, but yields . Where does it get these braces?!) — Mikhail Ryazanov (talk) 22:47, 7 June 2019 (UTC)
@Physikerwelt: Maybe you might have an interest in this discussion (both to advise on deprecated tags and perhaps provide a solution). --Izno (talk) 02:51, 9 June 2019 (UTC)

Well, if nobody here knows more, maybe there is a better place to ask? — Mikhail Ryazanov (talk) 06:05, 17 June 2019 (UTC)

Mikhail Ryazanov, You can try WT:CHEM/WT:CHEMICALS maybe? Galobtter (pingó mió) 06:53, 17 June 2019 (UTC)

Signature forcing black text[edit]

Please can someone help User:QEDK fix his signature as it appears in Wikipedia:Administrators'_noticeboard#User:WMFOffice_-_Ban_Proposal and in User_talk:QEDK#Problem_with_your_sig_on_AN? It's forcing the following text to appear in a black font, which is invisible to users of the green-on-black gadget. Thanks. DuncanHill (talk) 10:46, 12 June 2019 (UTC)

The code for my signature is <span style="font-family:'Trebuchet MS',Geneva,sans-serif">[[User:QEDK|<font color="#000000">qedk<font>]] ([[User talk:QEDK|<font color="#000000">t</font>]] 桜 [[Special:Contributions/QEDK|<font color="#000000">c</font>]])</span><span style="font-family:'Trebuchet MS',Geneva,sans-serif">[[User:QEDK|<span style="color:black">qedk</span>]] ([[User talk:QEDK|<span style="color:black">t</span>]] 桜 [[Special:Contributions/QEDK|<span style="color:black">c</span>]])</span>. From what I can tell, it is definitely a drawback of the tool itself but if there is no resolution for the people using the gadget, anyone is feel free to roll back my signature to the old version. --qedk (tc) 10:54, 12 June 2019 (UTC)
See WP:SIGFONT. DuncanHill (talk) 10:58, 12 June 2019 (UTC)
@DuncanHill: Can you confirm the above signature works fine for you? --qedk (tc) 11:02, 12 June 2019 (UTC)
I can now read what follows your first signature in this thread, which I could not do before. DuncanHill (talk) 11:04, 12 June 2019 (UTC)

Sidenote: that gadget probably need some adjustment for 2017 wikitext editor (Preferences - Beta), example: Wikipedia:Signature_tutorial#Real-life_examples, try editing Real-life_examples section. With that gadget on, parts of text is hidden (black text on black background, even highlighted text is still invisible). MarMi wiki (talk) 11:13, 12 June 2019 (UTC) Scratch that - it's a syntax highlighter fault. MarMi wiki (talk) 11:22, 12 June 2019 (UTC)

  • @QEDK: You still have not fixed either AN or your talk page. DuncanHill (talk) 11:23, 12 June 2019 (UTC)
I've fixed AN for you, by copying and pasting the version of your sig above over the version in the thread. DuncanHill (talk) 11:33, 12 June 2019 (UTC)
Thanks DuncanHill, I had to go out for an eye check-up and didn't have time to fix it. --qedk (tc) 11:52, 12 June 2019 (UTC)
That's OK - I found one more which I also fixed. I see you've fixed it on your talk page, thank you. I hope the check up went well. DuncanHill (talk) 11:54, 12 June 2019 (UTC)
Another 0.25 increase, which falls in the range of not-so-good, not-terrible news. Rest was fine fortunately, thanks for asking. Face-smile.svg --qedk (tc) 15:22, 12 June 2019 (UTC)

────────── Whenever somebody updates their signature, it would be nice to have some sort of maintenance tool that ran every, say, 24 hours and updated all previous signatures to match the new change. That way, if there were any situations like this, people wouldn't have to remember to update problematic previous signatures manually. Amaury 14:15, 14 June 2019 (UTC)

Sounds nice theoretically , but [a] some users have hundreds of thousands of contributions - not all to "talk" of course, but still quite the overhead. [b] What if the change has an adverse effect on page content, such as an open tag rendering all subsequent page content bright pink or bold or gigantic etc... [c] The custom signature might contain contemporaneous content, such as a name/nickname change or a previously non-existent link that would simply be wrong/misleading if applied retrospectively. (etc...) -- Begoon 09:58, 16 June 2019 (UTC)
A manual tool/script would work great tho. --qedk (tc) 10:02, 16 June 2019 (UTC)
I suppose so - it would definitely need a bot flag because you're not going to make many friends lighting up thousands of watchlists to change a signature. I'm pretty sure, also, there have been objections to people doing this with, say, AWB - and you'd probably get similar objections to mass edits some would view as "pointless". If it's to fix an error that has a negative impact, as above, that would probably be viewed as ok, but I doubt purely 'cosmetic' alterations would be popular with some. -- Begoon 10:06, 16 June 2019 (UTC)
I would hate to think that each time I change my sig, some poor subroutine has to wade through the project to fix something that doesn't need fixing. Roxy, the dog. wooF 10:16, 16 June 2019 (UTC)
On lots of discussion forums (not all), when you view old posts you will see people's 'current' signature/avatar. This, though, is because that software doesn't save the rendered content with the post(s) like Mediawiki does, but generates it 'on the fly' each time. This comes with its own peculiarities though, such as viewing old posts with content like "that cat in your avatar is pretty" when the avatar has, by now, been updated to be a picture of "Judge Dredd", or the old post discusses signature content that has since been altered... -- Begoon 10:32, 16 June 2019 (UTC)
Unless ofcourse, it does... --qedk (tc) 10:42, 16 June 2019 (UTC)
We already have bots (such as WOSlinkerBot (talk · contribs)) that are authorised to fix signatures with problematic markup, mainly concerning missing or misplaced closing tags - for instance, if instead of this:
[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]]
I had used one of these:
[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Redrose64]]
[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Redrose64]]</span>
[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</font>rose64]]
a bot could swoop in and fix it up. Apart from that, and other changes in accordance with WP:SIGCLEAN, existing signatures should be left alone. --Redrose64 🌹 (talk) 10:49, 16 June 2019 (UTC)

Highlighting new additions to a page.[edit]

I hope I'm not the only one who finds it challenging to keep up with fast-moving pages such as Wikipedia:Community response to the Wikimedia Foundation's ban of Fram. Take a few hours off to sleep and there are literally hundreds of new posts, some of which are helpfully at the bottom, but others for sensible reasons are interspersed as responses to earlier posts. It's not easy to keep current.

I do know how diffs work, so I can and did look at all changes since my best guess at the last time I looked at the page, but the formatting is less than ideal.

My question is whether there is a way to write a script or propose a change to the underlying software to make it easier to see what has been changed since my last visit. My first thought is that all new material could have a highlighted background and soft gray or yellow. As I read the new material, I could either mouse over it which would change the background to default (probably too difficult), or after reading the entire page, click the box that says this is now current and it would change the default.

While one usage for this would be for fast-moving pages such as the one identified, I can think of other uses. Because of my involvement in copyright issues I'm often removing material made by a very new editor, who might come to my talk page and ask a question. In many such cases, they don't know our protocol and drop a note at the top of my talk page. While I do get a ping to know that someone has responded, , I automatically look at the bottom of the page and seeing nothing new, presume that it's an old pain and I've already seen the relevant material. Occasionally, I stumble onto it days later. If it had a distinctive highlight, I'd be less apt to miss it.

This probably belongs in ideas if it's sensible and requires more discussion but I'm posting here on the chance there's a way to do it now and I just don't know how to accomplish it.S Philbrick(Talk) 15:20, 12 June 2019 (UTC)

It might also be simple and useful to allow users to expand their Page History display beyond the last 50 revisions. I've been using History to keep up with the updates on that page when I'm on, but if I take a break for an hour to walk the dog and water the plants, I now have a full screen of "updated since your last visit" revisions on the History display and can't just do a collective diff to the last visit. Alternatively, a one-click option to display such a collective diff of all updates since the last time an editor visited a page might not go wrong, as it would have a similar effect. (While I admit that the "difference between revisions" raw wikitext display isn't the easiest to read, it at least allows one to fairly quickly see what's changed, so...) rdfox 76 (talk) 16:22, 12 June 2019 (UTC)Stricken as moot rdfox 76 (talk) 16:39, 12 June 2019 (UTC)
When viwing page history, you should find, at both top and bottom, a row showing "(newest | oldest) View (newer 50 | older 50) (20 | 50 | 100 | 250 | 500)". Several of those are links; try them. --Redrose64 🌹 (talk) 16:27, 12 June 2019 (UTC)
Well, that's weird. Could have sworn I didn't see them last time I checked history on WP:FRAM. (I'm familiar with those from the watchlist!) Guess it's another consequence of having been still waking up when I first got on this morning. Stricken! rdfox 76 (talk) 16:39, 12 June 2019 (UTC)
If you don't visit the page, but first go to the page history, does it not say updated since my last visit on the more recent revisions? That's what I do. The information clears when you view the page, so for such pages, I usually just leave a tab open to the page history and refresh that as needed. WP:POPUPS are also helpful in following links to history without first going to the page in question. ~ Amory (utc) 20:38, 12 June 2019 (UTC)
The issue with the green thing is that you know that something changed but you don't know the something. So, either you see the diffs and then Ctrl+F for the text or you just blindly try to find where it was added. The issue is problematic on very long pages where a few words might match a lot of texts and require you to substantially copy over part of the diff and require you to go through maybe one or several diffs to see what changed. Sphilbrick basically wants to see what was added in the page itself, to identify what and where it was added, and I agree, this would be an amazing tool for long and winded pages (see WP:FRAM). Especially to resolve the edit conflicts on frequently edited pages, the current resolver is plain annoying. --qedk (tc) 07:50, 13 June 2019 (UTC)
Just realized that Sphilbrick was talking about the same page. Ditto! --qedk (tc) 07:51, 13 June 2019 (UTC)
Amorymeltzer, Yes, it does, and that's better than nothing, but not exactly what I was hoping for. S Philbrick(Talk) 19:21, 13 June 2019 (UTC)
Not sure if you are aware of it, but there is a beta feature that enables a "Visual" mode versus the standard "Wikitext" mode for viewing differences between two versions. It doesn't always do a great job with large diffs, and sometimes it just hangs (typically again with large diffs, but sometimes with just a few edits, too). To enable it, go to your preferences, select "Beta features", and check "Visual differences". You will then be able to switch back and forth between visual and wikitext mode when viewing a diff. isaacl (talk) 15:41, 16 June 2019 (UTC)

Freeze Headers in Long lists[edit]

Apologies if I'm asking a perennial (I feel I can't be the first), but I couldn't find it in my keyword search

In long lists (ones longer than the height of a normal screen), could the headers be frozen (like the top line in an Excel sheet can be), as it can involve a lot of flicking up and down to remember exactly which column is which?

Cheers,

Nosebagbear (talk) 09:53, 14 June 2019 (UTC)

There's a gadget for this but it only works on some select browsers. You can see that in Preferences → Gadgets under "Testing and development." – Ammarpad (talk) 10:26, 14 June 2019 (UTC)
That's for tables, I'm not too sure what headers of long lists means? Section headers, maybe? --qedk (tc) 10:44, 16 June 2019 (UTC)
Lists don't have headers. The (abandoned) proposed HTML 3.0 spec would have provided the LH element, but that was omitted from the HTML 3.2 spec and has not resurfaced since. --Redrose64 🌹 (talk) 11:09, 16 June 2019 (UTC)
@Redrose64: The correct HTML element in HTML 5 for a "list header" is <figcaption> paired with <figure> plus the list itself of course, but neither are supported in wikitext as either wikitext or HTML. --Izno (talk) 23:53, 16 June 2019 (UTC)

RfC: Alteration of Account Creation Limits/Account Creator Rights[edit]

Currently, one of the most backlogged processes is Request an Account (ACC) , which exists mainly (though not entirely) for helping with 3 purposes: Those having trouble completing CAPTCHA; enabling the choosing of a username that is too similar to an existing username under certain circumstances & creating an account for those hindered by a rangeblock.

The current backlog on pending requests is 4 months.

In the last couple of months multiple editors have signed up to be ACC tool users, Tool users are signed up to the confidentiality agreement and meet various other criteria.

Currently here are limits, however, on both their ability to create accounts. Two options could ease their work.

  1. Raise the local account creation rate limit from 4 to 10. The new limit only to extended-confirmed users to prevent any abusive behaviour from IPs.
  2. Automatically grant account creator permission, on request, to new ACC tool users. This would allow them both to bypass the limit entirely, but would also let them ignore the antispoof and title blacklist when making accounts.

Pinging all participants in the local chat discussion: @Ajraddatz, FlightTime, Xaosflux, TheSandDoctor, AfroThundr, QEDK, and Oshwah: Nosebagbear (talk) 13:11, 14 June 2019 (UTC)

  • NOTE: Option 2 is broader than Option 1, however they do not completely overlap. Option 1 would allow any EC-confirmed editor to create up to 10 accounts per IP address, option 2 is specifically targeted at ACC-users. Thus participants can !vote for either/both/none of the options.

Survey: Account creator rights[edit]

  • Support for option 1 only. Speaking as an ACC administrator, I believe that automatically granting all new ACC tool users the account creator user right (option 2) would open the door for new tool users to potentially handle requests incorrectly and without limitations before it's caught and identified - which would not be a good thing at all. We need to have a limit for how many accounts that new tool users can create per day by default. When a tool user shows proficiency with handling requests correctly, they can apply for and (after approval by an ACC admin via a comment made to the request) be granted the account creator flag in order to remove those limits. Option 2 would remove the need for an ACC tool administrator to give their approval before an admin can grant the user rights to the requesting user. This approval is still necessary and absolutely needed. Raising the current limit of 4 creations per day to 10 creations per day would loosen the restrictions so that users can help take care of the current backlog of requests at ACC, while still being on a set limit during the time that they're learning and demonstrating their knowledge and proficiency with ACC tool user interface. This option is the best way to resolve the concerns expressed. :-) ~Oshwah~(talk) (contribs) 13:25, 14 June 2019 (UTC)
  • Support for option 1; encourage ACC admins to quickly work with new ACC volunteers to get them trained and empowered with additional flags as soon as feasible. — xaosflux Talk 13:43, 14 June 2019 (UTC)
  • Support option 1 Per above. Also, as all rights on Wikipedia are, it is granted on the basis of need for the right, inherent oppose for point 2. --qedk (tc) 13:59, 14 June 2019 (UTC)
  • Support option 1 as per my comment in the previous discussion. I also agree with Oshwah on automatically granting new users the ACC bit. The current method of granting the right after a couple weeks of activity allows the team to gauge the user's performance and whether or not they have learned the policies and procedures properly. Lowering the barrier further could lead to a problematic user potentially causing a lot more damage (no rate-limit, anti-spoof override, username title blacklist override) than they otherwise could if we had to manually grant those rights. On the other hand, when all is in order, granting them the right is usually quick and painless anyway. — AfroThundr (u · t · c) 14:04, 14 June 2019 (UTC)
  • Support alternate option where an group named Account creation helper is formed, which would contain only the noratelimit right.--Snaevar (talk) 14:38, 14 June 2019 (UTC)
I appreciate the idea, but I just don't see how this implementation would be useful here, or how it would resolve any issues that the account creator flag wouldn't already resolve. If an ACC admin user can trust an ACC tool user enough to have no account creation limit, that admin user should also trust the tool user enough to be able to correctly and properly handle requests that tripped the antispoof extension and require a flagged user to override (and vice versa). ~Oshwah~(talk) (contribs) 14:45, 14 June 2019 (UTC)
  • Support 1. After thinking about this a bit more, I'm not sure if tying the rate limit to extendedconfirmed would be possible. If not, I still think we should raise the limit, but maybe to 6 like it was before instead. The limit was lowered mainly for projects without 300 active local sysops who couldn't instantly respond to mass account creation. -- Ajraddatz (talk) 15:16, 14 June 2019 (UTC)
    Rights like PMR have increased limits for certain flags (in that case, page moves), this would just mean adding a flag like that to EC right holders. --qedk (tc) 15:23, 14 June 2019 (UTC)
    Yes, most ratelimits are determined on a per-account basis (or per IP for anonymous users). But I seem to remember account creations being different, and being specifically tied to the IP. I assume/hope that a defined higher ratelimit for extendedconfirmed would override that. And no need to tie it to a specific permission; it can be done for the group itself. -- Ajraddatz (talk) 22:58, 14 June 2019 (UTC)
    Yep, but that's a non-issue as far as devs are concerned. Delving into the issue of newer technical changes, from my experience talking to people on SRE/Deployment (and Anomie, TheDJ), technically unfeasible things are pretty rare and I have not seen requests getting turned down (rarely, if ever) with "MediaWiki does not support this", if it's a feature change, or some irreproducible bug, it's a different thing but for example, during the RfC for Template editor rights, a lot of people were worried about the tecnical changes but eventually it was done, with no big deal at all. That's how it is for most new things (and TE rights had a new protection level as well), so I would say a change would be technically feasible until a dev says exactly otherwise. --qedk (tc) 07:50, 16 June 2019 (UTC)
    With dev time almost anything is possible; my concern would be if the current software doesn't support the change, then we should be looking at easier options like raising the max number to 6 / IP as it used to be. Adding a new protection level is easy to do through the software. Fundamentally changing the account creation throttle might be more difficult. But agreed that we should ask rather than muse about things we know little about :-) -- Ajraddatz (talk) 01:03, 18 June 2019 (UTC)
  • (ACC admin comment) I'm pretty sure option 1 isn't possible without development, i.e. it is not a simple configuration change. AFAICT, IP account creation limits can only be set as a count per interval with the noratelimit right being the only way for a user to bypass that limit. (mw:Manual:$wgAccountCreationThrottle) Oppose option 2 for the reasons outlined by Oshwah. Support returning the daily IP limit to 6 unless the Security Team provides a good reason that it needs to remain at 4. — JJMC89(T·C) 05:50, 15 June 2019 (UTC)
    The Security Team doesn't have a problem with bumping the IP limit from 4 to 6 or even 10, as originally proposed. SBassett (WMF) (talk) 21:32, 21 June 2019 (UTC)
    @SBassett (WMF): thanks for the note, is this really something we need to worry about at a per-project level then? — xaosflux Talk 21:52, 21 June 2019 (UTC)
    @Xaosflux: - see my response to JJMC89 starting here: http://phabricator.wikimedia.org/T212667#5274787. SBassett (WMF) (talk) 12:39, 22 June 2019 (UTC)
  • Comment. My preference would be to at least be granted access to the tool. I've waited for a week or so now. :/ –MJLTalk 16:04, 18 June 2019 (UTC)

Discussion: Account creator rights[edit]

  • @Nosebagbear: regarding your proposed options, and since this is VPT, can you explain the specific technical changes you are proposing - or is this more of a "let some developer figure it out" type of request? Is the "automatic" granting you are asking some sort of technical change you are proposing, or is it a procedural/policy change? — xaosflux Talk 13:24, 14 June 2019 (UTC)
    Xaosflux - If option 1 were to reach consensus, it would be corrected by filing a phab ticket to have this done. See phab:T212667. ~Oshwah~(talk) (contribs) 13:27, 14 June 2019 (UTC)
    Thanks. — xaosflux Talk 13:29, 14 June 2019 (UTC)
    (edit conflict) @Xaosflux: - changing the rate limit is obviously possible. Whether it can be changed "in bands" to different protection levels is, I'm afraid, I query for those more technically savvy than me. If they say that's impossible (or akin), then this would need to be rethought. Nosebagbear (talk) 13:29, 14 June 2019 (UTC)
  • For the problem that is trying to be solved - is overriding anti-spoof the normal resolution, or is getting them to pick a new username? — xaosflux Talk 13:25, 14 June 2019 (UTC)
    Xaosflux - For instances where similar usernames exist and are caught by anti-spoof, it depends. See this section of the ACC guide for the policy on when ACC tool users with the account creator flag can override the antispoof flag and proceed with creation. ~Oshwah~(talk) (contribs) 13:30, 14 June 2019 (UTC)
    @Oshwah: thanks, option 1 above won't fix the antispoof ones, is that a significant part of the backlog? Just asking so we don't spend time getting something done that won't help. — xaosflux Talk 13:33, 14 June 2019 (UTC)
    Xaosflux - No. Requests that have tripped the anti-spoof extension make approximately 3.5% of all total requests at this time. Of those, users without the account creator flag can still see if the similar accounts are active, and decline the request if any of them are. The only time that a request requires a user with the account creator flag is when a request trips the antispoof extension and the similar accounts are all inactive. This means that the antispoof needs to be overridden, the request approved, and the account created. ~Oshwah~(talk) (contribs) 13:37, 14 June 2019 (UTC)
  • Why not grant Wikipedia:Event coordinator to new members of ACC? EVC will give them ability to bypass 4 account limit and it also doesn't allow overriding antispoof/title ban restrictions. ‐‐1997kB (talk) 16:36, 14 June 2019 (UTC)
    1997kB - Not a bad thought, but event coordinators can set new accounts as 'confirmed' using Special:UserRights, which is an ability that they don't need. Essentially, we'd be trading apples and oranges here if the concern is over access to some user rights they shouldn't have. As I said above, I believe that if an ACC admin can trust an ACC user to create accounts with no limit, they should also trust them to properly handle requests that tripped the antispoof extension and require a user with the account creator permissions to override and create (and vice versa). :-) ~Oshwah~(talk) (contribs) 16:42, 14 June 2019 (UTC)
    @Oshwah: - I realise I agree with you, but to run with the Event-Coordinator compromise theory a bit further, it would be clearer cut - the damage possible is pretty tiny. Even if they made every account they created confirmed, it wouldn't cause a great uptick in carnage. Nosebagbear (talk) 22:36, 14 June 2019 (UTC)
    Fair point. ~Oshwah~(talk) (contribs) 02:31, 15 June 2019 (UTC)
    @Oshwah: what is the expected amount of accounts to be created by "new" ACC volunteers per period? (i.e. would 6 or 8 be enough?) since the "rights they don't need" here to ECC users is expected to be way more than is needed by the relatively minuscule ACC team. — xaosflux Talk 16:59, 14 June 2019 (UTC)
    Xaosflux - Honestly, any increase from 4 would be beneficial. Even if the increase is just by a few... :-) ~Oshwah~(talk) (contribs) 17:41, 14 June 2019 (UTC)

New bot[edit]

I think we should have a bot or some kind of tool check for accounts which are hitting the account creation limit but do not hold the rights event coordinator, account creator and are also not ACC tool users. The account creation limit was lowered for a reason and increasing it without keeping a check in place would be a gross violation of WP:BEANS imo. Thoughts, @Nosebagbear, JJMC89, Xaosflux, and Oshwah:? --qedk (tc) 14:19, 14 June 2019 (UTC)

A recurring database report may be able to solve this for you. — xaosflux Talk 14:27, 14 June 2019 (UTC)
If this is a major issue, the report would have to be run quite frequently, and viewed frequently by patrolling users. Otherwise, this method might not be effective enough at stopping abuse and quickly enough... ~Oshwah~(talk) (contribs) 14:30, 14 June 2019 (UTC)
(edit conflict) QEDK - Doesn't sound like a bad idea to me. How would this new bot alert others that an account is hitting a limit and isn't within one of those groups? Who would this bot alert? Where? This is something that we should figure out if we're going to consider an idea like this... :-) ~Oshwah~(talk) (contribs) 14:29, 14 June 2019 (UTC)
It can function the same way AnomieBot handles WP:TPERTABLE, there's no annoying notifications involved and interested people can simply watch the page and report when they find anyone suspect. --qedk (tc) 14:33, 14 June 2019 (UTC)
QEDK - Nice... I like it. :-) ~Oshwah~(talk) (contribs) 14:36, 14 June 2019 (UTC)
Functionally, a bot wouldn't be able to work "that way". Also, bot's wont be able to see "that you got denied by the limit" , but a bot could periodically generate a report of "accounts created per user over some time period" and could either filter out members of certain groups or just report the groups as well. — xaosflux Talk 14:38, 14 June 2019 (UTC)
Why not? The logic is pretty simple, you would need to check creation logs iterating a certain period (maybe an hour) and track accounts which create another account for 24 hours at minimum and more if they somehow meet the limit each day (hence, suspect). Wikipedia accounts which do not have a similarly authorized account in ACC (or the other account creation rights as well) have demonstrably no reason to carry out actions like this, hence red-flagging them almost immediately. --qedk (tc) 14:49, 14 June 2019 (UTC)
A bot could create a report, technically it won't be able to tell if you actually got stopped by the limit, just that you hit it or approached it. It wouldn't work "the way" of the protected edit requests in that those don't mine logs, they make use of what links here/category memberships. But the output could still be made. Have a bot periodically (say hourly) ingest the user account creation log and make a report. I think it may even be helpful to have it report on everyone, or everyone with say 3+ creations - and also to identify accounts made by coordinators, etc - so they can be coached as needed. — xaosflux Talk 14:54, 14 June 2019 (UTC)
Yeah, I mean, technically not. But I'm saying it like the logic is clear that an account cannot make more than 10, so an account which makes 10 accounts can be construed to have hit the limit, what's important is identifying if anyone is trying to make a large number of accounts in a short period of time, hitting the actual limit is more of a formality. --qedk (tc) 15:06, 14 June 2019 (UTC)
Something like quarry:query/36938? It can't tell if they're an ACC tool user, obviously. If this query is correct, there's not a whole lot of ACC activity going on. MusikAnimal talk 19:46, 14 June 2019 (UTC)
@MusikAnimal: thanks for the query, even including everyone with 3+ creations over the last whole 10 days (quarry:query/36941). I haven't checked their groups, but the impact here seems to be very small. — xaosflux Talk 20:07, 14 June 2019 (UTC)
Almost all ACC users in that 10+ range, minus the one event coordinator. Unfortunately I won't be appearing in that query anytime soon due to a certain rangeblock with "account creation disabled" set. Really puts a damper on ACC work... — AfroThundr (u · t · c) 01:51, 15 June 2019 (UTC)
@AfroThundr3007730: - I thought individual accounts could be exempted from rangeblocks? If so then ACC tool users would be a priority Nosebagbear (talk) 14:32, 15 June 2019 (UTC)
@AfroThundr3007730: this is a known issue, even effects admins: phab:T189362. — xaosflux Talk 15:16, 15 June 2019 (UTC)
@Nosebagbear: Besides IPBE, I'm not aware of any (current) facility to exempt an individual user from the effects of a rangeblock, at least not the account creation part.
@Xaosflux: - thanks, suspect it was one of those merging of facts I got while swinging around the policy pages. Clearly, I'd made a terrible nerd Nosebagbear (talk)
@Xaosflux: Yep, definitely tracking that one, and if they do get around to implementing it, I would be first in line to request IPBE so I can get back to helping in ACC. — AfroThundr (u · t · c) 18:37, 15 June 2019 (UTC)
Could use an abusefilter for this - something along the lines of Special:AbuseFilter/527. Galobtter (pingó mió) 15:33, 15 June 2019 (UTC)

Event Coordinator Rights[edit]

The idea of granting (permanent) Event Co-ordinator rights to any ACC tool user who didn't possess Account Creator rights was mooted as a compromise. The right waives the account creation limit, and also allows accounts to be made confirmed. Obviously the latter isn't needed, but as I noted above, even if a tool-user went rogue, the maximum potential damage is significantly smaller (than the additional rights of Account Creator). It makes a good halfway house between nothing and Account Creator, and if Option 1 turns out to be inviable, then it might be the only way to significantly help with their task. Nosebagbear (talk) 18:46, 17 June 2019 (UTC)

Attach floating navbar outside of table?[edit]

Is it possible to attach a flaoting navbar outside of a table, but so that it aligns with the right hand side of the table? Take a look at my sandbox to see, what I'm trying to achieve. Thanks. Wikiinger (talk) 18:34, 14 June 2019 (UTC)

If you add it as a header, people with the sticky header gadget can see it. I believe position: sticky is what's needed in any element like that, and probably (!) can be achieved with the help of TemplateStyles and/or a change in local .css. --qedk (tc) 18:42, 14 June 2019 (UTC)
Actually, I want to have it below the table (forgot to mention). So I think the header is not an option (I might take it as a last resort). Also this is supposed to go on a "real" template, so a change in local .css is not an option either. Wikiinger (talk) 19:03, 14 June 2019 (UTC)
Make a template wrapper for the table and use WP:TemplateStyles. --qedk (tc) 19:19, 16 June 2019 (UTC)

In-article external links[edit]

Is there a tool or gadget available to get rid of all external links in an article, either by removing them entirely, transforming them into references, or converting them into wikilinks? Thanks. — Gorthian (talk) 18:58, 14 June 2019 (UTC)

WP:REFILL will do some of that. If you've got something that's already marked up as a reference (i.e. inside a <ref> tag) but it's only a bare URL, it'll build a full citation for you. But, it won't help if it's just an external link in single brackets. -- RoySmith (talk) 19:54, 14 June 2019 (UTC)
Unfortunately, the single-bracket kind are what I want to eliminate. See Steven Amsterdam, for a mild example. It’d be nice not to have to do all of it by hand. — Gorthian (talk) 20:06, 14 June 2019 (UTC)
Gorthian, I understand this doesn't respond at all to your question, but before you spend any time on it, why on earth are we permitting an article in which 86% of the content is contributed by user:Stevenamsterdam1? When the subject makes some contributions, that can be salvaged but this doesn't seem like one of the situations. S Philbrick(Talk) 18:33, 17 June 2019 (UTC)
Sphilbrick, I know. I was going to address that, too, but I’m doing too little editing these days, and hadn’t gotten to it. But I’ve run across other articles where various editors have added a plethora of external links, and have often wished for a tool like this. This was just the most recent, and handy. — Gorthian (talk) 23:30, 17 June 2019 (UTC)
Gorthian, I get it. Part of me thinks this would be a useful tool to have. Another part thinks it would be good to do a review of say 100 or so examples, to see how often the best path is conversion into a proper footnote, and how often the inclusion of such a link is more likely to mean COI, or unreliable resource, or other problems. If there are a substantial proportion of such instances the translate to salvageable content then perhaps it's worth investigating a tool to do this, but I'd like to see the stats before devoting resources. I hope you're right that this would be useful tool. S Philbrick(Talk) 00:33, 18 June 2019 (UTC)
Try Wikipedia:User scripts/Requests? Galobtter (pingó mió) 19:40, 18 June 2019 (UTC)
I haven't heard of a really good solution. mw:Citoid in the visual editor will do some of those for you, with a little effort. You'll have to copy the URL (and remove it from the spot where it doesn't belong), put your cursor where the ref tag ought to be, and paste the URL in to the tool (Command-Shift-k to open the correct dialog box). Whatamidoing (WMF) (talk) 18:10, 21 June 2019 (UTC)

Help with tables[edit]

An editor has been adding large tables to a number of articles, such as Plainville, Connecticut, which appears to have disrupted the layout. I tried adding "mw-collapsed" to make the tables more compact, but was not able to float the tables left. Any help would be appreciated. Thank you. Magnolia677 (talk) 17:31, 15 June 2019 (UTC)

  • At Plainville, Connecticut, User:Nthep fixed the table layout with an edit summary "don't float the table - keep it in the section it belongs in". I tried this same fix at Newington, Connecticut and it worked fine, but when I also added "mw-collapsed", that feature didn't work (the "show all" was disabled). Any help would be appreciated, as User:WikiGeek0485 has added these large tables to a number of articles. Magnolia677 (talk) 10:54, 16 June 2019 (UTC)
It works with wikitable mw-collapsible mw-collapsed (as described in documentation Help:Collapsing#Collapsing_by_default), but the long title is then squeezed (spelled almost word under word). |+ class="nowrap" | Newington... prints title in one line. MarMi wiki (talk) 18:54, 16 June 2019 (UTC)
If you're wondering why float:right was removed, zoom out of that page by Ctrl+- (Control and minus key) and observe the table. MarMi wiki (talk) 19:11, 16 June 2019 (UTC)
Please observe MOS:COLLAPSE. --Redrose64 🌹 (talk) 17:50, 17 June 2019 (UTC)

What is the difference between these two page titles?[edit]

We have two Wikipedia pages that bear the following titles:

The first one is a redirect to the second. But no typographical difference is visible to me, so I cannot say whether the page ought to be moved from the second title to the first. What am I missing? Michael Hardy (talk) 22:11, 15 June 2019 (UTC)

The first title contains a non-ASCII character for the "K", it is "GREEK CAPITAL LETTER KAPPA". power~enwiki (π, ν) 22:20, 15 June 2019 (UTC)
Yup, while the other is the standard Latin capital K. I've added an appropriate redirect category to that. --Masem (t) 22:24, 15 June 2019 (UTC)
@Power~enwiki: @Masem: How did you find out that that's what it is? Michael Hardy (talk) 23:22, 15 June 2019 (UTC)
Find a unicode converter online (numerous ones out there). Copy directly from the article titles and paste into the converter which should spit out unicode values. --Masem (t) 23:44, 15 June 2019 (UTC)
Simpler method: take the links above and reduce them to the first character only:
Then click each link in turn and see where you end up. --Redrose64 🌹 (talk) 09:38, 16 June 2019 (UTC)
They also look fairly different in the monospaced source editor, but of course not everyone uses it. ~ Amory (utc) 10:32, 16 June 2019 (UTC)
That also depends on what monospaced font your browser is using. With Courier New they look the same. Eman235/talk 22:40, 17 June 2019 (UTC)
It might be better to nominate this redirect for deletion for WP:R#DELETE reason #8. Unfortunately, it looks like the editor who created this is in 2008 is no longer active and wouldn't be able to give their creation rationale. Checking pageviews, the Greek letter redirect gets virtually no traffic so does not appear to be useful BUT, as this very thread proves, it creates a maintenance burden. Jason Quinn (talk) 10:03, 20 June 2019 (UTC)
@Jason Quinn: The creation rationale is simple: the article begins "Κ-casein, or kappa casein, is a ..." - that word "kappa" (which is the Greek letter, not the sportswear manufacturer) is why. What makes you think that it's a maintenance burden? --Redrose64 🌹 (talk) 18:55, 20 June 2019 (UTC)
The (Kappa) Κ-casein redirect page makes sense and should not be deleted. It looks strange because Wikipedia articles don't begin with lowercase letters, but try the lowercase form as a link: κ-casein. Notice that wikipedia correctly resolves that to the uppercase article, (Kappa) Κ-casein, which then redirects to (Kay) K-casein, i.e. kappa casein aka κ-casein.—wing gundam 19:22, 20 June 2019 (UTC)

Category move/re-name[edit]

I used to be able to carry out uncontroversial category re-naming using the page move feature but I don't seem to able to do this any more. Is this a policy change or a technical issue?--Obi2canibe (talk) 12:23, 16 June 2019 (UTC)

Both. Per policy, categories should not be renamed except through CFD, and, as an attempt to enforce that policy, I got consensus to restrict the technical ability to move categories to page movers, admins, and bots. * Pppery * it has begun... 13:04, 16 June 2019 (UTC)
OK, thanks for responding.--Obi2canibe (talk) 14:21, 16 June 2019 (UTC)

Moving script page[edit]

Is it not possible to move a script page? Trying to do so gives the error "[XQaN5wpAAD8AADZAmukAAAAU] 2019-06-16 18:43:52: Fatal exception of type "InvalidArgumentException" repeatedly. SD0001 (talk) 18:45, 16 June 2019 (UTC)

If you're trying to move a script page (js/css/json) in your own userspace, it is allowed (I just tried it) but you cannot move MediaWiki-namespace or other user's script pages, since you do not have the right to edit them in the first place. --qedk (tc) 19:16, 16 June 2019 (UTC)
That is obvious. I got the above error on trying to move within my userspace. Never mind, I c&p-moved it anyway. SD0001 (talk) 20:23, 16 June 2019 (UTC)
Your first sentence is a rather mean retort when your original question didn't specify where and the "rules" changed within the last year as to not being able to edit/move scripts outside your own userspace. Glad you were able to sort your problem out. Killiondude (talk) 23:14, 16 June 2019 (UTC)
This is phab:T225366. --Izno (talk) 23:56, 16 June 2019 (UTC)

Problem with content pushed to right side of page[edit]

A reader ( ticket:2019061710006603) reported a problem with: Portal:Computer_science

As you can see, almost all of the content is forced way to the right.

It seems to have been introduced with this edit, With the ironic edit summary "Deleted line forcing all content to the extreme right."

I see some code in the fourth and fifth lines that looks problematic but fixing this is outside my technical skills.S Philbrick(Talk) 18:09, 17 June 2019 (UTC)

[1] fails because Computer science has special code in the lead. PrimeHunter (talk) 18:24, 17 June 2019 (UTC)
Yes, the module that builds a portal page by extracting the lead section of an article (in this case Computer science) apparently cannot handle tables commenced using the {| markup. --Redrose64 🌹 (talk) 21:08, 17 June 2019 (UTC)
{{Transclude lead excerpt | Computer science | paragraphs=6}} currently works [2] but may fail later. Maybe it would be more stable to noinclude parts of the lead in Computer science. PrimeHunter (talk) 08:22, 18 June 2019 (UTC)

Template search[edit]

Hello. In the article Kurchatov, Russia reference number three shows as a bare url. However this is one of those where the bare url is in the template rather than the article. Now I have gotten pretty good at tracking these down to fix the bare url but I am flummoxed by this one. It isn't in {{Infobox Russian inhabited locality}} nor is it in {{Ru-pop-ref}} so it may be in something attached to one of them or somewhere else entirely. Any help you can give will be appreciated. MarnetteD|Talk 18:18, 17 June 2019 (UTC)

It's on Wikidata. Nardog (talk) 18:26, 17 June 2019 (UTC)
Thanks Nardog. I have not edited there before. Can I add a cite template or should I ask someone there to fix it? MarnetteD|Talk 18:30, 17 June 2019 (UTC)
The other source there has the title, publisher, and retrieved date filled in, so it seems to me one can (or should be able to) fix it by adding those attributes for the gks.ru source too. It strikes me as a defect on the infobox template's part that even though two sources are given on Wikisource, only one is shown on the infobox. Nardog (talk) 18:48, 17 June 2019 (UTC)
Steel1943 was able to figure out how to fix this. For anyone who is interested please see this thread User talk:Steel1943#Question. My thanks to Nardog and Steel1943 for their work on this. MarnetteD|Talk 19:33, 18 June 2019 (UTC)

Help needed for creating a gadget[edit]

Hello! Firstly, I would like to apologise because my request is not enwiki-related; I hope someone will have a little time for helping. I would like to create a gadget for closing AfD requests on the Hungarian Wikipedia but I have never done this before. I imagine it like c:MediaWiki:Gadget-PermissionOTRS.js with a pop-up window. Bellow you can find an example.

Example

Here is an example request.

=== [[:19 (együttes)]] ===
{{törlés gombsor|19 (együttes)|2019-06-17}}<br />{{törlés allap útmutató}}

A legutóbbi [[Wikipédia:Törlésre javasolt lapok/19 (együttes)|törlési megbeszélés]] óta továbbra sem [[WP:NEV|nevezetes]]. – [[Szerkesztő:Balint36|balint36]] <sup>[[Szerkesztővita:Balint36|🚌 buszmegálló]]</sup> 2019. június 17., 11:21 (CEST)
*{{t}} Nem nevezetes. – [[Szerkesztő:Ary|Ary]] <sup>[[Szerkesztővita:Ary|vita]]</sup> 2019. június 17., 14:15 (CEST)

The gadget should add {{Tt}} at the first place and {{Ta}} at the end. Between {{Tt}} and the header should be placed the decision by the closing admin. The result would be the following:

{{Tt}} // first template
Here is my reason why I closed this discussion. ~~~~ // reason

=== [[:19 (együttes)]] ===
{{törlés gombsor|19 (együttes)|2019-06-17}}<br />{{törlés allap útmutató}}

A legutóbbi [[Wikipédia:Törlésre javasolt lapok/19 (együttes)|törlési megbeszélés]] óta továbbra sem [[WP:NEV|nevezetes]]. – [[Szerkesztő:Balint36|balint36]] <sup>[[Szerkesztővita:Balint36|🚌 buszmegálló]]</sup> 2019. június 17., 11:21 (CEST)
*{{t}} Nem nevezetes. – [[Szerkesztő:Ary|Ary]] <sup>[[Szerkesztővita:Ary|vita]]</sup> 2019. június 17., 14:15 (CEST)

{{Ta}} // second template

The reason should be specific (you can write anything) or pre-filled (standard closing reasons) and the user should choose between them. The gadget should need administrator right and check that the title of the page starts with Wikipédia:Törlésre javasolt lapok/. I would be grateful if somebody could help me and create the working beta of the gadget. I believe that I will be able to work on it in the future if I have the basics. Thanks in advance! Best regards, Bencemac (talk) 19:47, 17 June 2019 (UTC)

@Bencemac: I can help try to help out. Give me a few days for a beta version DannyS712 (talk) 00:14, 18 June 2019 (UTC)
Thank you very much! Bencemac (talk) 06:53, 18 June 2019 (UTC)

Tech News: 2019-25[edit]

20:37, 17 June 2019 (UTC)

Category:Candidates for uncontroversial speedy deletion[edit]

Does anyone know why CAT:CSD shows Category:Candidates for uncontroversial speedy deletion containing 40 more pages than are actually in the category when you open it? I've got a feeling I've asked this before but can't find it. GoldenRing (talk) 09:03, 18 June 2019 (UTC)

Yeah, it's been ongoing for a while:
See phab:T221795 and phab:T18036 (and duplicates: phab:T202833, phab:T195397, and phab:T200402). I'm sure it's come up elsewhere as well. ~ Amory (utc) 10:29, 18 June 2019 (UTC)
@Amorymeltzer: Hmmm, okay, thanks. Not something that's going to fixable in the short term, then. GoldenRing (talk) 12:29, 18 June 2019 (UTC)

Grep tool?[edit]

I want to find all my subpages, except for the ones under User:RoySmith/drafts/. I see mention on WT:Special:PrefixIndex of a grep tool (which now seems to live at http://tools.wmflabs.org/grep/), but that's either broken, so so slow as to appear broken. Any better ideas? -- RoySmith (talk) 17:52, 18 June 2019 (UTC)

There might be a tool for it around somewhere, but it was faster to use a blunt instrument than to go looking for one. —Cryptic 19:38, 18 June 2019 (UTC)
Also, there are so few pages that just going to Special:PrefixIndex/User:RoySmith reveals all the pages, and since they are sorted the ones you don't want are all lined up anyway. — xaosflux Talk 19:48, 18 June 2019 (UTC)
Ewww. Token-sucking. Risker (talk) 20:32, 18 June 2019 (UTC) Please pardon the drive-by gross-out
Yeah, well, but it'll make a great DYK hook :-) -- RoySmith (talk) 16:04, 19 June 2019 (UTC)
Special:Search/intitle:/RoySmith/ -intitle:/RoySmith\/drafts/ seems to work when set to the User namespace also. Curiously, Special:Search/intitle:/RoySmith\// -intitle:/RoySmith\/drafts/ does not. --Izno (talk) 20:45, 18 June 2019 (UTC)

Is Wikiblame broken?[edit]

I'm trying to track down changes to Anna Pavlova and am getting no hits at all. Has one of the software changes broken the "find additions and removals" tool? Yngvadottir (talk) 04:19, 19 June 2019 (UTC)

Yep, seems to be broken. I just tried several searches on a completely different article and they all came up "0 versions found" even though the words are in the article. Softlavender (talk) 06:08, 19 June 2019 (UTC)
Yep. Tried it just a few minutes ago. We really need it fixed, among other things it let's us find out when copyvio was added. Doug Weller talk 14:55, 19 June 2019 (UTC)
Have you tried the RevisionSlider feature as an alternative? --Redrose64 🌹 (talk) 19:59, 19 June 2019 (UTC)
I find that incomprehensible I'm afraid, and it sounds like an exercise in dexterity? I wanted to know when "little toe" entered the article, surely a search function? Yngvadottir (talk) 20:04, 19 June 2019 (UTC)
It's been reported to the author here: de:Benutzer Diskussion:Flominator/WikiBlame#WIkiblame down? --AntiCompositeNumber (talk) 20:12, 19 June 2019 (UTC)
Oh good, I couldn't figure out who to report it to. I see my guess was right as to the cause. Yngvadottir (talk) 04:15, 20 June 2019 (UTC)
It's fixed! About to thank Flominator, although the test revealed a weakness in articles with this much history - it returned the 2010 restoration of the vandal string rather than the 2008 insertion (I searched manually from the start of the history). Yngvadottir (talk) 21:15, 20 June 2019 (UTC)

Cross wiki API requests - global watchlist[edit]

Hi. I've recently started working on a script to create a global watchlist, and have hit a snag. Using the watchlist API, I can retrieve a user's (filtered) watchlist on the same wiki. If you install User:DannyS712 test/watch demo.js, at Special:BlankPage/Global you should see a string version of the RSS feed of your personal watchlist. But, I have been unable to figure out how to retrieve that RSS feed using the API for your watchlist on another site (e.g. meta). Can anyone help? --DannyS712 (talk) 06:18, 19 June 2019 (UTC)

DannyS712, You should use mw:ResourceLoader/Core_modules#mediawiki.api, and use mw.ForeignApi to communicate with the API of another wiki. Quick note if you don't know that there is a crosswatch tool but it is broken. Galobtter (pingó mió) 07:53, 19 June 2019 (UTC)
@Galobtter: I tried, and it didn't work - I read through mw:API:Cross-site requests before I came here --DannyS712 (talk) 08:08, 19 June 2019 (UTC)
Hmm, quick testing with:
var api = new mw.ForeignApi( 'http://meta.wikimedia.org/w/api.php' );
api.get( {
    action: 'feedwatchlist',
    format: 'json'
} ).always( (arguments) => { console.log(arguments); });
just gives a result of "http", no idea why - sorry, can't help. Galobtter (pingó mió) 09:34, 19 June 2019 (UTC)
Attempting the same code with mw.Api() instead of mw.ForeignApi( 'http://meta.wikimedia.org/w/api.php' ); also gives the same response "http". Looks like a phab ticket needs to be filed. SD0001 (talk) 15:25, 19 June 2019 (UTC)
@DannyS712: Use action: 'query', format: 'json', list: 'watchlist'. Works with mw.ForeignApi as well (you have to be logged in obviously, which someone who is using the script will be). It doesn't use RSS feeds but actual JSON, which should be easier to deal with. The RSS feed is also restricted using watchlist tokens, and each wiki has a unique token, so there's that too. --qedk (tc) 15:37, 19 June 2019 (UTC)
@QEDK: Wow - that'll make it so much easier. I didn't realize the watchlist "list" existed. Thanks, --DannyS712 (talk) 09:01, 20 June 2019 (UTC)
Glad to be of help. --qedk (tc) 09:32, 20 June 2019 (UTC)
@DannyS712: Using jQuery.get works fine for me:
$.get('//meta.wikimedia.org/w/api.php', {
	action: 'feedwatchlist',
    format: 'json',
	origin: 'http://en.wikipedia.org',
    wlowner: 'yourUsername',
    wltoken: 'yourWatchListToken' (will have to grab this manually, no automated way I think)
}, e => console.log(e));
SD0001 (talk) 15:39, 19 June 2019 (UTC)
I am getting a not logged in error (I am logged in). Just a guess but using BotPasswords and lgname, lgpassword, lgtoken, it should work. --qedk (tc) 15:43, 19 June 2019 (UTC)
Oh yeah, didn't notice the error earlier. SD0001 (talk) 15:56, 19 June 2019 (UTC) Updated above. now works. SD0001 (talk) 16:03, 19 June 2019 (UTC)
Yeah, getting not logged in error too. Trying to follow mw:Extension:CentralAuth/API#centralauthtoken to be logged in, and:
api = new mw.Api();
token = await api.get({action: 'centralauthtoken'}).then( token => { return token.centralauthtoken.centralauthtoken });
watched = await $.get('//meta.wikimedia.org/w/api.php', {
	action: 'feedwatchlist',
	format: 'json',
	origin: 'http://en.wikipedia.org',
	centralauthtoken: token
}, e => console.log(e));
var serial = new XMLSerializer();
var watchedString = serial.serializeToString( watched );
console.log(watchedString);
gets a bad token error. I mean, you should be able to be logged in on the other wiki and access the watchlist that way (the wltoken is really for accessing another person's watchlist and you'd need to manually enter the token for every wiki..). Galobtter (pingó mió) 16:32, 19 June 2019 (UTC)
You have to use login via POST (works on all sites) or use the wluser/wltoken method (limited to the watchlist wiki), that's all the API supports. --qedk (tc) 16:58, 19 June 2019 (UTC)
Galobtter, are you getting not logged in error even after entering the wltoken (of the target wiki, in this case meta)? That shouldn't happen. SD0001 (talk) 17:47, 19 June 2019 (UTC)
SD0001, I tested the version before it was edited to add wltoken; haven't tested with wltoken but definitely that should work, but it doesn't actually log you in ofc. Galobtter (pingó mió) 18:00, 19 June 2019 (UTC)
@QEDK: you marked this as resolved, but I converted it to a link - another problem came up. The foreign api part is working, but I can't retrieve the watchlist token for the foreign site (it always returns "+\") - can anyone help? The full code is at User:DannyS712 test/watch.js, and I added comments to clarify my intentions --DannyS712 (talk) 23:06, 20 June 2019 (UTC)
@DannyS712: Are your session cookies being sent to the "foreign" site? I think you need to set xhrFields: {withCredentials: true} for the $.get() request in getToken() for that to happen. Alternately, use ForeignApi for that part as well, which (I'm guessing) does this for you. Suffusion of Yellow (talk) 00:53, 21 June 2019 (UTC)
@Suffusion of Yellow: I switched to the ForeignApi for getting the token, and now I'm getting a token, but it keeps raising the error bad_wltoken when I try to use it DannyS712 (talk) 01:20, 21 June 2019 (UTC)
@DannyS712: Ok, it looks like the "watchlist token" in your preferences is not same one that's returned by api.php?action=query&meta=tokens&type=watch. I can't find a way to retrieve the first one for a foreign site. But, oddly, I tried removing the wlowner and wltoken parameters entirely, at it worked! I even have third-party cookies blocked. So I'm guessing that the centralauthtoken that's automagically added by ForeignApi is the only token that's needed. Suffusion of Yellow (talk) 02:28, 21 June 2019 (UTC)
@Suffusion of Yellow: thanks so much, to you and Galobtter and QEDK - see version 1.0 of the script: User:DannyS712/Global watchlist! DannyS712 (talk) 03:22, 21 June 2019 (UTC)
Looks great! When I was testing using the 'watchlist' list API, it didn't have any more necessary provisions, and it worked fine for me (and it looks like it still does), hence my edging you on to use this one which doesn't need hardcoded tokens. --qedk (tc) 05:32, 21 June 2019 (UTC)
DannyS712, nice work! Galobtter (pingó mió) 17:27, 21 June 2019 (UTC)
Is this meant to be an alternative to CrossWatch? I believe mw:User:OriHoch was hoping to get that working again.[7] Whatamidoing (WMF) (talk) 18:45, 21 June 2019 (UTC)
@Whatamidoing (WMF): Maybe, but either way I have now implemented a mechanism for users to specify for themselves what sites to include in their global watchlist - cc Galobtter, QEDK, and Suffusion of Yellow if you're interested. --DannyS712 (talk) 00:15, 22 June 2019 (UTC)

Incorrect Edit Conflicts[edit]

I have had a *large* number (almost half my edits) of incorrect "Edit Conflicts" over the last week or so. In these cases, often no one has edited the article in months, but my edit comes up as an edit conflict between the current version and my change. I wasn't seeing this prior to last week. I'm running Google Chrome, though I'm not sure that affects things.Naraht (talk) 15:12, 19 June 2019 (UTC)

+1 --qedk (tc) 16:39, 19 June 2019 (UTC)
Is it possible that you double-clicked the "Publish changes" button, thus sending the save request twice and so edit-conflicting with yourself? One of my old mice was faulty, the left button developed a bounce which caused a number of unwanted double-clicks. --Redrose64 🌹 (talk) 20:02, 19 June 2019 (UTC)
Naraht, I've seem some, one a minute ago to my own subpage User:Sphilbrick/Fram. Definitely not a conflict. I don't think I double-clicked, but will pay close attention next time S Philbrick(Talk) 12:47, 20 June 2019 (UTC)
Naraht, And I got another one, while fixing a typo in my past reply. S Philbrick(Talk) 12:49, 20 June 2019 (UTC)
Happens with me too, occassionally. Some undeniably because of double presses, but I am immediately aware when I do that and this issue occurs even with just one click. Sometimes, just my own diff is shown in the edit conflict resolver. --qedk (tc) 14:36, 20 June 2019 (UTC)
Occasionally doesn't surprise me, and getting them <5% of the time it would be reasonable. Getting them *half* the time, OTOH is a bit odder.Naraht (talk) 15:56, 20 June 2019 (UTC)
Naraht, I'm not sure why <5% would be reasonable. I'm getting them often, not half the time, but probably half a dozen times in the last 24 hours. S Philbrick(Talk) 17:55, 23 June 2019 (UTC)
Naraht, three more in last couple hours , which is under 50% but well over 5%. Using Google Chrome. S Philbrick(Talk) 20:28, 23 June 2019 (UTC)

Searching for old vandalization in a file[edit]

I'd like to know if there is any bot or tool that can help me finding old vandalazing editions in a WP file history. Thanks. --Jotamar (talk) 23:56, 19 June 2019 (UTC)

Accessing DEFAULTSORT from module code[edit]

I was wondering if there was a way to access DEFAULTSORT from module code? The page Wikipedia:Comparable Lua functions to wikitext#Technical metadata has no information for this specific issue, and Template:DEFAULTSORT says not to use the template, which means that I can't use frame:expandTemplate. Is there any other way? --Gonnym (talk) 08:43, 20 June 2019 (UTC)

Solved using frame:preprocess{text = "{{DEFAULTSORT:" .. sortKey .. "}}"}. --Gonnym (talk) 09:38, 20 June 2019 (UTC)
Better would be to use frame:callParserFunction( 'DEFAULTSORT', sortKey ). See the manual for details. Anomie 22:00, 20 June 2019 (UTC)

Flickr upload tool[edit]

Resolved

Not sure where to report this, but the Flickr upload tool doesn't seem to be working. Thanks! Magnolia677 (talk) 10:39, 20 June 2019 (UTC)

Ah, it's been moved to [8]. Magnolia677 (talk) 16:31, 20 June 2019 (UTC)
But still not working. Magnolia677 (talk) 19:25, 20 June 2019 (UTC)
Magnolia677, I've never heard of that tool, but have you tried c:Commons:Flickr2Commons? GMGtalk 19:27, 20 June 2019 (UTC)
@GreenMeansGo: It's a wonderful tool that lets you enter a Flickr URL, and then it sucks the information from Flickr and enters it onto a Commons upload page. It even flags questionable copyrights. I'll try the Commons site you mentioned. Cheers. Magnolia677 (talk) 20:29, 20 June 2019 (UTC)

How to add an mediawiki extension?[edit]

Hello everyone, What should i do to create an mediawiki extension on ours Wikipedia? To learn me, please advice me with [9] Thanks! ⇒ AramTalk 18:42, 20 June 2019 (UTC)

mw:Manual:Developing_extensions --qedk (tc) 18:52, 20 June 2019 (UTC)
I assume ئارام بکر is inquiring about how to enable ORES extension on their home Wikipedia, not about coding new extension. To enable ORES on your wiki, you have to make a request on Phabricator and link to local community consensus for that. Read mw:How to report a bug for the step-by-step guide and see example of similar request. – Ammarpad (talk) 05:47, 21 June 2019 (UTC)

Improve unicode support for math tag[edit]

The LaTeX math tag gives a generic "syntax error" if any non-ASCII unicode characters are present,

Failed to parse (syntax error): {\displaystyle x+1±y}

and requires a command instead (\pm here),

.

This behavior isn't generic to all online LaTeX implementations (e.g. Stack Exchange's happily accepts any unicode character). But I occasionally run into very long formulae with this error, and it can be difficult to trace the cause. It also impedes normal editing and formula creation for those who haven't memorized the LaTeX command for every character.

Given that unicode keyboards are ubiquitous, even on phones, could the parser be modified to produce a helpful debugging error that identifies the first out-of-range character and suggests the right LaTeX command? Or better yet, can we simply modify it to accept unicode characters? —wing gundam 19:38, 20 June 2019 (UTC)

Accepting Unicode characters is basically phab:T50032. --Izno (talk) 20:38, 20 June 2019 (UTC)
Hmm outright accepting unicode characters would be nice. There are even some latin/greek characters like ƛ (used in physics) that are literally impossible to display in wikipedia math tags right now (compare ). Is this planned? —wing gundam
The age of the task is more than a few years old. I guess it's non-trivial. We probably should have some page about how specialist (or hard) things don't really get worked on unless the WMF gets to it. --Izno (talk) 00:41, 21 June 2019 (UTC)

Button to expand all sections in mobile view[edit]

I often come to WP articles on my phone from Google searches, and I want to find the relevant snippet in the article but all the sections are collapsed. Currently I just tap expand on every one, from bottom to top then I use the mobile browser find feature. Would be nice if there was a single button to expand all. --LaserLegs (talk) 23:15, 20 June 2019 (UTC)

If you look at the very bottom of the page, there should be a link to "Desktop view" and that's what I look at when I read Wikipedia on my phone. You have to expand the sections you want to read because a lot of information is crammed into a small screen but I prefer it to the mobile version of the site. Liz Read! Talk! 23:27, 20 June 2019 (UTC)
This is available in mobile settings. Navigate to Special:MobileOptions and toggle the button for "Expand all sections." Note: the option is only visible on mobile, you won't see it if you follow the link on desktop even if mobile subdomain is explicitly requested. – Ammarpad (talk) 05:37, 21 June 2019 (UTC)

Editing ones Watchlist[edit]

I have an insanely large number of pages on my Watchlist because I opted for adding every page I edited on to it (think twice about doing this). So, over the past year, I have tried several times to edit it. I always get a failed message for Special:EditWatchlist stating:

Wikimedia Error

Our servers are currently under maintenance or experiencing a technical problem. Please try again in a few minutes.

See the error message at the bottom of this page for more information.

If you report this error to the Wikimedia System Administrators, please include the details below.

PHP fatal error:

entire web request took longer than 60 seconds and timed out

I admittedly have an old laptop and sometimes the page times out when it tries to load any random page from Wikipedia. I just reload the page and, ta-da! No problem. But I've gotten this error message every single time I've tried to edit my Watchlist. I did a quick search of the archives to see if this was a recurring problem and nothing from the first 20 search results popped out as being similar to my problem.

So, is this likely my old computer, the enormous size of my Watchlist or do editors generally not bother editing their Watchlists? If there was an alternative way of removing pages, that information would be welcome, too. Thanks in advance. Liz Read! Talk! 23:25, 20 June 2019 (UTC)

@Liz: try to edit it using this link. — xaosflux Talk 23:28, 20 June 2019 (UTC)
If you can read it, but can't save it you can try this link: Special:EditWatchlist/clear to delete your entire watchlist, then you can recreate it in that 'raw' format above by pasting it back in. — xaosflux Talk 23:30, 20 June 2019 (UTC)
There's also User:Anomie/unwatch.js, which adds an unwatch button ("(diff | hist)" to "(diff | hist | unw)") next to entries on your watchlist. It's not good for mass removal, but does the job for stuff that actually shows up in your watchlist. Eman235/talk 02:56, 21 June 2019 (UTC)
@Eman235: This is built into MediaWiki now. There's an "Add direct unwatch/watch markers (×/+) to watched pages with changes" option in Special:Preferences#mw-prefsection-watchlist. Not to downplay Anomie's script, which I enjoyed for many years :) MusikAnimal talk 03:46, 21 June 2019 (UTC)
Anomie's script has a nice little sorting option though. Headbomb {t · c · p · b} 04:15, 21 June 2019 (UTC)
The error is server-side, so it's not the fault of your computer. The fix is being tracked at phab:T220245. the wub "?!" 19:33, 21 June 2019 (UTC)
Oh, thank you thank you thank you! So many alternatives to try! This was exactly what I was looking for. Much appreciated, everyone. But now that it is up to 36K pages, maybe total annihilation and rebuilding of the Watchlist would be the easiest solution. Liz Read! Talk! 21:41, 22 June 2019 (UTC)
Okay, well, I got it down from 36K to 19K pages pretty fast just by removing all of thousands of Signpost articles and WikiProject pages I categorized years ago. Still, I want to get it down to about 5K, that seems manageable. Most of the pages I removed were never edited any way so it didn't really matter they were on it...but I just don't want to dread looking at my Watchlist. Liz Read! Talk! 22:15, 22 June 2019 (UTC)

Pending changes[edit]

I would like to use this script when reviewing pending changes. However, when I see the pending changes, it only shows the diff, not the article with the changes implemented. Can an editor edit the my script so that it shows both the diff and article with the changes implemented? I don't know how to do it myself so I am asking for help. Interstellarity T 🌟 10:08, 21 June 2019 (UTC)

Not me, but DannyS712 can. Face-smile.svg --qedk (tc) 19:42, 21 June 2019 (UTC)

Can no longer get to deleted edits, visual editor gets in the way.[edit]

Something changed in the past week or two that makes it difficult to see deleted pages. For example, if I go to Special:DeletedContributions/Peacefulmark, then click on "Draft:Eyeglasses.com", that links to http://en.wikipedia.org/w/index.php?title=Draft:Eyeglasses.com&action=edit&redlink=1 which gets me to a screen where I'm already in the visual editor, with a notice, "Wikipedia does not have a page with this exact title...".

The problem is that if I click the notice box closed, I'm left editing Draft:Eyeglasses.com. There's a line that says, "View or restore 2 deleted edits", but that's greyed out, so I can't click it. The best I've found so far is to then switch to source editing, where the "2 deleted edits" link is now clickable.

Any idea what's changed? As far as I remember, I used to just get dropped into the source editor when clicking on a redlink. Did something change globally to make VE the default? Or is it more likely that I accidentally changed some preference setting? -- RoySmith (talk) 13:31, 21 June 2019 (UTC)

@RoySmith: after dismissing the banner, in the top right if you click on the pencil icon and change to source editor is it normal again? — xaosflux Talk 14:23, 21 June 2019 (UTC)
The same happened to me but I clicked the article tab and it reverted to the old state and now it does not happen anymore. Weird... Regards SoWhy 14:28, 21 June 2019 (UTC)
Ah, I'm starting to see what's happening. If you're in the visual editor (no matter what route you took to get there), the "View or restore 2 deleted edits" line is always greyed out. And, what seems to be going on is that it's remembering which editor I used last, and using that. So, if the last thing I edited was using VE, then I get dropped into VE and see the greyed-out link. Under Special:Preferences#mw-prefsection-editing / Editor / Editing mode, there's an option to select "Remember my last editor". I don't have that selected, but it's acting as if I did. I've got "Show me both editor tabs" selected. Changing that to "Always give me the source editor" fixes this problem, except that I do find it useful to have both editing tabs available. I know I can switch back and forth via the pencil icon, but the two tabs is handy. At this point, I'm not sure if how things work has actually changed recently, or if I've just started noticing this. -- RoySmith (talk) 15:42, 21 June 2019 (UTC)
I've opened T226267. -- RoySmith (talk) 15:44, 21 June 2019 (UTC)

WP search with no namespaces jumps to mainpage[edit]

On Special:Search, enter something in the text box and click [x] for all of the namespaces (so that the "search in:" box is blank). Click [search]. And you go to [10] that displays the mainpage rather than the usual search-results page. Before you say "why would you do that???", the watchlist also has a namespace list, but it's a filter iff any are checked (and defaults to all namespaces if none are checked) rather than a list that mandatorily must be given. Even if we wanted the search to require picking at least one namespace, failure to do so should either return no hits (because there are no pages in no-namespace) or a specific error that at least one namespace must be selected. DMacks (talk) 06:46, 22 June 2019 (UTC)

I have noticed a similar thing on Commons. When you do a search, changing the default settings for the namespaces to be searched. View one of the search results and then press the browser back button to get back to the search results and you end up on the main page rather than the search results list. Keith D (talk) 11:12, 22 June 2019 (UTC)
I just tried that on en.wp, and even without changing default settings, browser-back gave me the mainpage rather than Special:Search. The search-string was pre-filled in the search-box though. DMacks (talk) 14:01, 22 June 2019 (UTC)
A separate matter is that searching through archives using a template like that located in the header of this page will yield appropriate results, but the search area will say it is searching "articles". Killiondude (talk) 00:22, 24 June 2019 (UTC)

Searching multiple specific (multiple roots) pages[edit]

Is there a way, where in a template like Wikipedia:Bots/ArchiveBox where you have multiple root pages, that could could provide one single search box/search link which would search the subpages multiple of multiple root pages? Instead of needing to do something like Wikipedia:Bots/ArchiveBox/search?

Something like

{{#tag:inputbox|
type=fulltext
prefix=Wikipedia:Bots/; Wikipedia talk:Bots/; Wikipedia:Bot policy/; Wikipedia talk:Bot policy/; ...
break=no
searchbuttonlabel=Search
}}

or

{{#tag:inputbox|
type=fulltext
prefix1=Wikipedia:Bots/
prefix2=Wikipedia talk:Bots/
prefix3=Wikipedia:Bot policy/
prefix4=Wikipedia talk:Bot policy/
...
break=no
searchbuttonlabel=Search
}}

That would let you create a single search box

that would search them all? Headbomb {t · c · p · b} 16:47, 22 June 2019 (UTC)

Alternatively, something that would let the user search for something located within all pages that start with 'Bot' in the Wikipedia and Wikipedia talk namespaces would also work. Headbomb {t · c · p · b} 17:27, 22 June 2019 (UTC)
I've hacked something, but one of the barriers was that namespaces=Wikipedia talk isn't recognized by the inputbox, and you have to use namespaces=Wikipedia_talk. Also you have visible checkboxes that serve no real purpose. Headbomb {t · c · p · b} 18:08, 22 June 2019 (UTC)

WikEd causing false "edit conflict" warning[edit]

Google Chrome, Windows 10 v. 1903, Vector.

Issue has been happening continuously since I added WikEd this month.

I also found this issue reported in 2014. Mark Schierbecker (talk) 01:29, 23 June 2019 (UTC)

API search for prefix or intitle together[edit]

Is it possible, using a single API call, to get a list of search results matching prefix:"string" or intitle:"string" ? (intitle: search doesn't always give all the results that prefix: search gives since intitle matches only whole words, whereas prefix also matches parts of words.) SD0001 (talk) 05:05, 23 June 2019 (UTC)

You can use intitle:/string/ for a regex search which will thus also match parts of words (although it'll be somewhat slower/more expensive to query - see m:Help:CirrusSearch#Regular_expression_searches). Galobtter (pingó mió) 05:34, 23 June 2019 (UTC)
Boolean OR is not supported in the search. Quarry naturally does. --Izno (talk) 13:47, 23 June 2019 (UTC)
Thanks, Galobtter. I had another query. Does (new mw.Api()).edit() offer automatic edit conflict resolution? Or do we have to code for that manually? The source code makes use of basetimestamp and curtimestamp which seems to be for detecting an edit conflict, but there isn't any code to get the last current version and re-apply the changes to it, like in Twinkle's Morebits' save() function. SD0001 (talk) 14:23, 23 June 2019 (UTC)
No, the timestamps are fed into the API which feeds into EditPage - looks like the timestamps are to make sure an edit conflict is detected when it should be (rather than your changes just overriding any edits made in between). Honestly, not sure you have to worry much about edit conflicts here unless the transform function takes a lot of time, since the wikitext is gotten right before the change is made.. Galobtter (pingó mió) 15:23, 23 June 2019 (UTC)

Weird text overlap issue[edit]

Screenshot of the issue (please ignore typo in the filepage)

So my phone has a tiny screen (3 inch diagonal) and I get that a lot of Wiki-markup isn't designed to work on such a small screen, but this has bothered me for a while - whenever an image has a caption longer than a few words, it bleeds down into the text and both are unreadable. Is there a fix for this, or are small screens just considered collateral damage for making everyone else's look pretty? I understand if it's the second. -A lainsane (Channel 2) 16:20, 23 June 2019 (UTC)

From the file name, this screenshot was taken in the Lionel Messi article. Headbomb {t · c · p · b} 16:32, 23 June 2019 (UTC)
@A lad insane: I've tried to reproduce this but haven't been able to yet. Do you mind sharing what browser and browser version you are using? For phone reading, you may want to try using one of the official apps as opposed to the browser as well, see Help:Mobile_access#Official_application. — xaosflux Talk 16:41, 23 June 2019 (UTC)
@Xaosflux: Chrome 38.0.2125.102, apparently- I've copy/pasted that from my "recent activity" on another website. It's the one that came with my phone. -A lainsane (Channel 2) 17:13, 23 June 2019 (UTC)
@A lad insane: your version of Google Chrome for Android is almost 5 years old, the current release is 75.0.3770.101 - could you try updating to the current release? — xaosflux Talk 19:34, 23 June 2019 (UTC)
@Xaosflux: Thanks for the advice, but I'm not sure I can- it's a flip phone, and after a bit of googling I can't find any way to update Chrome on it. I guess I'll just have to live with it. Thanks for the help. -A lainsane (Channel 2) 23:42, 23 June 2019 (UTC)

Userscripts Comment[edit]

Hi! I've been trying to fiddle with userscripts for a while, but getting nowhere fast. I've tried to edit User:ohconfucius/script/flagcruft to change links to {{ENG}} etc to {{flagicon|ENG}}, or {{flagathlete|[[Person]]|ENG}}. However, I've come to the conclusion my coding is not up to scratch. Is there a good way to do this as a script I can just run in WP? My attempts are at User:Lee Vilenski/script/testing.js. Any help would be appreciated. Best Wishes, Lee Vilenski (talkcontribs) 17:20, 23 June 2019 (UTC)

Why can I edit another user's common.css file?[edit]

See User talk:Writ Keeper/Scripts/logoutConfirm.js for background.

I'm able to edit User:Khajidha/common.css, even when logged out (see the two IP edits in that page's history). I thought js and css pages were automatically protected so only the user (or admins) could edit them, per WP:REDLOCK. For example, I can't edit User:RoySmith/common.css when logged out; I get a "View source" tab instead of the "Edit" tab. What's going on here? -- RoySmith (talk) 02:46, 24 June 2019 (UTC)

I believe the reason for that is that Khajidha created the page as User:Khajidha/common.ccs with the extension spelled wrong and then moved it to the correct place, which meant that the system failed to recognize it as a CSS page (also note that it renders as Wikitext instead of CSS). To fix the problem, an interface admin needs to change to content model of the page. * Pppery * it has begun... 02:49, 24 June 2019 (UTC)
@Pppery and RoySmith: yes, that is exactly the problem (I wanted to be sure) - the code to protect user css from others is in PermissionManager.php, and it only applies when the page is a isUserCssConfigPage, which is restricted by Title.php to only pages that hasContentModel( CONTENT_MODEL_CSS ) (are actually CSS pages) --DannyS712 (talk) 02:53, 24 June 2019 (UTC)
Fixed by summoning Oshwah — JJMC89(T·C) 03:03, 24 June 2019 (UTC)

Wikidata Bridge: edit Wikidata’s data from Wikipedia infoboxes[edit]

Hello all,

Many language versions of Wikipedia use the content of Wikidata, the centralized knowledge base, to fill out the content of infoboxes. The data is stored in Wikidata and displayed, partially or completely, in the Wikipedia’s language, on the articles. This feature is used by many template editors, but brought several issues that were raised by communities in various places: not being able to edit the data directly from Wikipedia was one of them.

This is the reason why the Wikidata Bridge project started, with the goal of offering a way to Wikipedia editors to edit Wikidata’s data more easily. This will be achieved by an interface, connected to the infobox, that users can access directly from their local wiki.

The project is now at an early stage of development. A lot of user research has been done, and will continue to be done through the different phases of the project. The next steps of development will be achieved by the development team working at Wikimedia Deutschland, starting now until the end of 2019.

In order to make sure that we’re building a tool that is answering editors’ needs, we’re using agile methods in our development process. We don’t start with a fixed idea of the tool we want to deliver: we will build it together with the editors, based on feedback loops that we will regularly organize. The first version will not necessarily have all of the features you want, but it will keep evolving.

Here’s the planned timeline:

  • From June to August, we will build the setup and technical groundwork.
  • From September to November 2019, we will develop the first version of the feature and publish a test system so you can try it and give feedback.
  • Later on, we will test the feature on a few projects, in collaboration with the communities.
    • We will first focus on early adopters communities who already implemented a shortcut from their infoboxes to edit Wikidata (for example Russian, Catalan, Basque Wikipedias)
    • but we also welcome also communities who volunteer to be part of the first test round.
    • Then we will reach some of the big Wikipedias (French, German, English) in order to see if the project scales and to address their potentially different needs.
    • Even later, we can consider enabling the feature on all the other projects.

In any case, no deployment or big change will be enforced on the projects without talking to the communities first, and helping the template builders to prepare for the changes they will have to do on the infoboxes’ code.

If you want to get involved, there are several ways to help:

More ideas will be added on this page along the way

If you have any questions for the development team, feel free to ask them on the main talk page. You can also ask under this message, but if you expect an answer from me, please make sure to ping me.

Cheers, Lea Lacroix (WMDE) (talk) 12:58, 24 June 2019 (UTC)