Difference between revisions of "Template:InfoBoxCharacter"

m (Text replacement - "{{/doc}}" to "{{Documentation}}")
m
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'''
+
|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={{{caption|}}} |suppressplaceholder=yes}}
|- class="infoboxrow" style="border:2px solid #333;"
+
|caption        = {{{image caption|{{{caption|{{{image_caption|}}}}}}}}}
{{#if:{{{othernames|}}}|
+
|captionstyle  = line-height:1.4em;
{{!}} Also known as
+
|headerstyle    = background:#607D8B; color:#FFF; border:0.15em solid #333; padding:0.1em;
{{!}} {{{othernames|}}}
+
|labelstyle    = font-size:14px; font-weight:400; line-height: 1.4; text-align: left; border:0.15em solid #222; padding:0.2em;
}}
+
|datastyle      = font-size:14px; font-weight:400; line-height: 1.4; text-align: left; border:0.15em solid #222; padding:0.2em;
|- class="infoboxrow"
+
 
{{#if:{{{birthdate|}}}|
+
|header1 = Personal
{{!}} Born
+
  |label2 = Name
{{!}} {{{birthdate|}}}
+
  |data2 = {{{name|}}}
}}
+
  |label3 = Also known as
|- class="infoboxrow"
+
  |data3 = {{{othernames|}}}
{{#if:{{{died|}}}|
+
  |label4 = Born
{{!}} Died
+
  |data4 = {{{birthdate|}}}
{{!}} {{{died|}}}
+
  |label5 = Died
}}
+
  |data5 = {{{died|}}}
|- class="infoboxrow"
+
 
{{#if:{{{affiliation|}}}|
+
|header6 = Profile
{{!}} Affiliation
+
  |label7 = Affiliation
{{!}} {{{affiliation|}}}
+
  |data7 = {{{affiliation|}}}
}}
+
  |label8 = Rank
|- class="infoboxrow"
+
  |data8 = {{{rank|}}}
{{#if:{{{rank|}}}|
+
  |label9 = Title(s)
{{!}} Rank
+
  |data9 = {{{title|}}}
{{!}} {{{rank|}}}
+
  |label10 = Position(s)
}}
+
  |data10 = {{{position|}}}
|- class="infoboxrow"
+
  |label11 = Profession
{{#if:{{{title|}}}|
+
  |data11 = {{{profession|}}}
{{!}} Title(s)
+
 
{{!}} {{{title|}}}
+
|header12 = Family
}}
+
  |label13= Parents
|- class="infoboxrow"
+
  |data13 = {{{parents|}}}
{{#if:{{{position|}}}|
+
  |label14 = Siblings
{{!}} Position
+
  |data14 = {{{siblings|}}}
{{!}} {{{position|}}}
+
  |label15 = Spouse
}}
+
  |data15 = {{{spouse|}}}
|- class="infoboxrow"
+
  |label16 = Children
{{#if:{{{profession|}}}|
+
  |data16 = {{{children|}}}
{{!}} Profession
+
 
{{!}} {{{profession|}}}
+
}}<noinclude>{{documentation}}<!-- Please add category and language links to the bottom of the /doc sub-page, not here --></noinclude>
}}
 
|- 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 19:56, 3 April 2024

InfoBoxCharacter