# Wikipedia:Village pump (technical)/Archive 78

## "You have new messages (last change)." reappears after a short delay

Something is wrong with the new messages functionality for me. Maybe 30 minutes ago I started getting these notices when there were no new messages. Sometimes there's a short delay before the message stops appearing after I've checked my messages. Once it goes away, it reappears withing a few minutes. --Ronz (talk) 19:06, 2 July 2010 (UTC)

I'm getting this too. And here I thought I was just really popular. --Bongwarrior (talk) 19:11, 2 July 2010 (UTC)
This happens when the server lags. Gary King (talk · scripts) 19:35, 2 July 2010 (UTC)

## Extreme server lag

I'm getting indications that articles I've been editing don't even exist, and that people I send Talk messages to are not even registered. Server lag? Everard Proudfoot (talk) 22:43, 2 July 2010 (UTC)

When I go to Recent changes, it keeps showing the same Recent changes from about half an hour ago. I have to purge my cache to see the new changes, but even then, if I go back to the Recent changes, it shows the old version yet again. Everard Proudfoot (talk) 22:45, 2 July 2010 (UTC)
I am getting the same thing. I am in the UK, if that makes any difference. The behaviour is almost random. Sometimes recently created/deleted stuff exists, sometimes it seemingly doesn't. Even history and log pages are affected. I have to keep hitting reload several times until I see what I expect. I am trying to do some new page patrol and both Twinkle and Friendly are getting very confused and messing things up when I use them. It is confusing me too. This is the first time I have ever come across anything like this. It needs to be flagged up as a serious problem.
My theory is that there are multiple cache servers and some of them are lagging and some are not. Hence it is more or less random which cache server you get served from and hence random whether you see recent data or not. The lagging servers do not show the usual red warning about the data being old. --DanielRigal (talk) 22:56, 2 July 2010 (UTC)

It looks like this needs to be exposed publicly, because I see lots of people blanking pages. Everard Proudfoot (talk) 23:17, 2 July 2010 (UTC)

Yeah, something really weird is going on with page histories. ctr-f5 helps sometimes, sometimes not. It never happened to me before, but I thought it was a cache issue on my end, but it doesn't appear to be. --Omarcheeseboro (talk) 23:19, 2 July 2010 (UTC)
If it is affecting people in different countries then it isn't some ISP running a broken transparent proxy. I think it can only be the Wikipedia infrastructure. --DanielRigal (talk) 23:23, 2 July 2010 (UTC)

Every time I go to Recent changes, I still get the page as of 22:10. I have to clear cache every time, sometimes twice. Everard Proudfoot (talk) 23:25, 2 July 2010 (UTC)

Well, I was patrolling Recent Changes (in Canada), and Gavriil Malish is viewable half the time. Sometimes, it's visible, sometimes, it says the page does not exist. The history page does not exist, yet it show up on my watchlist. 23:54, 2 July 2010 (UTC) Add Refreshing helps, but that link I provided above is switching from blue to red, and it obviously hasn't been deleted... 23:55, 2 July 2010 (UTC)
Does anybody know if this is being looked into? It is causing lots of screwups and making some editing tasks close to impossible! --DanielRigal (talk) 00:23, 3 July 2010 (UTC)
I think your theory makes sense Daniel; I was looking through special:logs/newusers, and when I first got there, it showed me users who had registered 2 minutes ago, then I refreshed and it showed my users who had registered 2 hours agp. I have no idea if anyone is looking into it. 00:25, 3 July 2010 (UTC)
Yes, it is being looked into. With the amount of users Wikipedia has, it takes about three seconds for someone to complain about server lag to the server admins. --Deskana (talk) 00:25, 3 July 2010 (UTC)

It appears to be an issue with one of the database servers only (db40). I've alerted our sysadmins to this and it should be sorted out soon.--Eloquence* 00:25, 3 July 2010 (UTC)

The issue should be resolved.--Eloquence* 00:44, 3 July 2010 (UTC)
Appears to be ok now. 00:48, 3 July 2010 (UTC)
Yes, It seems to be. Responsiveness has also improved significantly. Maybe everybody has stopped pressing F5 every couple of seconds. ;-) Thanks. --DanielRigal (talk) 00:49, 3 July 2010 (UTC)
Thanks, Eloquence. Everard Proudfoot (talk) 01:34, 3 July 2010 (UTC)
I'm still having problems. After saving an edit the page is not updated. Using purge doesn't work. Saving the page again doesn't work. I was working on User:Droll/subpages/testcases.  –droll [chat] 03:22, 3 July 2010 (UTC)

False alarm. My bad.  –droll [chat] 03:25, 3 July 2010 (UTC)

## New messages bar spazzing

