User talk:Jackmcbarn

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Tech News: 2014-28[edit]

07:07, 7 July 2014 (UTC)

The Pacific Pumas CSD[edit]

Moved to User talk:Hasteur#The Pacific Pumas: Jackmcbarn (talk) 19:04, 8 July 2014 (UTC)

Notice from Technical 13[edit]

Information icon There is currently a discussion at Wikipedia:Administrators' noticeboard regarding an issue with which you may have been involved. The thread is Template Editor Jackmcbarn. Thank you. — {{U|Technical 13}} (etc) 15:43, 9 July 2014 (UTC)

I'm not going to post at WP:AN but I'm disappointed with your actions here. Please avoid closing requests where you may be considered "involved": specifically it would be better not to close requests to revert your own edits, but allow a neutral third-party to assess the request. It reduces the chance of drama which has occurred here. Regards — Martin (MSGJ · talk) 16:13, 9 July 2014 (UTC)

Noted. Jackmcbarn (talk) 16:14, 9 July 2014 (UTC)

Template:Fb cl3 team[edit]

Unless you know how to fix what's happening in articles like 2013 Africa Cup of Nations#Team statistics I suggest you keep it as an "unreadable mess". Davykamanzitalkcontribsalter ego 16:43, 10 July 2014 (UTC)

@Davykamanzi: As a matter of fact, I do. Jackmcbarn (talk) 16:47, 10 July 2014 (UTC)

A barnstar for you![edit]

Vitruvian Barnstar.png The da Vinci Barnstar
for your work in resolving bug 66387 Ixfd64 (talk) 19:06, 11 July 2014 (UTC)

Tech News: 2014-29[edit]

07:48, 14 July 2014 (UTC)

htmlBuilder vs mw.html[edit]

mw.html handles parameters with nowiki tags that are used in the css function differently to htmlBuilder. I've created a small testcase at Module talk:User:WOSlinker/sandbox to demonstrate the difference. -- WOSlinker (talk) 22:10, 14 July 2014 (UTC)

@WOSlinker: Yeah, I figured that out too. I'm trying to figure out the best way to fix that. Jackmcbarn (talk) 22:24, 14 July 2014 (UTC)


Can you tell me why you reverted Southwest Monarch Study (talk) 05:49, 15 July 2014 (UTC)

First of all, Wikipedia prefers secondary sources rather than primary ones. Second, you have a blatant conflict of interest and seem to be spamming. Jackmcbarn (talk) 15:47, 15 July 2014 (UTC)

About Imperia Online's Wiki Page and its potential deletion[edit]

Hello, Jackmcbarn!

I apologize for contacting you this way - I read about talk pages, deletions and so on, but couldn't figure out what the best way to share information is.

It's about Imperia Online's page that I created a few days ago and you nominated for deletion (I can now understand why, of course). Just wanted to add that there are more sources that talk about Imperia Online, but are in Bulgarian, so I didn't think there is a point in including them.

Here are two examples:

I can provide more sources in Bulgarian if needed and I apologize once more for not being sure how to properly participate in the discussion.

Thank you for your time!

Best wishes, JustTryAnother — Preceding unsigned comment added by Justtryanother (talkcontribs) 06:52, 15 July 2014‎ (UTC)

If you have sources, add them to the article. If you want to participate in the discussion, just post on the AfD page. Jackmcbarn (talk) 15:48, 15 July 2014 (UTC)


Hey Jack, I'm currently in a discussion with another editor on the positioning of the {{coord}} template within articles. Per the style guide, this is placed after navigation boxes (if there are any) and above categories etc. The counter argument runs that it should be at the top of the article, based on the (seemingly sensible) idea that code should be placed where it will appear on the page when rendered. Is there any technical reason that you're aware of for the current placement, and would it be sensible to alter the policy? At present, {{coord}} is used in 935,769 pages in en:Wikipedia alone so any change is going to involve a lot of edits. I'd appreciate your comments. Best,  Philg88 talk 16:17, 15 July 2014 (UTC)

@Philg88: If possible, coordinates should be placed inside of the article's infobox, since infoboxes often contain code that uses the coordinates for things like maps. If, for some reason, the article doesn't have an infobox or the infobox doesn't take coordinates, then from a technical perspective, it doesn't matter where it is. Jackmcbarn (talk) 16:32, 15 July 2014 (UTC)
Thanks Jack, appreciate the quick response. Cheers,  Philg88 talk 17:05, 15 July 2014 (UTC)


