Wikipedia:Village pump (technical)

From Wikipedia, the free encyclopedia
  (Redirected from Village pump (technical))
Jump to: navigation, 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. Questions about MediaWiki in general should be posted at the MediaWiki support desk.

« Older discussions, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140
Centralized discussion
Proposals: policy other Discussions Ideas

Note: inactive discussions, closed or not, should be archived.

vertical bar in template parameter[edit]

Is there a way to escape a | in a template? A page title contains a | and I'm trying to use {{cite web|title = Title with | in it|date= ...NE Ent 13:35, 3 October 2015 (UTC)

In {{cite web}}, use %7c inside |url= and | in any other parameter when you want to write a vertical bar. – Jonesey95 (talk) 13:48, 3 October 2015 (UTC)
Alternatively, you can place | within nowiki tags, i.e. <nowiki>|</nowiki>. 2607:FB90:21C9:F62A:0:37:4515:9301 (talk) 17:39, 3 October 2015 (UTC)
@NE Ent: Very often, a pipe in the title of a web page is used to separate the true title of a web page from the name of the website. They might be in either order. So, a web page that is titled like "Guaranteed Roadrunner Trap | Acme" or like "Acme | Guaranteed Roadrunner Trap" would be split into |title=Guaranteed Roadrunner Trap |website=Acme. If you provide the URL of the web page, I can look at it to advise on the best action. --Redrose64 (talk) 20:54, 3 October 2015 (UTC)
Also, {{!}} will do the trick. — Mr. Stradivarius ♪ talk ♪ 04:08, 4 October 2015 (UTC)
Thanks. It's "blah blah blah | Science News" -- I don't what ya'll consider the true title ... I just use what is between the <title> </title> tags on the page. NE Ent 12:31, 10 October 2015 (UTC)

comparing revisions across two or more history pages without missing some in between[edit]

When searching old revisions by comparing an older one with a newer one that necessarily are listed on different pages of the page's history, a searcher ordinarily conducts two or more searches, thereby missing the effect of one intermediate revision listed at the bottom of a history page (or two intermediate revisions at the bottom of two history pages, etc.). This is because the older revision selected on the history page is not itself reflected in the top of the resulting diff, but only implied in the midst of everything still older, thus easily missed or misunderstood. It is possible to solve this by manually constructing a URL, but that possibility is easily missed by users.

Example (frequent editing of the article will quickly make this outdated but nonetheless the model applies):

Perhaps this can be solved with a technical solution.

Nick Levinson (talk) 02:00, 4 October 2015 (UTC)

You can list up to 5000 revisions at once in a page history. Careful setting of the "From year (and earlier)"/"From month (and earlier)" options will bring the appropriate revision close to the top; or you can set &offset= This will allow you to get both on the same screen. --Redrose64 (talk) 10:43, 4 October 2015 (UTC)
That's complicated for most users and not explained where most users would likely see it, and I know how to get up to 500 revisions in a page history, not 5,000. Can this be explained with a link from history pages or the procedure technically simplified? Nick Levinson (talk) 00:41, 11 October 2015 (UTC)
If you click a number of revisions then you get a url where the number can manually be changed to anything up to 5000. I suspect the interface links stop at 500 for performance reasons. I don't know whether it's OK to advertise the 5000 method on page histories. PrimeHunter (talk) 08:40, 11 October 2015 (UTC)
If we were at WP:VPR, I'd oppose adding even a little to the page history page with so little need for it. Thankfully, we're not. At least you have some way of getting what you need. Maybe an addition to Help:Page history about this would be warranted, and the page history page already has a link to that page. ―Mandruss  09:55, 11 October 2015 (UTC)
For comparison, user contributions link to Help:User contributions which already says: "The blue numbers list the number of edits displayed on a page: 20, 50, 100, 250 or 500. The number you select replaces n in the links to the previous or next pages e.g. (newer 100 / older 100). Views of up to 5000 edits per page are possible by modifying the URL." PrimeHunter (talk) 10:28, 11 October 2015 (UTC)

New Pages Patrolling Script[edit]

Any ideas why the new pages patrolling script I installed from the instructions here does not appear to work User:JustBerry/monobook.js? Where should the script appear? Please ping me when you reply. --JustBerry (talk) 14:40, 5 October 2015 (UTC)

