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)
Edit request on 23 October 2016
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)
Edit request on 05 January 2017
{{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)
<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
safesubstintroduced by Jc86035). I removed the whitespace, now it looks
- (I must confess that I didn't grasp fully the function and advantage of the
Edit request on 21 May 2019
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)