Jump to content

Template:User link/doc

From Wikibooks, open books for an open world

Template:Confuse

This template provides a way to link to a userpage and display just the username, like

XML 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

.

Example

[edit source]
{{user link|Example}}

or the shortcut form

{{u|Example}}

gives

Example

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

Guy

Alternative

[edit source]

The desired result can also be achieved using the pipe trick feature of the MediaWiki software. For example, the wikitext

[[User:Example|]]

gives

Example

Other user information templates

[edit source]

User 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 (discuss · email · contribs · logs · count)
{{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 (talkcontribs) 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 source]