Template talk:Unsigned2
From Wikipedia, the free encyclopedia
Unsigned Templates: Unsigned, Unsigned2, Unsigned3, Undated, UnsignedIP |
Contents |
[edit] Documentation
[edit] Purpose
- {{unsigned2}}
Used to label unsigned comments in a discussion, in particular when cutting and pasting the username and date from a page history. This template is like {{unsigned}}, reversing the arguments and optionally appending (UTC) to the time.
[edit] Usage
{{subst:unsigned2|date|username [|timezone]}}
- date
- datestamp
- username
- name or IP of user who left comment
- timezone
- optional parameter; specifies timezone in the form +h or -h (for example, UTC-7)
Unfortunately the template itself is not capable of converting the time. If you frequently use this template, or otherwise refer to UTC, you could consider setting your local time in the preferences to UTC.
[edit] Example
With the preferences set at UTC-7, the history entry for the creation of this talk page shows
23:17, 17 Jun 2005 Jpgordon
Thus we use
{{unsigned2|6:17, 18 Jun 2005| Jpgordon}}
which gives
—The preceding unsigned comment was added by Jpgordon (talk • contribs) 6:17, 18 Jun 2005 (UTC)
[edit] History
Created 22:13, 15 May 2005 Jpgordon
Added documentation jpgordon∇∆∇∆ 06:26, 18 Jun 2005 (UTC)
Modified 23:46, 13 December 2005 (UTC) jpgordon∇∆∇∆ Added optional parameter
[edit] Discussion
I've just added UTC to this. jpgordon∇∆∇∆ 06:26, 18 Jun 2005 (UTC)
- The UTC conversions added to this documentation make the template essentially useless; if the editor is going to have to make time calculations, the editor, or at least this editor, won't bother using it at all -- and won't bother marking the unsigned comments at all. The whole point of unsigned2 is to allow a quick cut-and-paste. And there's no point to "avoiding meta-template to avoid server load"; this template should always be used with subst:, which renders the issue irrelevant. --jpgordon∇∆∇∆ 15:48, 18 Jun 2005 (UTC)
- You can also make a template specifically for your time zone:
- (preceding unsigned comment by [[Special:Contributions/{{{2}}}|{{{2}}}]] {{{1}}} +7:00 (UTC))
or
- (preceding unsigned comment by [[Special:Contributions/{{{2}}}|{{{2}}}]] {{{1}}} (PDT, UTC-7)
- It is really odd to specify a precise time without mentioning the time zone.--Patrick 22:05, 18 Jun 2005 (UTC)
Please put back in the UTC time zone info, as it does not seem to work any more. Philip Baird Shearer 23:23, 16 July 2005 (UTC)
- I have created {{unsigned2Tz}} to allow the user to specify a TZ offset instead of manually doing the conversion. DES (talk) 17:50, 14 November 2005 (UTC)
Because this is a template of a template, subst'ing it gives you another template, which you then have to subst again if you really want to reduce server load. Maybe this template could be rewritten to not be a template of a template. --Kenyon 19:41, 3 December 2005 (UTC)
- I did this a few days ago, by the way. --Kenyon 08:51, 8 December 2005 (UTC)
- At Template_talk:Unsigned2Tz#Discussion user Cryptic suggested:
"This [unsigned2Tz template] can be merged into {{Unsigned2}} without breaking its current functionality using the shiny new template default parameter feature - just replace the {{{3}}} with {{{3|}}}."
I've substed remaining instances of unsigned2Tz and deleted it (because it's now redundant) -- ( drini's page ☎ ) 22:14, 11 March 2006 (UTC)
[edit] A tiny script to facilitate use
I often find myself copying and pasting a line from a history page to get the parameters into this template. The only annoying part was adding the pipe between the date and username. Behold, addPipesToHistory, a script that will add a sort-of-hidden pipe that will be copied along with the other text. I thought this simpler CSS version might work, but it turns out the added content does not get selected. If you try it and have any trouble, let me know, and I'll do what I can to help. —HorsePunchKid→龜 2005-12-17 05:52:43Z
- interesting! I went at it the other way round... in User:Lar/moretabs/monobook.js function addUnsigned2() takes an unpiped history comment as input and tries to figure out where the pipe belongs. It's suitable for invoking from a tab or tabmenu. (and yes, teh second arg on the second substr is not needed...) ++Lar: t/c 06:12, 20 June 2006 (UTC)
[edit] Please remove comment
Would an administrator please delete the comment "Template:Unsigned2", that gets inserted at the end of every single one. It doesn't need to be appended to every single comment where this is used. This was deleted from Template:Unsigned as well. —Centrx→talk 02:59, 18 June 2006 (UTC)
- Done.--Commander Keane 06:08, 19 June 2006 (UTC)
[edit] Substitution
Whether this template should always be substituted or not is being discussed at Wikipedia talk:Template substitution#Unsigned and Unsigned2. Your comment is invited. —Simetrical (talk • contribs) 01:15, 10 July 2006 (UTC)