Misplaced Pages

User talk:Lightmouse: Difference between revisions

Article snapshot taken from[REDACTED] with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 22:44, 5 September 2008 editGimmetrow (talk | contribs)Administrators45,380 edits Cite date← Previous edit Revision as of 00:47, 6 September 2008 edit undoAskari Mark (talk | contribs)Extended confirmed users, Pending changes reviewers9,728 edits Date autolink removal by Lightbot: new sectionNext edit →
Line 190: Line 190:


Incidentally, please can you comment on my bot request at: ]. Regards ] (]) 19:08, 5 September 2008 (UTC) Incidentally, please can you comment on my bot request at: ]. Regards ] (]) 19:08, 5 September 2008 (UTC)

== Date autolink removal by Lightbot ==

Although date autolinking has been deprecated on MOSNUM, it is '''''NOT''''' (at this time) the case that there has been consensus approval for the mass deletion of existing links. You might want to suspend doing so on properly formed date links until there is. (Cf. ].) Cheers, ] <small>]</small> 00:47, 6 September 2008 (UTC)

Revision as of 00:47, 6 September 2008

Thanks for the advice about date unlinking, but...

Hello, Lightmouse. I just installed (or tried to) your date unlinking script. After a false start or two, i got it installed (I think), then went to the page I wanted to work on and tried it, finding the "delink all dates to mdy" on the lower left of the page you get when you edit the page. The page = manga.

As far as I can see, nothing happened. There are still a large number of linked dates in the reference list, many of them in the Accessed Date field. See, for example, references 110 and 126 of the manga article.

Now what?

Timothy Perper (talk) 13:25, 31 August 2008 (UTC)

You need to clear your cache before it will work. The instructions on how to clear your cache are at the top of: User:Timothy Perper/monobook.js. Let me know if it work after you have done that. Lightmouse (talk) 13:29, 31 August 2008 (UTC)

I already did that -- thanks, but it still didn't work. I use Safari (on a Mac), and the instructions for clearing the cache aren't accurate. It says hit the "reload" button, but Safari 1.3.2 (v312.6), the one I have, does not have a "reload" button. It has a "stop/reload" button, but reloading with that button didn't make the script work. Safari also has a "reload page" button in the View menu, but hitting that doesn't make the script work. So I cleared the cache (a different procedure) and that didn't work either. Any hints? Timothy Perper (talk) 13:57, 31 August 2008 (UTC)

Timothy, I also use Safari for the Mac. It's the semicircular arrow button top left. Otherwise, Command–R will do it. Let me know. Tony (talk) 14:00, 31 August 2008 (UTC)

I have many reasons to love the Mac but Tony, you would do great work with AWB and for that you need PC access. At least try running AWB at an internet cafe or on a friend's PC just to see what it can do. Lightmouse (talk) 14:17, 31 August 2008 (UTC)

Thanks, Tony -- I know where the reload button is. But, on the other hand, I've figured out the glitch. The script does not delink dates in the references -- or it hasn't so far -- although it delinks them in the main text. Yes, the text dates have been delinked, leaving all the dates in the refs still linked. Whether that's what you wanted, I don't know, but that's what it's doing. I think this may be an "Oh well... good try" situation. Or maybe you should try it yourself to see if it's my specific browser? I'll leave that up to you. Thanks again... Timothy Perper (talk) 14:15, 31 August 2008 (UTC)

Sorry, that wasn't clear enough. To see what is happening and what is not, go to the manga page and get the history (at the moment, it'll be the last two changes -- mine and the one right before it). Bring them both up in double columns and compare. The older text has the links -- ], ] or somesuch -- and the newer text has it without the links -- April 23, 2007. BUT when you look at the reference list, you'll find that the dates have been relinked somehow. I think the only way to see this is to visit the page and look at it, not only the double columns but the reference list itself, e.g., #110 and #126. I hope that's clearer. Timothy Perper (talk) 14:24, 31 August 2008 (UTC)

Timothy: the script will not touch access dates within citation templates, sadly. All in good time.MOSNUM is fine with one date format in the refs, and one in the main text (i.e., square-bracket-generated dates). Tony (talk) 15:06, 2 September 2008 (UTC)

