Template:Block-reason/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(noting simplification)
(update "p" is now "page" and "reason" is just an unnamed parameter)
Line 6: Line 6:
== Usage ==
== Usage ==
* {{para||x}} (required): Length of the block. ('''indef''' for indefinitely, otherwise a set length (e.g., 30 days))
* {{para||x}} (required): Length of the block. ('''indef''' for indefinitely, otherwise a set length (e.g., 30 days))
* The reason is optional and is invoked through an unnamed parameter (e.g. {{tlxs|Block-reason|''Somereason''}}). Keywords exist as follows:
* {{para||reason}} (optional):
** '''blanking''' for page blanking
** '''blanking''' for page blanking
** '''vandalism''' for vandalism
** '''vandalism''' for vandalism
** '''pa''' for personal attacks
** '''pa''' for personal attacks
** '''spam'''
** '''spam'''
** '''3RR''' on ''p'' (must be specified)
** '''3RR''' on ''page'' (must be specified)
** '''sock''' for using sockpuppets abusively
** '''sock''' for using sockpuppets abusively
** if none of the above keywords are specified, a custom reason may be given: e.g., {{tlxs|Block-reason|reason{{=}}for disruptive editing and poor etiquette}}
** 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||p}} (optional for all except 3RR): Page block is based on.
* {{para||page}} (optional for all except 3RR): Page block is based on.


<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||

Revision as of 08:07, May 10, 2014

Comment This template contains one or more optional parameters: see the talk page for details.

This template employs some extremely complicated and esoteric features of template syntax. Please do not attempt to alter it unless you are certain that you understand the setup and are prepared to repair any consequent collateral damage if the results are unexpected. Any experiments should be conducted in the template sandbox or your user space.


Usage

  • |x (required): Length of the block. (indef for indefinitely, otherwise a set length (e.g., 30 days))
  • The reason is optional and is invoked through an unnamed parameter (e.g. Template:Tlxs). Keywords exist as follows:
    • blanking for page blanking
    • 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., Template:Tlxs
  • |page (optional for all except 3RR): Page block is based on.