I'm getting the new messages bar really frequently even after I check the message. Its been about and hour since the real new message appeared. Derild4921 23:26, 2 July 2010 (UTC)

Wait for it to fix itself. --Deskana (talk) 23:30, 2 July 2010 (UTC)

This gadget is apparently redundant since there's an "edit area font style" option in preferences. vvvt 00:32, 3 July 2010 (UTC)

If an edit conflict happens, the lower textbox shown is a textarea but it is not #wpTextbox1. The "edit area font style" affects only the main text box; the Gadget affects all textareas. The same is true for scripts such as Twinkle and closeAFD. So the two are not 100% redundant. PleaseStand (talk) 02:26, 3 July 2010 (UTC)

## #tag

So it seems that there is a function named #tag somewhere. It's used in {{nowiki}} and in several other templates I've looked at. Does any one know if it's documented anywhere. I would expect it to be at MediaWiki somewhere but I can't find it. The syntax seems to be {{#tag: (tag name) | (string) }} —Preceding unsigned comment added by Droll (talkcontribs) 02:24, 3 July 2010 (UTC)

It is documented at Help:Magic words, fourth from the top. In essence, it allows a tag to be used (such as nowiki or imagemap) without the HTML opening and closing < >. Intelligentsock 02:30, 3 July 2010 (UTC)
Thanks! I guess I just looked in all the wrong places. –droll [chat] 02:34, 3 July 2010 (UTC)
(edit conflict)mw:Help:Magic words#Miscellaneous. It is most commonly used when you want the parser to expand template parameters before applying the tag's effect (especially nowiki's). For example, {{nowiki}} uses {{#tag:nowiki|{{{1}}}}} to accept a parameter and then nowiki it (producing code such as <nowiki>http://ezinearticles.com/</nowiki> instead of <nowiki>{{{1}}}</nowiki> from the parameter http://ezinearticles.com/). PleaseStand (talk) 02:39, 3 July 2010 (UTC)

## Template for colors

I'm looking for a template to easily equip a template with hex no.s such as in Template:Infobox military unit. Where do I find it? E.g. {{hexcol|#######|########}}. --217.189.229.123 (talk) 23:36, 2 July 2010 (UTC)

I am not sure what you are trying to accomplish. Can you clarify what such a template would do? Intelligentsock 23:51, 2 July 2010 (UTC)
I want to put a template to the parameter "colors=HERE" in the Template:Infobox military unit (inclusion of course). The desired template (I have seen it but I forgot it) displays one or two colors by inserting the hex code. --217.189.229.123 (talk) 23:59, 2 July 2010 (UTC)
It's {{Color box}}, example {{color box|blue}} {{color box|yellow}} gives           and <code>{{color box|blue}} {{color box|yellow}}<code> gives          . --Scriberius (talk) 11:08, 3 July 2010 (UTC)

## OGG/OGV Buttons Blank on Mac Firefox

I hope I'm not reposting this question.. When I access an OGG or OGV file with Firefox on my Mac, the buttons are blank -- see this image, taken from this article. It doesn't happen with Safari; that player is sleek and works fine. Perhaps there is something I need to adjust on my browser? I expect other users are having this problem, too. Cheers! Scartol • Tok 12:55, 3 July 2010 (UTC)

## Wikipedia Waiting Time

I raised this issue in mid-June. The problem persists. It happens whether I'm logged in or not logged in. It seems to get worse the more I use WP in a given session, but that could be coincidental. When I click on something, Firefox 3.6.6 gives me a "waiting for . . ." message in the status bar. It can sometimes take 20-40 seconds to come back. Other times, no wait at all. If there is an excessive wait and I click on the link again, I usually get an instantaneous response. On some things, though, I'm reluctant to click twice because I'm not sure what effect it will have on the database, i.e., saving editing changes. My Internet download connection speed is above 10Mbps. I don't have this problem on other sites. I simply don't know what to do, but editing has become very frustrating because of it.--Bbb23 (talk) 15:38, 3 July 2010 (UTC)

Clicking save twice shouldn't cause any problems database-wise. At worst you might cause an edit conflict with yourself. Try doing a ping test to the Wikipedia servers to check for packet loss. 17:43, 3 July 2010 (UTC)
When I ping en.wikipedia.org, there is no packet loss. If there's another server you want me to try, let me know.--Bbb23 (talk) 22:24, 3 July 2010 (UTC)

## How can I stay signed in?

I followed advice I was given here when I found out my computer still had pages I had visited even though I appeared to have no history. Now, though, I seem to have to sign in everywhere, including Wikipedia. It's not that big a deal since my computer has the software which fills in passwords automatically, though without that I was unable to access one of my email accounts because of rules they have about passwords (though I still remember that crazy password for that address). I can remember the password if the password software messes up, since I use Wikipedia at libraries, but it's just annoying.Vchimpanzee · talk · contributions · 18:25, 3 July 2010 (UTC)

