Difference between revisions of "Template:Abuse"

From blackwiki
Jump to navigation Jump to search
blackwiki>Matthew Proctor
blackwiki>Philiashasspots
(Added the autocollapse and describe on the article how to manage this template's visibility)
Line 1: Line 1:
 
{{Navbox
 
{{Navbox
 
|name = Abuse
 
|name = Abuse
 +
|state = {{{state|<includeonly>autocollapse</includeonly>}}}
 
|title = [[Abuse]]
 
|title = [[Abuse]]
 
|listclass = hlist
 
|listclass = hlist
Line 53: Line 54:
 
* [[Victimisation]]
 
* [[Victimisation]]
 
}}<noinclude>
 
}}<noinclude>
 
+
{{collapsible option}}
 
{{documentation}}
 
{{documentation}}
  
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 06:04, 23 January 2013

Initial visibility: currently defaults to autocollapse

To set this template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Abuse|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Abuse|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Abuse|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.

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

This is the {{Abuse}} template.

The template currently lists a limited number of abuse types. The number of abuse types listed must not exceed 22 without a consensus being reached on Template talk:Abuse about how to approach any expansion (for example, whether to expand, how far to expand, whether to categorise into subtypes and if so what subtypes).

Initial visibility: currently defaults to autocollapse

To set this template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Abuse|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Abuse|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Abuse|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.