Template:Infobox character: Difference between revisions

From Our World of Text Wiki
Jump to navigation Jump to search
(Added ability to change infobox color and text color.)
(Decided to do this.)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<infobox accent-color-source="color" accent-color-text-source="textColor">
{{Infobox
<title source="name"><default>{{PAGENAME}}</default></title>
| bodystyle  = {{#if:{{{backgroundColor|}}}|background-color: {{{backgroundColor}}};|}}
<image source="image">
| abovestyle = {{#if:{{{color|}}}|background-color: {{{color}}}; color: {{#if:{{{textColor|}}}|{{{textColor}}}|{{Greater color contrast ratio|{{{color}}}}}}};|{{#if:{{{textColor|}}}|color: {{{textColor}}};|}}}}
<caption source="imageCaption"/>
| headerstyle = {{#if:{{{color|}}}|background-color: {{{color}}}; color: {{#if:{{{textColor|}}}|{{{textColor}}}|{{Greater color contrast ratio|{{{color}}}}}}};|{{#if:{{{textColor|}}}|color: {{{textColor}}};|}}}}
</image>
 
<group>
| above      = {{{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={{{imageSize|}}}|sizedefault=300px|upright={{{imageUpright|1}}}|alt={{{imageAlt|}}}}}
<data source="family"><label>Family</label></data>
| caption1    = {{{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      = {{{realName|}}}
</group>
 
<group>
| label2      = Aliases
<header>General information</header>
| data2      = {{{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      = {{{knownFor|}}}
<data source="sexualOrientation"><label>Sexual orientation</label></data>
 
<data source="race"><label>Race</label></data>
| label4      = Family
<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      = {{{sexualOrientation|}}}
</infobox><noinclude>
 
| label13    = Race
| data13      = {{{race|}}}
 
| label14    = Religion
| data14      = {{{religion|}}}
 
| label15    = Country of origin
| data15      = {{{nationality|}}}
 
| label16    = City or country of residence
| data16      = {{{residence|}}}
 
| label17    = Marital status
| data17      = {{{marital|}}}
 
| label18    = Significant other
| data18      = {{{significantOther|}}}
 
| label19    = Occupation
| data19      = {{{occupation|}}}
 
| label20    = Employer
| data20      = {{{employer|}}}
 
| label21    = Organization
| data21      = {{{organization|}}}
 
| label22    = Date of birth
| data22      = {{{birthDate|}}}
 
| label23    = Place of birth
| data23      = {{{birthPlace|}}}
 
| label24    = Date of death
| data24      = {{{deathDate|}}}
 
| label25    = Place of death
| data25      = {{{deathPlace|}}}
 
| header26    = Physical description
 
| label27    = Height
| data27      = {{{height|}}}
 
| label28    = Weight
| data28      = {{{weight|}}}
 
| label29    = Eye color
| data29      = {{{eyes|}}}
 
| header30    = Socials
 
| label31    = Webpage
| data31      = {{{webpage|}}}
 
| label32    = Others
| data32      = {{{otherSocials|}}}
}}<noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 11:07, 22 November 2024

Infobox character