Template:IsUserRegistered
Jump to navigation
Jump to search
{{{1}}}
Contents
Purpose
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
| This template should always be substituted. |
{{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
{{subst:IsUserRegistered|{{subst:welcome}}|{{subst:welcome-anon}}|{{subst:welcome-anon}}}} ~~~~
Limitations
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
| The above documentation is transcluded from Template:IsUserRegistered/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |