Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Module:User type/doc

From Wikipedia, the free encyclopedia
User type
DescriptionThis module gets the user type for a given username.
Status
Release
UpdatedSeptember 29, 2026 (12 hours ago)
DependenciesModule: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: s Username (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: s Username (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: s Username (string)
Returns: Whether the user is likely a permanent account.
user_type._main( s ) (function)
Gets the user type.
Parameter: s Username (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:
frame Calling frame (Frame)
frame.args Calling arguments (table)
frame.args[1] String to test (string; optional)
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:
frame Calling frame (Frame)
frame.args Calling arguments (table)
frame.args[1] String to test (string; optional)
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:
frame Calling frame (Frame)
frame.args Calling arguments (table)
frame.args[1] String to test (string; optional)
Returns: Whether the user is likely an account.
user_type.main( frame ) (function)
Entrypoint for {{user type}}.
Parameters:
frame Calling frame (Frame)
frame.args Calling arguments (table)
frame.args[1] String to test (string; optional)
Returns: Whether the user is likely an account.

Documentation above is auto generated