@JustBerry: From above, turn off Content Translation from the beta menu. Content Translation is currently causing problems to different scripts including the NPP script. Bgwhite (talk) 22:54, 5 October 2015 (UTC)
@Bgwhite: Thanks for your reply. In my Beta Menu, Content Translation wasn't checked in the first place; however, I unchecked Visual Editing, leaving no checked boxes in the Beta Menu (and pressed Save). I can't seem to find or access the script at all - seems very weird. Where exactly d o I find it? I also reset my browser cache and all. (Reminder: Please ping me when you reply.) --JustBerry (talk) 01:25, 6 October 2015 (UTC)
@JustBerry: Look for the "New Pages" box under the WP logo in the sidebar. - NQ-Alt (talk) 15:38, 7 October 2015 (UTC)
NQ-Alt Nothing found. Did Ctrl+F too. --JustBerry (talk) 00:44, 8 October 2015 (UTC)
@JustBerry: I just tested with your script configuration and there doesn’t seem to be any conflicts. Do you use the monobook skin? If not, you need to add the script to your common.js - NQ-Alt (talk) 05:57, 8 October 2015 (UTC)
NQ-Alt Works, thanks a bunch! --JustBerry (talk) 14:25, 8 October 2015 (UTC)

Do you have Safari browser? Can you check this URL works?[edit]

Hi, I'm a template author and a user is reporting they are unable to access this URL via Safari on Mac:

Could anyone with Safari check that it works for you? The problem being reported is the https doesn't work. Thanks, -- GreenC 19:04, 5 October 2015 (UTC)

Using 5 year old iPad with Safari here and it does not open. Returns "Safari cannot open the page because it could not establish a secure connection to the server". Other users with later iPad/Safari may succeed, but I normally have no trouble opening any page. Akld guy (talk) 22:01, 5 October 2015 (UTC)
The same happens to me in Safari, Opera and IE on Windows Vista. It works in Firefox and Chrome. The problem is for all pages at There are no problems at PrimeHunter (talk) 22:30, 5 October 2015 (UTC)
SSLLabs report shows that have setup their HTTPs so strictly, that it doesn't support a whole slew of older browsers/Operating systems. Seems they have gone a bit overboard there... —TheDJ (talkcontribs) 22:38, 5 October 2015 (UTC)
Yea, only supports TLS v1.2. Matrix shows no support for IE on Vista and only Safari on OS X 10.9 or iOS 5 and above. Bgwhite (talk) 22:49, 5 October 2015 (UTC)
I get the same security error on Safari on an iPad 1 with iOS 5.1.1. On the desktop, using Safari 9.0 on OS X 10.11 it opens fine. The Gutenberg site also works on the iPad if you open with 'http' instead of 'https'. Until Gutenberg fixes this (if they do) it's another reason not to go around putting 'https' in all references mechanically. Making a protocol-independent link would solve this. EdJohnston (talk) 18:40, 7 October 2015 (UTC):
I'm poking their hosting partnerTheDJ (talkcontribs) 14:42, 8 October 2015 (UTC)

How to hide minor edits from Contributions page[edit]

Does anyone know of any simple way to hide minor edits in one's Contributions page? One can set Recent changes or one's Watchlist for this, but apparently not one's Contributions page. I do a lot of minor editing, so I could really use a quick way to examine my major-contribution history. Thanks for any suggestions. ~ Jeff Q (talk) 11:15, 6 October 2015 (UTC)

I just asked for this feature at phab:T114763. עוד מישהו Od Mishehu 15:23, 6 October 2015 (UTC)
Thanks, Od Mishehu! However, I see that it's been crossed off as a duplicate. This is apparently a very old request that's had at least 2 earlier incarnations (phab:T16086, phab:T11605), some confusion about its target (Contributions, not Recent changes), and a low priority that leaves it unresolved for 7 years. That's a shame. Wish I had the wherewithal to attack MediaWiki stuff myself. ~ Jeff Q (talk) 22:20, 6 October 2015 (UTC)
@Jeffq: Green tickY Almost done. phab:T16086 - courtesy of User:This, that and the other. - NQ-Alt (talk) 11:58, 7 October 2015 (UTC)
Good to know, and much thanks to TTO! I'm looking forward to it going live. ~ Jeff Q (talk) 08:55, 9 October 2015 (UTC)

Shutting off pings from specific users[edit]

I really do like the pings in general, and I can apparently shut them off overall, but sometimes I'm dealing with a user who has gotten "ping-happy" and stays that way even after I've asked them to stop doing that. I don't want to go as far as reporting the user, but I sure would like to have their pings to me shut off. Is there any way this can happen? Stevie is the man! TalkWork 16:09, 7 October 2015 (UTC)

Probably better place to ask is WT:Echo, but it sounds like a good idea. --Edgars2007 (talk/contribs) 17:30, 8 October 2015 (UTC)
Thanks. I am continuing to get ping-abused from two particular editors. So I would love a solution. Stevie is the man! TalkWork 18:43, 10 October 2015 (UTC)

