Difference between revisions of "Template:Comics sidebar"

From blackwiki
Jump to navigation Jump to search
imported>Curly Turkey
imported>Curly Turkey
Line 2: Line 2:
 
| name        = Comics navbar
 
| name        = Comics navbar
 
| outertitle  = {{{title|}}}
 
| outertitle  = {{{title|}}}
| topimage    = {{#if:{{{image|}}}|[[File:{{{image|}}}|{{{imagesize|150px}}}]]
+
| topimage    = {{#if:{{{image|}}}|[[File:{{{image|}}}|alt={{{alt|}}}|{{#if:{{{imagesize|}}}|{{#ifexpr:250>={{#expr:{{{imagesize|}}}}}|{{{imagesize|}}}|150}}x150px|150x150px}}]]}}
 
| topcaption  = {{{caption|}}}
 
| topcaption  = {{{caption|}}}
 
| title        = [[Comics]]
 
| title        = [[Comics]]

Revision as of 21:53, 7 February 2013

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!"
}}