Difference between revisions of "Template:Censorship/doc"

From blackwiki
Jump to navigation Jump to search
imported>Good Olfactory
(it's not a sidebar template, which is what the category is limited to)
imported>Paine Ellsworth
(update /doc)
 
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). -->
  
=== Usage ===
+
{{Collapsible option}}
  
=== See also ===
+
<includeonly>{{Sandbox other||
 
+
<!-- Categories go below this line, please; interwikis go to Wikidata, thank you! -->
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
{{DEFAULTSORT:Censorship}}
 
 
[[Category:Arts and culture templates]]
 
[[Category:Arts and culture templates]]
 
[[Category:Politics and government templates]]
 
[[Category:Politics and government templates]]
  
</includeonly>
+
}}</includeonly>

Latest revision as of 03:54, 2 April 2018

Initial visibility: currently defaults to autocollapse

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

  • |state=collapsed: {{Censorship|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Censorship|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Censorship|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.