Jump to content

Template:IsUserRegistered/doc

From Wikipedia, the free encyclopedia

Purpose

[edit]

Detects if this template is placed anywhere within the user namespace of a registered user, IPv4 user or IPv6 user.
Unlike Template:IP-talk, this works even if the user's username starts with numbers and can differentiate between IPv4 and IPv6.

Usage

[edit]

{{subst:IsUserRegistered|Text to display if registered|Text to display if IPv4|Text to display if IPv6}}

This template should not be used outside the user namespace and will behave as if placed in a registered user's namespace if used elsewhere.

Examples

[edit]

{{subst:IsUserRegistered|{{subst:welcome}}|{{subst:welcome-anon}}|{{subst:welcome-anon}}}} ~~~~

Limitations

[edit]

This template will fail if the user's username looks just like an IP address, but such usernames are a violation of the username policy.

See also

[edit]

Template:IP-talk