Template:Banned user/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Adding preview)
No edit summary
Line 9: Line 9:


== Testcases ==
== Testcases ==
Testcases for this template can be located on the [[/testcases|testcases subpage]].
Testcases for this template can be located on the '''[[/testcases|testcases subpage]]'''.


== Parameters and Examples ==
== Parameters and Examples ==
Line 32: Line 32:
| If used with {{Code|<nowiki>reason=sock</nowiki>}}, set the username of the user who just recently got banned for ban evasions or creating sockpuppet account for inappropriate purposes.
| If used with {{Code|<nowiki>reason=sock</nowiki>}}, set the username of the user who just recently got banned for ban evasions or creating sockpuppet account for inappropriate purposes.
| {{CodeBlock|margin=5px|<nowiki>{{Banned user|reason=sock|user=[[User:Example]]}}</nowiki>}}
| {{CodeBlock|margin=5px|<nowiki>{{Banned user|reason=sock|user=[[User:Example]]}}</nowiki>}}
|-
| align=center | {{Code|{{Param|note}}}}
| Additional notes. '''(Optional)'''
| {{CodeBlock|margin=5px|<nowiki>{{Banned user|notes=Banned by [[User:Example]], {{Lorem ipsum}}}}</nowiki>}}
|-
|-
| align=center | {{Code|{{Param|nocat}}}}
| align=center | {{Code|{{Param|nocat}}}}
Line 40: Line 44:
== Preview ==
== Preview ==
{{banned user|nocat=1}}
{{banned user|nocat=1}}
*For more previews, see the '''[[/testcases|testcases subpage]]'''.
{{Note|The template will automatically load the content according to the interface language.}}
{{Note|The template will automatically load the content according to the interface language.}}

Revision as of 00:42, 6 August 2023

Edit-copy.png
This is a documentation subpage for Template:Banned user.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Note.pngNote:If you want to report a user, use the {{Report user}} template (more info can be found on the template).

This template is used on user pages in order to notify other users that a user has been blocked/banned from editing on the wiki.

Translations

The used strings are on strings subpage. Please follow the format to add translations for them.

Testcases

Testcases for this template can be located on the testcases subpage.

Parameters and Examples

Parameter Description Example
No Parameters Use this if the user has been banned for multiple reasons.
{{Banned user}}
{{{reason}}} Select reasons why this user has been banned. Icons will be also changed by the same parameter.
{{Banned user|reason=termsofuse}}
{{{status}}} For specifying the status of a ban/block.
{{Banned user|status=previously}}
{{{user}}} If used with reason=sock, set the username of the user who just recently got banned for ban evasions or creating sockpuppet account for inappropriate purposes.
{{Banned user|reason=sock|user=[[User:Example]]}}
{{{note}}} Additional notes. (Optional)
{{Banned user|notes=Banned by [[User:Example]], {{Lorem ipsum}}}}
{{{nocat}}} To prevent the adding of the Category:Banned Users category. Does not change anything visibly. Only use this if you want to preview the template.
{{Banned user|nocat=1}}

Preview

Icon-crystalclear-flag.png
This user has been banned for an unspecified reason, such as Wikipedia icon spamming, Wikipedia icon vandalism, Wikipedia icon copyright violations, Wikipedia icon sockpuppetry, Wikipedia icon edit warring, trolling or Wikipedia icon harassment, and/or violating the Valve Developer Community's Terms of Use along with other misbehavior.
Note.pngNote:The template will automatically load the content according to the interface language.