Revising Special:WantedPages[edit]

There is fairly universal agreement, at Wikipedia talk:Special:WantedPages, that this automated list is, in its current form, almost worthless. That's because the high-count items are being generated by either signatures on article talk and other pages, or by templates on article talk pages.

What is useful is Wikipedia:Most-wanted articles. That's built using red links from article pages, only. But it's not automatically generated - it's not a special page.

So, a purely technical question: Who has the authority/ability to modify the parameters that generate the Special:WantedPages content? I'm aiming, of course, at getting those parameters changed so that only red links on article pages will count; I'd like to know who has to be convinced that the current content isn't worthwhile. -- John Broughton (♫♫) 21:36, 7 October 2015 (UTC)

WantedPages is hard-coded into the MediaWiki software as including pages from all namespaces. So there is no parameter to change at the moment. The relevant task is phab:T37758.
Personally I think the query pages need a lot of help, since most of them (not just WantedPages) are pretty worthless on large wikis like English Wikipedia. Unless and until any improvements are made, Labs is the best place for developers to create improved alternatives to the query pages. — This, that and the other (talk) 01:21, 8 October 2015 (UTC)
It's used by the ContentTranslation feature, so it is very prominently linked at user contribution pages under "New contribution". Gparyani (talk) 18:08, 11 October 2015 (UTC)

i'm now live in china. how can i visit chinese wikipedia?[edit]

i'm now live in china. i can't visit chinese wikipedia, it was blocked by chinese government. how can i visit chinese wikipedia?--Zhouxingxingxx (talk) 08:25, 8 October 2015 (UTC)

See Wikipedia:Advice to users using Tor.Jo-Jo Eumerus (talk, contributions) 08:27, 8 October 2015 (UTC)

Coordinates via API[edit]

Why does not return the coordinates visible at Shropshire? --Flominator (talk) 13:33, 8 October 2015 (UTC)

Coordinates are added to the page using the {{coord}} template, and (AFAIK) transcluded templates are not accesible via the API. -- [[User:Edokter]] {{talk}} 15:40, 8 October 2015 (UTC)
Coordinates aren't scraped from teplates though, relying on {{#coordinates:}}. And in this case, it was working, but the coordinate wasn't marked as primary, thus it wasn't returned unless coprimary=all was specified. Fixed with[1]. Max Semenik (talk) 21:42, 8 October 2015 (UTC)
Edokter, coordinates are stored in database, BTW (see, for example, this one). And that's why(?) they are accesible via the API --Edgars2007 (talk/contribs) 06:32, 9 October 2015 (UTC)
Thanks, --Flominator (talk) 07:59, 9 October 2015 (UTC)

"HTTPS everywhere" considered harmful[edit]

Supporting what a number of users have said, Tim Berners-Lee recently published a note with the above title.

The crux is that migration to only https: breaks the web. Breaking the web is something WP has been reluctant to do from the early days. Berners-Lee presents alternative ways forward.

All the best: Rich Farmbrough, 15:46, 8 October 2015 (UTC).

Although we don't wish to break the web, we cannot single handily fix it either. What Berners-Lee proposes goes much deeper than we have influence over and can only rly be solved by standards committee's, browsers and Operating system vendors... I personally think he is probably right, but the web is developed much more around practicalities then around 'right' :) —TheDJ (talkcontribs) 19:11, 8 October 2015 (UTC)
Indeed, if the Web were built around what was right we probably wouldn't have a Web... --Izno (talk) 20:27, 8 October 2015 (UTC)

Is there a way to auto-populate categories through Wikidata/other wiki comparison?[edit]

I just created Category:Polish skydivers and Category:Cichociemni, both based on Polish Wikipedia categories (linked through Wikidata). Now, pl wiki categories have quite a few entries, and I expect 20-30% of them are on en wiki already. Is there some way (bot, script) that would automate checking which entries categorized under equivalent Polish categories exist here, and auto-tag them? It seems like something that should be possible to automate. --Piotr Konieczny aka Prokonsul Piotrus| reply here 09:15, 9 October 2015 (UTC)

