Difference between revisions of "Template:Comics sidebar"

From blackwiki
Jump to navigation Jump to search
imported>18jellyfish
(box was too wide)
imported>TonyTheTiger
(adding {{collapsible option}} and/or {{{state}}})
Line 5: Line 5:
 
| topcaption  = {{{caption|}}}
 
| topcaption  = {{{caption|}}}
 
| title        = [[Comics]]
 
| title        = [[Comics]]
 +
| state = {{{state|autocollapse}}}
 
| image        = [[File:Speech balloon.svg|50px]] [[File:Speech balloon.svg|50px]] [[File:Speech balloon.svg|50px]]
 
| image        = [[File:Speech balloon.svg|50px]] [[File:Speech balloon.svg|50px]] [[File:Speech balloon.svg|50px]]
 
| titlestyle  = background:antiquewhite;
 
| titlestyle  = background:antiquewhite;
Line 40: Line 41:
  
 
<!-- end Sidebar -->}}<noinclude>
 
<!-- end Sidebar -->}}<noinclude>
 +
{{collapsible option}}
 
{{documentation}}
 
{{documentation}}
 
[[Category:Comics navigational boxes]]
 
[[Category:Comics navigational boxes]]
 
</noinclude>
 
</noinclude>

Revision as of 04:47, 1 October 2012

Initial visibility: currently defaults to autocollapse

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

  • |state=collapsed: {{Comics sidebar|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Comics sidebar|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Comics sidebar|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 template is designed to be used for articles about general topics related to comics.

Usage

{{Comics sidebar
<!--Wikipedia:WikiProject Comics-->
|title     =
|image     = <!-- filename and descriptor only e.g. image.jpg -->
|imagesize = <!-- defaults to 200px -->
|caption   = <!-- image caption -->
<!-- end {{Comics sidebar}} -->}}

All parameters are optional.

|title
The title of the article page.
|image
An optional image to decorate the box.
|imagesize
An optional parameter to adjust the size of the image in the box. Defaults to 200px.
|caption
A descriptive caption for the image, if any.

Example usage

{{Comics sidebar
|title     = Comics sidebar
|image     = Wikipe-tan shocked cropped.png
|imagesize = 
|caption   = Wikipe-tan says, "Use this template on pages on ''general topics'' about comics!"
}}