Template:Infobox person: Difference between revisions

From Our World of Text Wiki
Jump to navigation Jump to search
(The template now automatically generates a text accent color.)
m (Dat Hack3r moved page Template:Infobox character to Template:Infobox person: This is an infobox for people, not characters.)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<infobox accent-color-source="color" accent-color-text-default="{{Greater color contrast ratio|{{{color|DEDEE2}}}}}" accent-color-text-source="textColor">
{{Infobox
<title source="name"><default>{{PAGENAME}}</default></title>
| bodystyle  = {{#if:{{{background_color|}}}|background-color: {{{background_color}}};|{{#if:{{{backgroundColor|}}}|background-color: {{{backgroundColor}}};|}}}}
<image source="image">
| abovestyle = {{#if:{{{color|}}}|background-color: {{{color}}}; color: {{#if:{{{text_color|}}}|{{{text_color}}}|{{#if:{{{textColor|}}}|{{{textColor}}}|{{Greater color contrast ratio|{{{color}}}}}}}}};|{{#if:{{{text_color|}}}|color: {{{text_color}}}|{{#if:{{{textColor|}}}|color: {{{textColor}}};|}}}}}}
<caption source="imageCaption"/>
| headerstyle = {{#if:{{{color|}}}|background-color: {{{color}}}; color: {{#if:{{{text_color|}}}|{{{text_color}}}|{{#if:{{{textColor|}}}|{{{textColor}}}|{{Greater color contrast ratio|{{{color}}}}}}}}};|{{#if:{{{text_color|}}}|color: {{{text_color}}}|{{#if:{{{textColor|}}}|color: {{{textColor}}};|}}}}}}
</image>
 
<group>
| above      = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
<data source="realName"><label>Real name</label></data>
| autoheaders = y
<data source="aliases"><label>Aliases</label></data>
 
<data source="knownFor"><label>Known for</label></data>
| image       = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=300px|upright={{{image_upright|1}}}|alt={{{image_alt|}}}}}
<data source="family"><label>Family</label></data>
| caption1    = {{#if:{{{image_caption|}}}|{{{image_caption}}}|{{{imageCaption|}}}}}
<data source="affiliations"><label>Affiliations</label></data>
 
<data source="friends"><label>Friends</label></data>
| label1      = Real name
<data source="enemies"><label>Enemies</label></data>
| data1      = {{#if:{{{real_name|}}}|{{{real_name}}}|{{{realName|}}}}}
</group>
 
<group>
| label2      = {{#if:{{{alias|}}}|Alias|Aliases}}
<header>General information</header>
| data2      = {{#if:{{{alias|}}}|{{{alias}}}|{{{aliases|}}}}}
<data source="age"><label>Age</label></data>
 
<data source="sex"><label>Sex</label></data>
| label3      = Known for
<data source="gender"><label>Gender</label></data>
| data3      = {{#if:{{{known_for|}}}|{{{known_for}}}|{{{knownFor|}}}}}
<data source="sexualOrientation"><label>Sexual orientation</label></data>
 
<data source="race"><label>Race</label></data>
| label4      = Family members
<data source="religion"><label>Religion</label></data>
| data4      = {{{family|}}}
<data source="nationality"><label>Country of origin</label></data>
 
<data source="residence"><label>City or country of residence</label></data>
| label5      = Affiliations
<data source="marital"><label>Marital status</label></data>
| data5      = {{{affiliations|}}}
<data source="significantOther"><label>Significant other</label></data>
 
<data source="occupation"><label>Occupation</label></data>
| label6      = Friends
<data source="employer"><label>Employer</label></data>
| data6      = {{{friends|}}}
<data source="organization"><label>Organization</label></data>
 
<data source="birthDate"><label>Date of birth</label></data>
| label7      = Enemies
<data source="birthPlace"><label>Place of birth</label></data>
| data7      = {{{enemies|}}}
<data source="deathDate"><label>Date of death</label></data>
 
<data source="deathPlace"><label>Place of death</label></data>
| header8    = General information
</group>
 
<group>
| label9      = Age
<header>Physical description</header>
| data9      = {{{age|}}}
<data source="height"><label>Height</label></data>
 
<data source="weight"><label>Weight</label></data>
| label10    = Sex
<data source="eyes"><label>Eye color</label></data>
| data10      = {{{sex|}}}
</group>
 
<group>
| label11    = Gender
<header>Socials</header>
| data11      = {{{gender|}}}
<data source="webpage"><label>Webpage</label></data>
 
<data source="otherSocials"><label>Others</label></data>
| label12    = Sexual orientation
</group>
| data12      = {{#if:{{{sexual_orientation|}}}|{{{sexual_orientation}}}|{{{sexualOrientation|}}}}}
</infobox><noinclude>
 
| label13    = Race
| data13      = {{{race|}}}
 
| label14    = Religion
| data14      = {{{religion|}}}
 
| label15    = Country of origin
| data15      = {{{origin|}}}
 
| label16    = Nationality
| data16      = {{{nationality|}}}
 
| label17    = City or country of residence
| data17      = {{{residence|}}}
 
| label18    = Marital status
| data18      = {{{marital|}}}
 
| label19    = {{#if:{{{significant_other|}}}|Significant other|{{#if:{{{significantOther|}}}|Significant other|Significant others}}}}
| data19      = {{#if:{{{significant_other|}}}|{{{significant_other}}}|{{#if:{{{significantOther|}}}|{{{significantOther}}}|{{{significant_others|}}}}}}}
 
| label20    = Occupation
| data20      = {{{occupation|}}}
 
| label21    = Employer
| data21      = {{{employer|}}}
 
| label22    = Organization
| data22      = {{{organization|}}}
 
| label23    = Date of birth
| data23      = {{#if:{{{birth_date|}}}|{{{birth_date}}}|{{{birthDate|}}}}}
 
| label24    = Place of birth
| data24      = {{#if:{{{birth_place|}}}|{{{birth_place}}}|{{{birthPlace|}}}}}
 
| label25    = Date of death
| data25      = {{#if:{{{death_date|}}}|{{{death_date}}}|{{{deathDate|}}}}}
 
| label26    = Place of death
| data26      = {{#if:{{{death_place|}}}|{{{death_place}}}|{{{deathPlace|}}}}}
 
| header27    = Physical description
 
| label28    = Height
| data28      = {{{height|}}}
 
| label29    = Weight
| data29      = {{{weight|}}}
 
| label30    = Eye color
| data30      = {{{eyes|}}}
 
| header31    = Socials
 
| label32    = Webpage
| data32      = {{{webpage|}}}
 
| label33    = Others
| data33      = {{#if:{{{other_socials|}}}|{{{other_socials}}}|{{{otherSocials|}}}}}
}}<noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 17:57, 26 November 2024

Infobox person