Template:Infobox person: Difference between revisions

From Our World of Text Wiki
Jump to navigation Jump to search
Tag: Undo
(Rewrote infobox to use {{Infobox}}.)
Line 1: Line 1:
<infobox accent-color-source="color" accent-color-text-source="textColor">
{{Infobox
<title source="name"><default>{{PAGENAME}}</default></title>
| bodystyle    = background-color: {{{backgroundColor|}}};
<image source="image">
| abovestyle  = {{#if:{{{color|}}}|background-color: {{{color}}}; color: {{{textColor|{{Greater color contrast|{{{color}}}}}}}};|color: {{{textColor|}}};}}
<caption source="imageCaption"/>
 
</image>
| title       = {{{name|{{PAGENAME}}}}}
<group>
| autoheaders  = y
<data source="realName"><label>Real name</label></data>
 
<data source="aliases"><label>Aliases</label></data>
| image       = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{imageSize|}}}|upright={{{imageUpright|1}}}|alt={{{imageAlt|}}}}}
<data source="knownFor"><label>Known for</label></data>
| caption1 = {{{imageCaption|}}}
<data source="family"><label>Family</label></data>
 
<data source="affiliations"><label>Affiliations</label></data>
| label1      = Real name
<data source="friends"><label>Friends</label></data>
| data1        = {{{realName|}}}
<data source="enemies"><label>Enemies</label></data>
 
</group>
| label2      = Aliases
<group>
| data2        = {{{aliases|}}}
<header>General information</header>
 
<data source="age"><label>Age</label></data>
| label3      = Known for
<data source="sex"><label>Sex</label></data>
| data3        = {{{knownFor|}}}
<data source="gender"><label>Gender</label></data>
 
<data source="sexualOrientation"><label>Sexual orientation</label></data>
| label4      = Family
<data source="race"><label>Race</label></data>
| data4        = {{{family|}}}
<data source="religion"><label>Religion</label></data>
 
<data source="nationality"><label>Country of origin</label></data>
| label5      = Affiliations
<data source="residence"><label>City or country of residence</label></data>
| data5        = {{{affiliations|}}}
<data source="marital"><label>Marital status</label></data>
 
<data source="significantOther"><label>Significant other</label></data>
| label6      = Friends
<data source="occupation"><label>Occupation</label></data>
| data6        = {{{friends|}}}
<data source="employer"><label>Employer</label></data>
 
<data source="organization"><label>Organization</label></data>
| label7      = Enemies
<data source="birthDate"><label>Date of birth</label></data>
| data7        = {{{enemies|}}}
<data source="birthPlace"><label>Place of birth</label></data>
 
<data source="deathDate"><label>Date of death</label></data>
| header1      = General information
<data source="deathPlace"><label>Place of death</label></data>
 
</group>
| label8      = Age
<group>
| data8        = {{{age|}}}
<header>Physical description</header>
 
<data source="height"><label>Height</label></data>
| label9      = Sex
<data source="weight"><label>Weight</label></data>
| data9        = {{{sex|}}}
<data source="eyes"><label>Eye color</label></data>
 
</group>
| label10      = Gender
<group>
| data10      = {{{gender|}}}
<header>Socials</header>
 
<data source="webpage"><label>Webpage</label></data>
| label11      = Sexual orientation
<data source="otherSocials"><label>Others</label></data>
| data11      = {{{sexualOrientation|}}}
</group>
 
</infobox><noinclude>
| label12      = Race
| data12      = {{{race|}}}
 
| label13      = Religion
| data13      = {{{religion|}}}
 
| label14      = Country of origin
| data14      = {{{nationality|}}}
 
| label15      = City or country of residence
| data15      = {{{residence|}}}
 
| label16      = Marital status
| data16      = {{{marital|}}}
 
| label17      = Significant other
| data17      = {{{significantOther|}}}
 
| label18      = Occupation
| data18      = {{{occupation|}}}
 
| label19      = Employer
| data19      = {{{employer|}}}
 
| label20      = Organization
| data20      = {{{organization|}}}
 
| label21      = Date of birth
| data21      = {{{birthDate|}}}
 
| label22      = Place of birth
| data22      = {{{birthPlace|}}}
 
| label23      = Date of death
| data23      = {{{deathDate|}}}
 
| label24      = Place of death
| data24      = {{{deathPlace|}}}
 
| header2      = Physical description
 
| label25      = Height
| data25      = {{{height|}}}
 
| label26      = Weight
| data26      = {{{weight|}}}
 
| label27      = Eye color
| data27      = {{{eyes|}}}
 
| header3      = Socials
 
| label28      = Webpage
| data28      = {{{webpage|}}}
 
| label29      = Others
| data29      = {{{otherSocials|}}}
}}<noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 17:37, 20 November 2024

Infobox person