Template:User link/doc

< Template:User link

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

Example

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

Example