Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:User/doc: Difference between revisions

Template page
Created page with "{{Documentation subpage}} This template provides a way to link to a user page and display just the username. For example <code><nowiki>{{User|Example}}</nowiki></code> gives {{User|Example}}, link to a page of user with nickname ''Example''."
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
No edit summary
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
Line 2: Line 2:


This template provides a way to link to a user page and display just the username. For example <code><nowiki>{{User|Example}}</nowiki></code> gives {{User|Example}}, link to a page of user with nickname ''Example''.
This template provides a way to link to a user page and display just the username. For example <code><nowiki>{{User|Example}}</nowiki></code> gives {{User|Example}}, link to a page of user with nickname ''Example''.
== Usage ==
{| class="wikitable"
! Template !! Result !! Notes
|-
| {{tlx|user|Example}} || {{user|Example}} || User "example" exists. It links to that user.
|-
| {{tlx|user|IOnlyHaveATalkPage}} || {{user|IOnlyHaveATalkPage}} || User "IOnlyHaveATalkPage" doesn't have a userpage, but has a user talk page.
|-
| {{tlx|user|abcdefg}} || {{user|abcdefg}} || User "abcdefg" doesn't have a user page or a talk page.
|-
|}
If there is no user page with the user nickname provided, it will display a link to that user's talk page (User talk:USERNAME). If the talk page doesn't exist, it will display a link to the user's CentralAuth page (Special:CentralAuth/USERNAME).

Latest revision as of 09:35, 31 October 2024

This template provides a way to link to a user page and display just the username. For example {{User|Example}} gives Example, link to a page of user with nickname Example.

Usage edit source

Template Result Notes
{{user|Example}} Example User "example" exists. It links to that user.
{{user|IOnlyHaveATalkPage}} IOnlyHaveATalkPage User "IOnlyHaveATalkPage" doesn't have a userpage, but has a user talk page.
{{user|abcdefg}} abcdefg User "abcdefg" doesn't have a user page or a talk page.

If there is no user page with the user nickname provided, it will display a link to that user's talk page (User talk:USERNAME). If the talk page doesn't exist, it will display a link to the user's CentralAuth page (Special:CentralAuth/USERNAME).

Contents
Cookies help us deliver our services. By using our services, you agree to our use of cookies.