Difference between revisions of "Template:InfoBoxCharacter"

m
m
 
(10 intermediate revisions by 3 users 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}}}
+
|above          = <div class="fn" style="display:inline-block; font-weight:bold;">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}</div>
}}
+
|subheaderstyle = border:0.15em solid #222; padding:0.2em;
|-
+
|imagestyle    = border:0.15em solid #222; padding:0.2em;
! colspan="2" style="background-color:#8BC34A; color:#FFF; font-size:16px; padding:5px; text-align:center; border:2px solid #333;" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}} }}
+
<!-- |image          = {{#if:{{{image|}}}|[[Image:{{{image}}}|frameless|210px|center]]}} -->
|-
+
|image          = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{#ifeq:{{lc:{{{landscape|}}}}}|yes|{{min|300|{{#if:{{#ifexpr:{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|300|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}}}x200px|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|sizedefault=frameless |upright={{{image_upright|1}}} |alt={{{alt|}}} |title={{{name|}}} |suppressplaceholder=yes}}
| colspan='2' class='infoboxheading' style="background-color:#B2BEB5; 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|}}}|
+
  |label3 = Also known as
{{!}} Born
+
  |data3 = {{{othernames|}}}
{{!}} {{{birthdate|}}}
+
  |label4 = Born
}}
+
  |data4 = {{{birthdate|}}}
|- class="infoboxrow"
+
  |label5 = Died
{{#if:{{{died|}}}|
+
  |data5 = {{{died|}}}
{{!}} Died
+
  |label6 = Affiliation
{{!}} {{{died|}}}
+
  |data6 = {{{affiliation|}}}
}}
+
 
|- class="infoboxrow"
+
|header7 = Profile
{{#if:{{{affiliation|}}}|
+
  |label8 = Rank
{{!}} Affiliation
+
  |data8 = {{{rank|}}}
{{!}} {{{affiliation|}}}
+
  |label9 = Title(s)
}}
+
  |data9 = {{{title|}}}
|- class="infoboxrow"
+
  |label10 = Position(s)
{{#if:{{{rank|}}}|
+
  |data10 = {{{position|}}}
{{!}} Rank
+
  |label11 = Profession
{{!}} {{{rank|}}}
+
  |data11 = {{{profession|}}}
}}
+
 
|- class="infoboxrow"
+
|header12 = Family
{{#if:{{{title|}}}|
+
  |label13= Parents
{{!}} Title(s)
+
  |data13 = {{{parents|}}}
{{!}} {{{title|}}}
+
  |label14 = Siblings
}}
+
  |data14 = {{{siblings|}}}
|- class="infoboxrow"
+
  |label15 = Spouse
{{#if:{{{position|}}}|
+
  |data15 = {{{spouse|}}}
{{!}} Position
+
  |label16 = Children
{{!}} {{{position|}}}
+
  |data16 = {{{children|}}}
}}
+
 
|- class="infoboxrow"
+
<!-- Property and Category declarations -->
{{#if:{{{profession|}}}|
+
<!-- {{#if:{{{affiliation|}}}||<includeonly>[[Category:{{{affiliation}}} Characters]]</includeonly>}} -->
{{!}} 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>
 
{{/doc}}
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 

Latest revision as of 22:33, 4 April 2024

InfoBoxCharacter