Date-removing script

Dear Lightmouse,

Your date-unlinking script looks really useful, and I wanted to try it out. I imported it into my monobook, but I can't figure out how to start it up. Could you give me some instruction please? Thanks! NuclearWarfare My work 16:51, 1 September 2008 (UTC)

You first have to clear your cache. If you look at the top of User:NuclearWarfare/monobook.js, you will see instructions how to do that. Then go to a page you want to edit e.g. User:Lightmouse/sandbox (I don't know if you have permission to edit that - feel free to try). Click 'edit this page' as normal. Then while in edit mode, you will see some commands in the 'toolbox' at the left of the page below 'What links here'. Press 'delink all dates to dmy' and let me know what happens. Lightmouse (talk) 16:57, 1 September 2008 (UTC)

Sorry to trouble you, but I still cannot get it to work, not anywhere, not even on your sandbox article. I must have tried everything, but it always comes up with null changes. Ohconfucius (talk) 14:25, 2 September 2008 (UTC)

I see you have wikEd installed. User:Matthewedwards had trouble making the script work, and concluded that the only way to do so is to disable wikEd every time you want to run the script. User:Gary King has no trouble running the script without disabling wikEd. See this discussion in my talk archives. The only other thing I can think of is your addition of the semicolon after the transcusion string; but it almost certainly doesn't affect things. Tony (talk) 15:02, 2 September 2008 (UTC) PS Remember to clear your cache. Tony (talk) 15:03, 2 September 2008 (UTC)

Ta

Thanks for the link. If film jump, I will suggest at the comics project that we do to. Whether consensus will be to jump is another matter. I'll keep an eye on the film discussion. Out of curiosity, how hard would it be for your bot to change links in the form ] to 1939 (see 1939 in comics)? Hiding T 22:26, 2 September 2008 (UTC)

In technical terms it is *very easy* to change ] to 1939 (see 1939 in comics). You can even do it yourself now on a voluntary per-article basis if you install my script. Simply copy:
importScript('User:Lightmouse/monobook.js/script.js');

to User:Hiding/monobook.js and refresh your cache. Then when you are in edit mode, you will find a 'delink year-in-X dates' button and some other handy buttons in your toolbox on the left of the page below 'What links here'. Let me know how you get on. Lightmouse (talk) 22:34, 2 September 2008 (UTC)

I think Hiding's suggestion is for more than what the script currently does (replaces the pipe with just an unlinked year alone). It's very doable, but would require a little programming. But more broadly, now that linked unpiped years are largely a thing of the past, I wonder whether the meaning of a blue year has already to some extent, and will further change to an indication of a piped year link. Your suggestion may be unnecessary. Another issue is that there's quite a strong feeling in some quarters that piped year-links are usually to general to satisfy the MoS requirement that they significantly increase the understanding of the reader—at least not swathes of them, such as I see in list tables. Once you link to one "year in" article, you can go straight to any of them. Tony (talk) 01:17, 3 September 2008 (UTC)

Thanks for the script

That's all :) —Do U(knome)? or no 23:58, 2 September 2008 (UTC)

Cite date

Regarding this, I have a function which converts "|date=2008-09-03" into "|date=3 September 2008". Cite episode and I think cite video produce redlinks, but I thought you might want to know. Gimmetrow 05:25, 3 September 2008 (UTC)

I would be delighted to be able to add the code to the script. How can we confirm that this is an acceptable change? Lightmouse (talk) 14:07, 3 September 2008 (UTC)

It would delight me, too. It's dizzying to read two formats for the same date on the same line. Some editors do feel strongly about the use of ISO in their citations, but just how many really do when they see the result of such a change can be judged only by applying the function. I'm willing to give it a go. Tony (talk) 06:54, 4 September 2008 (UTC)

Could we just convert linked ISO into unlinked ISO? Lightmouse (talk) 20:50, 5 September 2008 (UTC)

Try S Club again. I would suggest this be limited to date= fields, too. Gimmetrow 21:08, 5 September 2008 (UTC)

I just tried S Club again. It made no changes. What are you trying to tell me? Lightmouse (talk) 21:11, 5 September 2008 (UTC)

