Difference between revisions of "Template:Show"
From LGPedia
(Revamp: Removing evil hardcodedness, allowing more customization, improving documentation) |
(Hopefully fixing creator vertical align) |
||
Line 1: | Line 1: | ||
<includeonly>{| cellspacing="0" cellpadding="2" style="font-size: 90%; float: right; width: 21em; background-color: {{{bgcolor|#EEEEEE}}}; border: 1px solid {{{bordercolor|#AAAAAA}}}; color: {{{fontcolor|#000000}}};text-align: left; padding: 0.2em;" | <includeonly>{| cellspacing="0" cellpadding="2" style="font-size: 90%; float: right; width: 21em; background-color: {{{bgcolor|#EEEEEE}}}; border: 1px solid {{{bordercolor|#AAAAAA}}}; color: {{{fontcolor|#000000}}};text-align: left; padding: 0.2em;" | ||
|- | |- | ||
− | !colspan="2" style="text-align: center; background-color: {{{headercolor|#DDDDDD}}}; font-size: | + | !colspan="2" style="text-align: center; background-color: {{{headercolor|#DDDDDD}}}; font-size: 130%;"|{{{name|{{PAGENAME}}}}} |
|- | |- | ||
− | |style="font-size: 100%;" align="center" colspan="2" |{{#if: {{{image|}}} | [[Image:{{{image}}}|220px]] | Image not available.<br />Please [[Special:Upload | add]] one. }} | + | |style="font-size: 100%;" align="center" colspan="2" |{{#if: {{{image|}}} | [[Image:{{{image}}}|220px]] | Image not available.<br />Please [[Special:Upload | add]] one. }} {{#if: {{{creators|}}} |<br> |
− | {{#if: {{{creators|}}} |{{+}}valign="top" | + | {{+}}valign="top" |
!Created by | !Created by | ||
{{!}}{{{creators}}} }} {{#if: {{{cast|}}} |<br> | {{!}}{{{creators}}} }} {{#if: {{{cast|}}} |<br> |
Revision as of 03:07, 5 November 2007
This template generates a sidebar similar to Template:Blog, but for use on the main descriptive pages of shows.
Usage
{{Show |name = |image = |creators = |cast = {{Show/row|CHARACTER|ACTOR}} |former = {{Show/row|FORMER CHARACTER|FORMER ACTOR}} |crew = {{Show/row|PRODUCTION FUNCTION|CREWMEMBER}} |portal = |lov = |bgcolor = |headercolor = |fontcolor = |bordercolor = }}
name
defaults to the page name.image
expects only the filename, no preceeding Image: or other parameters.creators
is shown exactly as entered, so that a list of links can be made.cast
,former
andcrew
are meant for use with Template:Show/row - see that page if you're unsure how to use it.portal
andlov
will check for the common names first (Portal:Name and List of Name videos), and only if such a page was not found processes the input. That input is automatically turned into a link (iow, it expects the page name of this series' list of videos).bgcolor
controls the background color (defaults to #EEEEEE).headercolor
controls the subsection header colors (defaults to #DDDDDD).fontcolor
controls the overall font color (defaults to #000000).bordercolor
controls the border color (defaults to #AAAAAA).
If the series name equals the page name, and portal and list of videos are at the default locations, all three values can be omitted.