At Module:Convert/sandbox your edit was "put the old version back in the sandbox to see if it's what made everything get slow". I have to ask, what got slow? Anything I should worry about? No need for a detailed explanation as it's just mild curiosity. I noticed you have a large amount of data at Module:Sandbox/Jackmcbarn. If you were really desperate, there is a dirty trick that can be used to greatly speed up access to data like that. Following an idea from Tim Starling, I once took some data like that and munged it into a single string. It turns out that a single gigantic string loads quickly, and the code to extract wanted data from the string runs quickly—I think it was ten times faster than loading the table. The downside is that the single string is super ugly and has to be generated by another script. Johnuniq (talk) 02:11, 17 July 2014 (UTC)

@Johnuniq: I never did figure out what the slowdown was, but restoring the old version didn't fix it, so it wasn't that at all. Jackmcbarn (talk) 02:58, 17 July 2014 (UTC)


Hi Jack. :) So, you've been around here for a year now - how about running for adminship? While you haven't been very active in article-writing, I think your technical work and your new page/recent changes patrol work would give you a very good chance of passing an RfA. And I'd love to not have to answer your protected edit requests any more. ;) What do you say? — Mr. Stradivarius ♪ talk ♪ 10:49, 18 July 2014 (UTC)

Thanks for the quick change to Module:Delink![edit]

Just wanted to say thanks for the quick change on Module:Delink! gnosygnu 07:30, 20 July 2014 (UTC)

Tech News: 2014-30[edit]

07:42, 21 July 2014 (UTC)

Please comment on Talk:Daniel Amen[edit]

Greetings! You have been randomly selected to receive an invitation to participate in the request for comment on Talk:Daniel Amen. Should you wish to respond to the invitation, your contribution to this discussion will be very much appreciated! If in doubt, please see suggestions for responding. If you do not wish to receive these types of notices, please remove your name from Wikipedia:Feedback request service. — Legobot (talk) 00:12, 22 July 2014 (UTC)

Module for national football team rankings[edit]

Take a look at Wikipedia:Lua requests § National football team rankings and tell me what you think. Davykamanzitalkcontribsalter ego 04:30, 23 July 2014 (UTC)


Hi Jack. Apropos the shenanigans with Module:Location map/data/India Delhi I've now recreated the Delhi map to cover the same area as the PNG. The problem is, it comes in at just over 6Mb as oppossed to the 398k of PNG. I know Commons encourages transition to vector formats for various reasons, but it seems kinda crazy to replace an image with something 12 times the size. What's your take on this? Best,  Philg88 talk 08:58, 23 July 2014 (UTC)

@Philg88: Where is the SVG? I can probably reduce the size of it to something manageable. Jackmcbarn (talk) 16:05, 23 July 2014 (UTC)
I tried that with SVG Cleaner but you may be able to do a better job. Now uploaded to Location map India Delhi EN.svg. Cheers,  Philg88 talk 16:29, 23 July 2014 (UTC)
@Philg88: I see the problem. There's way too many minor roads in the map (the areas that are basically solid gray). When you turned the map data into an SVG, was there an option for what size roads to include? If there is, try it again with a lot fewer roads. Jackmcbarn (talk) 16:36, 23 July 2014 (UTC)
Alas no, the only tool that I'm aware of that will do the OSM XML -> SVG job is Maperitive, and that has no options for the export function. That said, I'll edit the file manually to remove the minor roads. Tedious, but necessary :) Will be done tomorrow them I'll update the module when I get the file size to around 1 Mb. Best,  Philg88 talk 16:43, 23 July 2014 (UTC)
Update The image is now 2.69 MB - I did get it down to 1.36 MB with SVG Cleaner (see previous uploaded version) but it broke the syntax. Is that an acceptable size do you think? Cheers,  Philg88 talk 06:38, 24 July 2014 (UTC)
@Philg88: I got it down to 2.04 MB. I'd say that it's fine now, since MediaWiki will thumbnail it automatically anyway. Jackmcbarn (talk) 17:31, 24 July 2014 (UTC)
For some reason the map is rendering as mainly black - I've reverted to the previous version for now. Best  Philg88 talk 18:10, 24 July 2014 (UTC)

User talk:Lothar von Richthofen#New format for Template:Syrian Civil War detailed map[edit]

I was stalking user Lothar von Richthofen’s talk page & I saw you had left him a message with the title above. If you allow me, I would like to answer on his behalf & continue the discussion with you for 2 reasons:

