Template:User

From "PTTLink Wiki"
Revision as of 08:07, 24 January 2022 by Kg7qin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Example (talk⧼dot-separator⧽contribs)

Template documentationpurge ]

This is a user link template for use internally on Wikipedia.

Usage

The username can be defined via a named or an unnamed parameter, i.e.

  • {{User|User=USERNAME}} or
  • {{User|USERNAME}}

Examples

In cases of usernames which contain = sign, the former syntax should be used, e.g.

Parameters

  • User is a required parameter, e.g. |User=Jimbo Wales.
  • Project defines a Wikimedia sister project to be used instead of the English Wikipedia, the correct code for the interwiki link should be used, e.g. |Project=b.
  • Lang is the interlanguage code for a project to be used instead of the English Wikipedia, e.g. |Lang=es. This can be used in conjunction with the project parameter.
  • separator defines the symbol used to separate different links, e.g. |separator=pipe. The default is a dot.

Sandbox

Template:User/sandbox can be used for testing. Additional edit history for this template is contained there.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for User

This template is used to create a link to a user's user page (unless using {{Useranon}}), talk page, and contributions, and generates a special notification (aka 'ping').

Template parameters

ParameterDescriptionTypeStatus
User name1 user

The user name that you want to create links to and notify.

Stringrequired
Sister projectproject

Used to link to a sister project instead of the English Wikipedia. Use the standard interwiki prefix.

Stringoptional
Other language projectlang

Used to link to another language project. If used with the "sister project" parameter, links to another language of a sister project. Otherwise links to another language Wikipedia. Use the standard language code.

Stringoptional
Separatorseparator

Used to change the separator between the links. If unused, defaults to a dot.

Unknownoptional

Userspace link templates

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. List:

Demo user used is User:Example