If nobody has better solution, I have one, but it's quite crappy. Take Autolist, fill the parameters and get the list of Wikidata items. The URL with parameters for Cichociemni is here (it will take some few minutes to open). Then you can open each article and add category by yourself. Yes, it doesn't actually ease the work very much :D --Edgars2007 (talk/contribs) 10:51, 9 October 2015 (UTC)
But anyway - 👍 Like the idea. Would really like to use such tool, which at least gets that list of pages, that needs to be categorised. --Edgars2007 (talk/contribs) 14:22, 9 October 2015 (UTC)
@Magnus Manske: Possible? --Izno (talk) 03:09, 10 October 2015 (UTC)
Well, you can use PagePile. Generate a list of pages on plwiki in a category in QuickIntersection, then filter the pagepile here, by "converting" it to Wikidata, then to enwiki; try "Load from PasteBin" with ID d6653a0c to see what I mean. You now have a list of all enwiki articles that correspond to plwiki articles on Polish skydivers. Convert that back into Wikidata, then load it in autolist, and set "pages in enwiki category Polish skydivers" as "NOT". You will then get all Polish skydivers from plwiki that are on enwiki but not in the enwiki category "Polish skydivers". The parts are all there, you just need to connect them :-) --Magnus Manske (talk) 12:13, 12 October 2015 (UTC)
@Magnus Manske, Izno, and Edgars2007: My eyes glazed a bit reading the how to... any chance somebody (pretty please) could hack together a tool which would make it as easy as typing in/linking the two categories (English and Polish)? --Piotr Konieczny aka Prokonsul Piotrus| reply here 02:49, 13 October 2015 (UTC) capitalization question[edit]

Does anyone know how works with capitalization? My question is in relation to the page view stats for Eta and ETA. I find it hard to believe that the view stats are identical (the stats are the same for all time frames). Is there a way to know which page the stats are for, and knowing that, how to get stats for the page it isn't showing (assuming that it isn't combining the two pages into one chart)? -Niceguyedc Go Huskies! 11:13, 9 October 2015 (UTC)

See User:Killiondude/stats#Is_it_case_sensitive.3F. Legoktm (talk) 04:36, 10 October 2015 (UTC)

WP:NOTIFICATIONS - Needs content updating[edit]

Hi all, I've run across the WP:Notifications page and noticed that it hasn't been updated to include the new system currently being used which I presume is permanent now? I put up a post on the talk page asking for help to update the content as I am not wanting to "butcher" the article and be slammed by editors, as well as a general lack of style and technical knowledge. Wondering if I could get at least one preferably more editors interested in helping update the page? Mention me or drop me, leave a comment here or on the talk page, or drop a line to my talk page. Cheers, Drcrazy102 (talk) 11:49, 9 October 2015 (UTC)

See Wikipedia:Village_pump_(technical)/Archive_140#Notifications_indicators_have_changed, and please update that page Drcrazy. I'm afraid all you'll get is "be bold". See also Help:Searching/Draft. Happy editing! — CpiralCpiral 19:00, 9 October 2015 (UTC)

Recent change to how timestamps are shown in protection logs[edit]

For everyone's benefit, I'm going to post my findings about the recent change (around 3 October) to timestamps in protection logs, as outlined at phab:T47988. I believe this is only a concern if you are using the timezone conversion gadget, listed as "Change UTC-based times and dates...".

As a preface, in the logs, the timestamp of when the protection was applied does not contain the string "UTC" even though it is in UTC. On the contrary, the expiry does contain the string "UTC".

Now, while logged out, or with the gadget off, see [2]. Here I protected my sandbox for three hours. The times you see are in UTC and are correct, it's just that the expiry timestamp doesn't indicate it's in UTC (compare with the bottom entry in that log). Looking at the same log with the gadget on, you'll see it correctly converted both to your timezone.

Now, with the gadget off (or logged out), have a look at [3]. Here I protected Robin Williams at 5:07 UTC and it expires at 5:07 UTC, which is correct. The difference here is that the expiry timestamp does indicate it's in UTC. Looking at the same log with the gadget on, you'll see the gadget converted the first timestamp (when the protection was applied) but did not convert the second one, which will still say 5:07 UTC.

So there you have it. Unless I've done a horrible job of diagnosing the issue, we are better off now than we were before. For the logs, the gadget for some reason didn't convert timestamps that contained the string UTC. It was a bug that we all got used to, and was incidentally fixed by the MediaWiki change. Hooray.

Hope this helps someone other than just myself MusikAnimal talk 16:07, 9 October 2015 (UTC)

