Module:User type/doc
Appearance
| This is a documentation subpage for Module:User type (see that page for the module itself). It contains usage information, categories and other content that is not part of the original module page. |
| This module depends on the following other modules: |
| Description | This module gets the user type for a given username. |
|---|---|
| Updated | November 9, 2026 (14 hours ago) |
| Dependencies | Module:IPAddress |
This module gets the user type for a given username.
| This module is used in system messages. Changes to it can cause immediate changes to the Festipedia user interface. To avoid large-scale disruption, any changes should first be tested in this module's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this module. Please discuss any changes on the talk page before implementing them. |
Documentation
Package items
user_type._isUser( s )(function)- Detects whether the user is an account or not.
- Parameter:
sUsername (string) - Returns: The user type or an empty string if the user is an IP address.
user_type._isTempUser( s )(function)- Detects whether the user is a temporary user or not.
- Parameter:
sUsername (string) - Returns: Whether the user is likely a permanent account.
user_type._isPermUser( s )(function)- Detects whether the user is a registered user or not.
- Parameter:
sUsername (string) - Returns: Whether the user is likely a permanent account.
user_type._main( s )(function)- Gets the user type.
- Parameter:
sUsername (string) - Returns: User type "ip", "range", "temp", or "perm".
user_type.isTempUser( frame )(function)- Entrypoint for templates to detect whether a user is a temporary account.
- Parameters:
- Returns: Whether the user is likely a temporary account.
user_type.isPermUser( frame )(function)- Entrypoint for templates to detect whether a user is a registered account.
- Parameters:
- Returns: Whether the user is likely a registered account.
user_type.isUser( frame )(function)- Entrypoint for templates to detect the type of user account.
- Parameters:
- Returns: Whether the user is likely an account.
user_type.main( frame )(function)- Entrypoint for {{user type}}.
- Parameters:
- Returns: Whether the user is likely an account.
Documentation above is auto generated