Difference between revisions of "Template:Block-reason/doc"
Jump to navigation
Jump to search
imported>Meteor sandwich yum (noting simplification) |
imported>Meteor sandwich yum (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: |
** '''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 '' | + | ** '''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| | + | ** 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|| | + | * {{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, 10 May 2014
| This is a documentation subpage for Template:Block-reason. It contains usage information, categories and other content that is not part of the original template page. |
| This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
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.
{{subst:block-reason|Somereason}}). 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.,
{{subst:block-reason|for disruptive editing and poor etiquette}}
|page(optional for all except 3RR): Page block is based on.