Template:IsUserRegistered
{{{1}}}
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]
This template should always be substituted (i.e., use {{subst:IsUserRegistered}}). |
{{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.