Topic on VisualEditor/Feedback

Date Format in Citations

7
DavidK93 (talkcontribs)

For me, one of the greatest benefits of the VisualEditor has been the "Cite" button; previously, I found citing my sources to be a very tedious task, and I often just included inline links to cited websites for other editors to clean up, rather than create properly formatted citations. With the Cite button, I'm able to very quickly create appropriate citations. However, the Cite button creates all citations using the yyyy-mm-dd format, while some articles possess templates specifying the use of different date formats, such as mdy or dmy. Could the Cite button's functionality be enhanced to detect such templates if present, and use the corresponding date format?

Whatamidoing (WMF) (talkcontribs)

That's unfortunately not feasible.

It might be possible for the CS1 modules to detect date-formatting templates, and then adjust all of the date formats in an article accordingly, but, in the meantime, you can add the "df" parameter to each template, and then set it to dmy for dmy articles or mdy for mdy articles, and that will do the trick when you save. @Trappist the monk is always the person to ask about what the CS1 modules can do.

Trappist the monk (talkcontribs)

You know, I just hate this editor. Tapping the escape key should not irrevocably abandon previous edits. Now I have to write it all over again.

We tried reading article source looking for {{use dmy dates}}. If found we would adjust cs1|2 date rendering accordingly. Worked as I recall for relatively few cs1|2 templates in an article but did not work in articles with large numbers of cs1|2 templates. The discussion about that is here: en:Help talk:Citation Style 1/Archive 10#Automatic ISO conversion. That conversation is where we developed |df=.

Whatamidoing (WMF) (talkcontribs)

Thanks for the note.

I think that @Trizek (WMF) handles Flow bugs these days. When I press Esc, I get a "Do you really want to destroy everything?" kind of question first, which I can then cancel. If that's not appearing for you, then please remind me about your browser/OS information, and we'll see if it can be fixed.

Trizek (WMF) (talkcontribs)

@Whatamidoing (WMF) has listed the correct behavior of structured discussions, which is exactly the same as on the visual editor: there is a warning message saying "do you want to irremediably discard your changes" or something similar when you hit Esc. I've tried it and get it.

@Whatamidoing (WMF), can you fill a ticket if there is any bug? Thanks.

Trappist the monk (talkcontribs)

Yeah, I've seen that warning prompt. I was in some menu at the time and a single escape abandoned the whole edit. Don't remember what that menu selection was.

DavidK93 (talkcontribs)

Thanks. That goes somewhat beyond my knowledge of markup, so I guess I'll just leave it for the cleanup bots, which seem to be handling it well already.

Reply to "Date Format in Citations"