ಟೆಂಪ್ಲೇಟ್:Is temporary account/doc
| This is a documentation subpage for ಟೆಂಪ್ಲೇಟ್:Is temporary account. It may contain usage information, categories and other content that is not part of the original ಟೆಂಪ್ಲೇಟ್ page. |
| This template should be substituted if used in a comment on a user talk page. |
This metatemplate determines whether a user is a temporary account.
Usage
[ಸಂಪೊಲಿಪುಲೆ]Use {{Is temporary account}} to determine whether the user identified in the current page title (e.g. User talk:~2025-00000-00) is a temporary account.
Alternatively, use {{Is temporary account|user}} to determine whether the specified user is a temporary account, replacing user with the username to evaluate.
The template returns 1 if the user is a temporary account, and a blank output if the user is not a temporary account.
Implementation
[ಸಂಪೊಲಿಪುಲೆ]The template compares the first two characters of the username to ~2, a username prefix exclusively used by all temporary accounts. (There are no existing registered users with usernames starting with ~2, and attempting to register a new account with a username starting with ~2 returns an error.)
If no username is specified, the template uses the {{BASEPAGENAME}} magic word to obtain the username from the page title. {{BASEPAGENAME}} encodes the tilde (~) symbol as ~. For example, {{BASEPAGENAME}} would return ~2025-00000-00 on the page User talk:~2025-00000-00. Because of this, the template compares the first seven characters of the base page title as encoded by {{BASEPAGENAME}} to ~2 in order to determine whether the user identified in the page title is a temporary account.
TemplateData
[ಸಂಪೊಲಿಪುಲೆ]TemplateData for Is temporary account
Determines whether a user is a temporary account
| ಪರಿಮಿತಿ | ಇವರೊ | ಇದೊ | ಸ್ತಿತಿ | |
|---|---|---|---|---|
| Username | user 1 | Username to evaluate. Defaults to {{BASEPAGENAME}} if unspecified.
| ಬಳಕೆದಾರೆರ್ | ಐಚಿಕೊ |
Examples
[ಸಂಪೊಲಿಪುಲೆ]{{Is temporary account}}
{{Is temporary account|~2025-00000-00}}
1
{{Is temporary account|Example}}
See also
[ಸಂಪೊಲಿಪುಲೆ]- {{If temporary account}}
- {{IsIPAddress}}