Difference between revisions of "Template:Infobox soap character 2"

From blackwiki
Jump to navigation Jump to search
imported>Nk3play2
imported>Frietjes
(rewrite code to use template:infobox, should have near zero impact on usage or appearance, but dramatic reduction in the code complexity here)
Line 1: Line 1:
{| class="infobox" style="width: 22em; text-align: left; font-size: 89%; line-height: 1.5em"
+
{{infobox
! colspan=2 class="navbox-title" style="{{#if:{{{color|{{{colour|}}}}}}|background-color: {{{color|{{{colour}}}}}};}} font-size: 125%; text-align: center" | {{{name<includeonly>|{{PAGENAME}}</includeonly>}}}
+
| bodystyle = width: 22em; text-align: left; font-size: 89%; line-height: 1.5em
|-
+
 
{{#if:{{{image1<includeonly>|</includeonly>}}}|
+
| aboveclass = navbox-title
{{!}} colspan=2 style="text-align: center" {{!}} [[{{{image1}}}|240px]]
+
| abovestyle = {{#if:{{{color|{{{colour|}}}}}}|background-color: {{{color|{{{colour}}}}}};}} font-size: 125%
{{!}}-
+
| above =  {{{name<includeonly>|{{PAGENAME}}</includeonly>}}}
{{#if:{{{caption1<includeonly>|</includeonly>}}}|
+
| image = {{#if:{{{image1<includeonly>|</includeonly>}}}| [[{{{image1}}}|240px]] }}
{{!}} colspan=2 style="text-align: center" {{!}} {{{caption1}}}
+
| caption = {{{caption1<includeonly>|</includeonly>}}}
{{!}}-
+
| image2 = {{{image<includeonly>|</includeonly>}}}
}}
+
| caption2 = {{{caption<includeonly>|</includeonly>}}}
}}
+
 
{{#if:{{{image<includeonly>|</includeonly>}}}|
+
| headerstyle = {{#if:{{{color|{{{colour|}}}}}}|background-color: {{{color|{{{colour}}}}}};}}
{{!}} colspan=2 style="text-align: center" {{!}}  {{{image}}}
+
 
{{!}}-
+
| class1  = navbox-title
{{#if:{{{caption<includeonly>|</includeonly>}}}|
+
| header1 = {{#if:{{{series<includeonly>|</includeonly>}}}|''{{{series}}}'' character}}
{{!}} colspan=2 style="text-align: center" {{!}} {{{caption}}}
+
 
{{!}}-
+
| label2 = Portrayed by
}}
+
| data2 = {{{portrayer<includeonly>|</includeonly>}}}
}}
+
 
{{#if:{{{series<includeonly>|</includeonly>}}}|
+
| label3 = {{Nowrap|Created by}}
! colspan=2 class="navbox-title" style="{{#if:{{{color|{{{colour|}}}}}}|background-color: {{{color|{{{colour}}}}}};}} text-align: center" {{!}} <!-- {{!}} --> ''{{{series}}}'' character
+
| data3 = {{{creator<includeonly>|</includeonly>}}}
{{!}}-
+
 
}}
+
| label4 = {{Nowrap|Introduced by}}
|-
+
| data4 = {{{introducer<includeonly>|</includeonly>}}}
{{#if:{{{portrayer<includeonly>|</includeonly>}}}|
+
 
! Portrayed by
+
| label5 = Duration
{{!}} {{{portrayer}}}
+
| data5 = {{{years<includeonly>|</includeonly>}}}
{{!}}-
+
 
}}
+
| label6 = {{Nowrap|First appearance}}
{{#if:{{{creator<includeonly>|</includeonly>}}}|
+
| data6 = {{{first<includeonly>|</includeonly>}}}
! {{Nowrap|Created by}}
+
 
{{!}} {{{creator}}}
+
| label7 = {{Nowrap|Last appearance}}
{{!}}-
+
| data7 = {{{last<includeonly>|</includeonly>}}}
}}
+
 
{{#if:{{{introducer<includeonly>|</includeonly>}}}|
+
| label8 = {{Nowrap|Appears on}}
! {{Nowrap|Introduced by}}
+
| data8 = {{{appeared<includeonly>|</includeonly>}}}
{{!}} {{{introducer}}}
+
 
{{!}}-
+
| label9 = {{Nowrap|Appears in}}
}}
+
| data9 = {{{only<includeonly>|</includeonly>}}}
{{#if:{{{years<includeonly>|</includeonly>}}}|
+
 
! Duration
+
| label10 = Classification
{{!}} {{{years}}}
+
| data10 = {{{classification<includeonly>|</includeonly>}}}
{{!}}-
+
 
}}
+
| label11 = {{Nowrap|Book appearances}}
{{#if:{{{first<includeonly>|</includeonly>}}}|
+
| data11 = {{{books<includeonly>|</includeonly>}}}
! {{Nowrap|First appearance}}
+
 
{{!}} {{{first}}}
+
| label12 = {{Nowrap|Spin-off appearances}}
{{!}}-
+
| data12 = {{{spinoffs<includeonly>|</includeonly>}}}
}}
+
 
{{#if:{{{last<includeonly>|</includeonly>}}}|
+
| class15  = navbox-title
! {{Nowrap|Last appearance}}
+
| header15 = {{#if:{{{alias|}}}{{{species|}}}{{{breed|}}}{{{born|}}}{{{death|}}}{{{home|}}}{{{occupation<includeonly>|</includeonly>}}}| Profile }}
{{!}} {{{last}}}
+
 
{{!}}-
+
| label16 = Alias
}}
+
| data16 = {{{alias<includeonly>|</includeonly>}}}
{{#if:{{{appeared<includeonly>|</includeonly>}}}|
+
 
! {{Nowrap|Appears on}}
+
| label17 = Species
{{!}} {{{appeared}}}
+
| data17 = {{{species<includeonly>|</includeonly>}}}
{{!}}-
+
 
}}
+
| label18 = Breed
{{#if:{{{only<includeonly>|</includeonly>}}}|
+
| data18 = {{{breed<includeonly>|</includeonly>}}}
! {{Nowrap|Appears in}}
+
 
{{!}} {{{only}}}
+
| label19 = {{Nowrap|Date of birth}}
{{!}}-
+
| data19 = {{{born<includeonly>|</includeonly>}}}
}}
+
 
{{#if:{{{classification<includeonly>|</includeonly>}}}|
+
| label20 = Date of death
! Classification
+
| data20 = {{{death<includeonly>|</includeonly>}}}
{{!}} {{{classification}}}
+
 
{{!}}-
+
| label21 = Home
}}
+
| data21 = {{#ifeq: {{{series}}} | EastEnders | | {{{home<includeonly>|</includeonly>}}} }}
{{#if:{{{books<includeonly>|</includeonly>}}}|
+
 
! {{Nowrap|Book appearances}}
+
| label22 = Residence
{{!}} {{{books}}}
+
| data22 = {{#ifeq: {{{series}}} | EastEnders | | {{{residence<includeonly>|</includeonly>}}} }}
{{!}}-
+
 
}}
+
| label23 = Occupation
{{#if:{{{spinoffs<includeonly>|</includeonly>}}}|
+
| data23 = {{{occupation<includeonly>|</includeonly>}}}
! {{Nowrap|Spin-off appearances}}
+
 
{{!}} {{{spinoffs}}}
+
| class25  = navbox-title
{{!}}-
+
| header25 = {{#if:{{{image2<includeonly>|</includeonly>}}}{{{image3|}}}
}}
+
|{{infobox|child=yes
{{#if:{{{alias|}}}{{{species|}}}{{{breed|}}}{{{born|}}}{{{death|}}}{{{home|}}}{{{occupation<includeonly>|</includeonly>}}}|
+
  | title = Alternative image(s)
! colspan=2 class="navbox-title" style="{{#if:{{{color|{{{colour|}}}}}}|background-color: {{{color|{{{colour}}}}}};}} text-align: center" {{!}} Profile
+
  | image = {{{image2<includeonly>|</includeonly>}}}
{{!}}-
+
  | caption = {{{caption2<includeonly>|</includeonly>}}}|
}}
+
  | image2 = {{{image3<includeonly>|</includeonly>}}}|
{{#if:{{{alias<includeonly>|</includeonly>}}}|
+
  | caption2 = {{{caption3<includeonly>|</includeonly>}}}
! Alias
+
  }}
{{!}} {{{alias}}}
+
}}
{{!}}-
+
 
}}
+
| belowstyle = font-size: 100%;
{{#if:{{{species<includeonly>|</includeonly>}}}|
+
| below = {{#if:{{{family|}}}{{{owner|}}}{{{wife|}}}{{{husband|}}}{{{civilpartner|}}}{{{father|}}}{{{mother|}}}{{{adoptivefather|}}}{{{adoptivemother|}}}{{{stepfather|}}}{{{stepmother|}}}{{{brothers|}}}{{{sisters|}}}{{{halfbrothers|}}}{{{halfsisters|}}}{{{sons|}}}{{{daughters|}}}{{{adoptivesons|}}}{{{adoptivedaughters|}}}{{{stepsons|}}}{{{stepdaughters|}}}{{{grandsons|}}}{{{granddaughters|}}}{{{grandfathers|}}}{{{grandmothers|}}}{{{aunts|}}}{{{uncles|}}}{{{cousins|}}}{{{nieces|}}}{{{nephews|}}}{{{relatives<includeonly>|</includeonly>}}}
! Species
+
|{{infobox
{{!}} {{{species}}}
+
  |bodyclass = collapsible collapsed
{{!}}-
+
  |bodystyle=width:100%; font-size: 100%; line-height: 1.5em; border-collapse: collapse; border: 0; margin:0; clear:none; float:none;
}}
+
  |aboveclass = navbox-title
{{#if:{{{breed<includeonly>|</includeonly>}}}|
+
  |abovestyle = {{#if:{{{color|{{{colour|}}}}}}|background-color: {{{color|{{{colour}}}}}};}} font-size: 100%;
! Breed
+
 
{{!}} {{{breed}}}
+
  |above = Family
{{!}}-
+
 
}}
+
| label1 = Family
{{#if:{{{born<includeonly>|</includeonly>}}}|
+
| data1 = {{{family<includeonly>|</includeonly>}}}
! {{Nowrap|Date of birth}}
+
 
{{!}} {{{born}}}
+
| label2 = Owner(s)
{{!}}-
+
| data2 = {{{owner<includeonly>|</includeonly>}}}
}}
+
 
{{#if:{{{death<includeonly>|</includeonly>}}}|
+
| label3 = Husband
! Date of death
+
| data3 = {{{husband<includeonly>|</includeonly>}}}
{{!}} {{{death}}}
+
 
{{!}}-
+
| label4 = Wife
}}
+
| data4 = {{{wife<includeonly>|</includeonly>}}}
{{#ifeq: {{{series}}} | EastEnders | | {{#if:{{{home<includeonly>|</includeonly>}}}|
+
 
! Home
+
| label5 = Civil partner
{{!}} {{{home}}}
+
| data5 = {{{civilpartner<includeonly>|</includeonly>}}}
{{!}}-
+
 
}}
+
| label6 = Father
{{#if:{{{residence<includeonly>|</includeonly>}}}|
+
| data6 = {{{father<includeonly>|</includeonly>}}}
! Residence
+
 
{{!}} {{{residence}}}
+
| label7 = Mother
{{!}}-
+
| data7 = {{{mother<includeonly>|</includeonly>}}}
}}
+
 
}}
+
| label8 = {{Nowrap|Adoptive father}}
{{#if:{{{occupation<includeonly>|</includeonly>}}}|
+
| data8 = {{{adoptivefather<includeonly>|</includeonly>}}}
! Occupation
+
 
{{!}} {{{occupation}}}
+
| label9 = {{Nowrap|Adoptive mother}}
{{!}}-
+
| data9 = {{{adoptivemother<includeonly>|</includeonly>}}}
}}
+
 
{{#if:{{{image2<includeonly>|</includeonly>}}}|
+
| label10 = Stepfather
! colspan=2 class="navbox-title" style="{{#if:{{{color|{{{colour|}}}}}}|background-color: {{{color|{{{colour}}}}}};}} text-align: center" {{!}} Alternative image(s)
+
| data10 = {{{stepfather<includeonly>|</includeonly>}}}
{{!}}-
+
 
{{!}} colspan=2 style="text-align: center" {{!}} {{{image2}}}
+
| label11 = Stepmother
{{!}}-
+
| data11 = {{{stepmother<includeonly>|</includeonly>}}}
{{#if:{{{caption2<includeonly>|</includeonly>}}}|
+
 
{{!}} colspan=2 style="text-align: center" {{!}} {{{caption2}}}
+
| label12 = Brothers
{{!}}-
+
| data12 = {{{brothers<includeonly>|</includeonly>}}}
}}
+
 
}}
+
| label13 = Sisters
{{#if:{{{image3<includeonly>|</includeonly>}}}|
+
| data13 = {{{sisters<includeonly>|</includeonly>}}}
{{!}} colspan=2 style="text-align: center" {{!}}  {{{image3}}}
+
 
{{!}}-
+
| label14 = {{Nowrap|Half brothers}}
{{#if:{{{caption3<includeonly>|</includeonly>}}}|
+
| data14 = {{{halfbrothers<includeonly>|</includeonly>}}}
{{!}} colspan=2 style="text-align: center" {{!}} {{{caption3}}}
+
 
{{!}}-
+
| label15 = {{Nowrap|Half sisters}}
}}
+
| data15 = {{{halfsisters<includeonly>|</includeonly>}}}
}}
+
 
{{#if:{{{family|}}}{{{owner|}}}{{{wife|}}}{{{husband|}}}{{{civilpartner|}}}{{{father|}}}{{{mother|}}}{{{adoptivefather|}}}{{{adoptivemother|}}}{{{stepfather|}}}{{{stepmother|}}}{{{brothers|}}}{{{sisters|}}}{{{halfbrothers|}}}{{{halfsisters|}}}{{{sons|}}}{{{daughters|}}}{{{adoptivesons|}}}{{{adoptivedaughters|}}}{{{stepsons|}}}{{{stepdaughters|}}}{{{grandsons|}}}{{{granddaughters|}}}{{{grandfathers|}}}{{{grandmothers|}}}{{{aunts|}}}{{{uncles|}}}{{{cousins|}}}{{{nieces|}}}{{{nephews|}}}{{{relatives|}}}|
+
| label16 = Sons
{{!}} colspan=2 {{!}}
+
| data16 = {{{sons<includeonly>|</includeonly>}}}
{{{!}} class="collapsible collapsed" style="width: 100%; background-color: transparent"
+
 
! colspan=2 class="navbox-title" style="{{#if:{{{color|{{{colour|}}}}}}|background-color: {{{color|{{{colour}}}}}};}} text-align: center" {{!}} Family
+
| label17 = Daughters
{{!}}-
+
| data17 = {{{daughters<includeonly>|</includeonly>}}}
{{#if:{{{family<includeonly>|</includeonly>}}}|
+
 
! Family
+
| label18 = {{Nowrap|Adoptive sons}}
{{!}} {{{family}}}
+
| data18 = {{{adoptivesons<includeonly>|</includeonly>}}}
{{!}}-
+
 
}}
+
| label19 = {{Nowrap|Adoptive daughters}}
{{#if:{{{owner<includeonly>|</includeonly>}}}|
+
| data19 = {{{adoptivedaughters<includeonly>|</includeonly>}}}
! Owner(s)
+
 
{{!}} {{{owner}}}
+
| label20 = Stepsons
{{!}}-
+
| data20 = {{{stepsons<includeonly>|</includeonly>}}}
}}
+
 
{{#if:{{{husband<includeonly>|</includeonly>}}}|
+
| label21 = Stepdaughters
! Husband
+
| data21 = {{{stepdaughters<includeonly>|</includeonly>}}}
{{!}} {{{husband}}}
+
 
{{!}}-
+
| label22 = Grandsons
}}
+
| data22 = {{{grandsons<includeonly>|</includeonly>}}}
{{#if:{{{wife<includeonly>|</includeonly>}}}|
+
 
! Wife
+
| label23 = Granddaughters
{{!}} {{{wife}}}
+
| data23 = {{{granddaughters<includeonly>|</includeonly>}}}
{{!}}-
+
 
}}
+
| label24 = Grandfathers
{{#if:{{{civilpartner<includeonly>|</includeonly>}}}|
+
| data24 = {{{grandfathers<includeonly>|</includeonly>}}}
! Civil partner
+
 
{{!}} {{{civilpartner}}}
+
| label25 = Grandmothers
{{!}}-
+
| data25 = {{{grandmothers<includeonly>|</includeonly>}}}
}}
+
 
{{#if:{{{father<includeonly>|</includeonly>}}}|
+
| label26 = Uncles
! Father
+
| data26 = {{{uncles<includeonly>|</includeonly>}}}
{{!}} {{{father}}}
+
 
{{!}}-
+
| label27 = Aunts
}}
+
| data27 = {{{aunts<includeonly>|</includeonly>}}}
{{#if:{{{mother<includeonly>|</includeonly>}}}|
+
 
! Mother
+
| label28 = Cousins
{{!}} {{{mother}}}
+
| data28 = {{{cousins<includeonly>|</includeonly>}}}
{{!}}-
+
 
}}
+
| label29 = Nephews
{{#if:{{{adoptivefather<includeonly>|</includeonly>}}}|
+
| data29 = {{{nephews<includeonly>|</includeonly>}}}
! {{Nowrap|Adoptive father}}
+
 
{{!}} {{{adoptivefather}}}
+
| label30 = Nieces
{{!}}-
+
| data30 = {{{nieces<includeonly>|</includeonly>}}}
}}
+
 
{{#if:{{{adoptivemother<includeonly>|</includeonly>}}}|
+
| label31 = {{Nowrap|Other relatives}}
! {{Nowrap|Adoptive mother}}
+
| data31 = {{{relatives<includeonly>|</includeonly>}}}
{{!}} {{{adoptivemother}}}
+
  }}
{{!}}-
+
}}
}}
+
}}<noinclude>{{documentation}}</noinclude>
{{#if:{{{stepfather<includeonly>|</includeonly>}}}|
 
! Stepfather
 
{{!}} {{{stepfather}}}
 
{{!}}-
 
}}
 
{{#if:{{{stepmother<includeonly>|</includeonly>}}}|
 
! Stepmother
 
{{!}} {{{stepmother}}}
 
{{!}}-
 
}}
 
{{#if:{{{brothers<includeonly>|</includeonly>}}}|
 
! Brothers
 
{{!}} {{{brothers}}}
 
{{!}}-
 
}}
 
{{#if:{{{sisters<includeonly>|</includeonly>}}}|
 
! Sisters
 
{{!}} {{{sisters}}}
 
{{!}}-
 
}}
 
{{#if:{{{halfbrothers<includeonly>|</includeonly>}}}|
 
! {{Nowrap|Half brothers}}
 
{{!}} {{{halfbrothers}}}
 
{{!}}-
 
}}
 
{{#if:{{{halfsisters<includeonly>|</includeonly>}}}|
 
! {{Nowrap|Half sisters}}
 
{{!}} {{{halfsisters}}}
 
{{!}}-
 
}}
 
{{#if:{{{sons<includeonly>|</includeonly>}}}|
 
! Sons
 
{{!}} {{{sons}}}
 
{{!}}-
 
}}
 
{{#if:{{{daughters<includeonly>|</includeonly>}}}|
 
! Daughters
 
{{!}} {{{daughters}}}
 
{{!}}-
 
}}
 
{{#if:{{{adoptivesons<includeonly>|</includeonly>}}}|
 
! {{Nowrap|Adoptive sons}}
 
{{!}} {{{adoptivesons}}}
 
{{!}}-
 
}}
 
{{#if:{{{adoptivedaughters<includeonly>|</includeonly>}}}|
 
! {{Nowrap|Adoptive daughters}}
 
{{!}} {{{adoptivedaughters}}}
 
{{!}}-
 
}}
 
{{#if:{{{stepsons<includeonly>|</includeonly>}}}|
 
! Stepsons
 
{{!}} {{{stepsons}}}
 
{{!}}-
 
}}
 
{{#if:{{{stepdaughters<includeonly>|</includeonly>}}}|
 
! Stepdaughters
 
{{!}} {{{stepdaughters}}}
 
{{!}}-
 
}}
 
{{#if:{{{grandsons<includeonly>|</includeonly>}}}|
 
! Grandsons
 
{{!}} {{{grandsons}}}
 
{{!}}-
 
}}
 
{{#if:{{{granddaughters<includeonly>|</includeonly>}}}|
 
! Granddaughters
 
{{!}} {{{granddaughters}}}
 
{{!}}-
 
}}
 
{{#if:{{{grandfathers<includeonly>|</includeonly>}}}|
 
! Grandfathers
 
{{!}} {{{grandfathers}}}
 
{{!}}-
 
}}
 
{{#if:{{{grandmothers<includeonly>|</includeonly>}}}|
 
! Grandmothers
 
{{!}} {{{grandmothers}}}
 
{{!}}-
 
}}
 
{{#if:{{{uncles<includeonly>|</includeonly>}}}|
 
! Uncles
 
{{!}} {{{uncles}}}
 
{{!}}-
 
}}
 
{{#if:{{{aunts<includeonly>|</includeonly>}}}|
 
! Aunts
 
{{!}} {{{aunts}}}
 
{{!}}-
 
}}
 
{{#if:{{{cousins<includeonly>|</includeonly>}}}|
 
! Cousins
 
{{!}} {{{cousins}}}
 
{{!}}-
 
}}
 
{{#if:{{{nephews<includeonly>|</includeonly>}}}|
 
! Nephews
 
{{!}} {{{nephews}}}
 
{{!}}-
 
}}
 
{{#if:{{{nieces<includeonly>|</includeonly>}}}|
 
! Nieces
 
{{!}} {{{nieces}}}
 
{{!}}-
 
}}
 
{{#if:{{{relatives<includeonly>|</includeonly>}}}|
 
! {{Nowrap|Other relatives}}
 
{{!}} {{{relatives}}}
 
{{!}}-
 
}}
 
{{!}}}
 
}}
 
|}<noinclude>{{template doc}}</noinclude>
 

Revision as of 19:36, 20 November 2012

{{{name}}}
[[{{{image1}}}|240px]]
{{{caption1}}}
{{{image}}}
{{{caption}}}
{{{series}}} character
Portrayed by{{{portrayer}}}
Created by{{{creator}}}
Introduced by{{{introducer}}}
Duration{{{years}}}
First appearance{{{first}}}
Last appearance{{{last}}}
Appears on{{{appeared}}}
Appears in{{{only}}}
Classification{{{classification}}}
Book appearances{{{books}}}
Spin-off appearances{{{spinoffs}}}
Profile
Alias{{{alias}}}
Species{{{species}}}
Breed{{{breed}}}
Date of birth{{{born}}}
Date of death{{{death}}}
Home{{{home}}}
Residence{{{residence}}}
Occupation{{{occupation}}}
Alternative image(s)
{{{image2}}}
{{{caption2}}}
{{{image3}}}
{{{caption3}}}
[[Category:Infobox templates|Template:Remove first word]]
[[Category:Infobox templates|Template:Remove first word]]

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[create]