• Home
  • Random
  • Log in
  • Settings
  • About English Wikipedia @ Freddythechick
English Wikipedia @ Freddythechick

Template:User-multi/sandbox

  • Language
  • Watch
  • View source
< Template:User-multi
__EXPECTUNUSEDTEMPLATE__This is the template sandbox page for Template:User-multi (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
WarningThis template is used in system messages, and on approximately 347,000 pages, or roughly 2% of all pages.
Changes to it can cause immediate changes to the Wikipedia user interface.
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Please discuss changes on the talk page before implementing them.
This template uses Lua:
  • Module:UserLinks (sandbox)

This is a very flexible user link template, which allows you to specify which links are shown beside the username. It can be used as a meta-template to support other user link templates, or it can be used alone.

Contents

  • 1 Usage
  • 2 Parameters
  • 3 Codes
  • 4 Examples
  • 5 Errors
    • 5.1 No username detected
    • 5.2 Not a valid project or language code
    • 5.3 Not a valid language code
    • 5.4 Not a valid link code
    • 5.5 No link code specified
    • 5.6 Malformed link code detected
    • 5.7 No snippet exists
  • 6 Error category
  • 7 Adding new links

Usage

Standalone usage

{{user-multi|code 1|code 2|code 3|...|user=username|project=project|lang=lang}}

Usage in templates

{{<includeonly>safesubst:</includeonly>User-multi<noinclude>/template</noinclude>
 | User      = {{{1|{{{User|{{{user|}}}}}}}}}
 | Project   = {{{2|{{{Project|{{{project|}}}}}}}}}
 | Lang      = {{{3|{{{Lang|{{{lang|}}}}}}}}}
 | separator = {{{separator|dot}}}
 | small     = <!-- yes -->
 | sup       = <!-- yes -->
 | span      = <!-- no -->
 | 1         = <!-- link code 1 -->
 | 2         = <!-- link code 2 -->
 | 3         = <!-- link code 3 -->
 ...
 | demo      = {{{demo|}}}
 | doc       = <!-- yes -->
}}

The doc parameter is used to provide automatic documentation on the template page, i.e. |doc=yes.

Parameters

  • 1, 2, 3, ... n: these parameters specify what links to display in the template. See the code table below for valid input codes.
  • User or user: the username. An error is returned if this is omitted.
  • Project or project: the interwiki prefix for the project you wish to link to. Please see Help:Interwiki linking for a list of valid codes. For backwards compatibility, a language code can also be entered in this field.
  • Lang or lang: the language code for the project you wish to link to. See List of Wikipedias for a complete list of language codes used by Wikimedia sites.
  • separator: the separator to use in between links. Valid values are dot( · ), comma(, ), pipe( | ), and tpt-languages(⧼tpt-languages-separator⧽). If not specified, then dot is the default.
  • small: if this parameter exists, fonts will be displayed at 90% of the normal size.
  • sup: if this parameter exists, links will be displayed in superscript.
  • span: if this parameter is set to "no", no <span>...</span> tags are included around the link toolbar. If this option is set, any URL links will appear with the external link icon.
  • doc: this parameter is only available on template pages, using the /template sub-template. If set to yes, it will automatically generate documentation for that template.
  • demo: if this parameter is set to yes, the template will not output any categories.

Codes

Here is a list of currently supported link codes:

Code Example
u Example
t talk
c contribs
ae non-automated edits
api api
bl block log
bls blocks
bu block user
c64
ca central auth
coibot COIBot
cr change rights
ct count
dc deleted contribs
del deletions
e email
efl filter log
es edit summaries
gender they/them
ggl Google
http
l logs
lu list user
m page moves
msg message
np Example
nuke nuke contribs
pr protections
rbl RBLs
rdns RDNS
ren renames
rfa RfA
rl rights
sbx sandbox
sfs StopForumSpam
sul global contribs
sul2 global contribs
tl target logs
uc user creation
up uploads
whois WHOIS
wlh links to user page

Examples

Code Output
{{User-multi|user=Example|t|c|e}}

Example (talk · contribs · email)

{{User-multi|user=Example|t|c|ct|m|l}}

Example (talk · contribs · count · page moves · logs)

{{User-multi|user=Example|lang=es|t|c|e}}

Example (talk · contribs · email)

{{User-multi|user=Example|project=b|t|c|e}}

Example (talk · contribs · email)

{{User-multi|user=Example|project=b|lang=es|t|c|e}}

Example (talk · contribs · email)

{{User-multi|user=Example|project=wikibooks|lang=es|t|c|e}}

Example (talk · contribs · email)

{{User-multi|user=Example|t|c|e|sup=yes}}

Example (talk · contribs · email)

{{User-multi|user=Example|t|c|e|small=yes}}

Example (talk · contribs · email)

Errors

In certain circumstances, the template will generate errors. This is a list of all the error messages that the template might generate, and how users can resolve them.

No username detected

  • User-multi error: no username detected.

There are two possible reasons for this error. The first is simply that you have not specified a username, or you have specified a username using an unrecognised parameter name. The second is that your username contains an equals sign, and that is causing the template to interpret the first half of your username as a parameter name. Both of these problems can be fixed by trying different parameters for the username. Try using |1=your username, |User=your username, and |user=your username, and if none of those work please start a new thread at Template talk:User-multi.

Not a valid project or language code

  • User-multi error: "xyz" is not a valid project or language code.

This error is produced if the template is not able to process the project parameter. The project parameter must either be a valid interwiki prefix or a valid language code. See Help:Interwiki linking for a list of valid interwiki prefixes, and the section on language code errors directly above for more details on valid language codes.

If you are sure that the interwiki prefix is valid, but you still get this error, it might be a bug in the software. This template uses Module:InterwikiTable for interwiki prefix data, so you can check to see if your site and your prefix exist in the table and fix it if they don't. If that fails to resolve the problem, please start a new thread at Template talk:User-multi.

Not a valid language code

  • User-multi error: "xyz" is not a valid language code.

This error is generated if an invalid language code is specified. The language code must be a valid MediaWiki language code; for example, English is en and German is de. For a complete list of valid language codes, see the table of Wikimedia projects.

Not a valid link code

  • User-multi error: "xyz" is not a valid link code.

This error is generated if an invalid link code is specified. For a list of valid link codes, see the code list above. This error may be generated if a link code corresponds to a function in Module:UserLinks/extra, but a recent edit to that page has rendered the function inoperable. Please check recent edits to Module:UserLinks/extra, and consider moving any often-used link functions to the main module.

No link code specified

  • User-multi error: no link code specified.

This error is only generated when using Module:UserLinks directly to create a single link. The link code must be in the first positional parameter, like this: {{#invoke:UserLinks|single|link code|other parameters ...}}.

Malformed link code detected

  • User-multi error: malformed link code detected.

This error can only be generated when accessing Module:UserLinks from another Lua module. One of the link codes passed to the module was either not a string or was the blank string. This should be fixed in the Lua module that called Module:UserLinks.

No snippet exists

  • User-multi error: no snippet exists for the key "xyz".

This error occurs when there is an error in one of the link functions. Usually, this means that a user has added an extra link function to Module:UserLinks/extra, but has tried to use a user data snippet that doesn't exist. The link function that generated this error needs to be fixed by the developers or by the local module maintainers.

Error category

All errors listed above are tracked in Category:UserLinks transclusions with errors. This category is added in all namespaces, but respects the blacklist defined in Module:Category handler. For example, archive pages are not categorised.

Adding new links

To add a new link, you need to edit the Lua module that this template is based on, Module:UserLinks. Instructions are in the source code, if you feel capable programming in Lua. If you're not familiar with Lua, feel free to make a request on Template talk:User-multi, and someone might add the link for you.


  • v
  • t
  • e
Userspace linking templates
Standard templates
Templates Examples of template output
{{User link}}, {{U}} Example
{{User0}}, {{Usert}} Example (talk)
{{User}}, {{User1}}, {{BUser}}, {{Userv}} Example (talk · contribs)
{{User and pronouns}}, {{Userp}} Example (talk · contribs · they/them)
{{Usertcb}} Example (talk · contribs · block user)
{{User link global contributions}}, {{Usergc}} Example (talk · global contribs)
{{User2}}, {{Usertcc}} Example (talk · contribs · count)
{{User3}}, {{Usertcl}} Example (talk · contribs · logs)
{{User4}}, {{Usertce}} Example (talk · contribs · email)
{{Usercf}} Example (contribs | filter log)
{{User5}} Example (talk · contribs · deleted contribs · page moves · block user · block log)
{{User6}} Example (talk · contribs · count · logs · page moves · block log) or (with |email=y)
Example (talk · contribs · count · logs · page moves · block log · email)
{{User6b}} Example (talk · message · contribs · count · logs · email)
{{User7}} Example (talk · contribs · count · logs · email)
{{User8}}, {{Usertcce}} Example (talk · contribs · central auth · count · email)
{{User10}}, {{Usertccl}} Example (talk · contribs · count · logs)
{{User11}} Example (talk · contribs · count · api · block log)
{{User12}} Example (talk · contribs · page moves · block user · block log)
{{User13}} Example (talk · contribs · logs · block log)
{{User14}} Example (talk · contribs · global contribs · logs · block log)
{{User15}} Example (talk · contribs · count · logs · page moves · block log · edit summaries)
{{User16}} Example (talk · message · contribs · page moves · edit summaries · count · api · logs · block log · email)
{{User17}} Example (talk · contribs · uploads)
{{User18}} Example (talk · contribs · logs · filter log · block log)
{{User19}} Example (talk · contribs · global contribs · page moves · user creation · block log)
{{User21}} Example (talk · contribs · deleted contribs · page moves · block user · logs · block log · arb · rfc · lta · rfcu · ssp · SPI · cuwiki)
{{User23}} Example (talk · contribs · deleted contribs · logs · target logs · block log · list user · global contribs · central auth · Google)
{{User-dev}}
Example
(talk · email · rights) · (Testwiki · talk · rights) · (GitHub · Open issues)
{{User-multi}} Example (talk · contribs · count · logs · page moves · block log · block user · email · central auth · deleted contribs · list user · global contribs · target logs)
With this template, you can specify which links you want displayed. The above example includes some of the available links.
{{User plus}} Example contact
{{User summary}} Example (talk · contribs · deleted contribs · blacklist hits · AbuseLog · what links to user page · count · COIBot · Spamcheck · user page logs · x-wiki · status · Edit filter search · Google · StopForumSpam)
{{User toolbox}}
  • v
  • t
  • e
User toolbox for Example
General
  • user
  • talk
  • email
  • edit analysis (non-automated edits · BLP edits · policy & guideline edits)
  • user groups
  • global user groups
  • blocked?
  • user space
  • user talk space
  • global account info
Skin customizations
  • common: .js / .css
  • Vector: .js / .css
  • Vector-2022: .js / .css
  • Minerva: .js / .css
  • Timeless: .js / .css
  • MonoBook: .js / .css
  • global: .js / .css
Requests / Investigations
  • RfAs
  • RfBs
  • RFARs
  • RfCs
  • RfCUs
  • SSPs
  • SPIs
  • BRFAs (if bot)
  • editor reviews
  • administrator reviews
  • RfA votes
  • AfD votes
  • XfD votes
History
  • contributions
  • deleted contributions
  • global contributions
  • logs
  • moves
  • uploads
  • pages patrolled
  • accounts created
  • review log
  • pending changes log
  • registration time
  • userpage log
  • block log
  • rights log
    meta
  • thanks
    given
    received
  • edit summary usage
  • global account log
  • global rights log
  • global block log
  • global blocks disabled/enabled
  • filter log
  • examine past edits
  • edit filter changes
  • articles created
  • top article edits
  • oversights
  • rights
  • AfC log
  • CSD log
  • Draftify log
  • PROD log
  • XfD log
Admin history
  • protections
  • blocks
  • deletions
  • rights changes
  • interface contributions
  • imports
  • global blocks disabled/enabled
Bureaucrat history
  • user renames
  • rights changes
Steward history
  • rights changes
  • global right changes
  • global account changes
  • global blocks
Actions
  • block
  • unblock
  • flag
  • rename
  • mass delete
  • globally block
  • globally unblock
  • merge global account
  • disable global blocks locally
{{Useranon}} 192.0.2.42 (talk)
{{IP summary}} 192.0.2.42 (talk • contribs • deleted contribs • blacklist hits • AbuseLog • what links to user page • COIBot • Spamcheck • count • block log • x-wiki • Edit filter search • WHOIS • RDNS • tracert • robtex.com • StopForumSpam • Google • AboutUs • Project HoneyPot)
{{IPuser}} 192.0.2.42 (talk · contribs · WHOIS)
Admin: userlinking templates normally used on administrative pages
Templates Examples of template output
{{User-c}} Example (t c)
{{User-c-name}} Example (t·c)
{{User-t}} Example (t·c)
{{User-t2}} Example (t·c)
{{Useracc}} Example (talk · contribs · account creation)
{{UserBk}} Example (block log)
{{Userblock}} Example (talk · contribs · block log)
{{Userblocked}} Example (talk · contribs · page moves · current autoblocks · block log)
{{Usercheck}} Example (talk · contribs · count · logs · block log · lu · rfa · rfb · arb · rfc · lta · socks)
{{Usercheck-short}} Example (talk · contribs · deleted · count · AfD · logs · block log · lu · rfar · spi)
{{Usercheck-full}} Example (talk · message · contribs · global contribs · deleted contribs · page moves · user creation · block user · block log · count · total · logs · summary · email | lu · rfa · rfb · arb · rfc · lta · checkuser · spi · socks | rfar · rfc · rfcu · ssp | current rights · rights log (local) · rights log (global/meta) | rights · renames · blocks · protects · deletions · rollback · admin · logs | UHx · AfD · UtHx · UtE)
{{Usercheck-super}} Example (talk · message · contribs · global contribs · deleted contribs · page moves · user creation · block user · block log · count · total · logs · edit summaries · email | lu · rfa · rfb · arbcase · rfc · lta · checkuser · spi · socks | current rights · rights log (local) · rights log (global/meta) | rights · renames · blocks · protections · deletions | moves · pending changes log · abuse filter · pages created | RM · XfD · AfD · UtHx · UtE)
{{Checkuser}} Example (talk+ · tag · contribs · deleted contribs · logs · filter log · block user · block log · CA · CheckUser(log) · investigate · cuwiki)
{{Contribs}}
{{UserContribs}}
contributions
{{Contribs2}}
{{UserContribs2}}
Hans Adler's contributions (early history of the UserContribs2 template)
{{Contribs3}}
{{UserContribs3}}
Hans Adler's contributions (early history of the UserContribs2 template)
{{Ccount}} Contribution count for "Example"
{{Useredits}} Example (contribs)
{{UserFs}} Example (block log · checkuser)
{{User-full}} Example (talk · contribs · checkuser · block user · block log · edit count)
{{Userlinks}} Example (talk · contribs · deleted contribs · logs · filter log · block user · block log)
{{Userlinks2}} Example (talk · contribs · blocks · count · rollback · admin · logs)
{{Userlinks-abbr}} (u t c m l )
{{Userlinks-tt}} Example ("Example" · talk · contribs · page moves · block user · block log)
{{Userlogs}} Logs for "Example"
{{Userrights}} Example (current rights · rights management · rights log (local) · rights log (global/meta) · block log)
{{Admincheck}} Example (talk · contribs · count · logs · target logs · block log · lu · rfa · rfb · arb · rfc · lta · checkuser · socks · rights · blocks · protects · deletions · moves)
{{Notable user}} Example (user · talk · contribs)
{{Socklinks}} Example (talk+ · contribs · deleted contribs · tag · block user · block log · CheckUser)
{{User-uaa}} Example (talk · contribs · deleted · filter log · SUL · Google) • (block · soft · promo · cause · bot · hard · spam · vandal)
{{UserVP}} Example (talk · contribs · count · block log)
{{Vandal}} Example (talk · contribs · deleted contribs · nuke contribs · logs · filter log · block user · block log)
192.0.2.16 (talk · contribs · deleted contribs · filter log · WHOIS · RDNS · RBLs · http · block user · block log)
{{Vandal-m}} Example (talk · contribs · block log · arb · rfcu · ssp · SPI)
{{Vandal-s}} Example (talk · contribs · block log)
{{Checkip}} 192.0.2.42 (talk+ · tag · contribs · filter log · WHOIS · RBLs · proxy check · block user · block log · cross-wiki contribs · CheckUser (log))
{{IPcheck}} 192.0.2.42 (talk · tag · contribs · count · WHOIS · ip details · trace · RBLs • logs · block log · arb · rfc · lta · spi · checkuser · socks )
{{IPunblock}} 192.0.2.42 (talk • contribs • deleted contribs • WHOIS • RDNS • trace • RBLs • block log • unblock)
{{Rangevandal}} 192.0.2.0/24 (block range · block log (global) · WHOIS (partial))
{{Proxyip}} 192.0.2.42 · talk · contribs · block · log · stalk · Robtex · whois · Google · ipcheck · HTTP · geo · rangeblocks · spur · shodan
Bots: templates used by bots
Templates Examples of template output
{{Admin}} Example (talk · contribs · blocks · protections · deletions · page moves · rights · RfA)
{{Former admin}} Example (talk · contribs · former admin: blocks · protections · deletions · rights · meta · local rights)
{{Admin-abbr}} Example (t · c · b · p · d · m · r)
{{Former admin abbr}} Example (former: t · c · b · p · d · r · meta · local)
{{Bureaucrat}} Example (talk · contribs · rights · renames)
{{Bureaucrat2}} Example (talk · contribs · blocks · protections · deletions · moves · rights · renames · global renames)
{{Botlinks}} Example Bot (BRFA · contribs · actions log · block log · flag log · user rights)
{{Botlinks2}} Example Bot (talk · contribs · tasks · flag log · actions log · block log · other logs · count)
{{Botlinks3}} Example Bot (task list · contribs)
{{Botlinks4}} Example Bot (task list (1) · logs (actions · block · flag) · botop (e · t · c) · contribs · user rights)
{{Botop}} Example (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
{{Newbot}}
  • (BRFA
  • Approved BRFAs
  • talk
  • contribs
  • count
  • SUL
  • logs
  • page moves
  • block log
  • rights log
  • flag)
Signing: templates used to add a missing user signature
Templates Examples of template output
{{Signing}} —Example (talk • contribs) 00:00, 8 Jun 2025 (UTC)
{{Quotedfrom}} — Preceding text originally posted here by Example (talk⋅contribs) 00:00, 8 Jun 2025 (UTC)
{{Undated}} — Preceding undated comment added 00:00, 8 Jun 2025 (UTC)
{{Uns-ip}} — Preceding unsigned comment added by 192.0.2.42 (talk • contribs • WHOIS) 00:00, 8 Jun 2025 (UTC)
{{Unsigned}}
{{Unsigned2}}
— Preceding unsigned comment added by Example (talk • contribs) 00:00, 8 Jun 2025 (UTC)
{{Unsigned IP}}
{{UnsignedIP2}}
— Preceding unsigned comment added by 192.0.2.42 (talk) 00:00, 8 Jun 2025 (UTC)
{{Unsigned2Fix}} — Preceding comment added by Example (talk · contribs) 00:00, 8 Jun 2025 (UTC); original signature removed while fixing wiki markup errors
{{UnsignedIP2Fix}} — Preceding comment added by 192.0.2.42 (talk) 00:00, 8 Jun 2025 (UTC); original signature removed while fixing wiki markup errors
{{User actual}} — Preceding comment signed as by Example (talk · contribs) actually added by Example2 (talk · contribs)
{{User proxy}} — Preceding comment posted at the request of Example (talk · contribs) actually added by Example2 (talk · contribs)
{{Warning origin}} — Preceding warning originally posted somewhere by Example2 (talk⋅contribs) 00:00, 8 Jun 2025 (UTC)
{{Xsign}} — Preceding unsigned comment added by Example (talk • contribs) 00:00, 1 January 2000 (UTC)
The above documentation is transcluded from Template:User-multi/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://enwiki.freddythechick.net/index.php?title=Template:User-multi/sandbox&oldid=5321808"
Last edited on 3 November 2019, at 03:02

Languages

      This page is not available in other languages.

      English Wikipedia @ Freddythechick
      • This page was last edited on 3 November 2019, at 03:02.
      • Content is available under Creative Commons Attribution-ShareAlike 4.0 unless otherwise noted.
      • About English Wikipedia @ Freddythechick
      • Desktop