User talk:WOSlinker/Archive 7
This is an archive of past discussions with User:WOSlinker. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | ← | Archive 5 | Archive 6 | Archive 7 | Archive 8 | Archive 9 | Archive 10 |
inlining a transclusion
Why did you do this? --Joy [shallot] (talk) 11:12, 21 September 2012 (UTC)
- I was lookng at that template and it didn't seem as useful to me as just using the WikiProject Swimming template directly, mainly becvause it didn't allow for the the other paramters that the main template allows for such as class and importace amongst others (although they are not needed on the page I changed). -- WOSlinker (talk) 11:22, 21 September 2012 (UTC)
Namespace autodetected now, right?
Is it true that for {{WikiProject Biography}} and for all other WikiProject classes like "Category", "File" and "Template" don't need to be explicitly added? i.e. {{WPBio|class=Cat}} and {{WPBio}} have the same effect in a category talk page? -- Magioladitis (talk) 21:51, 3 September 2012 (UTC)
If this is true I could seriously simplify AWB's code. -- Magioladitis (talk) 21:53, 3 September 2012 (UTC)
I started a discussion with Kumioko on the matter too: User_talk:Kumioko#WikiProjects_next_big_Thing. -- Magioladitis (talk) 15:24, 29 September 2012 (UTC)
Edit request regarding new subproject
I noticed you have previously responded to edits requests regarding this template, so could you please take a look at this one? AutomaticStrikeout 20:15, 5 October 2012 (UTC)
Request for deletion of orphaned non-free revisions
Hello!!! Sir, I am requesting you to delete these below "orphaned non-free revisions" image files. Because i have added the template "Template:Orphaned non-free revisions" to both of them 10 (or) 15 days ago sir. And no response from any admin sir. So that i am kindly requesting you sir. Please delete these below "orphaned non-free revisions" image files, if possible sir. Thanking you in advance sir.
Images :
1. File:Cameraman ganga tho rambabu poster.jpg
2. File:Cameraman ganga tho rambabu cd cover.jpg
Have a good day sir.
Raghusri (talk) Raghusri 15:09, 8 October 2012 (UTC)
- Done I've deleted the old revisions. -- WOSlinker (talk) 21:05, 8 October 2012 (UTC)
Thank you sir. Have a nice day sir. Raghusri (talk) Raghusri 13:33, 9 October 2012 (UTC)
{{LegendRJL}}
Would you mind taking a look? After converting to hlist, it's no longer centered. --Rschen7754 19:18, 9 October 2012 (UTC)
- I did some digging while I was working on this. There is (or was) a bug that causes hlists to left-align in table cells. The workaround was to change the table class to "wikitable hlist". If you look at the LegendRJL template page, it works as directed, but when it's used (example in the LegendRJL documentation), it's still left aligned. –Fredddie™ 20:26, 9 October 2012 (UTC)
- Yes, and the start of the table is in Template:Jcttop/core. Is that safe to add hlist to? -- WOSlinker (talk) 21:36, 9 October 2012 (UTC)
- Does that make a difference? Is it going to do funny things to the rest of the table? Is it possible to declare a different class for LegendRJL? –Fredddie™ 00:09, 10 October 2012 (UTC)
- It would only make a difference if there was ever any lists within the table as they would be displayed in hlist style. Other than that there would be no difference to things. -- WOSlinker (talk) 07:46, 10 October 2012 (UTC)
- If that's the case, by all means make it happen! –Fredddie™ 22:58, 10 October 2012 (UTC)
- Done. -- WOSlinker (talk) 22:59, 10 October 2012 (UTC)
- If that's the case, by all means make it happen! –Fredddie™ 22:58, 10 October 2012 (UTC)
- It would only make a difference if there was ever any lists within the table as they would be displayed in hlist style. Other than that there would be no difference to things. -- WOSlinker (talk) 07:46, 10 October 2012 (UTC)
- Does that make a difference? Is it going to do funny things to the rest of the table? Is it possible to declare a different class for LegendRJL? –Fredddie™ 00:09, 10 October 2012 (UTC)
- Yes, and the start of the table is in Template:Jcttop/core. Is that safe to add hlist to? -- WOSlinker (talk) 21:36, 9 October 2012 (UTC)
Thank you...
for what looks like a very tedious overhaul of the formatting for Template:Hip-hop dance. I created this navbar three years ago and never knew about the WP:HLIST MOS policy until I read your edit summary and saw all the changes you made. Much appreciated. //Gbern3 (talk) 18:01, 15 October 2012 (UTC)
Help me!
Hello WOSlinker
Please help me to improve the Tmbox template in telugu wikipedia Thank you. Ramesh Ramaiah talk 13:54, 16 October 2012 (UTC)
Speedy deletion nomination of Template:Adjacent postcode areas
A tag has been placed on Template:Adjacent postcode areas requesting that it be speedily deleted from Wikipedia. This has been done under section T3 of the criteria for speedy deletion because it is a deprecated or orphaned template. After seven days, if it is still unused and the speedy deletion tag has not been removed, the template will be deleted.
If the template is intended to be substituted, please feel free to remove the speedy deletion tag and please consider putting a note on the template's page indicating that it must be substituted so as to avoid any future mistakes (<noinclude>{{substituted}}</noinclude>
).
If you think that the page was nominated in error, contest the nomination by visiting the page's talk page directly to give your reasons, but be aware that once a page is tagged for speedy deletion, it may be removed without delay. Please do not remove the speedy deletion tag yourself, but do not hesitate to add information that is consistent with Wikipedia's policies and guidelines. If the page is deleted, you can contact one of these administrators to request that the administrator userfy the page or email a copy to you.
- Redundant template superseded by new template Template:Postcode area imagemap. Agreed with creator of old template at User talk:MRSC#Postcode area articles.
MedalSum
FYI, I have sent this to TfD. The main problem is the lack of column heading information for wp:accessibility. otherwise, it is a perfectly reasonable solution. thank you. Frietjes (talk) 16:54, 10 November 2012 (UTC)
Football biography now supports bare filenames for images
...but Category:Infobox football biography image param needs updating has more than 15,000 pages. I 'll need help! -- Magioladitis (talk) 06:56, 5 November 2012 (UTC)
Category:Football biography using old style parameters created too. -- Magioladitis (talk) 00:14, 27 November 2012 (UTC)
Science collaboration of the month
Hello: I've noticed your contributions to science-related articles, so if you're interested, check out:
The current science collaboration of the month article is: Chemistry Please help improve this article to featured article quality standards.
|
Request for Comment on Afd: Robert Fry (Serial killer)
Because of recent contributions, you may have specialized knowledge or interest to comment on whether WP:NOT applies to a convicted serial killer. SteveAarons(talk) 5 January 2013 (UTC) aar095 09:17, 5 January 2013 (UTC)
Template:Infobox television channel
could you make the default logosize frameless? 198.102.153.2 (talk) 20:36, 7 January 2013 (UTC)
- Done -- WOSlinker (talk) 22:17, 7 January 2013 (UTC)
Follow-up request
If you're interested, Template talk:Pp-meta#Follow-up request. Thanks. — Francophonie&Androphilie(Je vous invite à me parler) 00:50, 14 January 2013 (UTC)
Seasons of/in Scottish soccer
Please see my proposal to upmerge Category:Seasons of Scottish football into Category:Seasons in Scottish football Hugo999 (talk) 12:04, 14 January 2013 (UTC)
Navboxes
Do you know how to create a basic, autocollapsed table like Template:The Beatles?--90.217.236.85 (talk) 22:37, 22 January 2013 (UTC)
AFL... again
So I still think of the next step to merge the various AFL infoboxes. Maybe you could move all the external stats of Template:Infobox Arena Football player to the external links section as we did with many other infoboxes? -- Magioladitis (talk) 23:27, 24 January 2013 (UTC)
- what if these links are being used as a source for the stats in the infobox? Frietjes (talk) 23:33, 24 January 2013 (UTC)
Template:Lubomirski family
any idea on how to get a scroll bar on this one? we have one on Template:Bush family tree, but that is not using navbox. Frietjes (talk) 17:23, 30 January 2013 (UTC)
- I tried but haven't been able to work it out. -- WOSlinker (talk) 20:24, 30 January 2013 (UTC)
- okay, I changed it to use {{hidden}} instead, since this isn't really being used as a navbox, but as single-use collapsed content. Frietjes (talk) 22:29, 30 January 2013 (UTC)
London location maps
Hi. We have a full set of Category:London location map templates which have basically been sitting in the garage with the dust sheets still on for 15 months. I started adding Hillingdon and Camden I believe. I was wondering if you could apply them to the localities and buildings in London for each relevant borough to give more precise locator maps? Might involve editing the UK infobox but also it would be great if you could some sort of coding or AWB to go through articles on places within each borough switching to the borough map. Can you help? Also, I have requested a map of Whalsay which I'm currenty working on in Shetland. If made the UK place box might need a tweak to show villages on it rather than the Shetland one. ♦ Dr. ☠ Blofeld 17:09, 1 February 2013 (UTC)
- Could probably do something to check the london_borough param. I'll take a look. -- WOSlinker (talk) 19:03, 1 February 2013 (UTC)
- I've made the changes in the sandbox and it's ready to test. -- WOSlinker (talk) 12:40, 2 February 2013 (UTC)
- Any luck with the London boroughs? I'll prompt Nilfanion again for the WHalsay map.
- Yes, it's in the sandbox. Can you just check that it works as you want & then I'll deploy to live. -- WOSlinker (talk) 14:00, 5 February 2013 (UTC)
- i tried it for Croydon and the infobox disappeared. Can you check, probably best you test it and administer it! Also I will need assistance with switching the maps in building infoboxes to boroughs.♦ Dr. ☠ Blofeld 18:14, 5 February 2013 (UTC)
- I've made it live. -- WOSlinker (talk) 19:09, 5 February 2013 (UTC)
- i tried it for Croydon and the infobox disappeared. Can you check, probably best you test it and administer it! Also I will need assistance with switching the maps in building infoboxes to boroughs.♦ Dr. ☠ Blofeld 18:14, 5 February 2013 (UTC)
- Yes, it's in the sandbox. Can you just check that it works as you want & then I'll deploy to live. -- WOSlinker (talk) 14:00, 5 February 2013 (UTC)
Hi, I noticed your edit, but think that it may have unintended drawbacks, because many London articles will be about places that are much larger than the location map marker if a borough-scale map is used. Some places might be nearly as large as the entire borough. I have detailed this issue at Template talk:Infobox UK place#London location maps and would welcome your response. — Richardguk (talk) 00:32, 6 February 2013 (UTC)
He has a point, maybe we should just reserve the borough maps for buildings, streets and small localities? Above all I want to put Nilfanion's hard work on these to good use.♦ Dr. ☠ Blofeld 00:44, 6 February 2013 (UTC)
Lua Module:Convert
FYI: There's lots to finish, but I have done enough to make me think it was time to let people know about the module, see Template talk:Convert#Lua Module:Convert. Johnuniq (talk) 03:25, 13 February 2013 (UTC)
Hi WOSlinker, I noticed you've been a prolific Lua script contributor at Module:Convert, Module:ConvertTestcase, and Module:InfoboxImage. I just created a request page for Lua scripts at Wikipedia:Lua requests and it'd be great if you could watchlist it to assist anyone who needs help with Lua scripts. Thanks! Dcoetzee 00:51, 24 February 2013 (UTC)
Importing Module:Convert
At my test2 talk (last September), you mentioned that there is currently no way to import a page from test2 to here, but that in principle test2 could be added as an import source (diff of your comment).
My reading of Help:Import shows that I do not have the rights to do an import, even if it were possible. Also, it seems unlikely that test2 would be added because import looks like a big deal (although something specifically for importing modules conceivably could be done, and no doubt someone like Tim Starling could import stuff if required.
There's no rush, and we'll see what takes place when Scribunto is enabled in a day or two, but I would like to import Module:Convert and Module:Convertdata to here for easier comparison with the existing templates. My current intention is to create the modules here with a copy/paste and a suitable edit summary including a link to the source (I would do that after the Module namespace is created here).
The next issue would be to create a template to invoke the module. Obviously it won't be Template:Convert. I could do a user subpage then test with something like {{User Johnuniq:convert|...}}
, but that is klunky, and would be unsuitable in an article if I get bold enough to see how it goes in an article with some convert templates. Another possibility would be to create a standard template, something like [[Template:Xconvert]]
or [[Template:convertz]]
({{convertx}} exists).
Do you have any thoughts about the copy/paste or template? Johnuniq (talk) 07:57, 17 February 2013 (UTC)
- I've asked at Wikipedia:Village pump (technical)#Import from test2.wikipedia.org about the import. For the template name, I was thinking it could be called
[[Template:convert/sandboxlua]]
for initial testing. If you wanted to try it on a few articles then maybe[[Template:convertlua]]
. -- WOSlinker (talk) 08:34, 17 February 2013 (UTC)- Thanks, VPT (which I will follow) and the convertlua name are good. Johnuniq (talk) 10:39, 17 February 2013 (UTC)
Tim has just posted at VPT that test2 is now available for import. Despite appearances, I'm not actually in a rush because Module:Convert needs lots more work (which I have planned), and I've got a number of RL things to do because they have been ignored for quite a while. I need Module:Convert and Module:Convertdata, and sooner or later we should get Uncle G's docs (and some pages that links to). BTW the "Script error" you will see on that page is due to a change in the way Scribunto works, and which is preventing Module:Mw from being invoked in the way it was in the past. I'll get around to fixing it if no one else does, but I would like to discuss a couple of things about the plan for its usage first. Johnuniq (talk) 01:15, 19 February 2013 (UTC)
- I've copied the two modules over onto this wiki. There was an error displayed on import "Import failed: Can't save non-default content model with $wgContentHandlerUseDB disabled: model is wikitext , default for Module:Convert is text." but it still appear to import ok. I've also lniked it up to Template:convert/sandboxlua and there are plenty testcases to look at. -- WOSlinker (talk) 07:31, 19 February 2013 (UTC)
- Thanks. I mentioned the error at User talk:Kozuch#Scribunto deployment in case a dev wants to investigate. Sorry to do this in dribs and drabs, but do you want to import Template:Convert and its talk page to Template:Convertlua? That would need your test stuff as well. I like your Template:Convertlua suggestion as I think it would be better to have the test template not in the Template:Convert range because the latter is heavily used. Also, the convert module may not be implemented here, so it's a bit premature to suggest that it is a sandbox of Template:Convert. I'm happy to just make Template:Convertlua if the import is a bit of a fuss. I won't need it for a day or two. Johnuniq (talk) 08:10, 19 February 2013 (UTC)
- There's not really any history worth keeping on that page. You might as well just create it yourself. -- WOSlinker (talk) 08:14, 19 February 2013 (UTC)
- Thanks. I mentioned the error at User talk:Kozuch#Scribunto deployment in case a dev wants to investigate. Sorry to do this in dribs and drabs, but do you want to import Template:Convert and its talk page to Template:Convertlua? That would need your test stuff as well. I like your Template:Convertlua suggestion as I think it would be better to have the test template not in the Template:Convert range because the latter is heavily used. Also, the convert module may not be implemented here, so it's a bit premature to suggest that it is a sandbox of Template:Convert. I'm happy to just make Template:Convertlua if the import is a bit of a fuss. I won't need it for a day or two. Johnuniq (talk) 08:10, 19 February 2013 (UTC)
I don't know how, but when I wrote my previous reply, I completely missed your point about Template:convert/sandboxlua and the testcases. I've now had a look and they are very impressive. I dumbly thought it was still using {{convert/testcases/test}}
, but I've now realized that it only uses that for the header and footer, and uses your Module:ConvertTestcase instead for the rows. I made a change in that to reduce the number of trivial fails that are found. In previous work, I noticed that some of the convert templates output a superscripted 2 or 3, instead of the html equivalent. Also, they often output  
for a space. And some other mostly cosmetic differences—so I expanded the cleaning performed. Johnuniq (talk) 02:46, 20 February 2013 (UTC)
- I rewrote it since the old method ended up calling everything twice, once to display and once to compare. The newer versipon only calls things once. I must admit that it's not very well written code in ConvertTestcase but then again I didn't spend that long on it. -- WOSlinker (talk) 07:11, 20 February 2013 (UTC)
Progress I've been sidetracked into looking at performance issues. In practice, it would be rare to use 100 converts on a page, but the script timeout errors in your testcases are a bit embarassing. Don't bother splitting up the tests any more because I am very likely to be able to get a dramatic improvement with one (or conceivably both) of two approaches to dealing with the large convertdata table. If wanted, more info is at my test2 talk, but all I intend from this message is to alert you what I'm probably going to do. Also, I might try tweaking Module:ConvertTestcase. Johnuniq (talk) 22:29, 22 February 2013 (UTC)
Weird timing I'm getting really weird results while trying to work out what is taking so much "Lua time usage" in the testcases (I did some major refactoring of Module:ConvertTestcase hoping that might speed it up). I'll leave this for now, but I thought I'd better tell you that I have replaced Module:Convert with the simplest possible code (all it does is return "dummy"). The NewPP report in the HTML source changed from the first value (original module) to the second (dummy).
- area Lua time usage: 8.509s → 6.836s
- energy Lua time usage: 7.065s → 7.103s
- force Lua time usage: 5.531s → 5.234s
That minor change is very hard to understand. If the "dummy" bothers you, just revert my edit. Johnuniq (talk) 10:43, 24 February 2013 (UTC)
- I reset Module:Convert back to a working state and then did some tests on Module:ConvertTestcase with the area testcases myself.
- Just calling {{Convert/sandboxlua}} on it's own gave the following figures:
NewPP limit report Preprocessor visited node count: 1134/1000000 Preprocessor generated node count: 4811/1500000 Post-expand include size: 33484/2048000 bytes Template argument size: 0/2048000 bytes Highest expansion depth: 2/40 Expensive parser function count: 0/500 Lua time usage: 0.673s Lua memory usage: 3.1 MB
- And calling {{Convert}} on it's own gave:
NewPP limit report Preprocessor visited node count: 36149/1000000 Preprocessor generated node count: 23892/1500000 Post-expand include size: 114329/2048000 bytes Template argument size: 59390/2048000 bytes Highest expansion depth: 28/40 Expensive parser function count: 0/500 Lua time usage: 7.850s Lua memory usage: 1.01 MB Lua Profile: mw.executeModule <mw.lua:135> 5440 ms 68.5% Scribunto_LuaSandboxCallback::getExpandedArgument 1140 ms 14.4% Scribunto_LuaSandboxCallback::expandTemplate 1100 ms 13.9% recursiveClone <mw.lua:103> 140 ms 1.8% [others] 120 ms 1.5%
- So I think most of the time in mw.executeModule is the actual execution of the {{Convert}} template. -- WOSlinker (talk) 12:43, 24 February 2013 (UTC)
- Interesting, thanks. So if we want a live test, each test page has to be small (perhaps 100 tests per page)? The alternative would be to capture the expected test output, and compare the module results with that. More work to setup and maintain, and less elegant. Not a good choice! I'll try to stop worrying about it for now. I mentioned this at WP:Lua requests#New unit test framework. Johnuniq (talk) 02:22, 25 February 2013 (UTC)
Convert progress
I'm slowly fixing problems. Please let me know (talkback not needed) what you think about:
- Template:Convert/mi. this is junk (see its history); it should be deleted.
- Template:Convert/k this is a dubious redirect to Template:Convert/K (kelvin); it appears to be unused now that I have replaced it in Solar updraft tower.
Should Module:Convert support "k" as an alias for "K"? If not, perhaps remove from temperature? Johnuniq (talk) 02:45, 1 March 2013 (UTC)
- I've deleted both. There's probably a few others out there as well that are unused and not worth supporting. -- WOSlinker (talk) 07:38, 1 March 2013 (UTC)
- Thanks. You will see that I have modified Module:ConvertTestcase so it shows "Link" if disagreement is due to a wikilink, or "Span" if due to different coding in an HTML span, or "LkSp" if both link and span. Module:Convert will always output the same span code when required, but the different templates have some differences. Feel free to tweak the colors I quickly picked!
- In due course I'll give more attention to the rules for when "acre" (for example) should be singular and when it should be plural—it's tricky. Any thoughts on the links in fuelconsumption? Johnuniq (talk) 10:03, 1 March 2013 (UTC)
- I've changed "Pass" to "Exact Match" and "Fail" to "Different" since I don't think all the Fail's need fixing so best not to call them Fail. The links used on fuelconsumption seem fine to me. -- WOSlinker (talk) 10:44, 1 March 2013 (UTC)
I put a test in my sandbox that is quite interesting. I will add some details at Module talk:Convert with performance plans, and mention the sandbox. However I might have to go offline soon, so I thought I would let you know that I put all 1689 converts from the testcases into one page! It shows that the bloated Convertdata might not be a problem. Also, it's cute to see all the results on one page (although no pass/fail). There are 51 unique unknown units, 8 "is invalid here" errors (for example, where "footin" is used as an input unit), and 6 dimension errors like Cannot convert "energy" to "power". I don't think there's any reason to alter the testcases for those few errors as it's interesting to see the error text. Also, we can search the page for the red links. Johnuniq (talk) 10:24, 3 March 2013 (UTC)
- I've added two new sets of testcases called misc and misc2 which are all the currently ungrouped units. I'll be gradually moving them out of misc into the other groups or sometimes creating new groups. -- WOSlinker (talk) 12:33, 3 March 2013 (UTC)
- I've sorted more of the misc units and updated all the testcase pages. Have added density, populationdensity & torque pages. -- WOSlinker (talk) 14:28, 3 March 2013 (UTC)
I have put some interesting performance tests at my test2 talk. The good news is that using mw.loadData
is 2.3 times faster than using require
on a page with 1689 converts. The bad news, is that loadData is 1.5 times slower on a page using 10 converts (loadData has some overheads). On the other hand, 10 converts only takes 0.05 seconds using loadData, so the fact that it is slower is just an academic irritation. I have thought of an ugly strategy to speed up convert quite a lot more, but I'm going to try to forget about that now and do more cleanup (the essential plan is to split the enormous convertdata into twenty smaller tables, and only access the table required). Johnuniq (talk) 09:44, 5 March 2013 (UTC)
I went to process your new "Energy consumption" units, but there is a discrepancy with some (incomplete) data I have, so I'll need to think about it. I'm just letting you know that I won't get a chance to do that for 24 hours or so, but I will sort it out. Johnuniq (talk) 09:31, 6 March 2013 (UTC)
- That's fine, what I entered was a bit rough anyway and will probably need some adjustments. -- WOSlinker (talk) 10:07, 6 March 2013 (UTC)
- Those units are very confusing! I decided that they are just "power" rather than "energy consumption". I could not bring myself to use the same name for cal/d and Cal/d so I inserted "large" (but now I see it in the saved text, I forgot to do the same for Cal/h). Using "what links here" suggests several of these are not used (I'm too confused to work out which at the moment), and that possibly explains why the existing templates {{convert/cal/h}} and {{convert/kcal/h}} give incorrect conversions, I think. I'll leave that for now. If you agree about "power", I guess you will have to refactor the testcases. Johnuniq (talk) 10:50, 7 March 2013 (UTC)
- That's fine. I'll merge them into power. I noticed that the Watts links needed updating, so I've added them into the Conversion data page. -- WOSlinker (talk) 11:59, 7 March 2013 (UTC)
- Those units are very confusing! I decided that they are just "power" rather than "energy consumption". I could not bring myself to use the same name for cal/d and Cal/d so I inserted "large" (but now I see it in the saved text, I forgot to do the same for Cal/h). Using "what links here" suggests several of these are not used (I'm too confused to work out which at the moment), and that possibly explains why the existing templates {{convert/cal/h}} and {{convert/kcal/h}} give incorrect conversions, I think. I'll leave that for now. If you agree about "power", I guess you will have to refactor the testcases. Johnuniq (talk) 10:50, 7 March 2013 (UTC)
Nice catch
here. I should have spotted that years ago; and considering it was me who added the hatnote to WP:ILL, I shouldn't have made this mistake a few weeks later. --Redrose64 (talk) 22:07, 6 March 2013 (UTC)
Could you look over the top half of this template? If you look at the testcases, when it produces a hatnote, it is adding an extra line break between the hatnote and the table. I've been staring at it for a couple hours and I can't find any line break. Thanks. –Fredddie™ 07:03, 8 March 2013 (UTC)
- Had a couple of tries but didn't fixed it. Will look later on. -- WOSlinker (talk) 07:37, 8 March 2013 (UTC)
ConvertUsage
I just had another look at User:WOSlinker/ConvertUsage and it is very useful. I wonder if the redirects should be in a separate table (I can easily do that kind of edit if you wanted)? I started having a look at which units have a missing unit type. It looks like my use of "energy density" for units like J/g is not correct. See energy density (energy per unit volume) which mentions specific energy (energy per unit mass), but the latter also mentions "Energy density of food" saying J/g is used for that. So BTU/cuft and similar should be "energy density", I guess. While trivial (it can easily be changed at any time), it's irritating. Perhaps "energy per mass" and "energy per volume" would be sufficient for our needs. That name would only be displayed as an error when a conversion specifies incompatible units, so the simple name might be best despite any scientific imprecision. What do you think? Johnuniq (talk) 01:01, 9 March 2013 (UTC)
Following are the names and the currently defined units in the conversion data:
- Population density: /acre ∙ /ha ∙ /km2 ∙ /sqkm ∙ /sqmi ∙ PD/acre ∙ PD/ha ∙ PD/km2 ∙ PD/sqkm ∙ PD/sqmi
- Cost per unit mass: $/lb ∙ $/kg ∙ $/ozt
- Cost per unit area: $/acre ∙ $/ha ∙ $/m2 ∙ $/sqft
- Per volume: /USgal ∙ /l ∙ /usgal
- Energy density: TJ/kg ∙ GJ/kg ∙ kJ/kg ∙ kJ/g ∙ J/g ∙ MtTNT/MT ∙ MtonTNT/MT ∙ ktTNT/t ∙ ktonTNT/MT ∙ BTU/lb ∙ Cal/g ∙ kcal/g ∙ cal/g
Questions:
- The energy density needs to be split (per mass/volume), and we can use "per unit mass" as for cost, or just "per mass". I like brevity, but the former is probably better?
- Should "per volume" be renamed "per unit volume"?
- Should "population density" be split, or just renamed "per unit area"?
It's minor, but it would be good to clear up these issues, at least for now. Johnuniq (talk) 03:31, 9 March 2013 (UTC)
- Yes, I think "energy per mass" and "energy per volume" would be best. They are also an easier terms to understand than "specific energy" and "energy density" for anyone that doesn't follow the subject. -- WOSlinker (talk) 08:09, 9 March 2013 (UTC)
- There's also "energy per length" as well. energyperlength, energypermass and energypervolume -- WOSlinker (talk) 08:28, 9 March 2013 (UTC)
- As to whether to go for "xxx per yyy" or "xxx per unit yyy", I'm not sure which is best. I do agree that they should all be consistent though. I would also split the "population density" and put the "per unit area" separately. -- WOSlinker (talk) 08:38, 9 March 2013 (UTC)
- Also for the redirect in User:WOSlinker/ConvertUsage, if you want to split them out, that's fine with me. -- WOSlinker (talk) 08:39, 9 March 2013 (UTC)
- I've finished doing all that (but not splitting the redirect table—not sure if that's useful). I made several name changes, including making the "per" names consistent (after writing out both alternatives and comparing, I thought "per unit" was better).
- Originally, I put the sections in the conversion data in a "logical" order, but it's too hard to find things now, so I intend putting them in alphabetical order. I will probably also put all the units in each section in alpha order (I'll adapt a script I have to do the alpha ordering—shouldn't take too long, but I'll leave it for now).
- After another couple of days of fiddling with units, I'll get back to fixing the major outstanding problems. Johnuniq (talk) 10:50, 10 March 2013 (UTC)
- Also for the redirect in User:WOSlinker/ConvertUsage, if you want to split them out, that's fine with me. -- WOSlinker (talk) 08:39, 9 March 2013 (UTC)
- As to whether to go for "xxx per yyy" or "xxx per unit yyy", I'm not sure which is best. I do agree that they should all be consistent though. I would also split the "population density" and put the "per unit area" separately. -- WOSlinker (talk) 08:38, 9 March 2013 (UTC)
- There's also "energy per length" as well. energyperlength, energypermass and energypervolume -- WOSlinker (talk) 08:28, 9 March 2013 (UTC)
While wondering why the values in Template:Convert/lb/nmi were broken, I checked its history. It appears to be an unused test page (see mention here), and perhaps it should be deleted and removed from User:WOSlinker/ConvertUsage and Template:Convert/testcases/bytype/lineardensity? Some of those units are actually about the amount of exhaust gas generated per distance traveled, and I'm pondering whether they should be in a separate section. Johnuniq (talk) 01:41, 12 March 2013 (UTC)
- Ok, it's gone. And I've split up linear density. -- WOSlinker (talk) 07:34, 12 March 2013 (UTC)
#invoke:InfoboxImage
Please could you explain this edit (for my education, not because I'm questioning it). Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 15:25, 16 March 2013 (UTC)
- it appear to be a new lua module that handles replaces {{Hide if placeholder image}} and most uses of {{px}}. what I don't understand in edits like this one that change {{{imagesize|{{{image_size|}}}}}} to {{{image_size|{{{image_size|}}}}}}. Frietjes (talk) 15:34, 16 March 2013 (UTC)
- Yes, that one was a mistake, which I've now fixed. Thanks for pointing it out. There's a demo of Module:InfoboxImage at Module talk:InfoboxImage. It handles both raw filenames and full image links and also replaces the {{Hide if placeholder image}} template. -- WOSlinker (talk) 15:40, 16 March 2013 (UTC)
- probably need to check for more mistakes. Frietjes (talk) 15:43, 16 March 2013 (UTC)
- Arrrggghh, I was trying not to make any but I'll go back & check. -- WOSlinker (talk) 15:46, 16 March 2013 (UTC)
- another one here. Frietjes (talk) 15:52, 16 March 2013 (UTC)
- Arrrggghh, I was trying not to make any but I'll go back & check. -- WOSlinker (talk) 15:46, 16 March 2013 (UTC)
- Thank you. Perhaps worth adding your explanation to that page; then including a shortcut link to it in your edit summaries? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 18:57, 16 March 2013 (UTC)
- probably need to check for more mistakes. Frietjes (talk) 15:43, 16 March 2013 (UTC)
- Yes, that one was a mistake, which I've now fixed. Thanks for pointing it out. There's a demo of Module:InfoboxImage at Module talk:InfoboxImage. It handles both raw filenames and full image links and also replaces the {{Hide if placeholder image}} template. -- WOSlinker (talk) 15:40, 16 March 2013 (UTC)
Infobox squash player
Can you please change Template:Infobox squash player's code to use Template:Infobox sportsperson? -- Magioladitis (talk) 16:02, 16 March 2013 (UTC)
- I'll have a look. -- WOSlinker (talk) 22:14, 16 March 2013 (UTC)
Stub errors
You seem to be polluting Category:Pages with script errors due to templates with errors from Module:Asbox stubtree. Dragons flight (talk) 04:05, 17 March 2013 (UTC)
- Thanks. I've fixed it. -- WOSlinker (talk) 08:53, 17 March 2013 (UTC)
Template:Infobox WorldScouting
I saw your change to {{Infobox WorldScouting}}. It has caused a cascade effect. How do we now fix pages that used the old formatting? For example: Scouting in California. Thanks. --evrik (talk) 13:49, 18 March 2013 (UTC)
- I've updated Module:InfoboxImage to work with that particular format, so now if the image param starts with {{ or < then it will go through unmodifed. -- WOSlinker (talk) 15:48, 18 March 2013 (UTC)
- Thanks! --evrik (talk) 22:28, 18 March 2013 (UTC)
Template:Infobox campground
Could you recommend someone I can ask to look at this discussion: Template talk:Infobox campground?--evrik (talk) 22:28, 18 March 2013 (UTC)
- I have replied on the template talk page. -- WOSlinker (talk) 23:10, 18 March 2013 (UTC)
The Template Barnstar | ||
For your work with {{Infobox campground}}, thanks! --evrik (talk) 16:26, 19 March 2013 (UTC) |
Convert progress continued
I just changed the way "should be" unit codes are handled and for compatibility used <code>
around the units, for example:
- Use
<code>L/100 km</code>
not<code>L100km</code>
→ UseL/100 km
notL100km
However, it looks like this (the current template is also shown):
{{convert/sandboxlua|1|L100km}}
→ 1 L100km[convert: unknown unit]{{convert|1|L100km}}
→ 1 L100km[convert: unknown unit]
The module gives an ugly result, and I think removing the code tags is all that's needed, but before I do that I thought I would ask if you think any simple style should be applied.
BTW I spent the best part of the last three days fixing and checking everything so the redundant data could be removed from the conversion data. It had a dramatic effect on the module size (it's size has decreased by 24%, and it now displays correctly at Module:Convertdata). However, it does not appear to have had a helpful effect on speed, although more tests would be needed to determine that as there is quite a lot of variability. Johnuniq (talk) 10:10, 17 March 2013 (UTC)
- You could using the
<tt>
tag instead. -- WOSlinker (talk) 14:15, 17 March 2013 (UTC) - Conversion error: Use
L/100 km
notL100km
- I've created a warnings testcase page. -- WOSlinker (talk) 14:34, 17 March 2013 (UTC)
- The
<tt>
tag has been marked as obsolete in HTML5. Some of us have been going around altering these to more suitable tags, such as<code>
. --Redrose64 (talk) 15:48, 17 March 2013 (UTC)- So would
<code style="background:transparent;">
be better? -- WOSlinker (talk) 16:34, 17 March 2013 (UTC)- It looks like it: Conversion error: Use
L/100 km
notL100km
--Redrose64 (talk) 18:46, 17 March 2013 (UTC)- Sweet. I could not bring myself to duplicate all that html in the conversions data because I would waste hours in the future checking that all the styles were the same, so I changed the script to replace "%{L100km%}" with the correct expression used by Redrose64 above. Is there some simple trick that could be used to format the rows where message text is used so that the one cell containing the long message extends horizontally, rather than wrapping vertically as seen at the bottom of this section? Johnuniq (talk) 01:20, 18 March 2013 (UTC)
- It looks like it: Conversion error: Use
- So would
- The
- I've created a warnings testcase page. -- WOSlinker (talk) 14:34, 17 March 2013 (UTC)
A colspan="11" |
would do it. -- WOSlinker (talk) 07:26, 18 March 2013 (UTC)
Unit code | Symbol | US symbol | Scale | Extra | Name | Plural name | US name | US plural name | Prefix | Default | Link |
---|---|---|---|---|---|---|---|---|---|---|---|
impgal/mi | imp gal/mi | 4.54609/1.609344 | volume/length | imperial gallon per mile | imperial gallons per mile | l/km USgal/mi | Fuel economy in automobiles | ||||
mpg | !Use %{mpgus%} for miles per US gallon or %{mpgimp%} for miles per imperial gallon (not %{mpg%}) |
Large scale units
Thanks for the above; you've probably seen that I used that. I'm looking at large scale units and am curious about something in the result for units like {{convert/e3t}} when abbreviated.
{{convert|5123|LT|e3t}}
→ 5,123 long tons (5.205×10 3 t)
The nowiki output is:
5,123 long tons (5.205<span style="margin-left:0.2em">×<span style="margin-left:0.1em">10</span></span><s style="display:none">^</s><sup>3</sup> t)
The same thing with obvious stuff removed is:
5,123 long tons (5.205×10<s style="display:none">^</s>³ t)
Do you know of a reason the "display:none" circumflex is used? It's obviously using the program notation of 10^3
to mean 103, but is it doing something? It's easy to include the wikitext when I do all the associated stuff, but I'm curious. Thanks. Johnuniq (talk) 00:05, 22 March 2013 (UTC)
- It seems to have been added for some "copy & paste" reason. [1]. But when I do a copy & paste, I don't see the ^ so doesn't seem to be working for me. -- WOSlinker (talk) 11:53, 22 March 2013 (UTC)
- Amazing sleuthing, thanks. It doesn't work here either, but taking that hint, I tried Internet Explorer 8.0 and it works there. I then tried:
{{convert|1|ML}} {{convert|1.23e12|g|lb}}
→ 1 megalitre (35×10 3 cu ft) 1.23×1012 grams (2.71×109 lb)
- which IE8 copies as:
- 1 megalitre (35×10^3 cu ft) 1.23e12 grams (2.7×109 lb)
- which shows that a different template must be generating the
×10
for each case. I'll decide what to do soon as I'm about a day or two away from completing large scale units. Johnuniq (talk) 20:40, 22 March 2013 (UTC)
- Amazing sleuthing, thanks. It doesn't work here either, but taking that hint, I tried Internet Explorer 8.0 and it works there. I then tried:
Module naming
I noticed a discussion (I think here) where it was suggested that related modules should be subpages of the main module. That seems a good idea which I have been wondering about that since noticing that the reference manual (here) was changed to promote that procedure. Specifically, the ref used to mention Module:Convertdata
in an example of loading a data table, but it now uses Module:Convert/data
(a subpage). Do you have an opinion on that? Assuming it's desirable, I was thinking I may as well move the page soon. I was also planning to later create another page like Module:Convert/complex
to handle complex cases like {{convert/Mach}} and {{convert/hand}}. Johnuniq (talk) 20:40, 22 March 2013 (UTC)
- Yes, generally it's good to use subpages to group things together. That's what is done for template pages. -- WOSlinker (talk) 21:35, 22 March 2013 (UTC)
museum
malformed <includeonly>...</includeonly>
in this edit, see here. Frietjes (talk) 17:33, 29 March 2013 (UTC)
- Fixed. Thanks. -- WOSlinker (talk) 17:56, 29 March 2013 (UTC)
Infobox station
I just saw your module addition to Template:Infobox station, which looks very nice. Could you please restore the default image size to 300px, as it was until several months ago? No consensus was reached in this discussion to reduce to the current 290px. While this may seem like a minor issue, many route diagram templates and other templates used in infoboxes are based on that 300px standard, and so in some cases I've had to hard-code images sizes which defeats having the whole default size parameter. (Please respond here; I'll watchlist your talk.) Thanks, Pi.1415926535 (talk) 14:27, 31 March 2013 (UTC)
- Ok, done, but just wondering about the default width for the infobox as well, since if you now do an infobox with & without an image, they are different widths. For example:
Station without Image | |
---|---|
General information | |
Location | Test |
Station with Image 290px | |
---|---|
General information | |
Location | Test |
Station with Image default | |
---|---|
General information | |
Location | Test |
Image width default might actually be better at 285px. -- WOSlinker (talk) 14:46, 31 March 2013 (UTC)
If both
Hi, I'm having a problem with {{If both}}, in {{Infobox opera}} (as you can see in its documentation; second example). Can you assist, please? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 08:53, 1 April 2013 (UTC)
- Fixed. You missed out some pipes. -- WOSlinker (talk) 09:00, 1 April 2013 (UTC)
- That makes sense, thank you. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 09:21, 1 April 2013 (UTC)
WikiThanks
Thank you for answer.--Ворота рая Импресариата (talk) 09:54, 1 April 2013 (UTC)
Template:Age in years and months
Thanks for working on this. I copied your version from the sandbox to the main template and tested it using Australian Labor Party (table in section "ALP federal parliamentary leaders") and Liberal Party of Australia (table in section "Liberal federal leaders"). It worked for the latter, where the line for Malcolm Fraser (#6) turned into "7 years, 11 months, 11 months" because I wrote ", 11 months" at the end in plain text. So all good there. At Australian Labor Party, the line for Andrew Fisher (#2) turned "8 years" into "8 years, 12 months". If you decide to try again, the parameters for the "8 years, 12 months" output look like this, {{age in years and months|1907|10|1|1915|10|27}}, and results in "8 years" with the sandbox code. Thanks again. -Rrius (talk) 08:38, 30 March 2013 (UTC)
- There's no magic being done in that template is there? That is, it is not accurately counting days per the calendar, with 29 days in February 2004, but only 28 in 2005, and so forth? If no magic is being done, and the age is simply based on 365.25 days per year with each month being one twelfth of that, I could write a very simple module (Module:Age?) to do the work. Let me know if it is wanted (I need a break from the convert monster!). Johnuniq (talk) 09:52, 30 March 2013 (UTC)
- There is nothing special in the template. The logic used in the template could be transfered to a Lua version. However, there are other age versions at Category:Date mathematics templates to consider, so if a Lua version is done, it may be worth including different output options. -- WOSlinker (talk) 14:23, 30 March 2013 (UTC)
- I got bold and (after a lot of checking), created Module:Age and edited {{Age in years and months}} to invoke it. Please have a look at the "TODO" in the module because I'm not sure what link and category should appear for an error (and if the category is used, it would need to be fixed to be a subcat of something). In the end, I made the code check each date exactly (for example, 2004-02-29 is valid, but 2005-02-29 is not). I think the old template accepted any date, but the new version will display an error if invalid. The code could be extended to handle more age formats, if needed. Johnuniq (talk) 10:42, 31 March 2013 (UTC)
- Looks good. Could always add another check to make sure that the first date comes before the second date if you wanted to. -- WOSlinker (talk) 10:55, 31 March 2013 (UTC)
- The old template gave a negative duration (although it had bugs). Taking that hint, the module gives a negative result if the first date is after the second. I just updated the template docs with an example for that. Johnuniq (talk) 11:32, 31 March 2013 (UTC)
- I have no idea what any of that means, but thank you both. The new code seems to be working perfectly. -Rrius (talk) 02:17, 1 April 2013 (UTC)
- The old template gave a negative duration (although it had bugs). Taking that hint, the module gives a negative result if the first date is after the second. I just updated the template docs with an example for that. Johnuniq (talk) 11:32, 31 March 2013 (UTC)
- Looks good. Could always add another check to make sure that the first date comes before the second date if you wanted to. -- WOSlinker (talk) 10:55, 31 March 2013 (UTC)
- I got bold and (after a lot of checking), created Module:Age and edited {{Age in years and months}} to invoke it. Please have a look at the "TODO" in the module because I'm not sure what link and category should appear for an error (and if the category is used, it would need to be fixed to be a subcat of something). In the end, I made the code check each date exactly (for example, 2004-02-29 is valid, but 2005-02-29 is not). I think the old template accepted any date, but the new version will display an error if invalid. The code could be extended to handle more age formats, if needed. Johnuniq (talk) 10:42, 31 March 2013 (UTC)
- There is nothing special in the template. The logic used in the template could be transfered to a Lua version. However, there are other age versions at Category:Date mathematics templates to consider, so if a Lua version is done, it may be worth including different output options. -- WOSlinker (talk) 14:23, 30 March 2013 (UTC)
FYI: I couldn't stop fiddling with the code, and have added implementations of {{Age in days}} and {{Gregorian serial date}}. I don't know if it would be worth replacing the tried-and-true template code, but the module is available if needed. See Module talk:Age. Johnuniq (talk) 10:08, 2 April 2013 (UTC)
COI template for user pages...
Please check out the template I created as a companion to Template:Connected_contributor. Still needs documentation and what not, but I wanted to get consensus that it is a useful template first (I've had a lot of them called useless lately). Thanks! Technical 13 (talk) 20:12, 5 April 2013 (UTC)
- I don't have an oppinion on wether it's useful or useless as I haven't used Template:Connected_contributor at all so I can really coment. However, I'm not sure that the banned param would be much use in your template since you can't be adding the banner to a talk page when you are banned. -- WOSlinker (talk) 20:39, 5 April 2013 (UTC)
- I got your name from the recent changes page for Template:Connected_contributor, so hoped you may be familiar with it. It would be useless to the user that put the template on the page, however, if the user was blocked, the blocking admin or any other user could trigger it. I debated taking it out, but figured it wouldn't hurt to leave and see what people though. Technical 13 (talk) 21:23, 5 April 2013 (UTC)
- I do quite a bit of template editing. That particular one was just a tidy up. -- WOSlinker (talk) 22:37, 5 April 2013 (UTC)
- I got your name from the recent changes page for Template:Connected_contributor, so hoped you may be familiar with it. It would be useless to the user that put the template on the page, however, if the user was blocked, the blocking admin or any other user could trigger it. I debated taking it out, but figured it wouldn't hurt to leave and see what people though. Technical 13 (talk) 21:23, 5 April 2013 (UTC)
Some real convert progress
I've done a massive amount of work in the last two weeks and have fixed a number of problems. I just uploaded the new stuff, and you will see that it is doing much better in all the testcases except for misc and dualunit. There are some rounding problems that I have been ignoring, but I'll investigate them soon, and will also look at the remaining unknown units. Other major problems that I'll get around to are mutiple input units (2|ft|6|in
), and some of the complex units like Mach and hand.
Fixing the fuelconsumption stuff required several new features that I'll have to document later. While doing that I found that the templates output wikilinks like [[mile]]
, rather than [[mile|mile]]
, as both the templates and previous versions of the module do for most other units. Therefore, I put some code into the module to clean up all wikilinks, but the result now is that a lot of tests which used to be "Exact Match" are now "Link" because the template is outputting, for example, [[acre|acre]]
while the module is outputting [[acre]]
.
There are quite a few differences in the testcases that are due to glitches in the templates. One of those is that the module consistently outputs 'µ' (Unicode MICRO SIGN), while the templates sometimes output 'μ' (GREEK SMALL LETTER MU)—for example, at mole. Johnuniq (talk) 10:52, 11 April 2013 (UTC)
- I've updated Module:ConvertTestcase to update links such as
[[acre|acre]]
to[[acre]]
, so the Exact Matches are now back again. -- WOSlinker (talk) 11:47, 11 April 2013 (UTC)
I have done a bunch of fixes in the last three weeks, and all major stuff now appears to be complete. I've implemented mutiple input units (2|ft|6|in), and defined Mach and hand as "built-in" units. Please see the summary at Module talk:Convert, underneath "The testcases show good agreement...", which shows my opinion that the only significant disagreements are problems in the templates. Do you think I should implement the current "unknown units": horse year, note, spanner, and wrench? "What links here" shows they are not used. Johnuniq (talk) 11:02, 26 April 2013 (UTC)
- Great news. I don't think that it's worth add those units, since they are not used. -- WOSlinker (talk) 13:35, 26 April 2013 (UTC)
- It may be worth building a set of testcases for all the disp, abbr & adj options as listed at Template:Convert/track just to compare things. -- WOSlinker (talk) 13:46, 26 April 2013 (UTC)
Editprotect Template:AFC_submission
Now that you've added Lua code to Template:AFC submission, please consider adding Category:Lua-based templates to its nowiki section. The /doc probably isn't the best place to put it as other, non-Lua templates use the same /doc file. Thanks. davidwr/(talk)/(contribs)/(e-mail) 18:00, 16 April 2013 (UTC)
- I added it to /doc inside an if statement. -- WOSlinker (talk) 18:41, 16 April 2013 (UTC)
Hi! Was it intentional to change the default number of spaces from 1 to 5? --DixonD (talk) 18:59, 26 April 2013 (UTC)
- No. I put that in when I was doing the sandbox to test something and then forgot to set it back. I've now fixed it. -- WOSlinker (talk) 19:01, 26 April 2013 (UTC)
As one of the people who at some point has edited the BASIC userboxes...
... would you be able to figure out how to make a (semi-humorous) version to the effect of "This user learned to program in BASIC long, long ago, but certainly does not remember how after all these years"? It's a little like the intent of these boxes:
|
|
|
I'd very much like to have a userbox to commemorate being part of the hordes who learned to program in BASIC back when it was one of the only languages there was, especially as it provided me an excellent grounding in understanding that programming involves figuring out what minutiae and step-by-step processes to tell the computer to do in order to get the big-picture result one needs. Let me know! Lawikitejana (talk) 04:46, 2 May 2013 (UTC) P.S. I also wish the section with ISPs etc. had one along the lines of "This user was on America Online back when it had fewer than users." My "n" would be 300,000 (maybe lower!).
- The userboxes are quite easy to make and you could even create one as a subpage of your user page at {{User:Lawikitejana/BASIC}}. Just find another userbox that you like the style of and then copy the code of it into your own page and just change the text to what you can to say and also remove the Category parts are well. -- WOSlinker (talk) 06:44, 2 May 2013 (UTC)
- (talk page stalker) I love making Userboxes and would be happy to help you create such a userbox (and may make my own as well). I used to run my own VBBS in the mid-late ('92-'97) and code in BASIC (BASICA, QBASIC, GW-BASIC) myself. Technical 13 (talk) 11:26, 2 May 2013 (UTC)
RfC:Infobox Road proposal
WP:AURD (Australian Roads), is inviting comment on a proposal to convert Australian road articles to {{infobox road}}
. Please come and discuss. The vote will be after concerns have been looked into.
You are being contacted as a user who participated in previous discussions proposing the deletion of {{infobox Australian road}}
, this RfC does not propose that.
Edit request
Hi. I would appreciate if you would help in modifying the {{GNF Protein box}} template so that an automatic category is only added if the template is transcluded into the main/article space (see this discussion for background). Some time ago you made this edit to the template. I am not familiar with this syntax or the intention of this part of the template code so I did want to not modify something I don't understand since I would probably mess it up. It would appear that adding something like "{{main other | [[Category:Human proteins]] }}" might work, but again, I am not sure how to incorporate that code with the code that you added. Thanks. Boghog (talk) 16:28, 9 May 2013 (UTC)
- Yes, that would fix it. I've added that & replied on the talk page. -- WOSlinker (talk) 17:37, 9 May 2013 (UTC)
- Thanks for your quick and effective reply! Cheers. Boghog (talk) 19:17, 9 May 2013 (UTC)
Module:Convert
I have added testcases: options, options2, and tables. The only differences between the template and the module in options and options2 are due to problems in the template (in options2, the "33-billion-cubic-metre" difference is due to the template using -
instead of "-").
Examining the tables page shows the template has a flaw. Putting {{convert|5000|m|mi|disp=table|sortable=on}}
into Special:ExpandTemplates shows that it outputs the hidden sort key before "align=right", whereas it should be inserted before the value. Looking at the html source for the tables page shows that there is no hidden sort key; also, the "align=right" does not work.
The second table at the tables page uses the module, and I believe it is outputting correct wikitext. However, the Javascript sorting is confused by the tricky table syntax and when you click column N, it uses column N-1 to sort. I don't know if that is my error in formatting, or if it is a sort bug that should be reported somewhere.
I have lots of fiddly things to work on, but they are mostly minor, with some irritating rounding differences, some additional units, and other stuff. I think all supported options have been correctly implemented (I've used a regex to extract all the options mentioned in pages like the template FAQ and talk archives). There are still lots of things the module cannot do, such as converting dates or handling "convert/3". Johnuniq (talk) 04:59, 28 May 2013 (UTC)
- It's looking good. So it should be ready to live soon then? -- WOSlinker (talk) 06:13, 28 May 2013 (UTC)
- I'll be doing significant refactoring for at least a couple more weeks so it won't be soon. Apart from what I mentioned, I'm planning to make it easier to translate messages for use on another wiki by creating Module:Convert/text with (almost) all the text that can be displayed. I imagine the idea of replacing the template with the module would lead to quite a degree of hesitation, if not resistance—I'm a bit hesitant myself! We'll see. One practical issue from using the module would be that the tracking templates won't work, and I don't see any other way (apart from an excruciating search of the all-pages dump) to know which pages are using what features.
- In case you have any thoughts, I'll mention something on my mind (I might ask at VPT later). Since September 2012, {{ntsh}} outputs a hidden sort key of 19 digits. The technique is very clever (I copied it into the module), but I wonder if the Javascript that does the sorting would think "that's numeric, so a numeric sort is needed", but the script would then find that the numbers overflow with unknown consequences. I was thinking I should convert the initial digit to a corresponding letter to force it to always be an alpha sort (which is how the sort key is supposed to work). Johnuniq (talk) 07:01, 28 May 2013 (UTC)
- You could still transclude the tracking templates for the disp & abbr params from the module if they were needed but it would be more difficult to track the usage of the different units. -- WOSlinker (talk) 20:41, 28 May 2013 (UTC)
Proposal to rename tracking categories
Please see Wikipedia:Village pump (technical)#Namespacing meta categories. Cheers, Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 15:30, 28 May 2013 (UTC)
unclosed tags
Hi. This page 1963–64 Colchester United F.C. season has 52 unclosed tags. Can you please close them? Do you know how I could obtain a list of pages with many (i.e. more than 20?) unclosed tags? -- Magioladitis (talk) 13:26, 30 May 2013 (UTC)
- Not sure but there are more pages in Category:Colchester United F.C. seasons with the same issue. -- WOSlinker (talk) 18:21, 30 May 2013 (UTC)
List of abbeys and priories in Ireland has 1600+ unclosed small tags! -- Magioladitis (talk) 09:55, 5 June 2013 (UTC)
- Maybe Frietjes could help with this? -- Magioladitis (talk) 17:26, 6 June 2013 (UTC)
Template:2011 League of Ireland Premier Division table has been nominated for deletion. You are invited to comment on the discussion at the template's entry on the Templates for discussion page. Kingjeff (talk) 17:46, 7 June 2013 (UTC)
TFD of interest to you
You were involved in cleaning up many of the templates at issue at Wikipedia:Templates_for_discussion/Log/2013_June_13#Template:GuldbaggeAwardBestFilm_footer.--TonyTheTiger (T/C/BIO/WP:CHICAGO/WP:FOUR) 06:26, 14 June 2013 (UTC)
My template.
That template was not supposed to be moved to my userspace. Now, when I sign, it links to a non-existant template. Scientific Alan 2(Click here to talk)(What have I done?)(Me) 21:41, 16 June 2013 (UTC)
- They should not be in the template space. Nobody else has signatures as templates. Just use {{SUBST:User:Scientific_Alan_2/sign}} -- WOSlinker (talk) 21:49, 16 June 2013 (UTC)
- Please see also WP:SIG#NoTemplates. --Redrose64 (talk) 09:15, 17 June 2013 (UTC)
Your help requested at WP:Split
Greetings.
I'm a newbie, and I'm wise enough to say so, so pardon me if I'm doing things the "wrong" way or seem to be out of place. I'm trying to learn all I can and practice techniques in my own userspace before attempting to do things in the "real world" and inadvertently causing a big stir, as newbies are wont to do. :-)
It seems like you were a recent contributor to Template:Split to. So it seems to me like you may be an excellent person to have in the discussion we're having on how to properly split an article, and then properly updating WP:SPLIT to reflect what we've learned. I think I'm not the only one who's a bit confused about how this template is to be used and what the final result should look like.
I'm actually an old computer geek, myself, and pretty good at writing documentation, so I can certainly help there ... but where we're weak is understanding specifically what the template is calling for.
I'll also be inviting contributors of Template:Split from to our discussion, so we can have a full understanding and agreement on this.
Thanks in advance for your help and comments!
Walbran Photograph
Thanks for fixing the citation of the Walbran grave photograph, ... PeterEasthope (talk) 21:38, 18 June 2013 (UTC)
A kitten for you!
Thanks for fixing the way the photo was displayed on Elizabethtown, Pennsylvania. I was pretty sure I didn't do it properly and I didn't know how to fix it.
USRD banner
On Template:WPBannerMeta/Conversion, does the comment regarding {{USRD}}
mean that the sorting built into the template now doesn't play nice with DEFAULTSORT? Would it be easier to scrap the USRD code and handle sorting like every other project? I bring it up only because I think converting to the meta banner would get a warmer reaction now than it has in the past. –Fredddie™ 05:33, 19 June 2013 (UTC)
- Well, I did some tidying up of the templates code a few years ago and one of the things I tried was using listas rather than sort ([2]). There were a few problems though as mentioned on the talk page so I reverted it. -- WOSlinker (talk) 06:24, 19 June 2013 (UTC)
A message for you
Hello. I just wrote a message for you on Module talk:InfoboxImage. Greetings --Tlustulimu (talk) 11:09, 22 June 2013 (UTC)
- Hello. You accidentally removed three lines for the parameter center. I just added them again to the sandbox. Greetings --Tlustulimu (talk) 12:17, 22 June 2013 (UTC)
- Oops, I've fixed it on the live one. -- WOSlinker (talk) 12:50, 22 June 2013 (UTC)
- Thank you. --Tlustulimu (talk) 12:54, 22 June 2013 (UTC)
- Oops, I've fixed it on the live one. -- WOSlinker (talk) 12:50, 22 June 2013 (UTC)
Thanks; edit request
Hi WOSlinker,
Thank you for deleting Category:Articles containing Chinese language text. Could you please edit the templates that add this to reflect the renamed category (i.e., Category:Articles containing Chinese-language text)?
Thank you very much. --Qwerty Binary (talk) 16:00, 22 June 2013 (UTC)
- I think that's already been done. -- WOSlinker (talk) 17:10, 22 June 2013 (UTC)
- Oh, in that case, okay. Thanks again. --Qwerty Binary (talk) 18:11, 22 June 2013 (UTC)
Infobox software
Template:Infobox software needs to support bare filenames on screenshot field. -- Magioladitis (talk) 04:53, 16 June 2013 (UTC)
- Done -- WOSlinker (talk) 06:04, 16 June 2013 (UTC)
- Hi. Thanks for the edit. (Just saw it in my watchlist.) Only I think the default size for screenshot is not set to optimal value. Editing trend shows that the default size for screenshot is 300px. For logo, if it is same as the computer icon, it is 64px but since it always isn't, I guess "frameless" is fine. Best regards, Codename Lisa (talk) 06:43, 16 June 2013 (UTC)
- Ok, set to 300px. -- WOSlinker (talk) 06:45, 16 June 2013 (UTC)
- Ok, set logo to 64px as well. -- WOSlinker (talk) 06:49, 16 June 2013 (UTC)
- Ok, set to 300px. -- WOSlinker (talk) 06:45, 16 June 2013 (UTC)
- Hi. Thanks for the edit. (Just saw it in my watchlist.) Only I think the default size for screenshot is not set to optimal value. Editing trend shows that the default size for screenshot is 300px. For logo, if it is same as the computer icon, it is 64px but since it always isn't, I guess "frameless" is fine. Best regards, Codename Lisa (talk) 06:43, 16 June 2013 (UTC)
Template:Infobox comet too. -- Magioladitis (talk) 07:01, 17 June 2013 (UTC)
- Done. -- WOSlinker (talk) 13:31, 17 June 2013 (UTC)
Template:Infobox meteorite and Template:Infobox meteorite subdivision need to support standard lowercase parameters image, caption, alt. Moreover, I think they can converted to use infobox. -- Magioladitis (talk) 13:35, 17 June 2013 (UTC)
- Also Template:Infobox casino & Template:Infobox star -- WOSlinker (talk) 14:46, 17 June 2013 (UTC)
- Ping Frietjes -- Magioladitis (talk) 18:05, 17 June 2013 (UTC)
Template:Infobox observatory and Template:Infobox diffuse nebula need to support bare filenames. -- Magioladitis (talk) 15:03, 17 June 2013 (UTC)
- Done -- WOSlinker (talk) 15:55, 17 June 2013 (UTC)
Template:Infobox pyramid, Template:Infobox room, Template:Infobox prison need to support bare filenames too. -- Magioladitis (talk) 18:09, 17 June 2013 (UTC)
- Done -- WOSlinker (talk) 20:24, 17 June 2013 (UTC)
Template:Infobox Korean name needs to support image and image_size. -- Magioladitis (talk) 05:46, 20 June 2013 (UTC)
- Done -- WOSlinker (talk) 05:58, 20 June 2013 (UTC)
Template:Infobox oil field needs infoboximage. I probably need to make full lists in the future instead of random checks. -- Magioladitis (talk) 06:05, 20 June 2013 (UTC)
Template:Interventions infobox needs infoboximage. -- Magioladitis (talk) 12:13, 1 July 2013 (UTC)
- Done, but someone should move it to
{{infobox interventions}}
? Frietjes (talk) 17:09, 1 July 2013 (UTC)- Frietjes Done. -- Magioladitis (talk) 17:13, 1 July 2013 (UTC)
Template:(film)
seems to be about as intuitive as {{disambiguated link}}
. Frietjes (talk) 17:08, 1 July 2013 (UTC)
Module:InfoboxImage again
Hello, WOSlinker. Is it possible to add an additional parameter for a file ending to Module:InfoboxImage, so that not only works
{{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image width|}}}|sizedefault=frameless|alt={{{caption|}}}|suppressplaceholder=yes}}
but also
{{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|ending={{{image ending|}}}|size={{{image width|}}}|sizedefault=frameless|alt={{{caption|}}}|suppressplaceholder=yes}}
? If image ending isn't defined, it should work like now. And this parameter should accept jpg, jpeg, png, thus, without the point between the first part of the file name and the ending. I would need such a tricky code for some templates on the Esperanto Wikipedia. --Tlustulimu (talk) 16:23, 25 June 2013 (UTC)
- I already created a sandbox for the module, but on the Esperanto Wikipedia: eo:Modulo:InfoboxImage/provejo. It works very well on a template testing page and the documentation page of the module sandbox. Greetings --Tlustulimu (talk) 19:52, 25 June 2013 (UTC)
- I'll have a look in a while. Haven't got much free time today. -- WOSlinker (talk) 15:10, 26 June 2013 (UTC)
- I've been taking a look at this but I'm not sure if it would be much use on the wiki here. -- WOSlinker (talk) 06:42, 5 July 2013 (UTC)
- I'll have a look in a while. Haven't got much free time today. -- WOSlinker (talk) 15:10, 26 June 2013 (UTC)
It's still showing the old category there. I want to fix it but I'm not sure what template or anything contains the red cat. Enigmamsg 16:21, 1 July 2013 (UTC)
- I opened the page, made no edits, and saved it, which seems to have cleared the problem? Frietjes (talk) 17:08, 1 July 2013 (UTC)
- Yes, thanks. Not sure how that even happened with no edit in the edit history but it cleared it somehow. I guess it only registers as an edit if a character has been changed. Enigmamsg 16:12, 3 July 2013 (UTC)
- Exactly, see WP:NULLEDIT. --Redrose64 (talk) 18:56, 3 July 2013 (UTC)
- Yes, thanks. Not sure how that even happened with no edit in the edit history but it cleared it somehow. I guess it only registers as an edit if a character has been changed. Enigmamsg 16:12, 3 July 2013 (UTC)
Rail
Hi WOSlinker. I am intending on a more descriptive, less misleading classification for Britain's railways. Please give your thoughts as to how we can improve the current classification at the railways template where you have been a contributor. Adam37 (talk) 15:22, 5 July 2013 (UTC)
INDPUA
Thank you for your work at WP:INDPUA (adding categories). You deserve a barnstar (follows) I was planning to do the same thing very soon. Those templates are AWB friendly. --Tito☸Dutta 03:40, 6 July 2013 (UTC)
MLB player
looks like I had a small typo, see this request. thank you. Frietjes (talk) 14:54, 6 July 2013 (UTC)
Category:Infobox wrapper templates
I have created Category:Infobox wrapper templates. Please feel free to make use of it. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 12:02, 13 July 2013 (UTC)
Request to take part in a survey
I am Piotr Konieczny, a fellow Wikipedian (User:Piotrus) and a researcher of Wikipedia (http://scholar.google.com/citations?user=gdV8_AEAAAAJ). I am currently (in collaboration with WMF) embarking on a project trying to understand why the most active Wikipedia contributors (such as yourself) may reduce their activity, or retire. We have a growing understanding of why an average editor may do so (see http://strategy.wikimedia.org/wiki/Former_Contributors_Survey_Results), but we have a very limited understanding of why the top editors would limit their contributions. Yet it is the top editors like yourself who contribute most of Wikiepdia's content, thus understanding this is of vital concern to Wikipedia's project future.
I am contacting you because you are among the top Wikipediana by number of edits, yet your editing activity shows a decline. I would very much appreciate if you would take a minute and answer the following four short questions. Please note this is not a mass email; I am contacting only few dozen of editors like yourself, and each response is extremely valuable. Your response will not be made public, and your privacy will be fully respected.
If you would like to help out in this project and take part in a very short survey, please send me a wikiemail, so that I can send you an email with the survey questions. --Piotr Konieczny aka Prokonsul Piotrus| reply here 20:30, 15 July 2013 (UTC)
- Hi, did you have time to consider my request? Cheers, --Piotr Konieczny aka Prokonsul Piotrus| reply here 11:55, 20 July 2013 (UTC)
- Sorry, not interested. -- WOSlinker (talk) 07:20, 21 July 2013 (UTC)
Bare filenames in image field
Template:Infobox country demographics and Template:Infobox ITV franchisee, Template:Infobox animanga, Template:Infobox BBC nation or region need to support use of bare filenames in image field. -- Magioladitis (talk) 10:13, 19 August 2013 (UTC)
- Done Thanks Frietjes. -- Magioladitis (talk) 06:04, 23 August 2013 (UTC)
Belated PUAs...
...for your categorization work at WP:INDPUA"
A North Indian thali (meal) for you | ||
Here is a North Indian thali (meal) for you. In this meal rice is served with naan, daal, raita, shahi paneer, and salad. Hope you'll like this North Indian thali. Thank you. Tito☸Dutta 07:40, 22 August 2013 (UTC) |
A plate of Mutton Masala for you | ||
Here is a plate of Mutton Masala curry for you. Mutton Masala is a popular food is South East Asia, specially in India, Pakistan and Bangladesh. Thank you. Tito☸Dutta 07:40, 22 August 2013 (UTC) |
A bottle of Thums Up for you | ||
Here is a bottle of Thums Up! Thums Up is an Indian soft drink. It was introduced in 1977 to offset the expulsion of The Coca-Cola Company from India. The brand was later bought by Coca-Cola who re-launched it in order to compete against Pepsi. Thank you. Tito☸Dutta 07:40, 22 August 2013 (UTC) |
Pages that use html table instead of wikitable
Here is a list of 4,000 pages that use html table instead of wikitable. Most of them can be easily converted using AutoEd. I would like your help to convert as much as possible. Wikipedia:CHECKWIKI/031 dump. -- Magioladitis (talk) 23:00, 2 September 2013 (UTC)
frasl
A wikignome edited Module:Convert to replace ⁄
with the equivalent Unicode U+2044 (⁄) (diff). I see that {{frac}} (from where I stole the wikitext) still has ⁄
. I am happy with Unicode (and use − instead of −
), so there is no problem with the edit. However, I have no idea whether there is some reason that frasl might be preferred, so I thought I'd ask. Re the module: I'm still working on a few translation issues that have cropped up at the Bengali wiki—it looks pretty amazing, have a glance at some bn examples. Johnuniq (talk) 03:51, 3 September 2013 (UTC)
- I'm not really sure which is preferred. -- WOSlinker (talk) 12:39, 3 September 2013 (UTC)
The Progressive Barnstar
The Progressive Barnstar | ||
I couldn't find a barnstar that would adequately thank those involved in making the template editor user right RFC a reality, so I created this new one. The Progressive Barnstar recognizes those courageous enough to work towards a vision for change at Wikipedia. WOSlinker, your humble gnomish tweak suggestions during the drafting process provided critical polish to this proposal. I consider it a success at this point, no matter what the actual outcome. I thank you. equazcion (talk) 06:27, 18 Sep 2013 (UTC) |
Great
I got wonderful screens when I woke up! Compliments. -DePiep (talk) 11:04, 22 September 2013 (UTC)
Infobox UK place cy
Many thanks for attempting to configure the infobox on the Welsh language version of Wiki. However the infobox now looks like jumbled up wiki code when you open up any related articles eg w:cy:Lynemouth; I'm really surprised that you were happy to leave these Northumberland villages articles in such a mess. Please revert or correct your edits. Many thanks. Llywelyn2000 (talk) 05:30, 23 September 2013 (UTC)
- Ok, I've undone my changes. There appears to be more to fix than I thought, so I've put it back the way it was before I started. -- WOSlinker (talk) 06:12, 23 September 2013 (UTC)
Category names
I asked for opinions about the convert tracking category names at VPT and got a response that supports the terse names I originally chose. I want to make a decision about that, and I'm wondering whether the fact that you created the category pages means you endorse those names. Or, do you prefer the "Pages with" style (shown here)? Johnuniq (talk) 04:14, 27 September 2013 (UTC)
thumbtime
would it be possible to add thumbtime to Module:InfoboxImage? this would allow for some simplification to Template:Infobox event. Frietjes (talk) 18:35, 30 September 2013 (UTC)
- Done. -- WOSlinker (talk) 19:13, 30 September 2013 (UTC)
So I found the issue, and pointed it. Then you erased it without noting us over at module:convert? -DePiep (talk) 21:55, 2 October 2013 (UTC)
- No, I never did anything of the sort. I spotted the error by going to Category:Convert dimension mismatch and seeing the page in the category and then going to that page and finding the issue & fixing it. Also, it wasn't module convert that was repoting the issue, it was some code in Template:Convert/acres. -- WOSlinker (talk) 06:02, 3 October 2013 (UTC)
Scottish Islands assessment classes
Need some help with this if you have a chance.
I decided the 'NA Class' was getting too big at User:WP 1.0 bot/Tables/Project/Scottish Islands so I created Category:Template-Class Scottish Islands articles, Category:Disambig-Class Scottish Islands articles and recreated Category:Category-Class Scottish Islands articles. I then added the relevant parameter for an example of each at e.g. Rousay. I ran the bot but nothing happened, so I added the cat manually at Rousay as well. No joy. I went back to Template:WikiProject Scottish Islands to see how I'd fixed that before, which is here. However, the next edit was yours amending the whole structure to 'Convert to WPBannerMeta' - at which point I confess I was out of my depth. The problem seems to be that User:WP 1.0 bot is not recognising the parameters 'Category' 'Diambig' and 'Template' but I don't know why. Any assistance gratefully received. Ben MacDui 13:01, 6 October 2013 (UTC)
- I've updated the banner with this edit -- WOSlinker (talk) 13:59, 6 October 2013 (UTC)
- .. and a very great deal more besides. Many thanks indeed! Ben MacDui 16:53, 6 October 2013 (UTC)
Cleanup/reduction of Convert subtemplates
I have begun massive cleanup of the Convert subtemplates. Thank you for ed-protecting so many of them. Already temperature ranges have been fixed. We have been planning (for years) to delete hundreds of the suffix "-Na" pages, which Jimp has also done for 1,000 of the suffix "-Imp" (or "-USre"). Although the Lua version seems promising, there are thousands of options to compare, and we will rely on a Template:Convert/old to support prior features, even if/when the Lua version gets accepted. Meanwhile, I need to remove suffix "-Na" from all unit-data subtemplates, including:
- Template:Convert/MtTNT - megatonnes of TNT, used in nuclear pages
Currently, the plan is to finally fix all tiny glitches, which various users have noted during the past years, then have the Lua version match the corrected subtemplates. Meanwhile, I plan to check usage of the interwiki Convert templates on Arabic WP, Japanese WP, and Vietnamese WP, which are mirrored on the markup-based Convert. Thanks again for making it easy to update Convert, and I will ask admin Jimp if wants to remove the hundreds of "-Na" display subtemplates. I think we have seen the end of the {editprotected} updates of dozens of Convert pages! Reply below, if any questions. -Wikid77 08:40, 19 October 2013 (UTC)
Full protection of Infobox name module
Hi WOSlinker, I noticed that you fully protected the Template:Infobox name module, but since the transclusion count it not that high (currently 566) and it was created just a few months ago it could still be expanded or changed in many ways. Perhaps a semi-protection would be enough?--eh bien mon prince (talk) 09:29, 20 October 2013 (UTC)
- I had protected it at template editor level but I've now reduced it to semi. -- WOSlinker (talk) 12:56, 20 October 2013 (UTC)
Module:InfoboxImage
FYI, this module is still full protected due to cascade protection. it's not a problem for me as long as you are still willing to make changes :)
I hacked a |link=
parameter into {{infobox court case}}, but a clone of |alt=
should do what we want here. Frietjes (talk) 15:30, 23 October 2013 (UTC)
- Should be unprotected soon. There's a sort of discussion at Wikipedia talk:Cascade-protected items. -- WOSlinker (talk) 16:18, 23 October 2013 (UTC)
- The cascade protection is gone. -- WOSlinker (talk) 16:33, 28 October 2013 (UTC)
pp-template
Thanks for this, another one was already fixed, but I forgot that I'd protected two of them before I went to eat. --GraemeL (talk) 18:45, 29 October 2013 (UTC)
Template:...
Hi, this is to inform you, as a contributor to Template:.../doc, about a discussion at Template talk:... regarding the purpose of Template:.... --Redrose64 (talk) 17:06, 1 November 2013 (UTC)
Template:Talk archive navigation has been nominated for merging with Template:Automatic archive navigator. You are invited to comment on the discussion at the template's entry on the Templates for discussion page. Thank you. Steel1943 (talk) 05:31, 12 November 2013 (UTC)
Module:Convert
Any chance you would be available to help fix problems that arise if Template:Convert is switched to use the module? The module has recently been copied to Simple and Commons and I have done a small amount of cleanup at each project, and everything looks good. However enwiki is vastly more complex, and your template wizardry may be needed if there are problems like complex infoboxes that call convert in a way the module doesn't expect. Johnuniq (talk) 09:51, 25 November 2013 (UTC)
- Yes, I'm willing to help fix the errors the articles. -- WOSlinker (talk) 11:31, 25 November 2013 (UTC)