It's doing nothing to iso dates in date= fields. Gimmetrow 21:12, 5 September 2008 (UTC)

Indeed. I was creating the code. After I tested it, I thought we needed more debate. So I disabled it. I quite like ISO, particularly in reference material. Readers have been seeing this for a long time. I think we should just delink it into unlinked ISO. What do you think? Lightmouse (talk) 21:16, 5 September 2008 (UTC)

Your script changes other stuff in the refs, though. You could delink it since it wouldn't change anything - date= would still get linked by the cite template. But if "consistency" is the thing, then it's odd to have some refs with January 1, 2001, and others with 2001-01-01, no? ISO for the date= field was a recent thing. And I see no reason publication dates can't be in one format and accessdates in iso-style. Gimmetrow 21:25, 5 September 2008 (UTC)

So are you saying I should go ahead and turn ']' into '2001-01-01' ? Lightmouse (talk) 22:05, 5 September 2008 (UTC)

In the date= field of the most-used cite templates, it won't make a difference. Unlinked yyyy-mm-dd fields are checked for and linked if they pass the check. (Though there is a bug in the check in at least one template.) But for various reasons I wouldn't automatically unlink iso-style dates outside the date= field. Gimmetrow 22:31, 5 September 2008 (UTC)

Hmm. You are saying that if we turn 'date=]' into 'date=2001-01-01' it will still produce a link for the reader. If that is the case, the edit makes no sense. Like you, I see nothing wrong with more than one format in references. I wish we could code for a solution that everybody would accept. Lightmouse (talk) 22:37, 5 September 2008 (UTC)

See for yourself. But as long as you're making other edits, no reason you can't remove unnecessary brackets. Gimmetrow 22:42, 5 September 2008 (UTC)

Updating monobook?

(Re your comment here) I'd be glad to consider updating. What can you tell me about the current version vs. the one I'm using? —Scheinwerfermann (talk) 05:51, 3 September 2008 (UTC)

Script update

Hi, i updated my monobook, it took time to find that the "buttons" are now in toolbox ,) --— Typ932  15:29, 3 September 2008 (UTC)

Sorry, I forgot to mention it. I did have a dummy tab mentioning where the commands have moved to. But people asked me to remove it. I hope that you find the script useful. Feel free to comment or make suggestions for the script at User talk:Lightmouse/wishlist. Lightmouse (talk) 17:48, 3 September 2008 (UTC)

Incidentally, I would welcome your comments on my latest bot request Misplaced Pages:Bots/Requests for approval/Lightbot 3. Regards Lightmouse (talk) 17:50, 3 September 2008 (UTC)

Edits to Battleship

The edits to the Battleship article produced some dates with commas that don't belong, such as 24 May, 2008. I also note that while autoformatting was removed, no effort was made to make the dates consistent. --Gerry Ashton (talk) 05:07, 4 September 2008 (UTC)

