Jump to content

Module:UserLinks/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
add these in the usual spot
remove the ones not directly loaded
Line 1: Line 1:
{{used in system}}
{{used in system}}
{{module rating|protected}}
{{module rating|protected}}
{{Lua|Module:UserLinks/shared|Module:UserLinks/config|Module:UserLinks/extra|Module:Toolbar|Module:InterwikiTable|Module:Category handler|Module:Yesno|Module:TableTools|Module:Arguments}}
{{Lua|Module:UserLinks/shared|Module:UserLinks/extra|Module:Toolbar|Module:InterwikiTable|Module:Yesno|Module:TableTools|Module:Arguments}}


This module generates links about a given user. It is used to generate templates such as {{tl|user}}, {{tl|user5}}, and {{tl|admin}}, usually through its wrapper template {{tl|user-multi}}.
This module generates links about a given user. It is used to generate templates such as {{tl|user}}, {{tl|user5}}, and {{tl|admin}}, usually through its wrapper template {{tl|user-multi}}.

Revision as of 17:32, 31 August 2024

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.

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:

Optional modules:

  • Module:UserLinks/extra - used for testing new link functions before they are moved to the main module.
  • 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 Module:UserLinks/config for your language and for your wiki's setup.