Module:User type/doc
Appearance
| This is a documentation subpage for Module:User type. It may contain usage information, categories and other content that is not part of the original module page. |
| This module is rated as ready for general use. It has reached a mature state, is considered relatively stable and bug-free, and may be used wherever appropriate. It can be mentioned on help pages and other Wikipedia resources as an option for new users. To minimise server load and avoid disruptive output, improvements should be developed through sandbox testing rather than repeated trial-and-error editing. |
| This module depends on the following other modules: |
| Description | This module gets the user type for a given username. |
|---|---|
| Status | Release |
| Updated | September 29, 2026 (12 hours ago) |
| Dependencies | Module:IPAddress |
This module gets the user type for a given username.
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