请输入您要查询的百科知识:

 

词条 Module:UserLinks/doc
释义

  1. Functions

      Main    Single    Link table  

  2. Porting to other wikis

{{High-risk|547000+}}{{module rating|protected}}

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}}.

Functions

Main

The main function implements the {{tl|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 {{tl|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 User-multi/doc and 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.

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/14 12:34:43