Template:User link/doc
This is a documentation subpage for Template:User link. It contains usage information, categories and other content that is not part of the original template page. |
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