Template:User link
(Redirected from Template:U)
[[User:{{{1}}}|{{{1}}}]]
Usage
This template provides a way to link to a userpage and display just the username, like <syntaxhighlight lang="text" enclose="none">[[User:Example|Example]]</syntaxhighlight>
. This may not help much for a short username like "Example", but it can be more useful with long usernames such as <syntaxhighlight lang="text" enclose="none">[[User:Guywh0sitsbehindphilip12|Guywhositsbehindphilip12]]</syntaxhighlight>
.
Example
<syntaxhighlight lang="text" enclose="none">{{user|Example}}</syntaxhighlight>
or the shortcut form
<syntaxhighlight lang="text" enclose="none">{{u|Example}}</syntaxhighlight>
gives
Alternative
The desired result can also be achieved using the pipe trick feature of the MediaWiki software. For example, the wikitext
<syntaxhighlight lang="text" enclose="none">[[User:Example|]]</syntaxhighlight>
gives
</includeo
The above documentation is transcluded from Template:User link/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |