User: Example
, internal or to other Wikipedias:
- In the Commons: ser onditional, depending on existence,
- to either the user page or the user talk page or the contributions special page.
- In other Wikipedias: to ser ontributions.
Usage
{{Uc |1= |3= }}
Function:
- No interwiki language code: Link to the user page within Commons, if it exists
- For users without a user page: Link to the user talk page, if it exists
- For users without a user talk page: Link to the user~commonswiki page, if it exists
- For users without user~commonswiki page: Link to the user~commonswiki talk page, if it exists
- For "users" without all that: Link to the page Special:Contributions
- For users without user~commonswiki page: Link to the user~commonswiki talk page, if it exists
- For users without a user talk page: Link to the user~commonswiki page, if it exists
- For users without a user page: Link to the user talk page, if it exists
- Any interwiki language code: Link to the page Special:Contributions
- "cc" (is not an existing language code): Unconditional link to ommons ontributions
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | user name: it is required to specify the name | Example | required | |
2 | display name (nick name): may be formatted | param #1 | optional | |
3 | language code: for interwiki link, or "cc" | empty | optional | |
4 | either a "+" sign or a "-" sign, to prefix with namespace (can as well be coded with parameter 2 or parameter 3) | empty | optional | |
Additional information
The template is intended to be used in the following namespaces: the User namespace
The template is intended to be used by the following user groups: no user group specified
Many users own in the Commons just a User Talk page, but no User page.
| 👁 Image | Users not wanting to own a user page should at least create a #REDIRECT to their talk page, to avoid the redlinks |
- The template checks whether the user page exists, and links to it if yes.
- Otherwise it checks whether the user talk page exists, and links to it if yes.
- Otherwise it checks whether the user~commonswiki page exists, and links to it if yes.
- Otherwise it checks whether the user~commonswiki talk page exists, and links to it if yes.
- Otherwise it links to the special page "user contributions".
- Otherwise it checks whether the user~commonswiki talk page exists, and links to it if yes.
- Otherwise it checks whether the user~commonswiki page exists, and links to it if yes.
- Otherwise it checks whether the user talk page exists, and links to it if yes.
- If later the other pages are created, it prefers automatically what first can be found.
- Since existence checks are not possible for other Wikipedias, these checks are performed only when no language code is specified.
Examples
| Code | Result | Notes |
|---|---|---|
|
{{|Example}} |
Example | user page is existing |
|
{{|Test}} |
Test | no user page but user talk page exists |
|
{{|Example|-}} |
User: Example | prefix with namespace |
|
{{|Example|+}} |
User: Example | prefix with namespace |
|
{{|[[:b:User:Example]]}} |
b:User:Example | link as-it-is when starting with "[" or "{" |
|
{{|127.0.0.1}} |
127.0.0.1 | IP user |
|
{{|Example||de}} |
Example | user contributions page in de:Wp |
|
{{|Example||en}} |
Example | user contributions page in en:Wp |
|
{{|Example||cc}} |
Example | user contributions page in Commons |
[edit ]
User and user talk links
| Code | Result | [1] | Shortcut |
|---|---|---|---|
|
{{|Example}} |
Example links to user page | ✔ | |
|
{{|Example}} |
Example conditional link to contributions page | ✔ | |
|
{{|Example}} |
Example links to German user page | = | |
| {{Ue|Example}} | Example links to English user page (not yet a template) | = | |
|
{{|Example}} |
Example does not link to user page; no echo function | – | |
|
{{|Example}} |
Example links to user talk page | ✔ | |
|
{{|Example}} |
Example trails the given name with "~commonswiki" | – | |
|
{{|Example}} |
Example links to the talk page of "~commonswiki" user | – | |
|
{{|Example}} |
Example Lua based list of one or more users | ✔ | {{ Ul }} |
| WWW Combinations: | |||
|
{{|Example}} |
Example (talk) — Customizable template | ✔ | |
|
{{|Example}} |
Example (talk) | ✔ | |
|
{{|Example}} |
Example (talk · contribs) | ✔ | |
|
{{|Example|:en:}} |
:en:Example (talk | contribs) | ~ | |
|
{{|Example}} |
Example (talk · contributions · Statistics) | ✔ | |
|
{{|Example}} |
Example (talk · contributions · Move log · block log · uploads · Abuse filter log) block user | ✔ | {{Vandal}} |
|
{{|Example}} |
Example ( local | logs | global ) | – | |
|
{{|Example}} |
Example (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information) (assign permissions) | – | |
|
{{|Example}} |
Example (talk · contributions · Move log · Statistics · logs · block log) | ✔ | |
|
{{|Example}} |
Example (talk · contributions · user rights management) | ✔ | |
|
{{|Example}} |
Example (talk • contribs • block log • filter log) | – | |
|
{{|Example}} |
Example (talk · contribs · logs · block log) | – | |
|
{{|Example}} |
Example (talk · contributions (views) · deleted user contributions · deleted uploads · recent activity (talk · project · deletion requests) · logs · block log · global contribs · CentralAuth) | – | |
|
{{|Example}} |
Example (talk · contribs · count · global contribs) | ✔ | |
|
{{|Example}} |
Example (talk · contribs · deleted contribs · logs · edit filter log · block user · block log) | ✔ | |
|
{{|Example}} |
Example (talk • contribs • blocks • protections • deletions • moves • rights • rights changes) | – | {{ A }} |
|
{{|Example}} |
Example (talk • contribs • rename user) | – | |
|
{{|Example}} |
Example (contribs) | – | |
|
{{|Example}} |
tasks • contribs • count • logs • page moves • block user • block log • flag log • global contribs • flag bot | – | |
|
{{|Example}} |
Example (talk • contribs • Luxo • SUL • deleted contribs • logs • block user • block log • checkuser) | – | |
- ↑ Interwiki template: Interwiki access (with 3=language code)
Be aware that other templates may use the parameter "editor" or "by" for the same purpose.
