Jump to content

ഫലകം:User-multi

വിക്കിപീഡിയ, ഒരു സ്വതന്ത്ര വിജ്ഞാനകോശം.
[തിരുത്തുക] [പുതുക്കുക] ഫലകത്തിന്റെ വിവരണം

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.

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:

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[തിരുത്തുക]

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[തിരുത്തുക]

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[തിരുത്തുക]

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[തിരുത്തുക]

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.

"https://ml.wikipedia.org/w/index.php?title=ഫലകം:User-multi&oldid=3060047" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്
https://ml.wikipedia.org/wiki/%E0%B4%AB%E0%B4%B2%E0%B4%95%E0%B4%82:User-multi
ml.wikipedia.org
CC-MAIN-2024-26
392591
application/http; msgtype=response
sha1:ZP7PEBBIYFFMMVQP7LTEILBRSSHOZYDM
<urn:uuid:0a031906-12c3-4ccf-9e4d-e94af92cbe89>
2024-06-17T07:13:38Z
208.80.154.224
text/html
sha1:VYVPKYFXAU5OXXBB2IQCIMGTPRFMVEW5
<urn:uuid:657f3400-30cb-4735-8919-0dae5eeea270>
https://ml.wikipedia.org/wiki/%E0%B4%AB%E0%B4%B2%E0%B4%95%E0%B4%82:User-multi
response
<urn:uuid:c07675e7-81ee-4d73-ba7a-8d4b6bc7052d>
isPartOf: CC-MAIN-2024-26
publisher: Common Crawl
description: Wide crawl of the web for June 2024
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-185
software: Apache Nutch 1.20 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.5-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/