Template:If temporary account
| This template should be substituted if used in a comment on a user talk page. |
This metatemplate displays different outputs depending on whether a user is a temporary account.
Usage
[edit]Use {{If temporary account|output for temporary account|output for other type of user}} to show output for temporary account if the user identified in the current page title (e.g. User talk:~2025-00000-00) is a temporary account, and output for other type of user otherwise.
Alternatively, use {{Is temporary account|user=username|output for temporary account|output for other type of user}} to display the specified output depending on whether the specified username belongs to a temporary account.
Implementation
[edit]The template uses {{Is temporary account}} to determine whether the user is a temporary account.
TemplateData
[edit]TemplateData for If temporary account
Display different outputs depending on whether a user is a temporary account
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Output for temporary account | 1 | Output to display if the user is a temporary account | Content | optional |
| Output for other type of user | 2 | Output to display if the user is not a temporary account | Content | optional |
| Username | user | Username to evaluate. Defaults to {{BASEPAGENAME}} if unspecified.
| User | optional |
Examples
[edit]{{If temporary account|This is a temporary account.|This is not a temporary account.}}
This is not a temporary account.
{{If temporary account|user=~2025-00000-00|This is a temporary account.|This is not a temporary account.}}
This is a temporary account.
{{If temporary account|user=Example|This is a temporary account.|This is not a temporary account.}}
This is not a temporary account.