To be clear, the format of the log has not changed; it is the format of the log entry which has changed. This is stored as 255 bytes of text, optionally including Wiki markup, consequently what is found in the text beginning at the word or phrase "protected", "changed protection level for" or "removed protection from" cannot be predicted with certainty.
The change under discussion occurred at some point between 18:01 and 18:05, 1 October 2015 (UTC), since when the six characters " (UTC)" are no longer suffixed to expiry times. The five protection actions before and after the change may be found here. At the same time, other changes to the content of the log entry also changed: "edit=autoconfirmed" became "Edit=Allow only autoconfirmed users"; "create=sysop" became "Create=Allow only administrators", etc.
The displayed expiry times may be timezone adjusted in either of two ways: there is the aforementioned Preferences → Gadgets → Change UTC-based times and dates, such as those used in signatures, to be relative to local time. (documentation) gadget, but there is also the setting at Preferences → Appearance → Time offset. Try turning off the gadget, go to Preferences → Appearance → Time offset and at "Time zone" set the dropdown to "Other (specify offset)", then put various values like "00:00", "+01:00" etc. into the window immediately below the dropdown, and try my "five protection actions" link again. --Redrose64 (talk) 09:08, 10 October 2015 (UTC)

Collapsing MOS-compliant tables[edit]

I posted a suggested change earlier to MediaWiki talk:Common.js § Collapsing MOS-compliant tables. I'm not sure how many eyes that page gets, however, so I'm cross-posting here so any interested people can have a look. Relentlessly (talk) 19:10, 9 October 2015 (UTC)

Table won't sort[edit]

On List of Xbox Live Arcade games, there is a table of 707 rows. (At least, the article says there are 707 games. I haven't counted the rows.) When clicking the arrow next to the text of the "Release Date" column header, there is a delay of a few seconds, and then the arrow will change, as expected; but the table does not sort.

I don't see this behavior when sorting by the other columns; the table sorts normally after clicking one of those arrows. Tarcil (talk) 00:03, 10 October 2015 (UTC)

@Tarcil: I've fixed this by adding data-sort-value for each of the rows, as described at Help:Sorting#Specifying a sort key for a cell. — Mr. Stradivarius ♪ talk ♪ 01:20, 10 October 2015 (UTC)
Works fine for me. Tvx1 01:20, 10 October 2015 (UTC)
Is it really necessary to link all those years? That's the reason the sorting breaks (it would not need a sort key otherwise), and it seems excessive to me. nyuszika7h (talk) 16:06, 11 October 2015 (UTC)

SQL question[edit]

I've been trying to find out the total admin actions per month in order to answer a question at WT:RFA, but I've been having problems running my SQL query on Quarry. My query to find the total admin actions for September ran fine, but when I tried to expand that to all months from January 2001, my query took over 20 minutes to execute and was killed. Is there anything I can do to improve the efficiency of this, or am I better off just making separate database queries for each month from an external script? — Mr. Stradivarius ♪ talk ♪ 11:49, 10 October 2015 (UTC)

Backend is mysql? If log_timestamp isn't indexed, it's likely to be slow regardless of your query. You could try using the IN operator [4] instead of the multiple OR statements. NE Ent 12:29, 10 October 2015 (UTC)
Thanks for the tips. :) Yes, it's mysql. I've tried using the IN operator and also reducing the number of dates from 1000 to 300, so we'll see if that helps. It's waiting in the queue now, but there are no other queries running - I think I might have lost my right to have it executed straight away after the previous two attempts... — Mr. Stradivarius ♪ talk ♪ 13:40, 10 October 2015 (UTC)
Actually, I just saw this example query, which is an approach that should be much more efficient. I'll give that one a try. — Mr. Stradivarius ♪ talk ♪ 14:19, 10 October 2015 (UTC)
You can also sign up for a tool labs account and run the query manually instead of using quarry :) Legoktm (talk) 15:08, 10 October 2015 (UTC)
I have one, actually, but I wanted to do it on Quarry so that other people could easily see the results and maybe modify the query. In any case it will have to wait, as I'm getting "SELECT command denied" errors at the moment. — Mr. Stradivarius ♪ talk ♪ 15:43, 10 October 2015 (UTC)
It's because you are trying to run the query on the private "enwiki" database, not "enwiki_p" which is public. I just ran it on enwiki_p here. --Glaisher (talk) 15:55, 10 October 2015 (UTC)
BTW, you don't have to include USE enwiki_p;. For enwiki it's there by default. Edgars2007 (talk/contribs) 16:56, 10 October 2015 (UTC)
Ah, that makes sense, thanks. — Mr. Stradivarius ♪ talk ♪ 16:58, 10 October 2015 (UTC)

Page Padding[edit]

Am I delusional or was the padding on the mw-body class recently changed? It seems most noticeable on the Main Page where there seems to be a larger white gap along the left edge than I recall seeing in the past. Dragons flight (talk) 20:21, 10 October 2015 (UTC)

No recent changes. But in Vector, the padding does change from 1 to 1.5em when the screen width goes above 982px. It has been doing that form some years now. Have you gotten a bigger screen perhaps? -- [[User:Edokter]] {{talk}} 10:57, 13 October 2015 (UTC)

