Difference between revisions of "Template:Block-reason/doc"

From blackwiki
Jump to navigation Jump to search
imported>Meteor sandwich yum
(update "p" is now "page" and "reason" is just an unnamed parameter)
imported>Meteor sandwich yum
(Reverted 6 edits by Meteor sandwich yum (talk): I reverted my changes to the template; so I'm reverting the documentation. I admit it was bad form. (TW))
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
+
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
{{substituted}}
 
{{substituted}}
 
{{esoteric}}
 
{{esoteric}}
 +
=== Usage ===
 +
All parameters optional.
  
== Usage ==
+
*''x'': Length of the block. ('''ind''' for indefinitely, otherwise length for temporarily)
* {{para||x}} (required): Length of the block. ('''indef''' for indefinitely, otherwise a set length (e.g., 30 days))
+
*''r'': Reason for the block. ('''v''' for vandalism, '''b''' for page blanking, '''vp''' for vandalism to ''p'', '''pa''' for personal attacks, '''s''' for spam, '''3''' for 3RR on ''p'', '''sock''' for using sockpuppets abusively, '''o''' for other)
* The reason is optional and is invoked through an unnamed parameter (e.g. {{tlxs|Block-reason|''Somereason''}}). Keywords exist as follows:
+
**''o'': Another reason for the block.
** '''blanking''' for page blanking
+
*''p'': Page block is based on.
** '''vandalism''' for vandalism
 
** '''pa''' for personal attacks
 
** '''spam'''
 
** '''3RR''' on ''page'' (must be specified)
 
** '''sock''' for using sockpuppets abusively
 
** if none of the above keywords are specified, a custom reason may be given: e.g., {{tlxs|Block-reason|for disruptive editing and poor etiquette}}
 
* {{para||page}} (optional for all except 3RR): Page block is based on.
 
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
+
<includeonly>
<!-- Categories go here and interwikis go in Wikidata. -->
+
{{pp-semi|small=yes}}
 +
 
 +
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:User block templates]]
 
[[Category:User block templates]]
}}</includeonly>
+
</includeonly>

Revision as of 00:03, 12 May 2014

Template:Substituted

Usage

All parameters optional.

  • x: Length of the block. (ind for indefinitely, otherwise length for temporarily)
  • r: Reason for the block. (v for vandalism, b for page blanking, vp for vandalism to p, pa for personal attacks, s for spam, 3 for 3RR on p, sock for using sockpuppets abusively, o for other)
    • o: Another reason for the block.
  • p: Page block is based on.