Thanks for the feedback. The comma was a defect due to the AWB script code looking for 'May 24, 2008'. The code was updated shortly after that and you will see from my later AWB edits that it did not happen again. You will also see from my later edits that the AWB script code made the dates consistent (although it is desirable to do that at the same time, I don't believe it is mandatory). Thanks. Lightmouse (talk) 08:33, 4 September 2008 (UTC)

Removal of auto-formatted dates

Please do not remove auto-formatted dates, as you did with USS Aeolus (ID-3005) in this edit. Such removals are contrary to MOS:NUM where auto-formatted dates, though no longer required nor encouraged, are, nevertheless, a perfectly valid option for an article. There was no discussion on the Talk page nor was there any discussion with me, the primary contributor to this article , regarding this drastic change. Please note that I am assuming no ownership of the article in question. It's just common courtesy for drastic and controversial edits to an article. — Bellhalla (talk) 10:36, 4 September 2008 (UTC)

Hi, I looked the link you provided for MOS:NUM. It says:
  • The linking of dates purely for the purpose of autoformatting is now deprecated
Since you raise a general principle about the guideline, perhaps it would be worth discussing it at the talk page of that guideline. Thanks. Lightmouse (talk) 13:13, 4 September 2008 (UTC)

Wellll I'm on the fence here. It's definitely not a "drastic change", as the dates that were linked have nothing to do with that ship...and if Lightmouse had to contact the primary contributors to discuss this on every article, he'd never get anything done....do we really need those dates linked? Bellhalla, take it to that talk page...you can't fault Lightmouse for trying to carry out the new guidelines...but i don't know if it is that big of a deal... Good luck in solving this... the_ed17 15:15, 4 September 2008 (UTC)

Well, there's nothing to solve, since we're pledged not to edit-war. I've left a note at Bellhalla's talk page. I just think it's a pity for the article and its readers. Tony (talk) 15:22, 4 September 2008 (UTC)

You seem to undertake a lot of contentious and sometimes widespread actions which gain the ire of some editors. Perhaps you'd be better off discussing first. Timeshift (talk) 15:26, 4 September 2008 (UTC)

Since this is a generic issue relating to the guideline and its implementation, it belongs on the talk page of MOS:NUM where more stakeholders can see it. I look forward to joining in the discussion over there. Lightmouse (talk) 15:30, 4 September 2008 (UTC)

Wrong conversions by Lightbot

Moved generic issue to Template_talk:Convert#When_is_a_knot_not_a_knot.3F. Regards Lightmouse (talk) 18:59, 4 September 2008 (UTC)

Script handling month capitalization

I ran across an article with several uncapitalized months. Here's my diff. I capitalized the months manually. Do you think this might be a useful enhancement to the script? --Elliskev 12:57, 5 September 2008 (UTC)

Possibly. I think lower case looks cute. But stick it on User talk:Lightmouse/wishlist since it seems a reasonable request. Lightmouse (talk) 13:11, 5 September 2008 (UTC)

Script error?

This edit unlinked dates of the form "12 August 1841" which, as far as I remember, should remain linked. If at all, this should be fixed to "12 August, 1841". Averell (talk) 13:20, 5 September 2008 (UTC)

The edit is correct. There should be no comma for 'day month year'. Your memory may be thinking of 'month day, year'. See Misplaced Pages:Manual_of_Style_(dates_and_numbers)#Dates. I hope that helps. Regards Lightmouse (talk) 13:24, 5 September 2008 (UTC)

Dates

Why are you delinking dates? Full dates should always be linked. -- Necrothesp (talk) 13:22, 5 September 2008 (UTC)

The guidance at Misplaced Pages:Manual_of_Style_(dates_and_numbers)#Date_autoformatting says:
  • The linking of dates purely for the purpose of autoformatting is now deprecated.
It is taking a while for people to become aware of this. Lightmouse (talk) 13:26, 5 September 2008 (UTC)

It certainly is. I have been an editor and an administrator for several years and edit Misplaced Pages pretty much every day and it's the first I've heard of it. Where was this discussed openly apart from between a few interested parties on the MoS page? It's a huge change and one I certainly don't agree with. It seems this has been rather slipped in by the back door and for such a major change that is the wrong way to go about things. -- Necrothesp (talk) 13:35, 5 September 2008 (UTC)

Would you be kind enough to raise such questions at wp:mosnum? I am not sure if I can help you with the answers. Lightmouse (talk) 13:37, 5 September 2008 (UTC)
I've left a note on Necrothesp's talk page, with a link to a new information page on the DA issue. Referral to that page might assist when people come here seeking information about the matter. Tony (talk) 15:04, 5 September 2008 (UTC)

I think you're likely to get a lot of editors concerned about this; you might want to put a large note at the top of your user talk page briefly explaining why and directing editors to WT:MOSNUM. As the author of quite a few biographies I've no problem with the unlinking of dates in articles, although I think a lot of editors will not realise that the reason they were supposed to be linked was because of date preference. Many editors will just that "Misplaced Pages articles have dates linked" and might wrongly assume it is a newbie mistake to unlink them. Sam Blacketer (talk) 13:44, 5 September 2008 (UTC)

I too am an author of many biographies. I'm fully aware of why dates are linked. And I totally disagree with their delinking, particularly the manner in which it seems to have been introduced. It's a big change and it needs discussion by more than a handful of date afficionados. -- Necrothesp (talk) 13:50, 5 September 2008 (UTC)

I mention the guideline page in the edit summary. My talk page is full of explanations. In fact, the word is getting round but it does not matter how many flashing lights, alarm bells and town criers are created, people will still think 'Misplaced Pages articles have to be linked', as you say. That was what I was told in no uncertain terms a long time ago. You are also correct that some people think it is a newbie error. However, the statistics show that the vast majority of articles stay unlinked. But this sort of debate should really be on the guideline pages because it does not matter much what I think. Lightmouse (talk) 13:53, 5 September 2008 (UTC)

I see no mention of the guideline in any of your edit summaries! They merely say "Units/dates/other using AWB", which doesn't tell anyone anything. The "word is getting around" only because we're suddenly having dates delinked in articles we're watching. That's a fait accompli, not a discussion. -- Necrothesp (talk) 14:02, 5 September 2008 (UTC)

Ah yes, I forgot about that edit summary. I sometimes use another one. Would you be happy if I changed the summary or is the main issue with the policy itself? Lightmouse (talk) 14:06, 5 September 2008 (UTC)

No, my problem is with the "policy". -- Necrothesp (talk) 14:16, 5 September 2008 (UTC)
I think the newer summary is much better. Tony (talk) 14:17, 5 September 2008 (UTC)

Two slash or not two slash

You apparently realized this doesn't work. I think this is due to the way \ are interpreted in strings. A \d seems to be treated as a d, and a \\

Yes, that frustrates me a little because I use \d elsewhere. It has just been pointed out that the script does not deal with 3 digit years. The rest of my code uses \d{1,4} whereas yours uses . I wanted to make it use \d{1,4} or failing that, I would have to use (|||) which is a lot less compact. Lightmouse (talk) 14:17, 5 September 2008 (UTC)

Well, \\d{1,4} would probably work. However, I found that 1- and 2-digit years were usually relevant links, and 3-digit years often were, so I didn't want to delink those automatically. Gimmetrow 14:21, 5 September 2008 (UTC)

OK. Well I might try it and see where the false positives occur. If you look at Tony's recent post on the wishlist you will see that the issue is about a comma. Lightmouse (talk) 14:25, 5 September 2008 (UTC)
Different assumptions conflicting. All my regexes use only 4-digit years by design. Gimmetrow 14:29, 5 September 2008 (UTC)

Aviation Infobox

Hi Lightmouse, one of the changes you might have to institute in your bot's program is that the Aviation Project Group has agreed to use a date link to the "in aviation" listings for infoboxes. Can you adjust the run to leave the infobox information as is? FWiW Bzuk (talk) 17:27, 5 September 2008 (UTC).

See a stop in bot's function and a talk comment at Template:Avyear. FWiW Bzuk (talk) 18:35, 5 September 2008 (UTC).

Minor script bug

Resolved – Gary King (talk) 19:08, 5 September 2008 (UTC)

When performing some of the actions, such as "Delink all dates to dmy", this will delink {{dts}} templates even if they are already delinked (i.e. {{dts|2008|1|1}} would become {{dts|2008|1|1}}). Perhaps add a check in there before adding the code again to each dts? Gary King (talk) 18:48, 5 September 2008 (UTC)

I have some code in there to do exactly that. It must be faulty. I will take a look. Can you give me an example article please? Lightmouse (talk) 18:50, 5 September 2008 (UTC)

Try here. Gary King (talk) 18:53, 5 September 2008 (UTC)

Traced the fault and fixed it. Thank you. Please double check it. Lightmouse (talk) 19:04, 5 September 2008 (UTC)

Incidentally, please can you comment on my bot request at: Misplaced Pages:Bots/Requests for approval/Lightbot 3. Regards Lightmouse (talk) 19:08, 5 September 2008 (UTC)

Date autolink removal by Lightbot

Although date autolinking has been deprecated on MOSNUM, it is NOT (at this time) the case that there has been consensus approval for the mass deletion of existing links. You might want to suspend doing so on properly formed date links until there is. (Cf. a couple of proposals regarding this.) Cheers, Askari Mark (Talk) 00:47, 6 September 2008 (UTC)

User talk:Lightmouse: Difference between revisions Add topic