Page size dumps[edit]

Does anyone know if there is a dump file of en.wikipedia which contains some measure of the size of each page, without having to waste the bandwidth downloading all the page contents. Thanks. HYanWong (talk) 14:04, 11 October 2015 (UTC)

To answer my own question, in enwiki-XXXXX-page.sql.gz ('only' a 1.2Gb download), the penultimate column in the 'page' table is a field named 'page_len', which gives this statistic.HYanWong (talk) 22:09, 11 October 2015 (UTC)
@HYanWong: What do you need the data for? Instead of downloading a dump, it might be better to run an SQL query on Quarry. — Mr. Stradivarius ♪ talk ♪ 01:50, 12 October 2015 (UTC)
@Mr. Stradivarius: I want to find out the page size of about 1.5 million pages (all living organisms), which I'm going to combine with page views from to assess some measure of popularity of each species or higher level group. Thanks for the tip about Quarry: is it considered reasonable behaviour to ask for such large datasets via SQL? HYanWong (talk) 07:51, 12 October 2015 (UTC)
I think in this case downloading enwiki-XXXXX-page.sql.gz would be better solution. I once run a query on Quarry, that returned 30,000 pages, it was fine, but you most probably won't get 1.5 million pages returned. But you can try :) --Edgars2007 (talk/contribs) 09:37, 12 October 2015 (UTC)
Thanks. An additional problem in this case is that the query itself contains 1.5 million page titles (grabbed from the wikidata dump), so even sending the query in the first place will be a pain! HYanWong (talk) 10:03, 12 October 2015 (UTC)
Hint (but probably not for this case). Put links to pages in some user-space page, then use pagelinks table joined with page table in Quarry. --Edgars2007 (talk/contribs) 10:29, 12 October 2015 (UTC)
P.s. I would like to document somewhere that the page lengths are present in XXX-page.sql.gz, but not sure where best to add documentation. Suggestions? (edit: maybe best to change the summary in the dump listing to "Base per-page data (id, title, old restrictions, page size etc).", but that's not user editable)HYanWong (talk) 10:05, 12 October 2015 (UTC)

Quotation marks breaking URL display[edit]

I've noticed just recently that there seems to have been a change to how external links are parsed that seems problematic. In particular, note how this:

["bar"&bar="baz" Foobar]

renders as

"bar"&bar="baz" Foobar

i.e. that the "bar"&bar="baz" is included in the displayed URL, which is obviously unintended. This can be manually solved, i.e. by changing " to %22:


However, since there are many, many such links that would have to be fixed (in no small part Google Books URLs), this is probably something that needs to be dealt with on the software end of things. {{Nihiltres |talk |edits}} 17:09, 11 October 2015 (UTC)

This isn't a new thing - I remember running into this years ago when I was making a template (can't remember which one offhand). — Mr. Stradivarius ♪ talk ♪ 17:21, 11 October 2015 (UTC)
Yes, it's listed at Help:URL#Fixing links with unsupported characters. The example here was also broken when The Internet Archive first archived the page in [5] 14 August 2014. PrimeHunter (talk) 17:36, 11 October 2015 (UTC)
I'm seeing the issue, in particular, in some citations. I don't recall seeing that one before. Possibly something's changed in one of the involved templates? Possibly something in this change? {{Nihiltres |talk |edits}} 18:44, 11 October 2015 (UTC)
Could you give us an example of a place where you're seeing problems? — Mr. Stradivarius ♪ talk ♪ 01:13, 12 October 2015 (UTC)
Nihiltres, the CS1 citation templates were recently (Sep 25 or 26) updated to feature more robust checking of URL parameters in the templates. I recommend reposting your question at Help talk:Citation Style 1 with some examples from articles. It is possible that the enhanced error detection has resulted in a change in the displayed link. It is also possible that the link wasn't working to begin with, and the new display is a side effect that will go away when the link is fixed.
Since the change, Category:Pages with URL errors has increased its population from roughly zero articles, where it had been for over a year, to 13,000+ articles. We have some citation template URLs to fix. All of you VPT watchers are welcome to come over and fix a hundred or so. – Jonesey95 (talk) 19:35, 12 October 2015 (UTC)

Edit summary maxlength[edit]

WP:ES#The 250 character limit claims an edit summary is limited to 255 bytes (not characters). I recall seeing some language to the effect that the limit was around 230 so a few multibyte UTF-8 characters wouldn't overflow. However, there is now a hard limit of maxlength="200", although possibly that can be overridden with JavaScript? Has maxlength been reduced in the last few months? Johnuniq (talk) 03:21, 12 October 2015 (UTC)

