Template:Banned user/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 2: Line 2:
{{shortcut|{{tl|link=Banned}}<br>{{tl|link=Ban}}}}
{{shortcut|{{tl|link=Banned}}<br>{{tl|link=Ban}}}}
{{Note|If you want to report a user, use the {{tl|link=Report user}} template (more info can be found on the template).}}
{{Note|If you want to report a user, use the {{tl|link=Report user}} template (more info can be found on the template).}}
== Usage ==
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.
Use this template on user page if the user has been banned/blocked from editing or using talk pages.
 
== Translations ==
== Translations ==
The used strings are on [[/strings|strings subpage]]. Please follow the format to add translations for them.
The used strings are on [[/strings|strings subpage]]. Please follow the format to add translations for them.
== Testcases ==
Testcases for this template can be located on the [[/testcases|testcases subpage]].
== Parameters ==
== Parameters ==
{| class="standard-table" width="100%"
{| class="standard-table" width="100%"
Line 11: Line 15:
! width="25%" | Description
! width="25%" | Description
! Example
! Example
! Result
|-
|-
| align=center | No Parameters
| align=center | No Parameters
| Use this if the user has been banned for multiple reasons.
| Use this if the user has been banned for multiple reasons.
| {{CodeBlock|margin=5px|<nowiki>{{Banned user}}</nowiki>}}
| {{CodeBlock|margin=5px|<nowiki>{{Banned user}}</nowiki>}}
| {{Banned user|nocat=1}}
|-
|-
| align=center | {{Code|{{Param|reason}}}}
| align=center | {{Code|{{Param|reason}}}}
| Select reasons why this user has been banned. Icons will be also changed by the same parameter.
| Select reasons why this user has been banned. Icons will be also changed by the same parameter.
| <!-- Example section -->
| {{CodeBlock|margin=5px|<nowiki>{{Banned user|reason=termsofuse}}</nowiki>}}
Violating the [[Valve Developer Community:Terms of Use|Terms Of Use]]: {{CodeBlock|margin=5px|<nowiki>{{Banned user|reason=termsofuse}</nowiki>}}<br>
Edit war/Disputed edit: {{CodeBlock|margin=5px|<nowiki>{{Banned user|reason=editwar}}</nowiki>}}<br>
Spam: {{CodeBlock|margin=5px|<nowiki>{{Banned user|reason=spam}}</nowiki>}}<br>
Sockpuppet (username not specified): {{CodeBlock|margin=5px|<nowiki>{{Banned user|reason=sock}}</nowiki>}}<br>
Bad or offensive usernames: {{CodeBlock|margin=5px|<nowiki>{{Banned user|reason=username}}</nowiki>}}<br>
Vandalism: {{CodeBlock|margin=5px|<nowiki>{{Banned user|reason=vandal}}</nowiki>}} or {{CodeBlock|margin=5px|<nowiki>{{Banned user|reason=vandalism}}</nowiki>}}<br>
Copyright: {{CodeBlock|margin=5px|<nowiki>{{Banned user|reason=copyright}}</nowiki>}}
| {{Banned user|nocat=1|reason=termsofuse}}<br> <!-- Preview/result section -->
{{Banned user|nocat=1|reason=editwar}}<br>
{{Banned user|nocat=1|reason=spam}}<br>
{{Banned user|nocat=1|reason=sock}}<br>
{{Banned user|nocat=1|reason=username}}<br>
{{Banned user|nocat=1|reason=vandal}}<br>
{{Banned user|nocat=1|reason=copyright}}
|-
|-
| align=center | {{Code|{{Param|user}}}}
| align=center | {{Code|{{Param|user}}}}
| 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>}}
| {{Banned user|nocat=1|reason=sock|user=[[User:Example]]}}
|-
|-
| align=center | {{Code|{{Param|nocat}}}}
| align=center | {{Code|{{Param|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.
| 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.
| {{CodeBlock|margin=5px|<nowiki>{{Banned user|nocat=1}}</nowiki>}}
| {{CodeBlock|margin=5px|<nowiki>{{Banned user|nocat=1}}</nowiki>}}
| Same as the first example, but without [[:Category:Banned Users]] (and previously, [https://developer.valvesoftware.com/w/index.php?title=Category:Banned_Spammers&redirect=no Category:Banned Spammers]) category being added to the page.
|}
|}
{{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:30, 24 July 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

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}}
{{{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]]}}
{{{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}}
Note.pngNote:The template will automatically load the content according to the interface language.