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>JJMC89
m ({{sandbox other}})
 
(2 intermediate revisions by 2 users not shown)
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) If ''x'' is not specified, assumes a temporary block without specifying a block end time.
* {{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>{{sandbox other||
<!-- 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>

Latest revision as of 05:06, 13 January 2017

Template:Substituted

Usage

All parameters optional.

  • x: Length of the block. (ind for indefinitely, otherwise length for temporarily) If x is not specified, assumes a temporary block without specifying a block end time.
  • 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.