Template:User link
Appearance
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
Usage[change]
This template provides a way to link to a userpage and display just the username, like <syntaxhighlight lang="text" class="" style="" inline="1">[[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" class="" style="" inline="1">[[User:Guywh0sitsbehindphilip12|Guywh0sitsbehindphilip12]]</syntaxhighlight>.
Example[change]
- <syntaxhighlight lang="text" class="" style="" inline="1">{{user|Example}}</syntaxhighlight>
or the shortcut form
- <syntaxhighlight lang="text" class="" style="" inline="1">{{u|Example}}</syntaxhighlight>
gives
Alternative[change]
The desired result can also be achieved using the pipe trick feature of the MediaWiki software. For example, the wikitext
- <syntaxhighlight lang="text" class="" style="" inline="1">[[User:Example|]]</syntaxhighlight>
gives