Template:Characterbox

From LGPedia
Revision as of 01:02, 10 September 2008 by 74.55.216.202 (Talk)

Jump to: navigation, search

This template creates character boxes in variable sizes, for use on Characters and KM Characters and LG15: The Resistance characters, for example.

Usage

{{Characterbox
|float=
|width=
|height=
|background=
|border=
|image=
|imageborder=
|imagewidth=
|charactername=
|charactername-size=
|charactername-color=
|actorname=
|actorname-size=
|actorname-color=
|characterblurb=
|characterblurb-size=
|characterblurb-color=
|blurbhalign=
}}

All parameters have a default value, so if a certain parameter is unneeded, it can be omitted without damage (e.g. float).

Parameter What to put there Default if omitted
float Either left or right. None. If float isn't set, the box doesn't float.
width Width of the character box, in pixels, without "px". 240px
height Height of the character box, any valid css unit. If omitted, height is automatically determined
background The box's background color. Accepts any valid HTML color name or code.
Note: In fact, this accepts any valid CSS background statement – so a knowledgable person can use background images, too.
#EEE
border Any valid CSS border statement, in the form of size style color.
size 
Any valid size statement, e.g. "2px"
style 
Any one of: dotted, dashed, solid, double, groove, ridge, inset, outset.
color 
Any valid HTML color name or code.
None. If omitted, there is no border.
image Purely the name of the image to use, without "Image:" prefix. None. If omitted, no image is displayed.
imageborder The border around the image. For input, see border. None. If omitted, there is no border.
imagewidth The width of the image to display, in pixels, without "px". Half of the box's width.
charactername Purely the name of the character, nothing else. If a page with that name exists, a link will be created automatically. The text "character's name".
charactername-size The text size of the character name, in pixels, without "px". One thirteenth of the box width.
charactername-color The text color of the character name; accepts any valid HTML color name or code. Black.
actorname Purely the name of the actor, nothing else. If a page with that name exists, a link will be created automatically. The text "Unknown".
actorname-size The text size of the actor name, in pixels, without "px". One twenty-first of the box width.
actorname-color The text color of the actor name; accepts any valid HTML color name or code. Black.
characterblurb Whatever you want to say about that character. The text "character blurb missing".
characterblurb-size The text size of the character blurb, in pixels, without "px". One twentieth of the box width.
characterblurb-color The text color of the character blurb; accepts any valid HTML color name or code. Black.
blurbhalign Horizontal alignment of the blurb text, any one of center, left, right, justify. Left.

Example

Daniel's box from Characters:

{{Characterbox
|width=240
|background=#f5faff
|border=2px solid MidnightBlue
|image=0167-DanielLaughing-Cropped.JPG
|imageborder=1px solid MidnightBlue
|imagewidth=120
|charactername-size=18
|charactername-color=black
|charactername=Daniel
|actorname-size=11
|actorname-color=black
|actorname=Yousef Abu-Taleb
|characterblurb-size=12
|characterblurb-color=black
|characterblurb=[[Bree]]'s loyal friend and budding filmmaker.
}}
0167-DanielLaughing-Cropped.JPG

Portrayed by: Yousef Abu-Taleb

Bree's loyal friend and budding filmmaker.

The minimalist version:

{{Characterbox
|image=0167-DanielLaughing-Cropped.JPG
|charactername=Daniel
|actorname=Yousef Abu-Taleb
|characterblurb=[[Bree]]'s loyal friend and budding filmmaker.
}}
0167-DanielLaughing-Cropped.JPG

Portrayed by: Yousef Abu-Taleb

Bree's loyal friend and budding filmmaker.

A micro-box:

{{Characterbox
|width=180
|border=1px solid MidnightBlue
|charactername=Daniel
|actorname=Yousef Abu-Taleb
|characterblurb=[[Bree]]'s loyal friend and budding filmmaker.
}}

Portrayed by: Yousef Abu-Taleb

Bree's loyal friend and budding filmmaker.