1- I saw that Lothar von Richthofen has put a “semi-retired” tag on his page & seems to not be answering his talk page messages.
2- I am Lothar’s partner in terms of the map (so to speak) as I had created the first version (here).

To answer your message, I would say that I like your idea very much, in case you are still interested in implementing it (I know you posted the message a long time ago, so things might have changed on your end & I would totally understand…) I am sure I am talking on behalf of all editors of the map… Tradediatalk 23:22, 24 July 2014 (UTC)

@Tradedia: I've now implemented the change. Jackmcbarn (talk) 21:44, 31 July 2014 (UTC)

Tech News: 2014-31[edit]

08:09, 28 July 2014 (UTC)


Hi, re this edit: I notice that the link to the MFD discussion page is red. Did you forget to start the nom? --Redrose64 (talk) 20:07, 31 July 2014 (UTC)

@Redrose64: No, it was part of a group nom and I forgot to specify the link. I'll do that now. Jackmcbarn (talk) 20:09, 31 July 2014 (UTC)

Tech News: 2014-32[edit]

07:37, 4 August 2014 (UTC)

Thanks and Another Question[edit]

Thanks for your answer to my question. I had another question at Wikipedia:Village_pump_(technical)#Complex_Template_Syntax_Question. -- Veggies (talk) 21:30, 8 August 2014 (UTC)

re: Module:Syrian Civil War detailed map[edit]

Hi, I noticed that you recently created a module for the above map, and I found discussions explaining why.
But there is a down side. Users already had problems creating correct entries, and now there is no preview available of changes. As well, the lines don't wrap, so much of most lines are not very visible.
I have an idea that might work. Could you separate the code from the data ? By data I mean the info in the marks section at the beginning of the module. And then add a preview option ?
So editors would modify the data file, which hopefully would wrap normally, preview to verify, much as would happen with the previous template.
Maybe (behind the scenes) :

1) Edit the regular file, and save to a temporary file.
2) Run a preview version of the module, which uses the temporary file.
3) Committing to the regular file when confirmed by the editor.

A plus would be that they couldn't accidentally mess with the code :)
So would that be feasible, given wp limitations and whatever time constraints you might have ?
(Not trying to rush anything.) André437 (talk) 07:51, 10 August 2014 (UTC)