Try deleting cookies, that often 'resets' the need to constantly log in (of course, you'll still have to log in once). ♫ Melodia Chaconne ♫ (talk) 20:12, 3 July 2010 (UTC)

## How to feed pages such as 'My contributions' to a self-written editor?

Hi, what I'd like to do, for example, is have a little program/macro that can interface with non-editable Wikipedia pages such as 'My contributions' (or, someone else's contributions). Ideally it would read and collect (in memory or as an appendable file) a pageful of data at a time, then virtually click on 'next 100' until the end. I can write code, but I don't know how to interface with Wikipedia, or what language is required. I'm sure this is spelled out somewhere, so if you just point me to the documentation I can figure out what I might be in for. Thank you, CliffC (talk) 22:01, 3 July 2010 (UTC)

The best option would be to use the API, located (along with some documentation) at http://en.wikipedia.org/w/api.php. Several output formats are available. For example, to get your 10 newest contributions in the XML format, use the following URL: http://en.wikipedia.org/w/api.php?action=query&list=usercontribs&ucuser=CliffC&format=xml. Or you could use one of the tools or libraries that are already there. For example, AWB can get user's latest contributions and save them to a file. Svick (talk) 22:30, 3 July 2010 (UTC)
Wow.
Thank you for that very complete answer. I never thought at all about what goes on with the bots here. I looked at that documentation and got some crazy ideas. I'll dig in when I have the time and want to be frustrated/exhilarated by getting something to work. Best, CliffC (talk) 13:22, 4 July 2010 (UTC)

## Wikipedia down

Anybody care to venture as to why the insecure wikipedia is down? The secure still seems to be partially up. —Preceding unsigned comment added by 69.115.30.110 (talk) 01:44, 5 July 2010 (UTC)

The rumors are that the airconditioning in the Florida center has failed, causing the machines to shutdown. It is being worked on. —TheDJ (talkcontribs) 01:51, 5 July 2010 (UTC)
Twitter has a feed of the techlog that you can follow. —TheDJ (talkcontribs) 01:54, 5 July 2010 (UTC)
For some reason, I can get on the site, but I can't log in. --71.205.208.70 (talk) 02:15, 5 July 2010 (UTC)
en.wiki is up, but skinless (bits.wikimedia is down). 124.168.19.202 (talk) 02:18, 5 July 2010 (UTC)
Could I suggest the very professional failure page that directs you to a Google search include a link to the Twitter feed and/or another Wikipedia Status page that I seem to recall but haven't looked for this time. Mark Hurd (If I could log in) 121.45.22.104 (talk) 02:43, 5 July 2010 (UTC)
Skins are back up, but I still can't log on. —Preceding unsigned comment added by 71.205.208.70 (talk) 02:46, 5 July 2010 (UTC)
Yeah, I tried to log onto my main account and my declared sock that I use on public computers, but neither one will work; I'm running Monobook, so I guess that's the problem. I'm having to use someone else's computer to type this, since mine is set to log in automatically. 71.79.87.249 (talk) 02:48, 5 July 2010 (UTC)
Special:UserLogin login now working. — Richardguk (talk) 03:26, 5 July 2010 (UTC)
The insecure Wikipedia is now working. December21st2012Freak Happy Independence Day! 03:32, 5 July 2010 (UTC)

## WikiNews error page still refers to Meta

(I know this is the wrong place, but it is up enough to receive edits :-) )

The error page for wikinews.org still refers to Meta in its title, heading and icon. Mark Hurd 121.45.22.104 (talk) 02:49, 5 July 2010 (UTC)

I would like to know which function do we use when copying a content from a wikipage or from a textfile to a wikipage or a textfile. Thanks in advance, --Jagwar - (( talk )) 10:56, 28 June 2010 (UTC)

Can you clarify what you are trying to do? Your question is worded vaguely. — Richardguk (talk) 02:15, 29 June 2010 (UTC)
I sould like to create a program that could generate several wiki pages from a single file in TXT format. Currently, I do not know how to use the script pagefromfile.py that generates constant errors when used (I don't know how to use it and what is the syntax used to make the file readable by the program) ; I am still not familiarized with the Python language. --Jagwar - (( talk )) 10:01, 2 July 2010 (UTC)
This probably isn't the right place to ask. But there is some information and an example at meta:Pywikipediabot/pagefromfile.py and a mailing list at http://lists.wikimedia.org/pipermail/pywikipedia-l/
You'll need to have configured your general settings in user-config.py. Then it looks like the simplest settings would require a file named dict.txt with the content encoded as UTF-8 and set out like this:
{{-start-}}
'''Title of first article'''
Wikitext of first article
goes here
{{-stop-}}
{{-start-}}
'''Title of second article'''
Wikitext of second article
goes here
{{-stop-}}


Richardguk (talk) 15:03, 2 July 2010 (UTC)

Thanks you for the indication :). But I would like to know : sometimes the generators "says" :
X:/.../pagefromfile.py -start:{st} -end:{ed}
End of file.