I must be misremembering because looking at some old source for EditPage.php makes it appear nothing has changed for several years, and "maxlength is overridden in JS to 255 and to make it use UTF-8 bytes, not characters" (what is a UTF-8 byte?). Johnuniq (talk) 06:58, 12 October 2015 (UTC)
Where do you see this maxlength="200"?
The maximum typeable length and the maximum storable length are not the same thing. The maximum storable length has always been 255 bytes. Edit summaries are stored as UTF-8, and a character like the en-dash (–) occupies three bytes when stored in this manner. The maximum typeable length was 200 characters for several years, there was a gadget that could increase this to (I think) 250; but that became redundant when the limit imposed by the MediaWiki software was increased two or three years back. If those 250 or so characters were more than 255 bytes when encoded as UTF-8, the excess would be truncated. The maximum typeable length is presently 255 bytes; if you type an edit summary using pure ASCII characters, you can enter 255 before it stops letting you type; if you type an edit summary using only characters that are three bytes in UTF-8 (e.g. Japanese script), you'll find that it won't let you enter more than 85. So unless you use characters outside the Basic Multilingual Plane that encode as four or more bytes (Unicode code points U+10000 or higher), the practical typing limit is between 85 and 255 characters. --Redrose64 (talk) 08:40, 12 October 2015 (UTC)
Thanks but I think "maximum typeable length is presently 255 bytes" is only correct if JavaScript is enabled—I can only type 200 characters with scripting off. The maxlength="200" is in the html source of a page with an edit summary and is what tells my browser (when JavaScript is disabled) to not accept more than 200 characters in the edit summary box. If anyone wants to experiment, the box following has one physical line starting with "A" and finishing with "Z". The line is 497 bytes = 200 characters. With scripting off, I can paste the line into an edit summary, but previewing shows the summary truncated. For some reason, when JavaScript is enabled, pasting the line does not work (it is truncated).
Johnuniq (talk) 10:29, 12 October 2015 (UTC)
Yes, with JavaScript you can enter UTF-8 characters which use up to 255 bytes, which is was the database field can hold. With JavaScript off you can enter 200 UTF-8 characters regardless how many bytes they use, but on preview or save they are truncated to use at most 255 bytes. The situation is confusing for users without JavaScript but I don't know whether it's possible without JavaScript to make an input field which counts bytes and not characters. The 200 limit without JavaScript is a compromise: Large enough for most edit summaries, and limits the number of times an edit summary must be truncated because it breaks the 255-byte limit by having too many multi-byte UTF-8 characters. Languages with non-Latin scripts have more problems with this. PrimeHunter (talk) 10:52, 12 October 2015 (UTC)
Yes users with Javascript will get a better experience, because this check is not possibly with plain HTML. —TheDJ (talkcontribs) 11:12, 12 October 2015 (UTC)
How do I turn off JavaScript in Firefox 41.0.1? --Redrose64 (talk) 20:51, 12 October 2015 (UTC)
Tools/Add-ons - Click on Disable next to NoScript. Then you have to close your browser and restart it for the disable to take affect. — Maile (talk) 20:57, 12 October 2015 (UTC)
It's not there. I only have two entries: Microsoft .NET Framework Assistant (disabled) and RealDownloader (disabled). --Redrose64 (talk) 22:58, 12 October 2015 (UTC)
NoScript is a Firefox extension Maile has installed. Most Firefox users don't have it. It has controls to allow or disallow JavaScript for each website. PrimeHunter (talk) 23:07, 12 October 2015 (UTC)
In about:config there is javascript.enabled. --Edgars2007 (talk/contribs) 21:01, 12 October 2015 (UTC)

"jump up to ^"[edit]

Sometimes when I look at articles and see the citations at the bottom, instead of just having the "^" caret, it will say before it, linked in blue) "jump up to ^", next to every citation. It's ugly and quite redundant. Is this a Wikipedia issue or is it on my end? I use Firefox on a Macmini. (talk) 15:14, 12 October 2015 (UTC)

WP:Village pump (technical)/Archive 140#Jump up!. --Edgars2007 (talk/contribs) 15:20, 12 October 2015 (UTC)

Florence Rush[edit]

I added an infobox to Florence Rush and the entire article disappeared (diff), I've reverted for now, can someone please take a look? --The Vintage Feminist (talk) 15:52, 12 October 2015 (UTC)

Yes check.svg Done. You had left in the opening part of an html comment before the death date and age template, The Vintage Feminist, but not the matching close, so everything after that, including the template close, was swallowed in the comment, leaving only an unclosed template call. DES (talk) 15:59, 12 October 2015 (UTC)
Oops, okay thanks. --The Vintage Feminist (talk) 16:08, 12 October 2015 (UTC)

