Module:UserLinks/doc
This is the documentation page for Module:UserLinks
ទំព័រគំរូនេះត្រូវបានប្រើក្នុងប្រជុំប្រព័ន្ធសារ។ ការផ្លាស់ប្ដូរនឹងវាអាចបង្កអោយមានបម្លាស់ប្ដូរនឹងចំណុចប្រទាក់នៃអ្នកប្រើប្រាស់។ ដើម្បីចៀសវាងពីការរំខានក្នុងទំហំធំ ការផ្លាស់ប្ដូរទាំងឡាយគួរតែសាកល្បងក្នុងទំព័ររង /ប្រអប់ខ្សាច់ ឬ /សំណុំល្បង របស់ទំព័រគំរូនេះសិន ឬលំហនាមរបស់អ្នក។ ការផ្លាស់ប្តូរដែលបានសាកល្បងហើយនឹងបញ្ចូលបានក្នុងកំណែប្រែតែមួយក្នុងទំព័រគំរូនេះ។ សូមពិភាក្សាពីបម្លាស់ប្ដូរនៅឯទំព័រសន្ទនា មុននឹងសម្រេចបញ្ចូលវា។ |
This module is subject to page protection. It is a highly visible module in use by a very large number of articles, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is is protected from editing. |
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:
- Module:UserLinks
- Module:UserLinks/shared
- Module:UserLinks/config
- Module:Arguments
- Module:Yesno
- Module:Toolbar
- Module:InterwikiTable
- Module:TableTools (optional in Module:UserLinks, but required by Module:Toolbar)
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.