Difference between revisions of "Template:Infobox Episode"

From Battlestar Wiki
Jump to navigation Jump to search
 
(27 intermediate revisions by the same user not shown)
Line 17: Line 17:
         |<!--   
         |<!--   
     -->}}<!--  
     -->}}<!--  
  -->}}</div></includeonly>{{Infobox
  -->}}</div>{{Infobox
  | name          = Infobox Episode
  | name          = Infobox Episode
  | above          = <includeonly>{{#if:{{{rtitle|}}}|{{{rtitle}}}|"{{{title|{{BASEPAGENAME}}}}}"}}</includeonly>
  | above          = {{#if:{{{rtitle|}}}|[[Name::{{{rtitle}}}]]|[[name::"{{#if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }}"]]}}
  | subheader      = {{series|series={{{series|}}} |episode type= {{{episode type|}}} }} episode
  | subheader      = {{#switch: {{{episode type|}}} | #default = An | 2 | double | two = A double | 3 | triple | three = A triple }} episode from {{series|series={{{series|}}} }}
  | subheaderstyle = text-align: center; background-color: #471919; font-weight: bold;
  | subheaderstyle = text-align: center; background-color: #471919; font-weight: bold;
| italic title  = {{{italic title|no}}}
| image          = {{#invoke:InfoboxImage|InfoboxImage|image={{#if: {{{image|}}} | {{{image}}} | {{#if: {{{series|}}} | {{series abv|series={{{series|}}} }} logo.jpg | Wiki.png }} }}|size={{{image size|330}}}|sizedefault=frameless|alt={{{alt|}}}}}
| caption        = {{{caption|}}}
| headerstyle    = background-color: #471919;
| labelstyle    = vertical-align: top; text-align: left;


  | label1        = Episode Nb
  | label1        = Episode Nb
  | data1          = {{#if:{{{season|}}} | {{#set: Season number = {{{season|}}} }}[[Season::{{series abv|series={{{series|}}} }} Season {{{season|}}}|Season {{{season|}}}]]{{-}} Episode| }} [[Episode number::{{{episode|''unknown''}}}]]
  | data1          = {{#if:{{{season|}}} | {{#ifeq: {{{season|}}} | 0 | {{#set: Season number = 0 }} | {{#set: Season number = {{{season|}}} }}[[Season::{{series abv|series={{{series|}}} }} Season {{{season|}}}|Season {{{season|}}}]]{{-}} Episode| }} }} [[Episode number::{{{episode|''unknown''}}}]]
 
  | label2        = Directed by
  | label2        = Directed by
  | data2          = {{#ask: [[Category:Persons]] [[Director of::{{FULLPAGENAME}}]] | ?Name | format = list | template = Link | sep = <br/>}}
  | data2          = {{#ask: [[Category:Persons]] [[Director of::{{FULLPAGENAME}}]] | ?Name | format = list | template = Link | link = none | sep = <br/>}}<!-- Automatically populated by semantic data -->
 
  | label3        = Written by
  | label3        = Written by
  | data3          = {{#ask: [[Category:Persons]] [[Writer of::{{FULLPAGENAME}}]] | ?Name | format = list | template = Link | sep = <br/>}}
  | data3          = {{#ask: [[Category:Persons]] [[Writer of::{{FULLPAGENAME}}]] | ?Name | format = list | template = Link | link = none | sep = <br/>}}<!-- Automatically populated by semantic data -->
 
  | label4        = Story by
  | label4        = Story by
  | data4          = {{#ask: [[Category:Persons]] [[Story writer of::{{FULLPAGENAME}}]] | ?Name | format = list | template = Link | sep = <br/>}}
  | data4          = {{#ask: [[Category:Persons]] [[Story writer of::{{FULLPAGENAME}}]] | ?Name | format = list | template = Link | link = none | sep = <br/>}}<!-- Automatically populated by semantic data -->
 
  | label5        = Adaptation on television
  | label5        = Adaptation on television
  | data5          = {{#ask: [[Category:Persons]] [[Teleplayer of::{{FULLPAGENAME}}]] | ?Name | format = list | template = Link | sep = <br/>}}
  | data5          = {{#ask: [[Category:Persons]] [[Teleplayer of::{{FULLPAGENAME}}]] | ?Name | format = list | template = Link | link = none | sep = <br/>}}<!-- Automatically populated by semantic data -->
 
  | label6        = Produced by
  | label6        = Produced by
  | data6          = {{#ask: [[Category:Persons]] [[Producer in::{{FULLPAGENAME}}]] | ?Name | format = list | template = Link | sep = <br/>}}
  | data6          = {{#ask: [[Category:Persons]] [[Producer in::{{FULLPAGENAME}}]] | ?Name | format = list | template = Link | link = none | sep = <br/>}}<!-- Automatically populated by semantic data -->
 
  | label7        = Featured music
  | label7        = Featured music
  | data7          = {{{music|}}}
  | data7          = {{{music|}}}
  | label8        = {{#ifeq: {{#ask: [[Category:Persons]] [[Director of photography in::{{FULLPAGENAME}}]] | format = count }} | 1 | Director of photography | Directors of photography }}
  | label8        = {{#ifeq: {{#ask: [[Category:Persons]] [[Director of photography in::{{FULLPAGENAME}}]] | format = count }} | 1 | Director of photography | Directors of photography }}
  | data8          = {{#ask: [[Category:Persons]] [[Director of photography in::{{FULLPAGENAME}}]] | ?Name | format = list | template = Link | sep = <br/>}}
  | data8          = {{#ask: [[Category:Persons]] [[Director of photography in::{{FULLPAGENAME}}]] | ?Name | format = list | template = Link | link = none | sep = <br/>}}<!-- Automatically populated by semantic data -->
 
| label9        = Edited by
| data9          = {{#ask: [[Category:Persons]] [[Editor in::{{FULLPAGENAME}}]] | ?Name | format = list | template = Link | link = none | sep = <br/>}}<!-- Automatically populated by semantic data -->
 
| label10        = Production code
| data10        = {{{production|}}}
 
| label11        = Original air date
| data11        = {{{air date|}}}
 
| label12        = Original release date
| data12        = {{{release date|}}}
 
| label13        = Length
| data13        = {{{length|}}}
 
| label14        = Extended info
| data14        = {{{info|}}}
 
<!-- Guest Starring -->
| header20      = {{#if: {{{guests|}}} | Guest starring }}
 
| data21        = {{#if: {{{guests|}}} | <div style="text-align: left">
{{{guests|}}}</div> }}
 
<!-- Episode chronology -->
| header30      = {{#if: {{{prev|}}}{{{next|}}}{{{rprev|}}}{{{rnext|}}} | {{#if: {{{series|}}} | [[{{series abv|series={{{series|}}} }} list of episodes|Episode chronology]] | Episode chronology }} }}
 
| data31        = {{#if: {{{prev|}}}{{{next|}}}{{{rprev|}}}{{{rnext|}}} | {{Infobox/Succession
| {{#if: {{{rprev|}}} | {{{rprev|}}} | {{#if: {{{prev|}}} | {{ep|{{{prev|}}} }} }} }}
|
| {{#if: {{{rnext|}}} | {{{rnext|}}} | {{#if: {{{next|}}} | {{ep|{{{next|}}} }} }} }}
}} }}
 
| below          = {{#if: {{{title screencap|}}} | {{#invoke:InfoboxImage|InfoboxImage|image={{{title screencap}}}|size={{{image size|330}}}|sizedefault=frameless|alt=Episode title card}} }}
}}<!--
 
Retrieving the image name inside the "Infobox image" property
 
-->{{#if: {{{image|}}} | {{#set: infobox image = {{{image}}} }} | {{#if: {{{series|}}} | {{#set: infobox image = {{series abv|series={{{series|}}} }} logo.jpg}} | {{#set: infobox image = Wiki.png }} }} }}<!--
 
Retrieving the director(s) of the episode
 
-->{{#set: Directing = {{#ask: [[Category:Persons]] [[Director of::{{FULLPAGENAME}}]] | ?Name | format = list | link = none | template = link | sep = ,&#32; }} }}<!--
 
Retrieving the writer(s) of the episode
 
-->{{#set: Writing = {{#ask: [[Category:Persons]] [[Writer of::{{FULLPAGENAME}}]] | ?Name | format = list | link = none | template = link | sep = ,&#32; }} }}<!--
 
Retrieving the story writer(s) of the episode
 
-->{{#set: Story writing = {{#ask: [[Category:Persons]] [[Story writer of::{{FULLPAGENAME}}]] | ?Name | format = list | link = none | template = link | sep = ,&#32; }} }}<!--
 
Retrieving the teleplayer(s) of the episode
 
-->{{#set: Teleplaying = {{#ask: [[Category:Persons]] [[Teleplayer of::{{FULLPAGENAME}}]] | ?Name | format = list | link = none | template = link | sep = ,&#32; }} }}<!--
 
Retrieving the title screencap name inside the "Title screencap" property (only valid for the Original series and Galactica 1980


}}<noinclude>{{Documentation}}</noinclude>
-->{{#if: {{{title screencap|}}} | {{#set: title screencap = {{{title screencap}}} }} }}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 08:45, 28 July 2018

Template documentation[create]