Difference between revisions of "Template:Block notice"

From blackwiki
Jump to navigation Jump to search
imported>Andrybak
m (fix the "if")
imported>Andrybak
(remove usage of non-existent Template:Block notice/inner partial)
Line 1: Line 1:
 
<includeonly>{{Documentation
 
<includeonly>{{Documentation
−
  | content = {{#ifeq:{{{partial|}}}|yes|
+
  | content = {{Block notice/inner
−
{{Block notice/inner partial
 
 
     | banners              = {{{banners|}}}
 
     | banners              = {{{banners|}}}
 
     | temp or indef        = {{yesno-no|{{{temp or indef|}}}}}
 
     | temp or indef        = {{yesno-no|{{{temp or indef|}}}}}
Line 11: Line 10:
 
     | see also              = {{{see also|}}}
 
     | see also              = {{{see also|}}}
 
}}
 
}}
−
|{{Block notice/inner
 
−
    | banners              = {{{banners|}}}
 
−
    | temp or indef        = {{yesno-no|{{{temp or indef|}}}}}
 
−
    | allow anon            = {{yesno-yes|{{{allow anon|}}}}}
 
−
    | allow notalk          = {{yesno-yes|{{{allow notalk|}}}}}
 
−
    | extra params          = {{{extra params|}}}
 
−
    | extra usage before    = {{{extra usage before|}}}
 
−
    | extra usage          = {{{extra usage|}}}
 
−
    | see also              = {{{see also|}}}
 
−
}}}}
 
 
}}{{Sandbox other||
 
}}{{Sandbox other||
 
{{#ifeq:{{{temp or indef|yes}}}|yes|[[Category:User block templates]]
 
{{#ifeq:{{{temp or indef|yes}}}|yes|[[Category:User block templates]]

Revision as of 14:26, 3 July 2020

Template documentation[view] [edit] [history] [purge]

Usage

Place this template at the bottom of block-notice template pages, inside of <noinclude> tags, such as:

<noinclude>{{Block notice|banners={{Twinkle standard installation}}}}</noinclude>

Parameters

|banners=
Additional banners (aka header templates) to put at the top of documentation at the template page, like {{Twinkle standard installation}}.
|temp or indef=
Whether or not the template supports parameters |time= and |indef=yes, which differentiate between temporary and indefinite blocks. Default is no.
|extra usage before=
Extra text after the first paragraph in section "Usage", which goes before a detailed example of template's usage.
|see also=
Additional wikitext for the section "See also". It will be added before the big table {{Block templates}}.
|category=
Custom categorization for the template. Default is Category:User block templates.

Usage example parameters

|allow notalk=
Whether or not the template supports parameter |notalk=, which indicates, whether the block includes revoking of the ability to edit own talk page or not. Default is yes.
|allow anon=
Whether or not the template supports parameter |anon=. Default is yes.
|extra params=
Wikitext for the additional parameters in the template's usage example. For example, {{!}}name{{=}}<var>value</var>{{!}}flag{{=}}yes.

See also