Tech News: 2015-42[edit]

16:29, 12 October 2015 (UTC)

Blank image[edit]


File:GrahamCube.svg has started rendering blank for no apparent reason. It used to be ok in the article. Clicking through to the image it is still there and no new versions have been uploaded. SpinningSpark 21:37, 12 October 2015 (UTC)

I've fixed the file by adding the type="text/css" attribute to the <style> element. Unlike in HTML, that attribute seems to be required for CSS stylesheets to work in SVG. SiBr4 (talk) 21:51, 12 October 2015 (UTC)
Funny that it used to be ok though. Something must have changed somewhere. SpinningSpark 22:04, 12 October 2015 (UTC)
Yes, the documented behaviour is that in the absence of any other indication, the default is "text/css". --Redrose64 (talk) 23:26, 12 October 2015 (UTC)

Article Feedback Activity Log erased[edit]

Some entries in Special:Log have only a single word after the user page, talk page, and contribs links. Those entries were in the Article Feedback Activity Log, and had some text that got erased after AFT became obsolete on March 3, 2014. The entries that were in the Article Feedback Activity Log should be completely erased. GeoffreyT2000 (talk) 01:55, 13 October 2015 (UTC)

Because the Article Feedback extension was uninstalled, its log entry formatter is no longer available, so these logs are presented in a pretty useless raw form. The relevant Phabricator task is phab:T64722. — This, that and the other (talk) 06:10, 13 October 2015 (UTC)

Cascading protection glitch[edit]

Are users here who are template editors but not admins able to edit Template:Center? I ask because I appear to have caused a glitch which makes it cascade-protected from a deleted page. Here's how it happened:

  1. I notice that when I edited Template:Center, there was a notice above the edit box that said it was cascade-protected from File:Onion Powder, Penzeys Spices, Arlington Heights MA.jpg. I decide that this protection isn't serving any purpose, as the file is no longer visible on the main page.
  2. I delete File:Onion Powder, Penzeys Spices, Arlington Heights MA.jpg without unprotecting it. I thought this would remove the protection and make pages fetch the file from Commons, all in one edit.
  3. I reduce Template:Center to template-protection.
  4. Template:Center is now displayed as template-protected, but when editing it the notice that says that it is cascade-protected is still there. The difference is that instead of File:Onion Powder, Penzeys Spices, Arlington Heights MA.jpg being listed as a source, there are no sources listed.

I'm guessing that this will have to go to Phabricator, but if there's a way we can resolve it here, that would be nice. — Mr. Stradivarius ♪ talk ♪ 11:09, 13 October 2015 (UTC)

To me it shows the "template protected" message now. Not a template editor or administrator.Jo-Jo Eumerus (talk, contributions) 11:11, 13 October 2015 (UTC)
I think that the glitch may have defeated the protection level detection code that makes the "template protected" message, as it relies on the CASCADINGSOURCES magic word producing some text, but if there are no sources then the output will just be blank. I am also guessing a similar thing happened with the Lua code that checks for cascading protection to see what colour the padlock icons should be. — Mr. Stradivarius ♪ talk ♪ 11:19, 13 October 2015 (UTC)
Also, I should add that after I deleted File:Onion Powder, Penzeys Spices, Arlington Heights MA.jpg I restored it, then tried cascade-protecting it and then unprotecting it again, but it didn't seem to make any difference. — Mr. Stradivarius ♪ talk ♪ 11:12, 13 October 2015 (UTC)
I placed the "Template editor" right on an alternate account of mine and loaded the edit page. I did get the page (I didn't actually try to change anything there), along with the warning that only admins can edit it due to cascade protection. עוד מישהו Od Mishehu 11:37, 13 October 2015 (UTC)
For me (TE) it displays the "cascade-protected" warning alongside the template-protection one, though it seems I am able to edit the template normally: the edit box is pink and unlocked, and there are "save"/"preview"/"changes" buttons, unlike when I try to edit a fully protected page. SiBr4 (talk) 13:39, 13 October 2015 (UTC)

WP:FLAGCRUFT malicious?[edit]

I have recently inserted the WP:FLAGCRUFT js code, and found out it could be malicious. Simple question here: is it really that bad or is there really nothing to worry about here? --JB82 (talk) 14:49, 13 October 2015 (UTC)

What do you mean by "found out it could be malicious"? If you mean you see MediaWiki:Jswarning on your css and js pages then it's a standard warning always shown on those pages regardless of content. PrimeHunter (talk) 15:41, 13 October 2015 (UTC)