User talk:WOSlinker
Archives |
||||||
|---|---|---|---|---|---|---|
|
Contents |
[edit] hlist
Thanks for all your good work applying hlist. Are you using a script, and, if so, how can I do so? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 12:28, 21 November 2011 (UTC)
- I'm using User:WOSlinker/hlist.js. It's not fully automated though, so there is still some manual editing & checking before saving the changes. -- WOSlinker (talk) 12:30, 21 November 2011 (UTC)
- Thank you. How do I invoke it? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 17:50, 22 November 2011 (UTC)
- In your monobook.js add:
- Thank you. How do I invoke it? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 17:50, 22 November 2011 (UTC)
importScript('User:WOSlinker/hlist.js');
or copy the whole source in and then you will see a "hlist" button near the talk / edit / history buttons. -- WOSlinker (talk) 18:13, 22 November 2011 (UTC)
-
-
-
- Got it, thank you. I spotted News Corporation scandal&oldid=461981169 461980881. also, please could you add [[WP:HLIST]] to the default edit summary? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:12, 22 November 2011 (UTC)
- Also (as I'm sure you're aware), you;re not catching the first item in each list. Could you match a pattern of "list[n]="? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:37, 22 November 2011 (UTC)
- Updated the edit summary. Will look at the other issues. -- WOSlinker (talk) 20:29, 22 November 2011 (UTC)
- Right, I've done the list thing to add a * only if the first item starts with a square bracket. This is so that it doesn't add a * if it's a Navbox subgroup. -- WOSlinker (talk) 20:43, 22 November 2011 (UTC)
- Thank you for your prompt action. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 22:12, 22 November 2011 (UTC)
- What about here the first character is
', for emboldening or italicisation? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 22:41, 22 November 2011 (UTC)- Done that now as well. -- WOSlinker (talk) 23:03, 22 November 2011 (UTC)
- Excellent. Thank you again. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 23:26, 22 November 2011 (UTC)
- One more, please: if
|above=or|below=include a list, apply the class to|bodyclass=instead of|listclass=. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 23:32, 22 November 2011 (UTC)
- Done that now as well. -- WOSlinker (talk) 23:03, 22 November 2011 (UTC)
- Right, I've done the list thing to add a * only if the first item starts with a square bracket. This is so that it doesn't add a * if it's a Navbox subgroup. -- WOSlinker (talk) 20:43, 22 November 2011 (UTC)
- Updated the edit summary. Will look at the other issues. -- WOSlinker (talk) 20:29, 22 November 2011 (UTC)
-
-
Another thing I've done is add the following to my monobook.css page to make it more noticeable when a list has been updated. -- WOSlinker (talk) 21:16, 22 November 2011 (UTC)
/* Make it a bit bigger and purple so that it stands out from unconverted lists */ .hlist dd:after, .hlist dt:after, .hlist li:after { content: " ♦"; font-weight: bold; color: purple; }
[edit] Purpose
Can you explain to me what you exactly have done? It is a mystery to me what is the effect on Template:County Clare, except for a smaller template. Night of the Big Wind talk 15:16, 21 November 2011 (UTC)
- It's now a proper list rather than just a collection of links with {{·w}} inbetween them. Visually, eveything should look the same. See Wikipedia:Wikipedia Signpost/2011-11-21/Technology report for a bit of background to it. -- WOSlinker (talk) 15:36, 21 November 2011 (UTC)
- Aha, tried on Template:Michelin stars in Ireland. No change in appearance, but still 333 characters less! Clear and much handier to work with. Thanks for this, will use it! Night of the Big Wind talk 17:54, 21 November 2011 (UTC)
[edit] Thanks
I am using the hlist script and it is awesome. I think making navboxes easier to navigate will encourage less experienced users to edit them. Thanks for doing what you do. Blue Rasberry (talk) 15:42, 30 November 2011 (UTC)
[edit] Script issue
Your script had to be manually assisted with this, and with this. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:37, 17 December 2011 (UTC)
- I hadn't added {{!}}) as there were plenty of others to sort out first. I've now added it. There still going to be cases sometimes that don't work very well and if you spot a set of templates that need something specific then it's sometimes useful to make a copy of the script & edit it to work for those particular templates. That one of the reasons why I created a separate copy at User:WOSlinker/hlist-private.js just for my personal use. -- WOSlinker (talk) 20:59, 17 December 2011 (UTC)
- Thank you. Alas, I'm not a coder. Do you still want to know about such cases? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 21:31, 17 December 2011 (UTC)
- You can always mention them and if they are generic enough I'll add them. -- WOSlinker (talk) 22:31, 17 December 2011 (UTC)
- Fair enough; thanks. How about this one? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 11:52, 18 December 2011 (UTC)
- I've sort of added that. It works apart from leaving a }} at the end of the list which is a bit more difficult to remove via the script as can't just remove all }}, so those at the end will need to be done manually. -- WOSlinker (talk) 12:02, 18 December 2011 (UTC)
- Noted, thanks. Here's yet another. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:09, 18 December 2011 (UTC)
- I've sort of added that. It works apart from leaving a }} at the end of the list which is a bit more difficult to remove via the script as can't just remove all }}, so those at the end will need to be done manually. -- WOSlinker (talk) 12:02, 18 December 2011 (UTC)
- Fair enough; thanks. How about this one? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 11:52, 18 December 2011 (UTC)
- You can always mention them and if they are generic enough I'll add them. -- WOSlinker (talk) 22:31, 17 December 2011 (UTC)
- Thank you. Alas, I'm not a coder. Do you still want to know about such cases? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 21:31, 17 December 2011 (UTC)
Thank you. Next: instances of {{US county navigation box}} don't get |listclass=hlist; see this example. No problem if you want to bunch fixes, rather than giving immediate responses. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:40, 18 December 2011 (UTC)
- Fixed that one. There's just over 3000 of them so will take you a few days to do. -- WOSlinker (talk) 15:28, 18 December 2011 (UTC)
- Thank you. We still need a bot to do this. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 15:46, 18 December 2011 (UTC)
- Can only get a bot to do them when there is a set of templates that are formatted in the same way. That may be the case for those particular ones. But it's difficult to get a bot to do them all as there are so many different ways for formatting a list. I've managed to do quite a few over the last two months with my hlist script. -- WOSlinker (talk) 15:51, 18 December 2011 (UTC)
- Thank you. We still need a bot to do this. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 15:46, 18 December 2011 (UTC)
Another one which give your script problems. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 23:22, 18 December 2011 (UTC)
- and another... Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 23:36, 19 December 2011 (UTC)
- Try now. -- WOSlinker (talk) 23:44, 19 December 2011 (UTC)
- Thank you. Any idea went wrong here? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 00:50, 20 December 2011 (UTC)
- There were some {{link-interwiki}} templates within some of those lines & my script removed the trailing }} from them. It's another one that's difficult to fix. -- WOSlinker (talk) 07:57, 20 December 2011 (UTC)
- Doh! I should have spotted that. Thanks. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 18:43, 23 December 2011 (UTC)
- There were some {{link-interwiki}} templates within some of those lines & my script removed the trailing }} from them. It's another one that's difficult to fix. -- WOSlinker (talk) 07:57, 20 December 2011 (UTC)
- Thank you. Any idea went wrong here? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 00:50, 20 December 2011 (UTC)
- Try now. -- WOSlinker (talk) 23:44, 19 December 2011 (UTC)
Also not working on {{Muriel Spark}}. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 22:43, 24 December 2011 (UTC)
Done -- WOSlinker (talk) 23:25, 24 December 2011 (UTC)
- That's great, thanks. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 11:57, 26 December 2011 (UTC)
And another: {{Top of the Pops}}. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:33, 26 December 2011 (UTC)
And again; I (converted this one manually. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:58, 28 December 2011 (UTC)
Also {{SDFCS Awards Chron}}. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 21:10, 29 December 2011 (UTC)
- Should work for {{Top of the Pops}} & {{SDFCS Awards Chron}} now. -- WOSlinker (talk) 22:58, 29 December 2011 (UTC)
-
- Thanks again. And could you look at covering {{Japan Railway Line}}, which calls {{Navbox}}, please? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 00:49, 31 December 2011 (UTC)
-
-
- I've added listclass passthrough and also added it to Category:Navigational box wrapper templates. -- WOSlinker (talk) 09:51, 31 December 2011 (UTC)
-
[edit] Campaign box
Could you make the script work with {{Campaign}}, too, please? Here's a (conversion ) Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 18:42, 23 December 2011 (UTC)
Done -- WOSlinker (talk) 21:36, 23 December 2011 (UTC)
- Thank you. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 22:13, 24 December 2011 (UTC)
- Not working on {{Campaignbox War of the Spanish Succession}}, no doubt due to the – separator. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 22:20, 24 December 2011 (UTC)
[edit] Comma-separated lists
How about comma-separated lists, like {{Jalilabad Rayon}}? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 22:13, 24 December 2011 (UTC)
- Commas are sometimes within the individua litems on some of those navboxes, so can't really add it to the general script but created a specific version at User:WOSlinker/hlist-comma.js which does commas. Could be worth switching over to that version and doing Category:Azerbaijan rayon templates and then switching back to the standard version of the script. -- WOSlinker (talk) 23:13, 24 December 2011 (UTC)
- Thank you. If you trap "]], [[" you should avoid commas within list items in such lists, surely? anyway have a great Christmas! Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 23:19, 24 December 2011 (UTC)
- True. I've now added that to the general script. The other version is still available if needed for odd cases. -- WOSlinker (talk) 23:25, 24 December 2011 (UTC)
- Works well. Thank you. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 11:57, 26 December 2011 (UTC)
- True. I've now added that to the general script. The other version is still available if needed for odd cases. -- WOSlinker (talk) 23:25, 24 December 2011 (UTC)
- Thank you. If you trap "]], [[" you should avoid commas within list items in such lists, surely? anyway have a great Christmas! Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 23:19, 24 December 2011 (UTC)
In similar vein; period-separated lists, like {{Nineveh plains}}. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:21, 14 January 2012 (UTC)
[edit] Other types
Could you make the script work with {{Sidebar}}, please; for example: {{Maya civilization}}. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 01:05, 7 January 2012 (UTC)
Likewise {{Navbox education in Canada}} - no rush! Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 23:45, 29 January 2012 (UTC)
And here's anther one your script doesn't yet do: {{Members of the European Parliament 2009–2014}}. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 22:06, 31 January 2012 (UTC)
And {{Railway stations in Oxfordshire}}, please. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 13:15, 6 February 2012 (UTC)
- Updated the script to work with those last two. -- WOSlinker (talk) 19:31, 6 February 2012 (UTC)
- Thank you.
Which two? ;-)Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 21:36, 9 February 2012 (UTC)
- Thank you.
Also {{Country history}}; failed in this edit. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 21:36, 9 February 2012 (UTC)
[edit] Bare filenames in |image=
Can you please update {{Infobox Speedway rider}} and {{Infobox military person}} to use bare filenames? -- Magioladitis (talk) 17:04, 22 January 2012 (UTC)
- Not got much spare time to edit at present. -- WOSlinker (talk) 21:40, 25 January 2012 (UTC)
- Done {{Infobox Speedway rider}}. -- WOSlinker (talk) 13:23, 28 January 2012 (UTC)
- 4 more infoboxes updated to use bare filenames. -- Magioladitis (talk) 16:59, 1 February 2012 (UTC)
- Done {{Infobox Speedway rider}}. -- WOSlinker (talk) 13:23, 28 January 2012 (UTC)
I updated {{Infobox military person}} to use bare filenames but updating the pages was proven painful. I really need your help on this one. -- Magioladitis (talk) 18:04, 5 February 2012 (UTC)
- I've created a tracking category at Category:Infobox military person image param needs updating. Over 12,000 to update. I've also updated the infobox so that the image param will work with both options, so there is not as much of a rush to update all those images. -- WOSlinker (talk) 19:01, 5 February 2012 (UTC)
- Thanks. My code is still buggy and I am making the changes manually. I hope it gets better. -- Magioladitis (talk) 20:21, 5 February 2012 (UTC)
Maybe you could your magic to the football player too? -- Magioladitis (talk) 18:57, 8 February 2012 (UTC)
[edit] Listas param
Just curious about this edit...why was this done? — Huntster (t @ c) 21:24, 29 January 2012 (UTC)
- The did seem to me to be any need to track the usage of the listas param. If there is real need to do so then undo my edit. -- WOSlinker (talk) 21:31, 29 January 2012 (UTC)
[edit]
Hi. I think your input would be useful. Thanks. Alarbus (talk) 13:06, 31 January 2012 (UTC)
[edit]
if you have a chance, could you take care of this request, and do the same for template:campaign? I would like to clean up the nesting in Template:Campaignbox Iraq War. thank you. Frietjes (talk) 20:02, 2 February 2012 (UTC)
[edit] use {{px}} for image size
I tried to ensure {{tl|px{{ is used in all infoboxes. Please take a look when you find some spare time. -- Magioladitis (talk) 21:46, 2 February 2012 (UTC)
In User:Magioladitis/Sandbox you can find my custom module for converting images to bare filenames. -- Magioladitis (talk) 22:15, 7 February 2012 (UTC)
[edit] Thanks for the archive box
[edit] comics creator
More and more editors support standardisation of Infobox comics creator. I think now we can replace yob/mob/dob with birth_date. Can you please help? -- Magioladitis (talk) 13:37, 4 February 2012 (UTC)
- No pages use yob/mob/dob right now. -- Magioladitis (talk) 15:38, 11 February 2012 (UTC)
- Just an observation, but if you are going to depreciate what you see 1 set of parameters, please make sure that they are only used with regard to the single field you are going to replace them with. One of the parameters you've been removing functions outside of the birth/death date issue. Could you please go back an replace instances where "nonUS" which you removed were completed with something other than "y"? It is used within the template for language ID of non-English names.
- - J Greb (talk) 20:35, 11 February 2012 (UTC)
-
- I didn't know that nonUS was used on other places too. I'll try to fix this. -- Magioladitis (talk) 20:37, 11 February 2012 (UTC)
-
[edit] Template:Infobox cricketer tour biography
We need to use birth_date and death_date. I can fix the infoboxes afterwards. -- Magioladitis (talk) 16:14, 11 February 2012 (UTC)
- I tried adding support while keeping the existing options but it was too difficult to do, so I've put a new version with just the new params in Template:Infobox cricketer tour biography/sandbox which is ready to copy over when you are ready to update the articles. -- WOSlinker (talk) 18:24, 11 February 2012 (UTC)
- ✓ Done Magioladitis (talk) 20:26, 11 February 2012 (UTC)