Is it normal ? --Jagwar - (( talk )) 19:27, 2 July 2010 (UTC)
You probably need to post to http://lists.wikimedia.org/pipermail/pywikipedia-l/ for specific advice. — Richardguk (talk) 19:45, 2 July 2010 (UTC)
I'll see that. Thanks you and good continuation. --Jagwar - (( talk )) 12:20, 5 July 2010 (UTC)

## File:Information processing system (english).svg

Resolved

This might be more appropriate on Commons, but I got a positive result here the last time I had the same problem. This file was moved to Commons a few days ago, but thumbnail generation seems to be broken: is there a way to force it to be regenerated? The SVG itself looks to be okay once it's clicked through. Chris Cunningham (not at work) - talk 09:17, 30 June 2010 (UTC)

Something's broken: Error generating thumbnail Error creating thumbnail librsvg-ERROR **: _rsvg_acquire_xlink_href_resource called for external resource: " base: (null) aborting... Appending a number to the end of the URL as described at WP:Purge#For images to regenerate the thumbnail does not seem to fix the problem. And I checked the source code and there are no external links within the SVG. PleaseStand (talk) 13:19, 30 June 2010 (UTC)
I suspect the brackets in the filename are the problem. Not all characters are allowed. I've tagged the image on commons with {{rename|Information processing system English.svg}}. When an admin or filemover actions that, we'll see if that clears it up. LeadSongDog come howl! 14:39, 30 June 2010 (UTC)
Fixed by commons:User:Mormegil — it was an internal link using incorrect syntax (diff). PleaseStand (talk) 19:54, 30 June 2010 (UTC)
This file was definitely problematic. It had transformation matrices on groups, which caused the rendered size of text to be incorrect. An ungroup/group of all groups fixed this. PleaseStand (talk) 20:44, 30 June 2010 (UTC)

──────────────────────────────────────────────────────────────────────────────────────────────────── Hmmm. Was this caused by the upload process, or just a bug in the original file? Chris Cunningham (not at work) - talk 21:19, 30 June 2010 (UTC)

Which problem are you referring to? The one that caused rsvg to crash or the one that caused incorrect text sizing? PleaseStand (talk) 02:43, 3 July 2010 (UTC)
The former. As I say, the file had previously been uploaded here and thumbnail generation worked fine. Chris Cunningham (not at work) - talk 22:15, 5 July 2010 (UTC)
Most likely the SVG parser/renderer has become more strict since the initial upload. Since thumbnails are cached, thumbnails that already exist will never re-render and the problem will never show. When the file was uploaded to another location, all thumbnails had to be generated again, making the problem very clear. —TheDJ (talkcontribs) 22:54, 5 July 2010 (UTC)

## Image height?

I'm hoping there is a way to discover the height of an image assuming that the name of the image file and the width are known. I realize this not likely but I thought I'd ask anyway. It would be useful in a template I've been working on. –droll [chat] 04:53, 1 July 2010 (UTC)

P.S. So all I need to know is the aspect ratio. –droll [chat] 12:24, 1 July 2010 (UTC)
I don't think you can do that. Won't one of the alternative ways to specify image size (xHeightpx or WidthxHeightpx) help you? Svick (talk) 12:31, 1 July 2010 (UTC)
Perhaps {{panorama}} might be of help? ---— Gadget850 (Ed) talk 13:04, 1 July 2010 (UTC)
And you can of course always query the api, but not from a template, which is what I suspect you are after. —TheDJ (talkcontribs) 13:51, 1 July 2010 (UTC)
• TheDJ is right. {{Site plan}}, a.k.a {{Lageplan}} with the name transliterated, needs to know the height. I'm not sure how useful the template really is. It's like {{Superimpose}} but uses percentage coordinates instead of pixel coordinates. If the could be determined in the template it would be a good alternative for non-techies. Firebug and similar tools provide pixel detentions and the aspect ratio can be computed or the editor could just download an image, inspect the image properties and do a little math. These methods are not exactly user friendly.

P.S. The template could use a better name. –droll [chat] 02:05, 3 July 2010 (UTC)

