Difference between revisions of "Template:InfoBoxCharacter"

m (Text replacement - "{{/doc}}" to "{{Documentation}}")
m
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| border="2px" cellpadding="0" class="infoBoxNew"
+
{{Infobox
|-
+
|abovestyle    = background:#8BC34A; border:0.15em solid #222; padding:0.2em; font-weight: bold;
{{#if:{{{image|}}}|
+
|autoheaders    = y
{{!}} colspan="2" class="infoboxrow" style="border:2px solid #333;" {{!}} [[Image:{{{image}}}|210px|center|{{{caption}}}]]
+
|above          = <div class="fn" style="display:inline-block; font-weight:bold;">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}</div>
}}
+
<!-- |above          = <div class="fn" style="display:inline-block">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}</div> -->
|-
+
|subheaderstyle = border:0.15em solid #222; padding:0.2em;
! colspan="2" style="background-color:#8BC34A; color:#333; font-size:16px; padding:5px; text-align:center; border:2px solid #333;" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}} }}
+
|imagestyle    = border:0.15em solid #222; padding:0.2em;
|-
+
|image          = {{#if:{{{image|}}}|[[Image:{{{image}}}|frameless|210px|center]]}}
| colspan='2' class='infoboxheading' style="background-color:#607D8B; color:#FFF; font-size:14px; padding:5px; text-align:center; border:2px solid #333;" | '''Character Profile'''
+
|caption        = {{{image caption|{{{caption|{{{image caption|}}}}}}}}}
|- class="infoboxrow" style="border:2px solid #333;"
+
|captionstyle  = line-height:1.4em;
{{#if:{{{othernames|}}}|
+
|headerstyle    = background:#607D8B; color:#FFF; border:0.15em solid #333; padding:0.1em;
{{!}} Also known as
+
|labelstyle    = font-size:14px; font-weight:400; line-height: 1.4; text-align: left; border:0.15em solid #222; padding:0.2em;
{{!}} {{{othernames|}}}
+
|datastyle      = font-size:14px; font-weight:400; line-height: 1.4; text-align: left; border:0.15em solid #222; padding:0.2em;
}}
+
 
|- class="infoboxrow"
+
|header1 = Personal
{{#if:{{{birthdate|}}}|
+
  |label2 = Name
{{!}} Born
+
  |data2 = {{{name|}}}
{{!}} {{{birthdate|}}}
+
  |label3 = Also known as
}}
+
  |data3 = {{{othernames|}}}
|- class="infoboxrow"
+
  |label4 = Born
{{#if:{{{died|}}}|
+
  |data4 = {{{birthdate|}}}
{{!}} Died
+
  |label5 = Died
{{!}} {{{died|}}}
+
  |data5 = {{{died|}}}
}}
+
 
|- class="infoboxrow"
+
|header6 = Profile
{{#if:{{{affiliation|}}}|
+
  |label7 = Affiliation
{{!}} Affiliation
+
  |data7 = {{{affiliation|}}}
{{!}} {{{affiliation|}}}
+
  |label8 = Rank
}}
+
  |data8 = {{{rank|}}}
|- class="infoboxrow"
+
  |label9 = Title(s)
{{#if:{{{rank|}}}|
+
  |data9 = {{{title|}}}
{{!}} Rank
+
  |label10 = Position(s)
{{!}} {{{rank|}}}
+
  |data10 = {{{position|}}}
}}
+
  |label11 = Profession
|- class="infoboxrow"
+
  |data11 = {{{profession|}}}
{{#if:{{{title|}}}|
+
 
{{!}} Title(s)
+
|header12 = Family
{{!}} {{{title|}}}
+
  |label13= Parents
}}
+
  |data13 = {{{parents|}}}
|- class="infoboxrow"
+
  |label14 = Siblings
{{#if:{{{position|}}}|
+
  |data14 = {{{siblings|}}}
{{!}} Position
+
  |label15 = Spouse
{{!}} {{{position|}}}
+
  |data15 = {{{spouse|}}}
}}
+
  |label16 = Children
|- class="infoboxrow"
+
  |data16 = {{{children|}}}
{{#if:{{{profession|}}}|
+
 
{{!}} Profession
+
}}<noinclude>{{documentation}}<!-- Please add category and language links to the bottom of the /doc sub-page, not here --></noinclude>
{{!}} {{{profession|}}}
 
}}
 
|- class="infoboxrow"
 
{{#if:{{{parents|}}}|
 
{{!}} Parents
 
{{!}} {{{parents|}}}
 
}}
 
|- class="infoboxrow"
 
{{#if:{{{siblings|}}}|
 
{{!}} Siblings
 
{{!}} {{{siblings|}}}
 
}}
 
|- class="infoboxrow"
 
{{#if:{{{spouse|}}}|
 
{{!}} Spouse
 
{{!}} {{{spouse|}}}
 
}}
 
|- class="infoboxrow"
 
{{#if:{{{children|}}}|
 
{{!}} Children
 
{{!}} {{{children|}}}
 
}}
 
|-
 
| colspan="2" style="background-color:#8BC34A; padding:0px; height:3px" |
 
|-
 
|}
 
<noinclude>
 
{{Documentation}}
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 

Revision as of 20:04, 3 April 2024

InfoBoxCharacter