Difference between revisions of "Template:Infobox Person"

From CorsairCraft
Jump to navigation Jump to search
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<infobox theme="whf" type="character">
{{ infobox
  <title source="name">
| bodyclass  = biography vcard vevent
    <default>{{PAGENAME}}</default>
| bodystyle  = width:{{#if:{{{box_width|}}}|{{{box_width}}} |22em}}; font-size:95%; text-align:left;
  </title>
| above      = '''{{{name|{{PAGENAME}}}}}'''
  <image source="image">
| aboveclass = fn summary
    <caption source="caption1"/>
| abovestyle = text-align:center; font-size:125%;
  </image>
| image     = {{#if:{{{image|}}}|[[Image:{{{image}}}|{{#if:{{{image_size|{{{imagesize|}}}}}}|{{{image_size|{{{imagesize}}}}}}|225px}}]]}}
  <group>
| imageclass = {{image class names|{{{image}}}}}
    <header>Biographical Information</header>
| imagestyle = padding:4pt; line-height:1.25em; text-align:center; font-size:8pt;
    <data source="other_names">
| caption    = <div style="padding-top:2pt;">{{{caption|}}}</div>
      <label>Other Names</label>
| labelstyle = padding:0.2em 1.0em 0.2em 0.2em; background:transparent; line-height:1.2em; text-align:left; font-size:90%;
    </data>
| datastyle  = padding:0.2em; line-height:1.3em; vertical-align:middle; font-size:90%;
    <data source="title">
 
      <label>Title(s)</label>
| label1     = {{#if:{{{birth_name|}}}{{{birth_date|}}}{{{birth_place|}}}|Born}}
    </data>
| data1      = {{#if:{{{birth_name|}}}|{{{birth_name}}}<br />}}{{#if:{{{birth_date|}}} |{{{birth_date}}}<br />}}{{{birth_place|}}}
     <data source="birth">
| label2     = {{#if:{{{death_date|}}}{{{death_place|}}}|Died }}
      <label>Birth</label>
| data2      = {{#if:{{{death_date|}}}|{{{death_date}}}<br />}}{{{death_place|}}}
    </data>
| label3     = Cause&nbsp;of death
     <data source="rule">
| data3      = {{{death_cause|}}}
      <label>Rule</label>
| label4     = Body discovered
    </data>
| data4      = {{{body_discovered|}}}
     <data source="death">
| label5     = Resting&nbsp;place
      <label>Death</label>
| class5     = label
     </data>
| data5      = {{{resting_place|}}}{{#if:{{{resting_place_coordinates|}}}|<br />{{{resting_place_coordinates}}} }}
    <data source="realms">
| label6     = Residence
      <label>Realm(s)</label>
| class6     = label
     </data>
| data6      = {{{residence|}}}
     <data source="spouse">
| class7     = category
      <label>Spouse(s)</label>
| label7     = Nationality
     </data>
| data7      = {{{nationality|}}}
     <data source="children">
| label8     = Other&nbsp;names
      <label>Children</label>
| class8     = nickname
     </data>
| data8      = {{{other_names|}}}
     <data source="parents">
| class9     = category
      <label>Parent(s)</label>
| label9     = Ethnicity
     </data>
| data9      = {{{ethnicity|}}}
     <data source="siblings">
| class10    = category
      <label>Sibling(s)</label>
| label10    = Citizenship
     </data>
| data10    = {{{citizenship|}}}
     <data source="weapon">
| label11    = Education
      <label>Weapon(s)</label>
| data11     = {{{education|}}}
    </data>
| label12    = Alma&nbsp;mater
  </group>
| data12     = {{{alma_mater|}}}
  <group>
| label13    = Occupation
    <header>Physical Description</header>
| class13    = role
     <data source="race">
| data13     = {{{occupation|}}}
      <label>Race</label>
| label14    = Years active
     </data>
| data14     = {{{years_active|}}}
    <data source="height">
| label15    = Employer
      <label>Height</label>
| data15     = {{{employer|}}}
     </data>
| label16    = Home&nbsp;town
     <data source="hair">
| data16     = {{{home_town|}}}
      <label>Hair</label>
| label17    = Salary
     </data>
| data17     = {{{salary|}}}
     <data source="eyes">
| label18    = Net&nbsp;worth
      <label>Eyes</label>
| data18     = {{{networth|}}}
     </data>
| label19    = Height
     <data source="culture">
| data19     = {{{height|}}}
      <label>Culture</label>
| label20    = Weight
     </data>
| data20    = {{{weight|}}}
  </group>
| label21    = Known&nbsp;for
  <group>
| data21     = {{{known|{{{known_for|}}}}}}
    <header>Other Media</header>
| label22    = Title
     <data source="voice">
| data22     = {{{title|}}}
      <label>Voice</label>
| label23    = Term
     </data>
| data23    = {{{term|}}}
  </group>
| label24    = Predecessor
</infobox>
| data24    = {{{predecessor|}}}
<noinclude>
| label25    = Successor
Example usage:
| data25    = {{{successor|}}}
<pre>
| label26    = Political&nbsp;party
{{Infobox Person
| data26    = {{{party|}}}
| title=Page Name
| label27    = Opponent(s)
| image=Example
| data27    = {{{opponents|}}}
| caption=Example
| label28    = Board member&nbsp;of
| other_names=Example
| data28    = {{{boards|}}}
| title=Example
| label29    = Religious beliefs
| birth=Example
| data29    = {{{religion|}}}
| rule=Example
| label30    = Spouse(s)
| death=Example
| data30    = {{{spouse|}}}
| realms=Example
| label31    = Partner
| spouse=Example
| data31    = {{{partner|}}}
| children=Example
| label32    = Children
| parents=Example
| data32    = {{{children|}}}
| siblings=Expample
| label33    = Parents
| weapon=Example
| data33    = {{{parents|}}}
| race=Example
| label34    = Relatives
| height=Example
| data34    = {{{relations|{{{relatives|}}}}}}
| hair=Example
| label35    = Call-sign
| eyes=Example
| data35    = {{{callsign|}}}
| culture=Example
| data36    = {{#if:{{{signature|}}}|'''Signature'''<div style="padding-top:0.3em;">[[Image:{{{signature}}}|128px]]</div>}}
| voice=Example
| data37    = {{#if:{{{website|}}}| '''Website'''<br />{{{website}}} }}
}}
| data38    = {{#if:{{{footnotes|}}}|<div style="text-align:left;"><div style="border-top:1px solid;">'''Notes'''</div><div style="line-height:1.2em;">{{{footnotes}}}</div></div>}}
</pre>
}}<noinclude>{{pp-template|small=yes}}{{documentation}}<!---Please add metadata to the <includeonly> section at the bottom of the /doc subpage---></noinclude>
[[Category:Infobox templates]]</noinclude>

Latest revision as of 17:42, 1 July 2022