Template talk:Unsigned#Text too small
{{Talk header|search=yes}}
{{Permprot|doc=yes}}
{{Unsigned templates}}
{{User:MiszaBot/config
| algo = old(90d)
| archive = Template talk:Unsigned/Archive %(counter)d
| counter = 2
| minthreadsleft = 4
| minthreadstoarchive = 1
| maxarchivesize = 150K
| archiveheader = {{archive}}
}}
{{TOC left}}
{{-}}
Edit request: trim
{{edit template-protected|answered=yes}}
Please change all occurences of
This will trim the leading and trailing whitespaces/newline, from the input. I learned in my most recent usage of this template that these whitespaces aren't being trimmed by default. —CX Zoom[he/him] (let's talk • {C•X}) 21:30, 4 May 2023 (UTC)
:This looks like a reasonable request. Can you please give an example, maybe via a diff or sample code, showing why this is needed? – Jonesey95 (talk) 21:57, 4 May 2023 (UTC)
:: {{ping|CX Zoom}} * Pppery * it has begun... 18:41, 9 May 2023 (UTC)
:::Thanks for the ping, I wasn't subscribed. Here is an example: Special:Diff/1153209143. Notice how it is
:::: I'm inclined to decline this - the Wikilink syntax already appears to ignore the extra space, so I see no reason we shouldn't let it. * Pppery * it has begun... 19:32, 9 May 2023 (UTC)
:::::Not when you use multi-line formatting, might be very rare to use it in this manner but plausible. See Special:Diff/1154024441. trim fixes all cases. —CX Zoom[he/him] (let's talk • {C•X}) 19:39, 9 May 2023 (UTC)
::::::This hypothetical multi-line usage causes a Linter error. I've been fixing Linter errors for five years now – I've fixed hundreds of thousands of them – and I don't recall seeing a single instance of this problem in this template or any of its siblings. My memory is not perfect, but this seems like a solution in search of a problem. – Jonesey95 (talk) 23:46, 9 May 2023 (UTC)
:::::This doesn't apply to IP users'
pages. Duplicated this request (with reasoning+examples) over at unsigned IP. Tule-hog (talk) 20:22, 25 October 2024 (UTC)
:File:Red information icon with gradient background.svg Not done: See Jonesey comment. Izno (talk) 22:18, 12 May 2023 (UTC)
Revert of Gonnym's change
User:Gonnym made a breaking change to this template this morning, swapping parameters due to an unspecified TFD that was not advertised on this page. I have reverted pending discussion.
IMO, if people want to be able to specify the date first and username second for some reason, despite signatures having the username first and date second, and don't want to use {{tls|unsigned2}} to do that, someone should write a module that will determine which parameter is the username and which the date and DWIM it instead of surprise-breaking User:SineBot, User:Anomie/unsignedhelper.js, and whatever else is out there. Anomie⚔ 13:16, 5 May 2025 (UTC)
:You do know that instead of calling it a {{tq|unspecified TFD}}, you could have taken a second to check the TfD and find it, right?. For anyone else intrested, the TfD was at Wikipedia:Templates_for_discussion/Log/2025_April_21#Template:Unsigned2. If you want to challenge it, that is either at User:Explicit, or WP:Deletion review. This talk page isn't the place. Gonnym (talk) 13:21, 5 May 2025 (UTC)
:: And I was supposed to find that how, exactly? Digging through all recent TFDs hoping to find the right one?{{pb}}This is an appropriate place to discuss breaking changes to this template. A TFD that was never advertised here is not. Anomie⚔ 18:15, 5 May 2025 (UTC)
::It should be obvious that breaking a substituted template that has been widely used for many years is a big step that would require discussion here and notification at noticeboards where people who use the template in some tool (such as me) would have a chance of seeing it. Johnuniq (talk) 01:45, 6 May 2025 (UTC)
Removal of UTC from module
@HouseBlaster: I noticed that you removed code that appended "(UTC)" to the unsigned signature (Special:Permalink/877272498 #L13-19 prior to your edits). This is causing the corresponding reply to not be recognised by the Talk Page parser, which has resulted in the removal of [reply] links, miscounting the number of comments in a discussion and failure to use Special:GoToComment and misleading notifications. With no recognisable signature, the parser assumes that the reply is part of the next signed reply. Please fix the code to append (UTC) as it used to do before. Thanks! —CX Zoom[he/him] (let's talk • {C•X}) 00:50, 13 June 2025 (UTC)
:Is that actually happening? It should be re-added by Module:Unsigned#L-22. It seems to be working at the latest SineBot edit I checked (Special:Diff/1295299829). And this is intentionally signed using {{tls|unsigned}}, code being
: — Preceding unsigned comment added by HouseBlaster (talk • contribs) 01:02, 13 June 2025 (UTC)
::@HouseBlaster: Apparently, this doesn't work with {{tl|unsigned2}}:
::
::. —CX Zoom[he/him] (let's talk • {C•X}) 01:09, 13 June 2025 (UTC)
:::Ah. {{fixed|Fixed}}. As a note, you can now use {{t|unsigned}} in place of {{tl-r|unsigned2}}, which is a redirect :) HouseBlaster (talk • he/they) 01:20, 13 June 2025 (UTC)
::::Thank you very much! —CX Zoom[he/him] (let's talk • {C•X}) 01:23, 13 June 2025 (UTC)
Template broken
Just noticed this template has been broken for about a month on several pages. The date is being placed in the user portion and the user name seems to disappear. It seems to work when the parameter order is reversed, but the the template's page still shows that either order can be used. This is rather confusing. Is this a bug or has the parameter system been change (in which case I'm going to have to modify a bunch of tools)? — al-Shimoni (talk) 10:02, 25 June 2025 (UTC)
:{{ping|Imeriki al-Shimoni}} Please post a link to where the problem can be seen and quote a small amount of text so we can easily search for the issue. Two links would be better. I see that {{u|HouseBlaster}} recently made some changes to Module:Unsigned and they might be able to explain the issue. Johnuniq (talk) 10:21, 25 June 2025 (UTC)
:: Here are a couple examples [https://en.wikipedia.org/w/index.php?title=Talk:Tovma_Artsruni&diff=prev&oldid=1297300520 2025-06-25] and [https://en.wikipedia.org/w/index.php?title=Talk:Soft_coup&diff=prev&oldid=1292834059 2025-05-28]. The one from May 28 was the earliest of my edits where Unsigned didn't get replaced as expected (the last time I used Unsigned before May 28th was on May 20th). I just finished going back and corrected these and others manually. — al-Shimoni (talk) 10:54, 25 June 2025 (UTC)
:::Regarding the first link, previewing
in a sandbox shows the user name and date correctly. Is that what you would have done? The module was edited around the time you added the template. Maybe there was a period when it was not behaving normally? Johnuniq (talk) 11:47, 25 June 2025 (UTC)
:I can look into this when I get home. What is the exact wikitext you are entering which gets the funky result? I.e. the stuff with {{tls|unsigned}}. HouseBlaster (talk • he/they) 11:47, 25 June 2025 (UTC)
::: The exact text I used was
which is also what Anomie suggested below (the date format is different from your version). Anomie suggests that "The module doesn't recognize that as a date, treating it like a username instead," which is interesting. When I use it in a sandbox preview with both date formats, the rearranged date ("13 May 2008" instead of "2008 May 13") does indeed work as Anomie suggests while the original format breaks. I'm guessing this means the module changed how it detects what is an acceptable date recently? The date format I have been using for years ("2008 May 13") is also the format that appears in "Revision history"s for pages. Guessing the format is probably set in my WP Preferences??? (Yep, just checked; it is the fourth option of five [Preferences→Appearance→Date format].) — al-Shimoni (talk) 00:59, 26 June 2025 (UTC)
:::: Until recently, {{para|1}} was always the username and {{para|2}} was always the date. Then someone decided they wanted to merge {{tl|Unsigned2}} (which took the two parameters in the opposite order) and various other unsigned templates with this one, necessitating detection of which is the date and which the username instead. Anomie⚔ 03:11, 26 June 2025 (UTC)
:: Looks like in both cases they were using a date like "14:05, 2008 May 13 (UTC)" rather than "14:05, 13 May 2008 (UTC)". The module doesn't recognize that as a date, treating it as a username instead. Anomie⚔ 12:06, 25 June 2025 (UTC)
:::@Imeriki al-Shimoni, per {{slink|Wikipedia:Signatures#Purpose of signatures}}, {{tqq|It's because of this that it's also important to not change the timestamp of any signatures}}. Signatures use the DMY format, which is what most tools recognize as a signature. It was invalid all along; the template just started caring that the timestamp was formatted incorrectly. I've deployed a change which restores the status quo ante, and this weekend I'll try to expand the functionality to make it automatically convert to the format used by signatures. Best, HouseBlaster (talk • he/they) 01:28, 26 June 2025 (UTC)
:::: Sanitizing to a standard format sounds very good. I'll be rewriting my tools to conform as well. — al-Shimoni (talk) 02:07, 26 June 2025 (UTC)
:::::I am one of those who have gone off the idea of being liberal in what you accept. I would prefer that a style guide specified whether or not "2008 May 13" is a valid date. To my mind, the answer is no, although I can see that it is a nod to yyyy-mm-dd. The problem with accepting weird formats is that they proliferate and lead to complex code that tries to do what was intended rather than what was specified. I would prefer the template to display a mild error if no valid date is provided. Johnuniq (talk) 05:21, 26 June 2025 (UTC)