Difference between revisions of "Template:InfoBoxCharacter"

m
m
 
(33 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{| border="0" 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" style="padding:0px" {{!}} [[Image:{{{image}}}|210px]]
+
|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:#BDB76B; color:#FFF; font-size:larger; font-style:italic; padding:5px; text-align:center" | {{#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}}
{{#if:{{{othernames|}}}|
+
<!-- |caption        = {{{image caption|{{{caption|{{{image caption|}}}}}}}}} -->
{{!}} Also known as
+
<!-- |captionstyle  = line-height:1.4em; -->
{{!}} {{{othernames|}}}
+
|headerstyle    = background:#607D8B; color:#FFF; border:0.15em solid #333; padding:0.1em;
}}
+
|labelstyle    = font-size:14px; font-weight:400; line-height: 1.4; text-align: left; border:0.15em solid #222; padding:0.2em;
|- class="infoboxrow"
+
|datastyle      = font-size:14px; font-weight:400; line-height: 1.4; text-align: left; border:0.15em solid #222; padding:0.2em;
{{#if:{{{birthdate|}}}|
+
 
{{!}} Born:
+
|header1 = Personal
{{!}} {{{birthdate|}}}
+
  |label3 = Also known as
}}
+
  |data3 = {{{othernames|}}}
|- class="infoboxrow"
+
  |label4 = Born
{{#if:{{{died|}}}|
+
  |data4 = {{{birthdate|}}}
{{!}} Died:
+
  |label5 = Died
{{!}} {{{died|}}}
+
  |data5 = {{{died|}}}
}}
+
  |label6 = Affiliation
|- class="infoboxrow"
+
  |data6 = {{{affiliation|}}}
{{#if:{{{affiliation|}}}|
+
 
{{!}} Affiliation
+
|header7 = Profile
{{!}} {{{affiliation|}}}
+
  |label8 = Rank
}}
+
  |data8 = {{{rank|}}}
|- class="infoboxrow"
+
  |label9 = Title(s)
{{#if:{{{profession|}}}|
+
  |data9 = {{{title|}}}
{{!}} Profession/<br />occupation
+
  |label10 = Position(s)
{{!}} {{{profession|}}}
+
  |data10 = {{{position|}}}
}}
+
  |label11 = Profession
|- class="infoboxrow"
+
  |data11 = {{{profession|}}}
{{#if:{{{battlemech|}}}|
+
 
{{!}} BattleMech
+
|header12 = Family
{{!}} {{{battlemech|}}}
+
  |label13= Parents
}}
+
  |data13 = {{{parents|}}}
|- class="infoboxrow"
+
  |label14 = Siblings
{{#if:{{{parents|}}}|
+
  |data14 = {{{siblings|}}}
{{!}} Parents
+
  |label15 = Spouse
{{!}} {{{parents|}}}
+
  |data15 = {{{spouse|}}}
}}
+
  |label16 = Children
|- class="infoboxrow"
+
  |data16 = {{{children|}}}
{{#if:{{{spouse|}}}|
+
 
{{!}} Spouse
+
<!-- Property and Category declarations -->
{{!}} {{{spouse|}}}
+
<!-- {{#if:{{{affiliation|}}}||<includeonly>[[Category:{{{affiliation}}} Characters]]</includeonly>}} -->
}}
+
}}<noinclude>{{documentation}}<!-- Please add category and language links to the bottom of the /doc sub-page, not here --></noinclude>
|- class="infoboxrow"
 
{{#if:{{{children|}}}|
 
{{!}} Children
 
{{!}} {{{children|}}}
 
}}
 
|-
 
| colspan="2" style="background-color:#EEE8AA; padding:0px; height:3px" |
 
|-
 
|}<noinclude>
 
{{InfoBoxCharacter/doc}}
 
</noinclude>
 

Latest revision as of 22:33, 4 April 2024

InfoBoxCharacter