@André437: There is a preview available; it just requires an extra step. Below the "Save page" button, there's a box called "Preview page with this module". Enter "Template:Syrian Civil War detailed map" or "Cities and towns during the Syrian Civil War" in the "Page title" box and hit "Show preview" there, and you'll see that page with your changes. If you want, I could write a user script to streamline that process. Jackmcbarn (talk) 15:56, 10 August 2014 (UTC)
Sorry, I didn't notice that it was a preview box below.
Yes, I think it would be a big plus if you could write a user script to streamline the process. Especially for inexperienced contributors, or those somewhat challenged by the keyboard.
I notice that line wrap doesn't work in browser display of modules. (At least with Mozilla Seamonkey =Firefox compatible, and Midori, respectively using gecko and webkit engines.) Is there something that you could do about that ? The line wrap helps see the location name, very useful to ensure that the editor is modifying the correct line.
BTW, I really appreciate all you have been doing to improve map page rendering. This latest module will help me (eventually) implement some ideas I mentioned to you in the past. André437 (talk) 00:36, 14 August 2014 (UTC)
@André437: I wrote the user script. To use it, add this line to Special:MyPage/common.js:
importScript('User:Jackmcbarn/modulePreview.js'); // Linkback: [[User:Jackmcbarn/modulePreview.js]]
It will autofill the preview name, so you'll just have to click the "Show preview" button like usual. (The only difference will be that it's in a different place.) Regarding line wrap, you can switch back to the original editor (that does support that) by clicking the /* button in the top-left corner of the edit box. Jackmcbarn (talk) 01:01, 14 August 2014 (UTC)
Thanks for the script. So any editor that wants to see the preview button has to import your script ?
I like the toggle of /*, since turning off line wrap can be handy at times as well. André437 (talk) 04:02, 14 August 2014 (UTC)
@André437: No, the script is just to autofill the preview box. Anyone can manually use it or turn CodeEditor off even without it. Jackmcbarn (talk) 04:03, 14 August 2014 (UTC)
Thanks :) André437 (talk) 04:45, 14 August 2014 (UTC)
Here's how to turn on line wrapping when viewing a module page. It works on Javascript pages too:
/* wrap text within Javascript and Lua source boxes */
pre.source-lua {
  white-space: pre-wrap;
Put that in Special:MyPage/common.css, go back to Module:Syrian Civil War detailed map and use your browser's "reload" feature - Ctrl+F5 in Firefox. --Redrose64 (talk) 11:23, 14 August 2014 (UTC)
@Redrose64: Note that doing the above will keep you from using the toggle to re-enable line wrapping, which is useful often enough that it's probably a bad idea. Jackmcbarn (talk) 03:23, 20 August 2014 (UTC)

You Did It![edit]

Vitruvian Barnstar.png The da Vinci Barnstar
For your technical work in improving the Template:Iraqi insurgency detailed map‎ and making our work that much more professional. Thanks! Veggies (talk) 11:07, 10 August 2014 (UTC)

Clarifying my last edit on Syria map[edit]

I did not break any links. Many towns do not have written material to link them to. So for example, many towns do not have their own Wikipedia article. In this case, we do not want the dots to link to a non-existent Wikipedia article. In this case, if a user clicks on the dot, he will receive a proposal to create a Wikipedia article about the town, which is not what we want. To avoid this, we put a “fake” link, for example we write in the code:

link = "#Abu Tabbah"

When a user clicks on the dot of Abu Tabbah town, the computer will go and look for the “anchor” named “Abu Tabbah" on the page. However, since we did not put in an “anchor” for “Abu Tabbah", the computer will not find anything and therefore will not do anything, which is what we want. So the end result is that when the user clicks on the dot of Abu Tabbah town, nothing happens.

However, I am sure many editors do not know all this, so I thought I would clarify this by replacing all the fake links by “#no” so that it is clear to the editors that the town dot is not associated with any link. Often editors just put something random as a value for the “link =” function because they don’t understand it, and I have to come and correct thing after them… So all the places where I put “#no”, it is because the icon has no link. Tradediatalk 18:43, 10 August 2014 (UTC)

@Tradedia: If you don't want them to link anywhere, then just unlink them, rather than using fake anchors. Jackmcbarn (talk) 18:45, 10 August 2014 (UTC)
The problem is that if you don't use a fake link, the label no longer appears when you hold the cursor over the dot. Tradediatalk 19:42, 10 August 2014 (UTC)
@Tradedia: That would be bugzilla:21454. I've submitted gerrit:153353 that will fix it. For now, though, I'd recommend using the anchor that the city would have if it were listed, rather than using #no, since I think that would lead to further confusion. Jackmcbarn (talk) 22:18, 10 August 2014 (UTC)

Lua help needed[edit]

Hi Jack. I'm trying to put together a module that will put a project banner on an article's talk page and add that page to a dated category. While I know how to do this in template syntax, I'm afraid that with Lua it's a bit beyond me for now. Do you know of a similar existing module that I could use as a boilerplate? Cheers,  Philg88 talk 05:25, 11 August 2014 (UTC)

@Philg88: I'm not sure exactly what you're trying to do. If you point me to a template that does it, I'll be able to show you how to write a Lua module to do it. Jackmcbarn (talk) 14:50, 11 August 2014 (UTC)
Thanks Jack, this is a template that does a similar thing (the new one is for the Guild of Copyeditors). I also want to use a dated category as is done here. Cheers,  Philg88 talk 16:21, 11 August 2014 (UTC)
@Philg88: If that's all you need to do, there's really no benefit to making it a module. You're better off just making it as a wikitext template. Jackmcbarn (talk) 16:33, 11 August 2014 (UTC)
No problem, thanks for the input. Best,  Philg88 talk 05:33, 12 August 2014 (UTC)

Tech News: 2014-33[edit]

07:43, 11 August 2014 (UTC)

Please Undeletion[edit]

Hello, Jackmcbarn you nomination of MfD Wikipedia:Miscellany for deletion/User:Naresh Krishna Raja is please undeletion process. please add your comments and tell my mistake. Naresh Krishna Raja 03:39, 13 August 2014 (UTC)

I don't understand what you wrote. Jackmcbarn (talk) 03:40, 13 August 2014 (UTC)

Template:Infobox university[edit]

Hi, Could you please add "Language" to Template:Infobox university? In some countries most of the universities teach in the local language but some of them teach in English, so this addition could benefit lots of students. --AbYaSSer6 (talk) 12:49, 16 August 2014 (UTC)

@Bo yaser: It appears that Frietjes has already taken care of this. Jackmcbarn (talk) 03:24, 20 August 2014 (UTC)

Tech News: 2014-34[edit]

07:17, 18 August 2014 (UTC)