The MediaFunctions extension provides magic words for this (#mediaheight and #mediawidth) but is not currently installed on English Wikipedia. So the information cannot be obtained by templates on this wiki. — Richardguk (talk) 06:30, 3 July 2010 (UTC)
Thanks for the information. It's good to know it's out of my control.  –droll [chat] 07:45, 5 July 2010 (UTC)

## Link doesn't work right

Maybe this is a strange way to do it, but I put links to web pages I want to go to in emails to myself so I can do it from any computer.

There was a link to [1]--at least that's what is visible in the email. [2] is what came up.

Likewise, [3] appears in the email, but clicking on it produces [4]. You'll probably send me to the Computing Reference Desk since it's not likely a Wikipedia problem, but I don't see how something like this could happen.Vchimpanzee · talk · contributions · 17:44, 1 July 2010 (UTC)

Is it an HTML format email? If so, its likely the actual HREF tag is wrong, while the text is showing what you really wanted. Do a view source. -- AnmaFinotera (talk · contribs) 18:20, 1 July 2010 (UTC)
I don't have a "View Source" button.Vchimpanzee · talk · contributions · 18:43, 1 July 2010 (UTC)
Email me if you want to establish a link outside of Wikipedia mail, then you can forward your problem to me when I respond. (Yes, that will unveil your email address) I'm suspecting "operator error" as the first port of call, but it's hard to say without the raw text. "View Source" would probably only work for web-based email clients, but a host-based client should allow you to save a message with the headers and MIME-encoding intact. For instance Outlook Express lets you save a .eml file which has all the good stuff. Franamax (talk) 20:38, 1 July 2010 (UTC)
All I've ever done is type or click (or copy and paste) on the address of the web site for the email service.Vchimpanzee · talk · contributions · 20:41, 1 July 2010 (UTC)
OK, so it sounds like you do use a web-based email client. Then you should be able to somehow or other view the HTML source of the page to see what is happening behind the scenes. Generally when I encounter a client who has a problem and I recommend a diagnostic procedure which they decide not to follow, I close the ticket as a PEBCAK, no offense meant. You could try pasting the copied link into your browser address bar to be sure you harvested the link you wanted. Franamax (talk) 22:19, 1 July 2010 (UTC)

"Somehow or other" doesn't answer the question. It doesn't seem to provide me with a way to "View Source".Vchimpanzee · talk · contributions · 22:28, 1 July 2010 (UTC)

What it sounds like to me is that instead of copying the existing source of the page when you're mailing it, you're actually sending a pointer to the current page. But without further details (what "email service" you're talking about, or the actual page source) it's difficult to be sure. To view the page source, click on View -> Page Source in your browser's menu bar. Chris Cunningham (not at work) - talk 08:46, 2 July 2010 (UTC)
Okay, we're getting closer. I don't see anything that says "View Source".Vchimpanzee · talk · contributions · 15:06, 2 July 2010 (UTC)
I figured it out. Right-click on the page, then click "View Source" ... except it doesn't seem to give me anything that's in the actual email. I recognize stuff that's displayed along with the email itself.Vchimpanzee · talk · contributions · 17:53, 2 July 2010 (UTC)
The above suggestion is, in effect, that your email is displaying the HTML equivalent of a piped link, <a href = "http://www.example.com/the_old_version" >http://www.example.com/the_new_version</a> (which in Wikitext is equivalent to http://www.example.com/the_new_version or loosely equivalent to a misleading piped link like [[the_old_version|the_new_version]]). So just delete the old stuff and paste the URL in from plain text afresh, to ensure that you are not inadvertently pasting in hidden code. (If you are copying from HTML, such as your web browser, and don't know how to make sure it is only plain text when you paste it in, first paste it into a plain text editor such as Notepad, then copy it from Notepad and paste into your email textarea.) — Richardguk (talk) 18:17, 2 July 2010 (UTC)
I can copy it here in the box I am typing in right now. The links probably won't be links I can click on, though.Vchimpanzee · talk · contributions · 18:27, 2 July 2010 (UTC)
Oh, wait, I can click on them. And they work. It's the OTHER email address that's the problem because I have to send the links BACK, and I can't click on plain text emails FROM that address. How this email ended up not being plain text, I have no idea.Vchimpanzee · talk · contributions · 18:27, 2 July 2010 (UTC)

For the umpteenth time - this is not your personal computer help desk. This is for discussing technical issues regarding English Wikipedia. OrangeDog (τ • ε) 13:03, 5 July 2010 (UTC)

## Secure problems

I notice that https://secure.wikimedia.org/ throws an error about containing unencrypted content in Firefox (latest update). Can this be fixed? 76.117.247.55 (talk) 05:00, 4 July 2010 (UTC)

That is because the images are served as non-secure. Peachey88 (Talk Page · Contribs) 05:06, 4 July 2010 (UTC)
There is some previous discussion here. And gives a rather ugly "fix" that blocks the images. HumphreyW (talk) 06:13, 4 July 2010 (UTC)
Currently, the Wikimedia foundation does not have the financial resources to deliver media in an encrypted manner...this is why you are getting a msg about unencrypted content.Smallman12q (talk) 12:12, 4 July 2010 (UTC)
Well not only that, it is probably more of a time and manpower issue. That could be solved with throwing money at it, but apparently it isn't that high up on the priority list. Using the financial resources to fix problems like this really requires them to be of top priority. —TheDJ (talkcontribs) 12:29, 5 July 2010 (UTC)

## mwEmbed + Twinkle = video not loading

When I enable the mwEmbed and Twinkle gadgets, videos (such as the one on today's featured article) don't load. Firefox's error console says:

Error: _this.moduleLoadQueue[moduleName] is undefined
Source File: http://prototype.wikimedia.org/mwe-gadget/mwEmbed/ResourceLoader.php?class=mwEmbed,mw.style.mwCommon,mw.EmbedPlayer,mw.style.EmbedPlayer,$j.ui,mw.PlayerControlBuilder,$j.fn.hoverIntent,$j.ui.slider,mw.PlayerSkinKskin,mw.style.PlayerSkinKskin,$j.fn.menu,mw.style.jquerymenu,mw.TimedText,mw.style.TimedText,mw.SwarmTransport,mw.EmbedPlayerNative&uselang=en&urid=r136
Line: 55


Chrome says:

ControlBuilder,$j.fn.hoverIntent,$j.ui.slider,mw.PlayerSkinKskin,mw.style.PlayerSkinKskin,\$j.fn.menu,mw.style.jquerymenu,mw.TimedText,mw.style.TimedText,mw.SwarmTransport&uselang=en&urid=r136:55Uncaught TypeError: Cannot set property 'loaded' of undefined


Without Twinkle, mwEmbed works. -- Nx / talk 13:42, 5 July 2010 (UTC)

Probably clashing global variables or something. I'll ask mdale to look into it, though with Wikimania arriving, it might take a while before it is fixed. —TheDJ (talkcontribs) 14:06, 5 July 2010 (UTC)
User:AzaToth/morebits.js messes with the Array type's prototype. Here are the culprits. -- Nx / talk 15:30, 5 July 2010 (UTC)
That means mwEmbed is broken! AzaToth 15:35, 5 July 2010 (UTC)
Yeah, it's trying to use an object as a php-style associative array: for(var moduleName in moduleRequestSet) -- Nx / talk 15:38, 5 July 2010 (UTC)
Don't you mean an "Array ([])" as a "Object ({})"? AzaToth 15:40, 5 July 2010 (UTC)
Array() is an object :) But yeah, Javascript's confusing for...in / foreach implementation is to blame here. -- Nx / talk 15:41, 5 July 2010 (UTC)
This was fixed in r69064, but it has not yet been deployed. —TheDJ (talkcontribs) 23:05, 5 July 2010 (UTC)

## Image not displaying, as if deleted

I noticed today that at Crucifixion and Crucifixion in the arts, the image file File:Dionysus Crucifixion.gif displays as though the file has been deleted (a red link), as it does here, and yet the file does indeed still exist at Commons commons:File:Dionysus Crucifixion.gif. I cannot find anything wrong with how the file name is entered on these pages. Am I missing something, or is there a bug? Thanks. --Tryptofish (talk) 19:01, 5 July 2010 (UTC)

We had the same issue for the WPVG ad, see Wikipedia talk:VG#WikiProject ad redlinked. Anomie was able to fix it with some trickery, apparently using a full url with &action=purge: http://commons.wikimedia.org/w/index.php?title=File:Dionysus_Crucifixion.gif&action=purge. I would assume this is related to the recent outage. –xenotalk 19:03, 5 July 2010 (UTC)
Thanks. I see that fixes it at this page, but not at the two articles named above. Sorry for my relative lack of technical fluency, but how do I do that purge at the Commons page? --Tryptofish (talk) 19:20, 5 July 2010 (UTC)
They just needed a purge as well. The easiest way is to enable the Gadget called UTCLiveClock which is available both here and at commons, and then click the clock that appears in the top right corner which acts as a purge link. –xenotalk 19:23, 5 July 2010 (UTC)
Thanks for both the help and the gadget advice. I've just added the gadget. --Tryptofish (talk) 19:29, 5 July 2010 (UTC)

## A bug (?)

Copied from misc page:

In my post at the talk page of WikiProject Chemistry i tried to bring to notice an issue which in my view affects every WikiProject and is thus a serious bug. Please see the post for details. I hope someone has a solution. --Siddhant (talk) 20:41, 5 July 2010 (UTC)

It is not a bug, it is normal behavior. A category is for performance reasons only really aware of it's own level and not of the pages in subcategories. —TheDJ (talkcontribs) 23:08, 5 July 2010 (UTC)

## Vector Search Problem

I initially posted this at the Help Desk, although I kind of had it in the back of my head that I should post this here. When I search for certain items, it seems that the search bar brings up strange results. For instance, searching "Doctor Who (" turns the "(" into an "a" (an example here in this segment of a screen cap) and a search for "Doctor Who h" turns the "h" into an ":" (i'm using Doctor Who examples because that's what I was indeed looking for when I discovered this). I get the bug with other searches (like, "Star Trek o") or when I search for a single word and a space (like "Star " turns "Starting Pitcher" into "Star ing Pitcher" and "Starbucks" into "Star ucks" and "Life " turns "Life Imprisonment" into "Lifebimprisonment"). In fact, I just noticed this now, but searching for "life" then two spaces turns the searches into "Lifebo+(rest of search result phrase beginning with "Life"), three spaces turns the search to "Lifeboa+(rest of search result phrase beginning with "Life"), eg "Lifeboaimprisonment", and so on until "Life+17 spaces" full reveals "Lifeboat (shipboard)" over the search results. I get the same thing if I search words like "time", "star", "rose" and "royal" and a bunch of spaces or any spaces (even sometimes one). Bizarre! Doc StrangeMailboxLogbook 16:42, 3 July 2010 (UTC)

By the way, I have indeed tested this on another computer just to check if the problem was with my computer and/or keyboard and this bug indeed shows up on that computer when the same search queries (ie "Doctor Who (") are typed into the search bar. Others who replied to my message at the help desk noticed this bug and they mentioned that it only appears in the Vector skin. Doc StrangeMailboxLogbook 16:42, 3 July 2010 (UTC)
Yes, I've just noticed this too. Does anyone know what's going on?--Kotniski (talk) 09:36, 5 July 2010 (UTC)
Which browser ? No such problems using Safari here. —TheDJ (talkcontribs) 12:24, 5 July 2010 (UTC)
It's happening for me in IE.--Kotniski (talk) 12:38, 5 July 2010 (UTC)
Version ? Because they kinda differ a LOT. —TheDJ (talkcontribs) 22:59, 5 July 2010 (UTC)
The problem occurred for me in Firefox 3.6.6, IE6 and IE7 on multiple computers. Maybe this doesn't affect Safari. I wouldn't know. Doc StrangeMailboxLogbook 01:42, 6 July 2010 (UTC)
Filed as bugzilla:24282TheDJ (talkcontribs) 10:52, 6 July 2010 (UTC)
P.S. Everyone could have been saved a 3 day 'discussion'. If people had started by reporting their browser setup. Perhaps it is time to start new pages with a preloaded form, so that it becomes easier for people to properly report a problem. —TheDJ (talkcontribs) 10:52, 6 July 2010 (UTC)
That wasn't a personal criticism btw, it is quite a common problem in bugreporting. I have now added an editnotice in hopes that people will be reminded of these things. —TheDJ (talkcontribs) 11:11, 6 July 2010 (UTC)

## New problem when editing with Chrome

I have no problems reading pages, they look normal. But when I try to edit, the edit page opens normally but within a second changes to one in which the screen is almost completely taken up with the edit field. I can see the edit toolbars (wikiedit, etc), the edit summary field, and just under that the top half of the Save Page, Show Preview, etc. buttons (I can't even remember, should the 'content that violates copyright be above these as they are in the IE browser I'm using right now?). Nothing on the left or right side of the edit field at all, and no scroll bars. It suddenly happened a few minutes ago while I was using Chrome, and all other pages look normal, it's only when editing that I have the problem. Dougweller (talk) 10:45, 6 July 2010 (UTC)

Sounds like the fullscreen mode of WikEd. In the top-right bar of WikEd click the bottom-right icon, it looks a bit like the maximize window icon of MS Windows. —TheDJ (talkcontribs) 11:00, 6 July 2010 (UTC)
Thanks, that's why, as I just discovered, clicking on preview fixes it. I clicked on that be accident, trying to click on the icon above to get down to the save page, etc buttons. Thanks again. Dougweller (talk) 11:04, 6 July 2010 (UTC)

## Template sandbox and testcases templates

In my opinion the page headers provided by {{template sandbox notice}} and {{template test cases notice}} are very useful. Is there anyway that the information can be displayed on such pages system wide and without user intervention. If such a thing were to be implemented, maybe there should be a way to disable it in preferences as someone would probably object. Maybe not.  –droll [chat] 08:04, 5 July 2010 (UTC)

You mean like edit notices, but then without editing? In that case, no such a thing does not exist. These boxes are auto-added by the {{documentation}} template however. —TheDJ (talkcontribs) 23:02, 5 July 2010 (UTC)
You have lost me. Are you saying the the documentation template on the template page causes some message to appear on a different sub-page. I don't think so. So lets start over. The {{template sandbox notice}} template displayed a message on the sandbox page. At least I think it does. What I am asking is is it possible to display the message without the template. All kinds of messages appear on some of my pages. So it seems there is a mechanism that in place to the kind of work I'm talking about. It's sleepy time. talk more tomorrow.  –droll [chat] 11:17, 7 July 2010 (UTC)

## anon-only options showing up on named users?

Resolved: Local issue only. –xenotalk 12:45, 7 July 2010 (UTC)

Strange, I have the option to

• Block anonymous users only, allowing registered users to edit as normal.

when looking at the block form for a named user? –xenotalk 23:34, 6 July 2010 (UTC)

I'm not seeing it, myself. All accounts, or just one user in particular? —DoRD (talk) 00:03, 7 July 2010 (UTC)
This option is always there, but a script hides it when you enter a username. Is javascript enabled? Is it throwing any error messages? This is the script that does that: http://bits.wikimedia.org/skins-1.5/common/block.js -- Nx / talk 00:15, 7 July 2010 (UTC)
Thanks, this explains it. –xenotalk 12:46, 7 July 2010 (UTC)
Works for me (Safari 5.0 under Mac OS X 10.6); the problem's certainly not universal. {{Nihiltres|talk|edits|}} 00:32, 7 July 2010 (UTC)

## Making Switch parser active only when there is a certain entry in an template

Resolved: Fixed using #ifeq:. MC10 (TCGBL) 19:56, 7 July 2010 (UTC)

The m:Template:Extension changes color depending on what an editor enters as the property of {{{switch}}}

Unfortunately, the parser instructions at m:Help:Extension:ParserFunctions are not very helpful.

So if I wanted to make a section of an infobox template appear or not appear dependent upon what the editor enters in, how would I do this?

Say I have this template:

{{Infobox
|header1 = {{#switch: {{{{{found|}}}|Idaho={{{found}}}|}} }}
| label1 =  Location
| data1 =  {{#if:{{{found|}}}|{{{found}}} }}
}}

I know this coding is incorrect....

How would I make it that, ONLY if {{{found}}} = Idaho then header1 will be visible? But if {{{found}}} is something else, it will not be visible?

Thank you so much in advance for your help, I am so confused and don't know where else to ask on wikipedia. God bless. Adamtheclown (talk) 05:40, 7 July 2010 (UTC)

maybe try:
{{Infobox
| label1 =  Location
| data1 =  {{{found|}}}
}}


Bawolff (talk) 05:57, 7 July 2010 (UTC)

(ec) Bawolff on IRC was kind enough (again) to write:
after reading your post on the vp, sounds like your more after #ifeq than #switch:
{{#ifeq:{{{param}}}|some value|what to print if some value = param| what to print if not}}
Adamtheclown (talk) 06:00, 7 July 2010 (UTC)
Thanks Bawolff! you are so wonderful. Adamtheclown (talk) 06:00, 7 July 2010 (UTC)

## Content Encoding Error

Any time I try to view a page that does not exist on Wikipedia (a redlink), I have gotten this message. This just recently started happening. Anyone got answers?  A p3rson  20:32, 7 July 2010 (UTC)

P.S.: Firefox 3.6.4, running on Vista Home Premium x64

Seems to be a known problem with Firefox, with somewhat vague advice for fixing your PC config given here: http://support.mozilla.com/en-us/kb/error+loading+web+sites#Content_Encoding_ErrorRichardguk (talk) 21:00, 7 July 2010 (UTC)

## Which license for templates?

Which license do wiki templates fall under? The wiki content license (Creative Commons) or the wiki software license (GPL2)? What about other sites that use MediaWiki? 21:29, 7 July 2010 (UTC)

Templates are but data, CC all the way. Gwen Gale (talk) 21:30, 7 July 2010 (UTC)
So, does that mean if a template were copied from Wikipedia to another MediaWiki wiki, some attribution would be required? Also, is this stated somewhere that where people can easily find it? 22:29, 7 July 2010 (UTC)
At the Terms of Use linked to at the bottom of every Wikipedia page. --Cybercobra (talk) 22:46, 7 July 2010 (UTC)
Usually when I copy past something, i link to the specific revision id from where I copied, in my edit summary. Then at the very least you have a reconstructible history. —TheDJ (talkcontribs) 00:49, 8 July 2010 (UTC)
Seems weird that templates are CC (well, for some of them it makes sense...), but whatever. 05:22, 8 July 2010 (UTC)