Template:If temporary account/doc: Difference between revisions

From Wikipedia, the free encyclopedia

Content deleted Content added


 

Line 1: Line 1:

{{Documentation subpage}}

{{Documentation subpage}}

{{Substitution||if used on a user talk page}}

{{Substitution||if used on a user talk page}}

{{tsh|if ta|iftemp|if temp}}

{{tsh|if ta|iftemp|if temp}}


Latest revision as of 10:39, 10 November 2025

This metatemplate displays different outputs depending on whether a user is a temporary account.

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.

The template uses {{Is temporary account}} to determine whether the user is a temporary account.

Display different outputs depending on whether a user is a temporary account

Template parameters

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.

Default
{{BASEPAGENAME}}
Example
~2025-00000-00
User optional
{{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.

Leave a Comment

Your email address will not be published. Required fields are marked *

Exit mobile version