Амодуль:UserLinks/doc
Это страница документации Амодуль:UserLinks.
Ахәҭаҷ/асекциа адырра апроцесс аԥсуа бызшәа аиҭагара ахь. Абызшәа адырра шәазҟазазар, ишәылшоит шәхы алашәырхәыр. |
This module generates links about a given user. It is used to generate templates such as {{user}}, {{user5}}, and {{admin}}, usually through its wrapper template {{user-multi}}.
Functions
[акод аредакциазура]Main
[акод аредакциазура]The main
function implements the {{user-multi}} template. It generates a list of links about a given user. Please see the template page for documentation.
Single
[акод аредакциазура]The single
function generates a single link about a given user. See {{user-multi/link}} for documentation.
Link table
[акод аредакциазура]The linktable
function generates a wikitext table containing the possible link codes that can be used with the main
and single
functions, along with example output for each code. It is used on the documentation pages at Template:User-multi/doc and Template:User-multi/link/doc.
It is displayed with the following code:
{{#invoke:UserLinks|linktable}}
Porting to other wikis
[акод аредакциазура]If you want to use this module on another wiki, there are a few modules that you must also copy across, and some that can be used but are not essential.
Required modules:
- Амодуль:UserLinks
- Амодуль:UserLinks/shared
- Амодуль:UserLinks/config
- Амодуль:Arguments
- Амодуль:Yesno
- Амодуль:Toolbar
- Амодуль:InterwikiTable
- Амодуль:TableTools (optional in Амодуль:UserLinks, but required by Амодуль:Toolbar)
Optional modules:
- Амодуль:UserLinks/extra - used for testing new link functions before they are moved to the main module.
- Амодуль:Category handler - if an error occurs, and this module is present, pages are not categorised if they match the module's blacklist.
After you have copied over the necessary modules, you should adjust the configuration settings in Амодуль:UserLinks/config for your language and for your wiki's setup.