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
editThis template provides a way to link to a userpage and display just the username, like
XML Example
[[User:Example|Example]]
. This may not help much for a short username like "Example", but it can be more useful with long usernames such as
XML Example
[[User:Guywh0sitsbehindphilip12|Guywhositsbehindphilip12]]
.
Example
edit{{user link|Example}}
or the shortcut form
{{u|Example}}
gives
The template's second parameter, which is optional, takes the link's label; for example, a link to the long username used above can be shortened while viewing the text like this:
{{u|Guywhositsbehindphilip12|Guy}}
which gives
Alternative
editThe desired result can also be achieved using the pipe trick feature of the MediaWiki software. For example, the wikitext
[[User:Example|]]
gives
Other user information templates
editUser information templates provide informational links for a user; they are similar to signatures, but often provide additional information, and may be used by other users.
Standard user information templates | |
---|---|
Template | Produces... ('Example' is used for user name) |
{{user}} | Example |
{{useranon}} | 255.255.255.255 (discuss) |
{{admin}} | Example (discuss · contribs · blocks · protections · deletions · moves · imports · rights) |
{{bureaucrat}} | Example (discuss · contribs · rights · renames) |
{{checkuser}} | Example (discuss · contribs · rights · checks) |
User information templates normally used on administrative pages | |
Template | Produces... ('Example' is used for user name) |
{{usercheck}} | Example (discuss · contribs · count · logs · block log · rfp · rights [change]) |
{{userrights}} | Example (current rights · rights log (local) · rights log (global/meta) · block log) |
{{userlinks}} | Example (discuss · contribs · deleted contribs · logs · edit filter log · block log · block) |
{{anonlinks}} | 255.255.255.255 (discuss · info · whois · deleted contribs · block log · block) |
{{renaming}} | Example (discuss · contribs · listuser · global account browser · logs · target logs) |
Templates used to to add a missing user signature | |
Template | Produces... ('Example' is used for user name) |
{{unsigned}} {{unsigned2}} |
— Preceding unsigned comment added by Example (talk • contribs) 05:59, 7 June 2008 (UTC) |
{{unsignedIP}} {{unsignedIP2}} |
—Preceding unsigned comment added by 255.255.255.255 (discuss) 05:59, 7 June 2008 (UTC) |
{{undated}} | —Preceding undated comment added 18:45, December 6, 2006. |
See also
edit