Template talk:U
I ran into this template by accident. Someone was using it to fill in the Author field of {{Information}} and left the first parameter blank. I found out because I tagged the image with "ShouldBeSVG". To my surprise, I was now the author of the image. A means is needed to differentiate between the last page editor and the last person to upload a new version of the image (which is what the user was expecting. Will (Talk - contribs) 01:09, 24 March 2012 (UTC)
- "someone" should not be doing that - even if the template worked as they expected (currently not possible in MediaWiki), they shouldn't be doing that. I presume you've talked to them about it. Rd232 (talk) 09:50, 24 March 2012 (UTC)
Edit request on 23 October 2016
[edit]Please change all instances of {{#if:
to {{{{{|safesubst:}}}#if:
; this is to allow the template to be substituted. Jc86035 (talk) Use {{ping|Jc86035}}
to reply to me 15:22, 23 October 2016 (UTC)
- @Krd and Jarekt: Objections? --Hedwig in Washington (mail?) 02:48, 24 October 2016 (UTC)
- No objection (and no clue what this is about). --Krd 10:44, 24 October 2016 (UTC)
- Done No objection either. --Jarekt (talk) 12:05, 24 October 2016 (UTC)
- No objection (and no clue what this is about). --Krd 10:44, 24 October 2016 (UTC)
Edit request on 05 January 2017
[edit]{{Edit protected}}
Please copy the content of {{U/sandbox}}. It contains an expansion of the current template, optional allowing to precede the user name with the namespace (like C, F, T do):
{{ U/sandbox | Sarang | - }} generates User:Sarang, and
{{ U/sandbox | Sarang | + }} generates User:Sarang, while
{{ U/sandbox | Sarang }} generates just Sarang, as usual.
When it is copied I will maintain also the documentation. -- sarang♥사랑 04:25, 5 January 2018 (UTC)
- testing:
{{ subst:U/sandbox | Sarang | - }}
gives: "User:Sarang"{{ subst:U/sandbox | Sarang | + }}
gives: "User:Sarang"{{ subst:U/sandbox | Sarang }}
gives: "Sarang"{{ subst:U | Sarang }}
gives: Sarang
- --Jarekt (talk) 17:56, 5 January 2018 (UTC)
- It seems to me that substitution of the new template produces quite messy wikicode (see sourcecode of this page). Should we also substitute
{{!}}
with | ? --Jarekt (talk) 18:00, 5 January 2018 (UTC)
- It seems to me that substitution of the new template produces quite messy wikicode (see sourcecode of this page). Should we also substitute
<includeonly>{{{{{|safesubst:}}}#switch:-|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}=User:}}[[:{{{{{|safesubst:}}}#if:{{{3|}}}|{{{{{|safesubst:}}}#switch:{{{3}}}|+|-=|{{{3}}}:}}}}User:{{{{{|safesubst:}}}#if:{{{1|}}}|{{{{{|safesubst:}}}#switch:{{{1}}}|+|-={{safesubst:REVISIONUSER}}|{{{1}}}}}|{{safesubst:REVISIONUSER}}}}{{!}}{{{{{|safesubst:}}}#switch:+|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}=User:}}{{{{{|safesubst:}}}#if:{{{2|}}}|{{{{{|safesubst:}}}#switch:{{{2}}}|+|-={{{{{|safesubst:}}}#if:{{{1|}}}|{{{{{|safesubst:}}}#switch:{{{1}}}|+|-={{safesubst:REVISIONUSER}}|{{{1}}}}}|{{safesubst:REVISIONUSER}}}}|{{{2}}}}}|{{{{{|safesubst:}}}#if:{{{1|}}}|{{{{{|safesubst:}}}#switch:{{{1}}}|+|-={{safesubst:REVISIONUSER}}|{{{1}}}}}|{{safesubst:REVISIONUSER}}}}}}]]</includeonly><noinclude> {{documentation}} </noinclude>
- (I must confess that I didn't grasp fully the function and advantage of the
safesubst
introduced by Jc86035). I removed the whitespace, now it looks
- (I must confess that I didn't grasp fully the function and advantage of the
{{ subst:U/sandbox | Sarang | - }}
gives: User:Sarang (see sourcecode). -- sarang♥사랑 21:23, 5 January 2018 (UTC)
- Done --Jarekt (talk) 19:01, 9 January 2018 (UTC)
Edit request on 21 May 2019
[edit]It is a fine thing that user links are so easy to establish with that template;
but there are cases where the link function should be avoided: Other templates e.g. {{PD-user}} always try to get their parameter linked, which makes often troubles when the "user" in fact isn't a user, and plain text should be displayed instead.
The option link=no
in a link template seems crazy at the first view, but with it these troubles can be avoided, and the Template:U can be used always; the option allows to switch on/off the link easily.
The same option in all the {{W}} templates, in Template:F, Template:T and other link templates is in some cases very helpful.
{{Edit protected}}
- Please copy Template:U/sandbox to Template:U
When it is copied I will maintain also the documentation. -- sarang♥사랑 07:49, 21 May 2019 (UTC)
- Done 4nn1l2 (talk) 15:40, 27 May 2019 (UTC)