Difference between revisions of "Template:Show"

From LGPedia
Jump to: navigation, search
m
(Revamp: Removing evil hardcodedness, allowing more customization, improving documentation)
Line 1: Line 1:
{| class="infobox" align="right" style="border:#000 1px solid;margin-left:2em;margin-bottom:2em;width: 21em; text-align: left; font-size: 90%;background: #fff;" cellspacing="2"
+
<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;"
 
|-
 
|-
| style="background: {{{color}}}; font-size: 110%;" align="center" colspan="2" | '''{{{name}}}'''
+
!colspan="2" style="text-align: center; background-color: {{{headercolor|#DDDDDD}}}; font-size: 110%;"|{{{name|{{PAGENAME}}}}}
 
|-
 
|-
|style="font-size: 100%;" align="center" colspan="2" |
+
|style="font-size: 100%;" align="center" colspan="2" |{{#if: {{{image|}}} | [[Image:{{{image}}}|220px]] | Image not available.<br />Please [[Special:Upload | add]] one. }}  
{{#if: {{{image|}}} | [[Image:{{{image}}}|220px| ]]<br>{{#if: {{{caption|}}} | {{{caption}}} | <includeonly>[[Category:Videos needing captions]]</includeonly>}}|
+
{{#if: {{{creators|}}} |{{+}}valign="top"<br>
Image not available.<br />Please [[Special:Upload | add]] one. }} <br>
+
!Created by
{{!}}- valign=top
+
{{!}}{{{creators}}} }} {{#if: {{{cast|}}} |<br>
! Created by
+
{{+}}
{{!}} {{{creators}}} <br>
+
!colspan="2" style="text-align: center; background-color: {{{headercolor|#DDDDDD}}}; font-size: 110%;"{{!}}Cast
{{!}}-
+
{{{cast}}} }} {{#if: {{{former|}}} |<br>
{{!}} style="text-align: center; background: {{{color}}}; font-size: 110%" colspan="2" {{!}} '''Cast'''  <br>
+
{{+}}
{{!}}- valign=top
+
!colspan="2" style="text-align: center; background-color: {{{headercolor|#DDDDDD}}}; font-size: 110%;"{{!}}Former Cast
! {{{character1}}}
+
{{{former}}} }} {{#if: {{{crew|}}} |<br>
{{!}} {{{actor1}}}
+
{{+}}
{{!}}- valign=top
+
!colspan="2" style="text-align: center; background-color: {{{headercolor|#DDDDDD}}}; font-size: 110%;"{{!}}Production Crew
! {{{character2}}}
+
{{{crew}}} }}
{{!}} {{{actor2}}}
+
|-
{{!}}- valign=top
+
|colspan="2" style="text-align: center;"|{{ #ifexist: Portal:{{{name|{{PAGENAME}}}}} | [[Portal:{{{name|{{PAGENAME}}}}}|Portal of {{{name|{{PAGENAME}}}}}]]<br> | {{#if: {{{portal|}}} | [[{{{portal}}}|Portal of {{{name|{{PAGENAME}}}}}]] <br>}} }}
! {{{character3}}}
+
{{ #ifexist: List of {{{name|{{PAGENAME}}}}} videos | [[List of {{{name|{{PAGENAME}}}}} videos]] | {{#if: {{{lov|}}} | [[{{{lov}}}|List of {{{name|{{PAGENAME}}}}} videos]] }} }}
{{!}} {{{actor3}}}
+
|}</includeonly><noinclude>
{{!}}- valign=top
+
This template generates a sidebar similar to [[Template:Blog]], but for use on the main descriptive pages of shows.
! {{{character4}}}
+
==Usage==
{{!}} {{{actor4}}}
+
<pre>{{Show
{{!}}- valign=top
+
|name    =
! {{{character5}}}
+
|image    =
{{!}} {{{actor5}}}
+
|creators =
{{!}}- valign=top
+
 
! {{{character6}}}
+
|cast    = {{Show/row|CHARACTER|ACTOR}}
{{!}} {{{actor6}}}  <br>
+
|former  = {{Show/row|FORMER CHARACTER|FORMER ACTOR}}
{{!}}-
+
|crew    = {{Show/row|PRODUCTION FUNCTION|CREWMEMBER}}
{{!}} style="text-align: center; background: {{{color}}}; font-size: 110%" colspan="2" {{!}} '''Former Cast''' <br>
+
{{!}}- valign=top
+
! {{{formercharacter1}}}
+
{{!}} {{{formeractor1}}}
+
{{!}}- valign=top
+
! {{{formercharacter2}}}
+
{{!}} {{{formeractor2}}}
+
{{!}}- valign=top
+
! {{{formercharacter3}}}
+
{{!}} {{{formeractor3}}}
+
{{!}}-
+
{{!}} style="text-align: center; background: {{{color}}}; font-size: 110%" colspan="2" {{!}} '''Production Crew''' {{#if: Music Supervisor |  <br>
+
{{!}}- valign=top
+
! Music Supervisor
+
{{!}} {{{musicsupervisor}}} |}}{{#if: Production Services |  <br>
+
{{!}}- valign=top
+
! Production Services
+
{{!}} {{{productionserv}}} |}}{{#if: Writer |  <br>
+
{{!}}- valign=top
+
! Writer
+
{{!}} {{{storycredits}}} |}}{{#if: Animator |  <br>
+
{{!}}- valign=top
+
! Animator
+
{{!}} {{{animator}}} |}}{{#if: Associate Producer | <br>
+
{{!}}- valign=top
+
! Associate Producer
+
{{!}} {{{assocproducer}}} |}}{{#if: Camera Operator |  <br>
+
{{!}}- valign=top
+
! Camera Operator
+
{{!}} {{{camerapersons}}} |}}{{#if: Co-Executive Producer |  <br>
+
{{!}}- valign=top
+
! Co-Executive Producer
+
{{!}} {{{coexecproducer}}} |}}{{#if: Director | <br>
+
{{!}}- valign=top
+
! Director
+
{{!}} {{{director}}} |}}{{#if: Editor  |  <br>
+
{{!}}- valign=top
+
! Editor
+
{{!}} {{{editor}}} |}}{{#if: Executive Producer | <br>
+
{{!}}- valign=top
+
! Executive Producer
+
{{!}} {{{execproducer}}} |}}{{#if: Head Writer | <br>
+
{{!}}- valign=top
+
! Head Writer
+
{{!}} {{{headwriter}}} |}}{{#if: Interactive Production Assistant |  <br>
+
{{!}}- valign=top
+
! Interactive Production Assistant
+
{{!}} {{{interprodassist}}} |}}{{#if: Line Producer | <br>
+
{{!}}- valign=top
+
! Line Producer
+
{{!}} {{{lineproducer}}} |}}{{#if: Producer | <br>
+
{{!}}- valign=top
+
! Producer
+
{{!}} {{{producer}}} |}}{{#if: Production Assistant |  <br>
+
{{!}}- valign=top
+
! Production Assistant
+
{{!}} {{{prodassistant}}} |}}{{#if: Production Manager |  <br>
+
{{!}}- valign=top
+
! Production Manager
+
{{!}} {{{prodmanager}}} |}}{{#if: Production Runner |  <br>
+
{{!}}- valign=top
+
! Production Runner
+
{{!}} {{{prodrunner}}} |}}{{#if: Production Secretary | <br>
+
{{!}}- valign=top
+
! Production Secretary
+
{{!}} {{{prodsecretary}}} |}}{{#if: Series Producer | <br>
+
{{!}}- valign=top
+
! Series Producer
+
{{!}} {{{seriesproducer}}} |}}{{#if: Vidplay by |  <br>
+
{{!}}- valign=top
+
! Vidplay by
+
{{!}} {{{vidplay}}} |}}
+
|}
+
  
 +
|portal  =
 +
|lov      =
  
<noinclude>
+
|bgcolor    =
== Usage ==
+
|headercolor =
This template should be used for '''official''' LG15 shows, and nowhere else.
+
|fontcolor  =
<pre>
+
|bordercolor =
{{Show
+
}}</pre>
| name             =
+
*'''<code>name</code>''' defaults to the page name.
| image            =
+
*'''<code>image</code>''' expects ''only'' the filename, no preceeding Image: or other parameters.
| creators        =
+
*'''<code>creators</code>''' is shown exactly as entered, so that a list of links can be made.
| character1      =
+
*'''<code>cast</code>''', '''<code>former</code>''' and '''<code>crew</code>''' are meant for use with [[Template:Show/row]] - see that page if you're unsure how to use it.
| actor1          =
+
*'''<code>portal</code>''' and '''<code>lov</code>''' 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).
| character2      =
+
*'''<code>bgcolor</code>''' controls the background color (defaults to #EEEEEE).
| actor2          =
+
*'''<code>headercolor</code>''' controls the subsection header colors (defaults to #DDDDDD).
| character3      =
+
*'''<code>fontcolor</code>''' controls the overall font color (defaults to #000000).
| actor3          =
+
*'''<code>bordercolor</code>''' controls the border color (defaults to #AAAAAA).
| character4      =
+
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.
| actor4          =
+
[[Category:Templates]]
| character5      =
+
</noinclude>
| actor5          =
+
| character6      =
+
| actor6          =
+
| formercharacter1 =
+
| formeractor1    =
+
| formercharacter2 =
+
| formeractor2    =
+
| musicsupervisor  =
+
| productionserv  =
+
| storycredits    =
+
| animator        =
+
| assocproducer    =
+
| camerapersons    =
+
| coexecproducer  =
+
| director        =
+
| editor          =
+
| execproducer    =
+
| headwriter      =
+
| interprodassist  =
+
| lineproducer    =
+
| producer        =
+
| prodassistant    =
+
| prodmanager      =
+
| prodrunner      =
+
| prodsecretary    =
+
| seriesproducer  =
+
| vidplay          =
+
| color           =
+
}}</pre></noinclude>
+

Revision as of 02:45, 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 and crew are meant for use with Template:Show/row - see that page if you're unsure how to use it.
  • portal and lov 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.