Wikipedia:Village pump (technical)/Archive 135#Help link for Preferences
{{Wikipedia:Village pump/Archive header}}
Print/Export as pdf does not render tables
I've seen some chatter in the archives about the failure to render infoboxes, but it seems to me that the problem is much more widespread than that. I have looked around and every WP article with tables that I have checked have had the tables excluded in the .pdf print/export version. That is to say, after looking around, I have yet to find ANY tables that are rendered in the .pdf generated by print/export. Yes, there are many articles without tables, nevertheless, many articles include critical information in the articles and the lack of tabular information renders (pun intended) the .pdf nearly worthless. This is a widespread problem that IMHO should be prioritized relatively high. Examples are easy to find:
- So Far So Good (Bryan Adams album): {{section link|nopage=y|So Far So Good (Bryan Adams album)|Track listing|Chart positions|Certifications}}
- List of countries and dependencies by population: {{section link|nopage=y|List of countries and dependencies by population|Countries and dependencies by population}}
- Periodic table: {{section link|nopage=y|Periodic table|Overview|Groups}}
- Properties of metals, metalloids and nonmetals: {{section link|nopage=y|Properties of metals, metalloids and nonmetals|Comparison of properties}}
- Oregon: {{section link|nopage=y|Oregon|Geography|Major cities|Politics}}
- List of U.S. state abbreviations: {{section link|nopage=y|List of U.S. state abbreviations|Table}}
- Harrison Ford: {{section link|nopage=y|Harrison Ford|Awards}}
- Macaulay Culkin: {{section link|nopage=y|Macaulay Culkin|Film|Television}}
Go to your own favorite corner of WP and if you find tables, you will find this bug. YBG (talk) 05:08, 28 February 2015 (UTC)
::Known issue. See {{Phab|T87499}} which was merged into {{Phab|T73808}}. -- George Orwell III (talk) 06:05, 28 February 2015 (UTC)
::::Great! Much appreciated. YBG (talk) 06:16, 28 February 2015 (UTC)
:::::Help:Download as PDF -- Gadget850 talk 14:49, 28 February 2015 (UTC)
Infobox subheader shift?
In Jacques Brel, my eye gets the impression that the infobox header (the colored bar with text 'Jacques Brel') is asymmetrical: lefthand whitespace looks like 3px, righthand ws 2px. I'm using Firefox 35 (not 36 yet) now. Possibly related: #Tables_just_changed_.28using_monobook.29. Is it just my eye, or is this real? -DePiep (talk) 20:49, 27 February 2015 (UTC)
:Not sure, was the dress white/gold for you today or black/blue ? —TheDJ (talk • contribs) 21:33, 27 February 2015 (UTC)
:: Team white and gold! --MZMcBride (talk) 22:15, 28 February 2015 (UTC)
In Jacques Brel, my eye gets the impression that the infobox header (the colored bar with text 'Jacques Brel') is asymmetrical: lefthand whitespace looks like 3px, righthand ws 2px. I'm using Firefox 35 (not 36 yet) now. Possibly related: #Tables_just_changed_.28using_monobook.29. Is it just my eye, or is this real? -DePiep (talk) 22:13, 27 February 2015 (UTC)
Moving over a salted page (redux)
{{tracked|T91129}}
I'd like to revive this thread.
Summary: When an admin moves a page to a salted target, there is no warning that the page is salted. (I tested it myself and saw no warning.) I'm not sure if the target remains salted.
Case in point: [//en.wikipedia.org/w/index.php?title=Ruby_Yadav&diff=648925442&oldid=648674365], [//en.wikipedia.org/w/index.php?title=Special:Log&page=Ruby+Yadav]
A warning box would have made User:Necrothesp aware of an old AfD. He then would likely have made others aware of that at the new AfD.
Can this be fixed? Bug report? Thoughts? Anna Frodesiak (talk) 01:09, 27 February 2015 (UTC)
:To your q "I'm not sure if the target remains salted", no - because salt can only be applied to the title of a non-existent page; once a page is moved to that title, it's no longer the title of a non-existent page. --Redrose64 (talk) 11:08, 27 February 2015 (UTC)
::Hi, Redrose64. I see. And if it is deleted again? Is the redlink then salted again for non-admins? Anna Frodesiak (talk) 21:51, 27 February 2015 (UTC)
:::No, it's not; and I've just confirmed it at {{pagelinks|User:Cryptic/test1}}. —Cryptic 22:02, 27 February 2015 (UTC)
::::Thank you, Cryptic. So, how do we get this fixed. This is the second post about this, and it seems to be getting just as ignored as the first one. Anna Frodesiak (talk) 22:06, 27 February 2015 (UTC)
::::Posted at phab:T91129
::::Anna Frodesiak (talk) 22:34, 27 February 2015 (UTC)
username change, and now I can't log in!!!
I asked for a username change from EmeraldRS to Emerald-wiki. It says the change has been carried out but I can't log in with my old or new username. I get a message with the new username saying my account is being renamed or merged. Is there some step that got missed? Help! 80.176.153.231 (talk) 17:35, 27 February 2015 (UTC)
:The rename was an hour ago [//meta.wikimedia.org/w/index.php?title=Special%3ALog&type=gblrename&oldname=EmeraldRS] and your account has nearly 1000 edits in total. Try again later. PrimeHunter (talk) 17:52, 27 February 2015 (UTC)
I have waited, it is now about 15 hours since the rename, but still I can't login. Are you sure it is just a matter of waiting and not that something else needs fixing? 80.176.153.231 (talk) 08:49, 28 February 2015 (UTC)
:I think it should have worked by now. What exactly happens if you try to log in as Emerald-wiki? If you get a message then quote it precisely. Can you log in at meta: or wikisource:? PrimeHunter (talk) 13:01, 28 February 2015 (UTC)
When I try to log-in the message says "Login error/ Your account is currently being renamed or merged./ View the status", clicking 'View the status' shows the Global rename progress with everything 'Done' except de.wikipedia.org which is 'Queued' and has been for approaching 24 hours. I get exactly the same thing at Meta, Wikisource and Commons. I have never used de.wikipedia.org and, not speaking German, probably never will. I hope you can help. 80.176.153.231 (talk) 14:23, 28 February 2015 (UTC)
:Apparently the global renaming process is still waiting for de.wikipedia to be completed. That's one of the downsides of global accounts: if one local instance is delayed or interrupted I suppose you can't use your account at all. It looks like you'll have to wait for the German queue to finish. De728631 (talk) 14:36, 28 February 2015 (UTC)
::Okay, thanks, I'll wait. I changed my username once before, that time it happened so fast it surprised me - within 5 mins of submitting my request it had happened, I hadn't even got as far as logging out. This time it is really, really slow! 80.176.153.231 (talk) 14:40, 28 February 2015 (UTC)
- {{ping|Keegan}} is such a long delay expected? –xenotalk 14:57, 28 February 2015 (UTC)
- Note that there is already a user on deWP called Emerald-wiki, which was created on 10 January 2015 but hasn't made any edits. Is that his newly renamed global account, or is it an unrelated account holding up the rename? A few random other wikis I've checked don't have a user by that name, though esWP does. SiBr4 (talk) 15:15, 28 February 2015 (UTC)
It seems the hold-up has been identified. Can I take over the other Emerald-wiki on DE or choose another username - bearing in mind that I can't login anymore?80.176.153.231 (talk) 15:22, 28 February 2015 (UTC)
I should say that the Emerald-wiki on DE in January is nothing to do with me. I was EmeraldRS or my previous username, which unwisely was my real name 80.176.153.231 (talk) 15:26, 28 February 2015 (UTC)
:I don't know the reason for the de hold-up but I definitely think the de account is yours, created when you were EmeraldRS and part of the rename. Special:CentralAuth/Emerald-wiki shows it belongs to the global account, and was created at a time where you were also created at other wikis. If you are logged in at another wiki and visit any page at a Wikimedia wiki which is part of the global login system then your account is automatically created there. :de:Special:Logs/Emerald-wiki confirms it was an automatic creation. https://tools.wmflabs.org/quentinv57-tools/tools/sulinfo.php?username=Emerald-wiki also says there are no unattached acccounts. PrimeHunter (talk) 15:41, 28 February 2015 (UTC)
I'll just keep waiting then!!! I wish I did know German to ask a question on one of their help talks!80.176.153.231 (talk) 15:48, 28 February 2015 (UTC)
:Hi there (thanks for the ping, xeno). We'll get that fixed for you. Sorry for the hold up, that's not normal. Keegan (WMF) (talk) 03:36, 1 March 2015 (UTC)
::{{done}} - Legoktm unlocked the account and hopefully fixed the issue. You should be able to log in to your account. If you have any future problems getting locked out, please feel free to contact me directly. You can find my contact information on my userpage. Again, sorry for the trouble. Keegan (WMF) (talk) 03:58, 1 March 2015 (UTC)
Thanks everyone. Got up this morning and the first thing I tried was logging in to Wiki - straight in, no problem - great!! Richard Emerald (talk) 10:41, 1 March 2015 (UTC)
AfD stats tool not recognising votes for me
Is there any reason why [http://tools.wmflabs.org/afdstats/afdstats.py?name=Fauzan&max=500&startdate=&altname= this] is only counting my noms, and not my vote at AfD? --Fauzan✆ talk✉ mail 16:04, 28 February 2015 (UTC)
:[https://tools.wmflabs.org/usersearch/usersearch.py?name=Fauzan&page=Wikipedia%3AArticles+for+Deletion%2F*&max=100&server=enwiki&wildcards=true My contributions in Wikipedia:Articles for Deletion/*] --Fauzan✆ talk✉ mail 16:13, 28 February 2015 (UTC)
::Which (diff) vote are you referring to? Nakon 04:02, 1 March 2015 (UTC)
:::{{u|Nakon}}, I mean the voting matrix shows only my nominations, and not the 50 other votes at AfD. The tool is not recognizing my votes at AfD, which it should. --Fauzan✆ talk✉ mail 08:23, 1 March 2015 (UTC)
NCMEC template
I recently created a template for a link to the National Center for Missing and Exploited Children, which would be used on missing persons pages, but I can't get the URL to work. I created it after I saw Template:Find a Grave. Here is my template page: Template:NCMEC. Here is a page that it is used on: Michaela Garecht and here is a URL to a poster: [http://www.missingkids.com/poster/NCMC/717172/1#poster]. I'm hoping someone could help with this issue, as the formatting works perfectly with my template for unidentified persons on the website (see Template:NCMEC UID. Thanks, --GouramiWatcher(?) 17:04, 28 February 2015 (UTC)
:I don't know the website. Is there a reason the template says NCMU instead of NCMC the second time? Your example works if it's changed to NCMC. PrimeHunter (talk) 17:26, 28 February 2015 (UTC)
::"NCMU" is used with the unidentified people. The missing children's URLs have the "NCMC." --GouramiWatcher(?) 20:12, 28 February 2015 (UTC)
:::But why does Template:NCMEC only choose a url with NCMC if there is an author, date or accessdate parameter, and another url with NCMU if there isn't? None of those parameters sound like they have something to do with unidentified people versus missing children. It seems a very odd system, and I think it's an extremely poor idea to make an external link template which changes the url if an accessdate is added. That means a user may test the link, find it works, add an accessdate, and that action may break the link without the user rechecking it. Additionally, the NCMC case is coded wrong and needs fixing but I would like to first understand the idea behind the whole NCMC/NCMU choice. PrimeHunter (talk) 21:51, 28 February 2015 (UTC)
::::Changed [https://en.wikipedia.org/w/index.php?title=Template:NCMEC&diff=649286233&oldid=649249304 NCMU to NCMC] as per PrimeHunter and it seems to pull the poster just fine then, but the concerns above remain & are on point.
Oh I think I get the premise now, the first incarnation is for use as a citation for inline refs and the second is for standalone usage (still doesn't quite add up however). -- George Orwell III (talk) 22:03, 28 February 2015 (UTC)
:::::Maybe that's the intention. All current uses of both templates are in external links sections and none of them use any of the parameters which invoke the first incarnation. The OP said "the formatting works perfectly" about Template:NCMEC UID, but that template also changed the url (although only by adding '=') if any of author, date or accessdate were added. In all cases I tested, this broke the link. I guess it was simply never tested and '=' should just be removed from the url in both templates, in addition to your change of NCMU, and an addition of a missing pipe. I made these changes [//en.wikipedia.org/w/index.php?title=Template:NCMEC_UID&diff=prev&oldid=649306003][//en.wikipedia.org/w/index.php?title=Template:NCMEC&diff=prev&oldid=649306438] and both templates now give working links in both incarnations:
- {{NCMEC UID|1104264|Dana Point Jane Doe}}
- {{NCMEC UID|1104264|Dana Point Jane Doe|accessdate=1 March 2015}}
- {{NCMEC|795152|Michael Hughes}}
- {{NCMEC|795152|Michael Hughes|accessdate=1 March 2015}}
:::::PrimeHunter (talk) 00:52, 1 March 2015 (UTC)
::::::Thanks for your assistance! Sorry if I confused anyone! --GouramiWatcher(?) 03:30, 1 March 2015 (UTC)
What's going to happen next with Tables?
As someone who works with wikitables all the time I am very unhappy with the padding change. Most of the time I am working on wikipedia I work on results tables (Most of the time motorsport results tables). Those result tables need to be tight so you can put 20-sometimes 56 or more races in one table. Example: Dave Marcis. Now that the padding has changed (doubled) these result tables are way bigger than they should be. This makes them harder too reed and untidy. I really don't understand why the padding has doubled. This affect every single table on wikipedia. I am really disappointed and upset that this affects all the hard work I have put in to create all these results tables. What's going to happen next? I mean the padding being doubled is'nt a minor change. Particularly when this affects almost all the tables on wikipedia. Is their a possibility that this change is going to be reverted? Jahn1234567890 (talk) 15:59, 1 March 2015 (UTC)
:Have you commented at [https://phabricator.wikimedia.org/rMW33cfd0bc4a5f009b86c40b0312b4c7f7b006cbc7 https://phabricator.wikimedia.org/rMW33cfd0bc4a5f009b86c40b0312b4c7f7b006cbc7]? --Ahecht (TALK
PAGE) 18:08, 1 March 2015 (UTC)
Using qqx as default language
We can append &uselang=qqx to an url to get the interface messages name, but what can we do when one wants to get the interface message names also when submitting requests ? I don't see qqx in the language selector in preferences. Cenarium (talk) 19:50, 1 March 2015 (UTC)
:What do you mean by "when submitting requests" - is this editing a page? If so, the URL will already include a question mark at some point earlier than (but not necessarily immediately before) the action=edit
; there can be only one of these, so leave that alone, and append &uselang=qqx
to the right-hand end of the URL. --Redrose64 (talk) 19:56, 1 March 2015 (UTC)
::The question is about cases where a displayed message doesn't just depend on the current url but also on what you just did, for example move a page. Adding uselang=qqx does not always reproduce the right situation and message. If you want to find the used MediaWiki messages in such situations then there are tips at Wikipedia:Village pump (technical)/Archive 131#What interface page is used for the results after a successful undeletion? PrimeHunter (talk) 20:52, 1 March 2015 (UTC)
:::Thanks. Yes, it was when I was moving a page. There are some useful tips, though it may make things easier if the non-overriden default messages (for the site language only, like AllMessages) were indexed when searching mediawiki namespace. Cenarium (talk) 21:55, 1 March 2015 (UTC)
:::: C: Indeed. This is phabricator:T22858. If you have a clone of mediawiki/core.git, "git grep" is probably fastest. --MZMcBride (talk) 22:00, 1 March 2015 (UTC)
Secure link icon
Why do we have the secure link icon only for red links: Red link example and logged in secure. -- Gadget850 talk 21:47, 1 March 2015 (UTC)
: I'm not sure what you mean. Internal red links have never had a secure link icon, as far as I know. I don't see an icon next to red link example using Vector or Monobook over HTTPS. Maybe you can provide additional details about your setup or a screenshot? --MZMcBride (talk) 21:57, 1 March 2015 (UTC)
::Must be me, not seeing it logged out. -- Gadget850 talk 22:13, 1 March 2015 (UTC)
:::Something in my JS. Possibly User:Anomie/linkclassifier. -- Gadget850 talk 22:20, 1 March 2015 (UTC)
:::: I'm not seeing a secure link icon, but I am seeing the small WP:SKYBLUELOCK for that particular link thanks to User:Anomie/linkclassifier. Something random like slkndkfoewgfoiwenbgflksgewe that isn't create-protected isn't showing any icon here. Anomie⚔ 23:27, 1 March 2015 (UTC)
[Global proposal] m.{{SITENAME}}.org: {{int:group-all}} {{int:right-edit}}
File:Mediawiki-mobile-smartphone.png
Hi, this message is to let you know that, on domains like {{CONTENTLANGUAGE}}.m.wikipedia.org, unregistered users cannot edit. At the Wikimedia Forum, where global configuration changes are normally discussed, a few dozens users propose to restore normal editing permissions on all mobile sites. Please read and comment!
Thanks and sorry for writing in English, Nemo 22:32, 1 March 2015 (UTC)
An incorrect redlink
I was checking something in the Lyndon B. Johnson article, and saw that the link on his father, Samuel Ealy Johnson Jr., was red. Yet, when I hovered over the link, PopUps showed me that there is in fact an article on Samuel. But the link was red, and I still got the "(page does not exist)" title-text. The Samuel article has existed for years, so it's not one of those situations where it was recently created and the backlink colors haven't changed yet. I purged the page, and that seems to have fixed the problem, at least for me. [http://i.imgur.com/imZuiOY.png Here's a screengrab.] Is this a known issue? I skimmed Phabricator but didn't see anything similar. — PinkAmpers&(Je vous invite à me parler) 02:27, 2 March 2015 (UTC)
:The page history of Samuel Ealy Johnson Jr. shows it was moved to that title one minute after Lyndon B. Johnson was last edited, so it was just a normal red link cached at that time. PrimeHunter (talk) 02:50, 2 March 2015 (UTC)
::{{Ping|PrimeHunter}} Ah, that explains it. I should've noticed. Thanks. — PinkAmpers&(Je vous invite à me parler) 06:21, 2 March 2015 (UTC)
Signpost app
Hello all,
As you may know there is a [https://www.mediawiki.org/wiki/Signpost_Mobile_App Wikipedia Signpost Mobile App] for Android. It's currently borked, but the source code is on [https://github.com/yuvipanda/WPSignpost GitHub]. We're doing a lot of organizational work at the moment and the mobile app is one of the things we'd like to look into: we're looking into technical improvements behind-the-scenes and we'd like to take the opportunity to more tightly integrate mobile access into things.
The Android project is likely to be fixed soonish; would anyone be interested in working on porting the Signpost mobile app to iOS, or know someone that they think might interested in such a project? ResMar 05:40, 2 March 2015 (UTC)
Editnotice permissions by namespace
{{archive top}}
We are currently restricting editnotice editing via the MediaWiki:Titleblacklist by blocking creation and edits to: Template:Editnotices\/.*
. What technical options can be used to allow creating/editing of notices in the Wikipedia: / Wikipedia_talk: namespaces by standard editors? — xaosflux Talk 16:08, 1 March 2015 (UTC)
:I attempted a more-specific whitelist entry, but either have a syntax error or the software needs exact match on WL-->BL. — xaosflux Talk 16:12, 1 March 2015 (UTC)
:: Why not just remove the title blacklist entry altogether? It's clearly a hack and it has always been very dubious. --MZMcBride (talk) 16:49, 1 March 2015 (UTC)
:::That is an option, and I plan on opening up a RfC on changing these--but want to know what the technical options are first. — xaosflux Talk 20:06, 1 March 2015 (UTC)
::::Haha if you do I'll be sure to add "caused an RfC" to my list of...things accidentally achieved, I guess? ResMar 20:09, 1 March 2015 (UTC)
:::::It is the standard way to do this type of change, this isn't like a normal unprotection discussion as it applies to a feature of most every page - I'm sure the arguments are vandals - but there may be something else. — xaosflux Talk 20:11, 1 March 2015 (UTC)
- It isn't just vandals, it's also intended to avoid displaying off-putting messages to new users (probably other reasons as well, but this one is likely the most important). Editnotices aren't as visible as page content, and furthermore are often hidden by experienced users, so inappropriate changes to these can be easily missed. Lowering the requirement to edit existing editnotices in project namespace to 'autoconfirmed' may be acceptable, provided all the editnotices for project pages that are potentially edited by new users (like the help desk and so) are template-protected (this should number in the dozens). Creation should still be restricted since it is also intended to avoid an unchecked proliferation of editnotices. I've personally seen on numerous occasions editnotices incredibly BITEY, uncalled for or not assuming good faith. So we'd better be conservative in our approach to these user interface messages. Using the title blacklist is a hack for sure but it's all we've got now barring sysop-only. If this is still desired, we may have to rewrite the editnotice template so that it uses a Editnotices/Page/Namespace/UnprefixedTitle format, where mainspace is "main", so e.g. "Editnotices/Page/Main/Barack Obama" or "Editnotices/Page/Wikipedia talk/Help desk". Although it would cost a few hundreds of moves, this way it's going to be easy to make special cases on namespace using the title blacklist, or if we get that in the future, with a protection option that "applies to subpages" (i.e. the non-hackish way). Cenarium (talk) 21:12, 1 March 2015 (UTC)
:{{ping|Cenarium}} From a technical point of view, to change main from using Template:Editnotices/Page/PAGENAME
to (Template:Editnotices/Page/Main/PAGENAME
or Template:Editnotices/Page/Main:PAGENAME
) - can this be done on wiki, or will it require a patch? — xaosflux Talk 14:25, 2 March 2015 (UTC)
::Technically, it can be accomplished locally. Requires editing Template:Editnotice load. Dragons flight (talk) 05:05, 3 March 2015 (UTC)
:::And fwiw, the editnotice will be shown correctly when redirected to a new location. So one can make the moves then update the template to use the new location, it'll still work in the mean time. Cenarium (talk) 01:53, 4 March 2015 (UTC)
{{archive bottom}}
Cremation or burial?
Why can't I delete Cremation or burial?? When I choose delete it just reloads the page. I can delete other pages but not this one. CambridgeBayWeather, Uqaqtuq (talk), Sunasuttuq 07:28, 26 February 2015 (UTC)
:Not quite sure. I just did and it worked fine. Something with your browser or personal Javascript maybe? Seraphimblade Talk to me 08:11, 26 February 2015 (UTC)
::That's strange I deleted another page with no problem. I'll just put it down to sunspots as they get blamed for almost everything in the Arctic. CambridgeBayWeather, Uqaqtuq (talk), Sunasuttuq 08:19, 26 February 2015 (UTC)
:::I'm guessing it's a problem with '?' which usually indicates a query string in url's. MediaWiki encodes '?' in pagenames as %3F to avoid confusion but maybe your browser is still confused. Which browser? Does the same happen for Quo vadis? PrimeHunter (talk) 19:30, 26 February 2015 (UTC)
::::I was using Chrome Version 40.0.2214.115 on Ubuntu 14.04 but I just tried in Firefox 36.0 on the Quo vadis page and got the same result. This time I checked the url and noticed it was https://en.wikipedia.org/wiki/Quo_vadis%3F?action=delete. I'll have to try later on Windows. CambridgeBayWeather, Uqaqtuq (talk), Sunasuttuq 23:01, 26 February 2015 (UTC)
:::::{{ping|CambridgeBayWeather}} That really is odd, since I'm using Ubuntu 14.10 with Chromium 40.0.2214.111. Are you using Twinkle or any other scripts, or just the regular Mediawiki delete button? Seraphimblade Talk to me 01:22, 27 February 2015 (UTC)
::::::It's indeed an issue with '?' but probably not in your browser. Your link https://en.wikipedia.org/wiki/Quo_vadis%3F?action=delete doesn't work for me either. How do you reach that link and what is your skin? I'm in Vector and click the "More" tab and then "Delete". That gives me https://en.wikipedia.org/w/index.php?title=Quo_vadis%3F&action=delete which works. Your url structure works on page names not containing '?', for example https://en.wikipedia.org/wiki/Quo?action=delete. It may be a MediaWiki bug that a query part cannot be added to a url of form https://en.wikipedia.org/wiki/...%3F. It also fails for https://en.wikipedia.org/wiki/Quo_vadis%3F?action=history as non-admins can test. The "View history" tab gives me https://en.wikipedia.org/w/index.php?title=Quo_vadis%3F&action=history which does work, but I think https://en.wikipedia.org/wiki/Quo_vadis%3F?action=history should also have worked, like https://en.wikipedia.org/wiki/Quo?action=history works. MediaWiki apparently chokes on the %3F? combination where %3F is an encoded '?' ending the pagename, and '?' is the start of a query part. Or maybe there is some general url rule I'm unaware of which disallows '%3F?' in url's. PrimeHunter (talk) 01:49, 27 February 2015 (UTC)
:::::::The %3F? combination works on this wiki with an old MediaWiki version: http://mersennewiki.org/index.php/Why_participate_in_GIMPS%3F?action=history. http://mersennewiki.org/index.php/Special:Version says MediaWiki: 1.5.8. PrimeHunter (talk) 02:24, 27 February 2015 (UTC)
:::::::The problem is not restricted to '?' at the end of the pagename. https://en.wikipedia.org/wiki/%3F_Nycticebus_linglom?action=history should have produced the page history of ? Nycticebus linglom. PrimeHunter (talk) 02:56, 27 February 2015 (UTC)
::::::::User:PrimeHunter. To get the non working link I just followed the original Quo vadis? link you provided. I then clicked on the delete and it reloaded the page with the https://en.wikipedia.org/wiki/Quo_vadis%3F?action=delete non working link. I'm using Vector as well. I notice you said that you clicked on the "More" tab and then "Delete". On the "More" I see the only option is "Purge". The option to delete is on the "Page" tab and says "Delete page". Also the https://en.wikipedia.org/w/index.php?title=Quo_vadis%3F&action=delete works for me as well. I looked through my deletion log and found [https://en.wikipedia.org/w/index.php?title=Why_is_austin_wilson_a_dummy%3F&action=edit&redlink=1 this], I did see at least one more with the ? at the end, and [https://en.wikipedia.org/w/index.php?title=%22Are_You_Ready%3F_(Shakaya)&action=edit&redlink=1 this] with the ? in the middle. So at one time I was able to delete pages with the ? at the end. The other links on your 01:49 post all work the same for me as they did for you. CambridgeBayWeather, Uqaqtuq (talk), Sunasuttuq 03:19, 27 February 2015 (UTC)
:::::::::The "Page" tab is not part of MediaWiki. It is made by "Add Page and User dropdown menus to the toolbar" at Special:Preferences#mw-prefsection-gadgets. The gadget is disabled by default. I have tried to enable it and get the same non-working url as you on the Page tab. The gadget uses MediaWiki:Gadget-dropdown-menus.js which uses MediaWiki:Gadget-dropdown-menus-vector.js for Vector users, but the bug is in MediaWiki and should be fixed there. Question marks in pagenames are rare and I'm not sure it's worth coding the gadget to work around the bug by using url's with /w/index.php?title=
instead of /wiki/
. PrimeHunter (talk) 03:33, 27 February 2015 (UTC)
::::::::::OK that was it. I removed the gadget and was able to delete https://en.wikipedia.org/w/index.php?title=User:CambridgeBayWeather/Test3%3F&action=delete. I found that with the gadget enabled it is possible to move the page and not leave a redirect. That deleted the ? page and then of course I was able to delete the page without the ?, https://en.wikipedia.org/w/index.php?title=User:CambridgeBayWeather/Test%3F&action=edit&redlink=1. Given that there are several things I like about the gadget and the very few times that the ? comes up I'll leave it enabled and use the move workaround. Thanks for all your help. CambridgeBayWeather, Uqaqtuq (talk), Sunasuttuq 03:48, 27 February 2015 (UTC)
:::::::::::Moves are made with a special page and not a query string, so the bug does not interfere. Protect and Purge on the Page tab are affected. It probably also affects several other scripts and tools. I'm not proficient with Phabricator. Can somebody see if it's there, and add it if not? PrimeHunter (talk) 04:18, 27 February 2015 (UTC)
::::::::::::I'm not seeing a problem with the Protect from the page tab. It worked fine yesterday. CambridgeBayWeather, Uqaqtuq (talk), Sunasuttuq 04:58, 27 February 2015 (UTC)
:::::::::::::On a pagename with a question mark? The bug is only known to affect that. PrimeHunter (talk) 05:11, 27 February 2015 (UTC)
{{od|15}}I can fix this for MediaWiki:Gadget-dropdown-menus-vector.js, but I do not maintain the non-vector version if that is what you are using. Because of the same bug all internal links involving a page name with a ? will not work, so it's worth fixing for the interim I think. — MusikAnimal talk 06:23, 27 February 2015 (UTC)
:Should be fixed now. Thanks for the report! — MusikAnimal talk 07:05, 27 February 2015 (UTC)
::This should be fixed in core though... -- User:Edokter]] {{talk}}
12:38, 27 February 2015 (UTC)
:::Thanks User:MusikAnimal that works now. CambridgeBayWeather, Uqaqtuq (talk), Sunasuttuq 16:18, 27 February 2015 (UTC)
Search not updating
{{tracked|T91216}}
The CirrusSearch, which normally updates within 10-15 seconds, appears to have stuck
I corrected misspellings of "received" at [https://en.wikipedia.org/w/index.php?title=Money_in_the_Bank_ladder_match&diff=649370234&oldid=649338151 12.37] and [https://en.wikipedia.org/w/index.php?title=Money_in_the_Bank_ladder_match&diff=649370234&oldid=649338151 12.38] but both sill appear in [https://en.wikipedia.org/w/index.php?title=Special:Search&limit=50&offset=0&ns0=1&ns14=1&ns100=1&search=recieve the search for recieved] nearly 6 hours later - Arjayay (talk) 18:18, 1 March 2015 (UTC)
:I thought that it updated once a day, around 04:00 UTC, which is some eight hours off. --Redrose64 (talk) 19:59, 1 March 2015 (UTC)
::The old Lucene-search updated once a day. The current CirrusSearch should normally update much faster. See mw:Help:CirrusSearch#Updates. I also get the old revision of your diff currently (you posted the same diff twice). PrimeHunter (talk) 21:01, 1 March 2015 (UTC)
:::This is even worse than when LuceneSearch index was not updated; at least when it got restarted, even if it took a week, it would completely reindex everything. The CirrusSearch update failure has not been seen before to this extent, I think, and something extraordinary will have to be done to make things right. I don't think they expected that something like this could actually happen, and I will be surprised if they have a way to quickly fix it. Chris the speller yack 21:23, 1 March 2015 (UTC)
::::We have a script for handling outages. Its one of the first things I built. NEverett (WMF) (talk) 18:21, 2 March 2015 (UTC)
: Filed as phabricator:T91216. --MZMcBride (talk) 21:31, 1 March 2015 (UTC)
::I just filed phabricator:T91217, then saw your post. It looks like you beat me by a nose. I'll update mine as being a duplicate of yours. Chris the speller yack 21:43, 1 March 2015 (UTC)
:::Now updates to the index are taking place again as articles are edited, but the ones we already complained about are still not updated in the index, as my earlier post predicted. Chris the speller yack 02:05, 2 March 2015 (UTC)
::::Some old edits have appeared in the updated search, and some haven't. [https://en.wikipedia.org/w/index.php?title=Money_in_the_Bank_ladder_match&diff=649370234&oldid=649338151 The real one mentioned above at 12.37] hasn't, but the one I should have posted at [https://en.wikipedia.org/w/index.php?title=%C3%81d%C3%A1m_Szab%C3%B3_(singer)&diff=prev&oldid=649370254 12.38] has, although neither article has been altered since. If there is a definite time period that has not updated, is it possible to give all articles edited in that time-frame a null edit to nudge the search along? - Arjayay (talk) 16:36, 2 March 2015 (UTC)
:::::Grabbed the task and will work on it now. Thanks for filing it! We have a script to handle it and I'll kick it off as soon as I find the timestamps to feed it.NEverett (WMF) (talk) 18:21, 2 March 2015 (UTC)
:I believe I've reindexed all the effected pages. I'm off to kick off this process on the other ~880 wikis! NEverett (WMF) (talk) 02:07, 3 March 2015 (UTC)
::Well, I was surprised; they actually did have a way to quickly fix it. I sampled updates from yesterday to see what was reindexed, and they seem to have caught them all. This turned out better than I expected, and I have more faith in the CirrusSearch group than I did before. Thanks for resolving this. Chris the speller yack 02:56, 3 March 2015 (UTC)
Question about italicizing
I came upon the article Vytautas Mažiulis and noticed that italics in the biography section are not displaying properly. The organization name "Milanese Linguistics Society" is not entirely italicized, however the country and phrase that follows it is italicized for some reason. The code looks correct. Is there something that I'm missing here? How can these italics be fixed? Mamyles (talk) 16:15, 2 March 2015 (UTC)
:It's because there was an artificial linebreak after "Milanese". I've fixed it (although those organization names probably shouldn't be italicized anyway per MOS:ITAL). Regards, Orange Suede Sofa (talk) 16:21, 2 March 2015 (UTC)
::Looks better, thanks. That also clears up why my browser wasn't displaying a space after "Milanese" in the edit window.
::I was just bothered by this issue while reading and do not care if the italics are there or not. Feel free to remove if you think they are inappropriate. Mamyles (talk) 16:33, 2 March 2015 (UTC)
Fixing bulleted list inside an unbulleted list
This is basically a repost of MediaWiki talk:Common.css#Fixing bulleted list inside an unbulleted list to get some more attention.
When using {{tl|bulleted list}} inside {{tl|unbulleted list}}, it doesn't work because {{t|unbulleted list}} adds a class to the outer list without a means to revert that inheritance in inner lists. To make stuff less complicated, I propose to make the styles of unbulleted list apply strictly to the direct children of the outer list, so as to prevent the inner lists from inheriting the styles.
Example:
{{unbulleted list
| This
| {{bulleted list|E|F}}
}}
{{unbulleted list
| This
| {{bulleted list|E|F}}
}}
Timothy G. from CA (talk) 03:50, 3 March 2015 (UTC)
:Commented there. -- User:Edokter]] {{talk}}
09:46, 3 March 2015 (UTC)
Orphan tags not showing up
There is something wrong with :Template:Orphan, looking at the edit summary this edit: [https://en.wikipedia.org/w/index.php?title=Template:Orphan&diff=601643230&oldid=595492990] hid the cleanup tag and as a result the tag has disappeared from 99 of our [https://tools.wmflabs.org/bambots/cwb/bycat/Anime_and_manga.html#Orphaned articles]. Is there a fix fir this? - Knowledgekid87 (talk) 04:53, 3 March 2015 (UTC)
:{{ping|Knowledgekid87}} Please see Template:Orphan#Visibility, which explains that the template is only visible for the current & previous month (e.g. not visible on A Gentleman's Kiss), but is always visible within {{tl|multiple issues}} (e.g. visible on AUKcon). The articles are still categorized and still on your report. The template instructions also contains a fix that might interest you. Good luck! GoingBatty (talk) 05:49, 3 March 2015 (UTC)
subst not substituting
What am I messing up [https://en.wikipedia.org/w/index.php?title=Stortorget&diff=649667811&oldid=644999090 here]? Martijn Hoekstra (talk) 10:19, 3 March 2015 (UTC)
:Substing does not work inside {{tag|ref|o}} or other parser tags. -- User:Edokter]] {{talk}}
10:25, 3 March 2015 (UTC)
::Thanks! Live and learn. Martijn Hoekstra (talk) 10:28, 3 March 2015 (UTC)
Wikidata problem
I have added a new property to an existing item – P527 (name = 'has part', value = barangay) to (Q316370) :Santa Fe, Cebu, then added qualifer P1114 (name = 'quantity', value = 10).
When I try to retrieve, using {{nowrap|
Lua error in Module:Wikidata at line 168: invalid value (table) at index 1 in table for 'concat'.
Is it me or ...?
NB I have successfully used getting qualifier values before, e.g. {{tl|Population census prose}}
--Unbuttered parsnip (talk) mytime= Sun 16:35, wikitime= 08:35, 1 March 2015 (UTC)
:I don't know Lua and know very little Wikidata so I could be wrong but it looks to me like getRawQualifierValue in Module:Wikidata cannot handle qualifiers with data type Quantity such as wikidata:Property:P1114. {{tl|Population census prose}} uses getRawQualifierValue for wikidata:Property:P459 which has data type Item. PrimeHunter (talk) 15:58, 1 March 2015 (UTC)
::Well it allowed me to add the qualifier to the property, so it's a surprise it doesn't work (not really, this is wikidata we're talking). I'll take my problem over to the wikidata village pump (T) , if there is one. Unbuttered parsnip (talk) mytime= Mon 07:38, wikitime= 23:38, 1 March 2015 (UTC)
:::I suspect the problem is in Module:Wikidata and have posted to Module talk:Wikidata. PrimeHunter (talk) 23:42, 1 March 2015 (UTC)
:::: I think that my naming the Wikipedia Lua module "Wikidata" may be causing confusion. Whatever happens on Wikidata won't guarantee that the Lua module (which is intended to import data from Wikidata to Wikipedia in a flexible way) will always work. The problem occurs because the module was written before numeric data types existed on Wikidata. Line 168 takes a table of all of the values for that qualifier and concatenates them together with a comma+space separator assuming that the value is a string. As I understand it, you can't concatenate numbers like that, using the table.concat() method, unfortunately. I think I can solve the problem by ensuring that the wikitext gets a string representation of the number but I'll need to do some testing before I can be sure. --RexxS (talk) 00:03, 2 March 2015 (UTC)
:::::Thanks for looking into it. Oddly, the revision time for my above edit [//en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical)&diff=649453550&oldid=649452640] says 23:46, four minutes after the 23:42 signature which was made with a normal four
. I sometimes see a 1-minute difference which makes sense if it takes about a second to process the edit and it was saved near a minute change with signature time and revision time recorded at different stages. I have never seen more than 1 minute. The save went through quickly. My browser history indicates it was 23:46 with an accurate clock. PrimeHunter (talk) 00:08, 2 March 2015 (UTC)
:::::: Well, it's not the problem I thought it was. It seems table.concat() does implicitly cast the numbers into strings, so the concatenation method works as it should. From the error message you give, I now suspect that the first item in the table is actually a table, not a single value. I'll go check that and see if I can fix it. --RexxS (talk) 00:24, 2 March 2015 (UTC)
:::::: Update: yes the first item is a table, so can't be concatenated with ", " as the call tries to do. --RexxS (talk) 14:40, 2 March 2015 (UTC)
{{od}}
The more I've looked at this, the more I become convinced that you can't write a generic call to fetch just the value of a given qualifier associated with a given property because of the possibility of multiple values. For example, if you look at Richard Burton (d:Q151973), he has 3 spouses (P26) listed, two of whom have qualifiers for start time (P580) and end time (P582). What should a call asking for Richard Burton's spouse's start time return? Should it return nil for Elizabeth Taylor? or 3 July 1983 for Sally Burton? or 1949 for Sybil Christopher? Of course we could have it return 1949 and 3 July 1983, but what value would they be without knowing which spouse they referred to? It would be possible to write a call that fetched e.g. the value of first given qualifier from the first given property, but that becomes vulnerable to someone adding another value for the property. How would you want to deal with the situation if Santa Fe (d:Q316370) had 30 sitios and someone added "has part=sitio" with a qualifier of "quantity=30"? Should getRawQualifierValue|P527|P1114 return 10 or 30? Sorry to be negative about the problem, but I can't see a general solution. --RexxS (talk) 14:40, 2 March 2015 (UTC)
:I don't understand any of this. Other properties, for instance 'population', are quite happy to have more than one different qualifier ('date' and 'method'), no problem. Other properties, e.g. 'inception' are happy to have (and return) more than one value. I cannot believe that it is not possible to return a qualifier attached to an instantiation of a property, here 'quantity' attached to 'has part'=barangay. Time to bin it all and start again in SQL, or anything proprietary and proven.-- Unbuttered parsnip (talk) mytime= Mon 23:30, wikitime= 15:30, 2 March 2015 (UTC)
:Maybe a discussion is needed about what to do with multiple values (an error message and tracking category if the caller didn't specify which value was wanted?), but can it be coded to at least give the value when there is only one? PrimeHunter (talk) 16:03, 2 March 2015 (UTC)
::There is no way of specifying which qualifier you want if more than one - you just get them all. But qualifier should be attached to property value, not to property name as implied here. Unbuttered parsnip (talk) mytime= Tue 00:24, wikitime= 16:24, 2 March 2015 (UTC)
::: Yes, code can be written to return a given qualifier's value if there is only one qualifier present among all the statements connected with a given property. But how would you want it to behave in Wikipedia if somebody added another qualifier in Wikidata? Should it disappear because it's no longer a unique value? or are you willing to risk the value of the second qualifier now appearing in the Wikipedia article instead of the value of the previously unique qualifier?
::: Qualifiers are definitely attached to a particular name-value pair. So in the case of Richard Burton, the property named "spouse" with the value "Sybil Christopher" has attached to it a qualifier called "start date" with the value '1949'. But again how does that help you if you want a call that returns just the qualifier value? because you don't know the value "Sybil Christopher" when you make the call. On the other hand, if you want a call that returns a list of the all values of a given property along with a list of the values of a given qualifier when present, then that's possible as it could look like this for Richard Burton / property='spouse' / qualifier='start date' :
:::* Elizabeth Taylor; Sally Burton, 3 July 1983; Sybil Christopher, 1949; (note that the two dates for Elizabeth Taylor's two marriages to Burton could be added at any time)
::: But that's different from the problem outlined by Unbuttered Parsnip. --RexxS (talk) 22:56, 2 March 2015 (UTC)
::::It already returns more than one value for a qualifier, as in 'inception' or 'demonym'. I don't see the point in providing a massive database which can't be interrogated. If it is possible to add a value to a qualifier of a property, then it has to be possible to read it back too. As regards particular case, I can't make any sense of the notion that a qualifier could have more than one 'quantity' value. In the general case, I think one would want the latest. So for population ordinarily you'd want the latest (current) census, not one from 10 years ago. Exceptionally you might want all of them. Because data-sort is not a parser function, it would be incumbent on WD to return a sorted list. -- Unbuttered parsnip (talk) mytime= Tue 10:52, wikitime= 02:52, 3 March 2015 (UTC)
::::: (1) The database can be interrogated. (2) It is possible to read the data back, but if there are multiple values meeting the search criteria, you have to specify what you want read back. (3) There is no reason whatsoever why a property can't have multiple instances of the same qualifier. I already gave you the example of Richard Burton marrying his second wife twice, so the start date of the marriage would appear as a qualifier twice with two different values: 1964 and 1975. If you call for the start date of Richard Burton's marriage to Elizabeth Taylor, which qualifier value would you want returned? (3) The "latest" doesn't make sense in general for all qualifier values which could be numbers or text as well as dates. (4) Yes, sometimes you want just one qualifier value from amongst several - and there's no means of specifying which one - and sometimes you want all of them, but writing a generic module that copes with any Wikidata item won't do what you want. (5) At present there is no call to the mw.wikibase API that returns sorted tables, but sorting can be done in the Lua module, so parser functions are irrelevant. --RexxS (talk) 03:59, 4 March 2015 (UTC)
::::::Reads like a snow job to me. I don't know how the database can be interrogated, because the only module we've been given doesn't seem to work. In particular, it doesn't allow specification of which occurrence of the property, nor of which occurrence of any qualifier. Your reply implies that the qualifiers for different instantiations of a property are jumbled together, and it's pot-luck which gets returned. Sad if true. I didn't specify every qualifier, I was restricting myself to 'quantity'. If a property has a qualifier of 'quantity' then I'd be very surprised if there could be more than one associated value. That's tantamount to saying that the value of the qualifier contains every known number. I can't imagine anyone would update a raw value by adding another instantiation of the qualifier rather than just changing the value, since there is no way of differentiation. As I said, other properties, e.g. 'inception', allow multiple copies of qualifier (a date) and return them without breaking.
Regarding Burton–Taylor, it seems incorrect to have only one wedding tuple with more than one date set, when they married twice – correct form would be one tuple for each marriage with not more than one date set each. -- Unbuttered parsnip (talk) mytime= Wed 12:49, wikitime= 04:49, 4 March 2015 (UTC)
::::::: If you want me to write more modules for specific purposes, then please feel free to ask, but please understand that these modules are created by volunteers like you and me and there's no entitlement for anyone to be "given" anything. When I wrote the Wikidata module, it only fetched property values because qualifiers were still in development. Since then, others have added calls to fetch qualifiers which - as I've pointed out - can't cover every case, although I'm pleased they work in some circumstances. To fetch a property, it is sufficient to scan though all of the values associated with that property and return them as some form of list (or a single value or nil). If you try to fetch the value(s) of a given qualifier associated with a property, then when you create a list consisting of just the qualifier values you won't know which property value they belong to, should there be multiple values for the property. Re Burton–Taylor, there's nothing "incorrect" about organising the spouse data as a single property value with multiple qualifiers - in fact that's exactly what you need if you want to populate an infobox with the names of Burton's wives. Wikidata allows editors some freedom to organise the data entered in the way that they choose, and the challenge for anyone seeking to import that data into Wikipedia is to cater for all possible cases. --RexxS (talk) 13:30, 4 March 2015 (UTC)
How long does it take for a session timeout?
I've been experiencing trouble with a bot I'm running in Javascript that signs in as a user and does a lot of stuff that takes ~3-4 hours to finish before finally editing some pages with the results. At the end I'm getting a badtoken error for the edits (which I hadn't gotten until recently, actually.. did something change?), so my only guess is that it takes so long the bot is being automatically logged out before it has time to finish. I am going to try one more time with the "keep me logged in" button selected, but just for information's sake, does anyone know the time limit for a session? Is there any way for a user to modify that setting for him/herself? Has that default value changed recently, i.e. in the last few weeks? Thanks!--Dudemanfellabra (talk) 01:19, 3 March 2015 (UTC)
:Ok I ran the code again and got the same error, even with the "keep me logged in" button selected, so now I'm stumped. Just to check to make sure I wasn't being logged out after the run, I visited another page after the error and sure enough was still logged in, so that doesn't seem to be the problem.
:The code is set up so that it can be run by two accounts--the bot one (User:NationalRegisterBot) and this one, my personal one (for situations like this, mostly). While signed into my personal account, I just tried to run a smaller section of the code that only takes about 10 minutes to run instead of 3-4 hours but which relies on the same routine (literally the exact same JavaScript function) to edit pages, and it worked, successfully editing the page it was supposed to. This led me to believe that maybe there was just something wrong with fetching a token for the bot account, so I tried running the same function that worked on my personal account while signed in with my bot account, expecting it to fail, but much to my surprise, it worked!
:Again, the piece of code that worked and the original 3-4 hour piece of code both rely on the same routine to edit pages at the end... the only difference between the two as far as practice goes is the time it takes for the two functions to run. It seems that since the 3-4 hour code takes so long to run, something freaks out with the edit token, causing it to be invalid. To figure out if that was the case--maybe the edit token had expired or something--I made the code fetch the edit token at the beginning of the run and then again at the end of the run so I could compare the two and got the same output for both (42163ed75d03ff490b30c96e9d59716a54f5440f+\, if that's relevant). Because they were the same, it doesn't appear to me that the token expires over the course of execution, so I'm really stumped. How can a function work in one instance and not in another?
:All of this started about 2-3 weeks ago, so I suspect something has changed in the API or somewhere else, but I haven't been able to find any information about that. Does anyone know why I might be encountering the error I'm describing?--Dudemanfellabra (talk) 08:59, 3 March 2015 (UTC)
:: The test fetching the edit token at the beginning and end of the run should certainly have not given you the same token each time; even fetching two tokens one second apart should give you two different tokens (but both valid) since the end of October. Since you got the same token hours apart, whatever you're using to fetch the tokens is apparently caching them rather than fetching a new one the second time.
:: Ideally, your bot should be able to attempt the edit, and if it gets a badtoken error it should automatically fetch a fresh token and retry the edit.
:: As for the time it takes, the configuration is currently using the default of 1 hour for $wgObjectCacheSessionExpiry. I don't see any recent changes to the timeout, but I do see there was this recent change to session handling that probably made page views no longer reset the session timer. Anomie⚔ 13:05, 3 March 2015 (UTC)
If I were you, i'd rewrite the bot to make use of [https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.Api.plugin.edit mediawiki.api.edit] module and friends, which do automatic token (re)fetching, uses promises etc and detects api errors. Examples of its usage can be found [https://www.mediawiki.org/wiki/API:Edit#Editing_via_Ajax here]. And make sure to add proper logging in the fails of the request, so that you KNOW what is failing instead of having to guess. —TheDJ (talk • contribs) 13:54, 3 March 2015 (UTC)
:I see you are using mw.user.tokens and not checking for bad-token failures. That is probably why it is failing. These tokens are valid 'pre generated' tokens, but your script is supposed to be able to fetch a fresh token if your request fails with bad-token for whatever reason. mw.Api knows about these constraints and applies or recovers from them as required. —TheDJ (talk • contribs) 14:06, 3 March 2015 (UTC)
::Thanks everyone for the responses. Modifying the code to use mw.Api makes everything work. I was not aware that mw.user.tokens generates a token at pageload, not at the time of execution. In fact, I misunderstood the idea of a token all together. Either way, I have everything working now, so mission accomplished! Thanks again!--Dudemanfellabra (talk) 09:25, 4 March 2015 (UTC)
:::{{replyto|Dudemanfellabra}} you will want to wrap any usage of mw.Api with mw.loader.using( 'mediawiki.api.edit' ).done( function() { usage here } )
, to guarantee that the edit module is loaded on demand if nothing else on the page has loaded the module yet. Developing user scripts with resource loader modules—TheDJ (talk • contribs) 10:26, 4 March 2015 (UTC)
Does Wikipedia collect statistics on the up-times and response-times of its servers?
At times, I have been unable get a page from Wikipedia, and it appears that the servers are either down or temporarily overloaded. When this happens, I do not know if the problem is with my computer, the network, or Wikipedia. I usually diagnose the problem by trying other web sites, but the really does not tell me if anything was wrong with Wikipedia.
My email provider gives me a link to pingdom, where I can easily tell if the email servers were down. Does Wikipedia keep track of down-times, response times, or server loads? Where should I look?
If I had a graph of Wikipedia response-times, I could plan on using Wikipedia when it was lightly loaded.
Thanks.
Comfr (talk) 04:32, 3 March 2015 (UTC)
:Lots of data is available at http://gdash.wikimedia.org/ - there is no one graph of some "response-times" though... --Malyacko (talk) 08:32, 3 March 2015 (UTC)
:There is some information on [http://status.wikimedia.org status.wikimedia.org], eg. the response times for [http://status.wikimedia.org/8777/169667/https-services---wikipedia HTTPS wikipedia]. --Sitic (talk) 22:13, 3 March 2015 (UTC)
Linking from medal icons
Hello.
I was trying to make the medal templates to link to an optional target by adding
For an example, check the Brittany Bowe article, section "Results overview", where I've linked the gold medal icon in the last row, left-most column, to an article, and it works, but the other gold medal icons in the same row link to the icon itself. I don't want that, and why does this occurs when the link parameter supplied is empty?
HandsomeFella (talk) 14:42, 3 March 2015 (UTC)
:This is result, that you wanted? See my edit. --Edgars2007 (talk/contribs) 15:26, 3 March 2015 (UTC)
::Yes, it is. But the parameter is empty by default, so why does one have to add that code to avoid linking to the medal icon? HandsomeFella (talk) 15:50, 3 March 2015 (UTC)
::I see now that I had missed that pipe character. Thanks. HandsomeFella (talk) 17:21, 3 March 2015 (UTC)
Popups not working
...starting late last week on several different Mac running various fairly-new and fairly-old firefox versions. I've tried disabling the gadget (hovering on a wikilink gives me a yellow box with just the target name) then re-enabling it gadget (reverts back to nothing appearing while hovering on a wikilink) and cache purge/refresh. Same on commons as well as enwp. On a Mac where firefox has not accessed WP in a long time if at all, popups do work. So it seems like "something at some level" has changed to be incompatible with "something else", but I don't know how to diagnose further what/where. DMacks (talk) 04:08, 1 March 2015 (UTC)
:It works for me with Firefox in Windows Vista. Does it work if you log out and click https://en.wikipedia.org/w/index.php?title=Example&withJS=MediaWiki:Gadget-popups.js&withCSS=MediaWiki:Gadget-navpop.css? That also works for me. PrimeHunter (talk) 04:25, 1 March 2015 (UTC)
:Popups works for me on OSX 10.9.5, Firefox 35. Keegan (talk) 05:42, 1 March 2015 (UTC)
:Updated to FF 35.0.1edit: and 36.0 to be sure, and popups are still fine. Keegan (talk) 05:44, 1 March 2015 (UTC)
:Removed AdBlock (it hadn't been a problem before, but may as well rule it out), also tried [https://en.wikipedia.org/w/index.php?title=User:DMacks/common.js&diff=649358087&oldid=615171467 manually importing it in my common.js], still nothing. DMacks (talk) 10:22, 1 March 2015 (UTC)
::It's working for me, although I had a weird problem with a popup appearing (after accidentally hovering over an article title) and then refusing to go away a few days ago. What OS are you running? Whatamidoing (WMF) (talk) 19:58, 4 March 2015 (UTC)
Input
When did we get Smurf buttons for {{xtag|inputbox}}? See Wikipedia:Editnotice#Creating editnotices. -- Gadget850 talk 21:43, 1 March 2015 (UTC)
: Hi. This is the "mw-ui-button" CSS class. It was added to InputBox here:
::{{ping|MZMcBride}} But, what are the CSS specifics of class="mw-ui-button"
? The reason I ask is that that class does not yet exist over at Wikia. Therefore, I need to add the class details locally to MediaWiki:Common.css. Unfortunately, I could not discern the simple CSS setup from those phabricator pages.{{smiley|blush}} Thanks!{{smiley}} — SpikeToronto 18:57, 3 March 2015 (UTC)
::: Hi SpikeToronto. Newer versions of MediaWiki use Less for Cascading Style Sheets. The relevant code for ".mw-ui-button" is here:
::::{{ping|MZMcBride}} Thanks!!{{smiley}} — SpikeToronto 20:29, 4 March 2015 (UTC)
Table-end templates
We have a vast number of templates for ending tables, whose content is
.
I propose that we redirect them to {{tl|End}}, which has the same content, and replace instances with
, where "Foo" is the name of the template which starts the table, as in {{diff|List of public art in Birmingham|649725781|649291101|this edit}}.
Eventually, a bot could do substitution for us. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:10, 3 March 2015 (UTC)
- support -- Gadget850 talk 20:06, 3 March 2015 (UTC)
- (ec) Redirecting is fine, but replacing the templates with {end|...} isn't very usefull; it does somewhat confuse the otherwise obvious pairing of templates.
-- User:Edokter]] {{talk}}
20:08, 3 March 2015 (UTC) - Actually it makes it clearer in some instances. In Andy's example, the pair is {{tl|public art table}}/{{tl|public art footer}}. And many templates simply use {{tl|end}}. -- Gadget850 talk 20:14, 3 March 2015 (UTC)
- The end template in that case would be would be
- easily matched to the start of the table. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 22:52, 3 March 2015 (UTC){{End|Pubic art table}} - "Pubic art table" is a funny typo. So the very example of the proposed system is already wrong, losing the ability to find the end by searching the source for "public art", and making it impossible for {{tl|End}} to detect the parameter if we want that later. PrimeHunter (talk) 13:24, 4 March 2015 (UTC)
- Oppose. The templates are from pairs like {{tl|Public art header}} and {{tl|Public art footer}}. The current system gives us the ability to easily change implementation of the pair, for example if something is added to the bottom or it's no longer a table. Your suggestion
could in theory change implementation by testing the parameter value in {{tl|End}} and do something different for{{End|Public art table}} Public art table
, but it requires that users always remember the parameter and always give it the exact same value. The parameter is ignored by {{tl|End}} so users will see no difference if they omit or misstype it. And {{tl|End}} is fully protected for good reasons but it means most editors would need help to change implementation of low-use cases like the currently unprotected {{tl|Public art footer}}. We would also lose the ability to use Special:WhatLinksHere/Template:Public art footer, for example to compare it with Special:WhatLinksHere/Template:Public art header. Pairs like
and{{Public art header}}
are also easier to spot in wikitext, especially when they start the line. I see no significant advantages of the proposed system. It would make it easier to fix if wikitext suddenly stopped accepting{{Public art footer}} |}
as code for table end but that seems highly unlikely. PrimeHunter (talk) 20:26, 3 March 2015 (UTC) - You appear to be considering improbable hypothetical scenarios, such as "[if] it's no longer a table" and "testing the parameter value in {{tl|End}}". Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 22:52, 3 March 2015 (UTC)
- Eh yeah of course those are hypothetical. Wasn't he just saying that that was the whole point ? To keep that option open ? Such changes have happened in the past. Switches between divs and table structures have been quite common, and I don't think we have seen the last of them yet. I advise against substitution. Redirects could be possible, but might lead to people using the target instead. Indirect transclusion seem appropriate, but will wast more resources. —TheDJ (talk • contribs) 00:27, 4 March 2015 (UTC)
- The proposal looks like a solution looking for a problem. If there is no problem to solve then there is no reason to destroy the current flexibility and create potential problems. Who knows whether {{tl|Col-end}} will always have a table end? If we replace uses by {{tl|end}} then maybe it will, because we have made it very hard to change it. It currently says
(newlines omitted in code display here), so I guess the current version would actually be excluded from the proposal. Lots of end templates are not an isolated table end or may not be so in the future. {{tl|Multicol-end}} is|}