Template talk:Me
Appearance
Time format error
[edit]The time format does not display correctly for me. When I added it just now, I got "Jonesey95 (talk · contribs) 03:7:42 pm, Tomorrow (UTC−7)". The time given is nonsensical. My current time is 20:27, or 03:27 UTC. – Jonesey95 (talk) 03:28, 22 March 2018 (UTC)
- @Jonesey95: Your post does not have links in the quote so I assume you copied the displayed text from somewhere and didn't make the post by saving
{{subst:me}}
. I guess you have enabled "Change UTC-based times and dates, such as those used in signatures, to be relative to local time" at Special:Preferences#mw-prefsection-gadgets. That gadget is apparently not compatible with times which include seconds. In the UTC time "03:27:42" it ignores "03:" and tries to read "27:42" as hours and minutes. The gadget uses User:Gary/comments in local time.js by User:Gary. PrimeHunter (talk) 12:56, 22 March 2018 (UTC)- I did use subst:me. Here's the edit in question. I do have that gadget turned on, and all other talk page signatures look fine to me, presumably since they do not show seconds. Perhaps this template should not display seconds as well, for maximum compatibility. – Jonesey95 (talk) 14:42, 22 March 2018 (UTC)
- I meant you didn't create the first post in this section by writing
{{subst:me}}
here. You copied the text from your browser view of an unidentified page, later revealed to be the sandbox. I don't have the gadget and see the time correctly at [1]. I don't know the intended use of this template or why Buaidh included seconds. I agree the lack of compatibility is bad and pinged Gary in case he wants to modify the gadget. But if there is no good reason for including seconds then they should probably be removed. PrimeHunter (talk) 14:59, 22 March 2018 (UTC)- We'll see what Gary says. Now that you have pointed out that a gadget is reformatting the time, I can see that when I click through to the old Sandbox page that I edited, the time displays correctly for half a second before the gadget's code reformats it (incorrectly). WP is full of mysteries and wonder. – Jonesey95 (talk) 16:19, 22 March 2018 (UTC)
- It's too much work to add compatibility for the "seconds" value. With the way the "Comments In Local Time" script works right now, it searches for an exact pattern, because timestamps on Wikipedia follow a very specific pattern. If seconds were to be added, then they would be considered an optional pattern. So if they are found, then the script would have to account for them. It's not difficult or anything, but not really worth the effort to add that feature, when the script hasn't effectively been updated for several years. Meaning, I don't want to risk breaking anything by modifying it. And honestly, with the way my browser is setup, it's no longer easy for me to write user scripts. Gary (talk · scripts) 01:15, 23 March 2018 (UTC)
- If your scripts mangle the UTC time and date, just manually fix them. Yours aye, Buaidh talk contribs 03:03, 23 March 2018 (UTC)
- It's far easier to just remove seconds from the template. Nobody cares which second a user joined a WikiProject. Seconds also make the time harder to read for humans. I don't recall ever seeing times with seconds in Wikipedia. PrimeHunter (talk) 04:11, 23 March 2018 (UTC)
- If your scripts mangle the UTC time and date, just manually fix them. Yours aye, Buaidh talk contribs 03:03, 23 March 2018 (UTC)
- It's too much work to add compatibility for the "seconds" value. With the way the "Comments In Local Time" script works right now, it searches for an exact pattern, because timestamps on Wikipedia follow a very specific pattern. If seconds were to be added, then they would be considered an optional pattern. So if they are found, then the script would have to account for them. It's not difficult or anything, but not really worth the effort to add that feature, when the script hasn't effectively been updated for several years. Meaning, I don't want to risk breaking anything by modifying it. And honestly, with the way my browser is setup, it's no longer easy for me to write user scripts. Gary (talk · scripts) 01:15, 23 March 2018 (UTC)
- We'll see what Gary says. Now that you have pointed out that a gadget is reformatting the time, I can see that when I click through to the old Sandbox page that I edited, the time displays correctly for half a second before the gadget's code reformats it (incorrectly). WP is full of mysteries and wonder. – Jonesey95 (talk) 16:19, 22 March 2018 (UTC)
- I meant you didn't create the first post in this section by writing
- I did use subst:me. Here's the edit in question. I do have that gadget turned on, and all other talk page signatures look fine to me, presumably since they do not show seconds. Perhaps this template should not display seconds as well, for maximum compatibility. – Jonesey95 (talk) 14:42, 22 March 2018 (UTC)
- I wrote this template for WikiProject membership lists. Some WikiProjects prefer a user signature with a time stamp (four tildes), while others prefer Template:User. A signature may, or may not, have links to the User_talk page or the User contributions page. Template:User has the disadvantages that it requires a username to be entered (and thus can display a false username) and does not have a timestamp (which can be added with five tildes.) Template:Me provides links to User page, User_talk page, User contributions page, and the current UTC time and date without the need to enter your (or a fake) username. Yours aye, Buaidh talk contribs 02:11, 23 March 2018 (UTC)
Without date/timestamp?
[edit]Is there any way to have this template generate your name without any date/timestamp? GhostOfNoMan 04:02, 4 October 2024 (UTC)
- See {{Me too}} and {{User}}, which are linked from the documentation. – Jonesey95 (talk) 14:44, 4 October 2024 (UTC)
- Thank you – I somehow hadn't noticed {{User}} lacks the date. That's perfect. GhostOfNoMan 10:26, 7 October 2024 (UTC)