Template:Infobox character: Difference between revisions

From Our World of Text Wiki
Jump to navigation Jump to search
(Fixed template and moved TemplateData to documentation.)
(Decided to do this.)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<infobox>
{{Infobox
<title source="name"/>
| 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="relatives"><label>Relatives</label></data>
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{imageSize|}}}|sizedefault=300px|upright={{{imageUpright|1}}}|alt={{{imageAlt|}}}}}
<data source="affiliation"><label>Affiliation</label></data>
| caption1    = {{{imageCaption|}}}
<data source="friends"><label>Friends</label></data>
 
<data source="enemies"><label>Enemies</label></data>
| label1      = Real name
</group>
| data1      = {{{realName|}}}
<group>
 
<header>General information</header>
| label2      = Aliases
<data source="age"><label>Age</label></data>
| data2      = {{{aliases|}}}
<data source="sex"><label>Sex</label></data>
 
<data source="gender"><label>Gender</label></data>
| label3      = Known for
<data source="sexualOrientation"><label>Sexual orientation</label></data>
| data3      = {{{knownFor|}}}
<data source="race"><label>Race</label></data>
 
<data source="nationality"><label>Country of origin</label></data>
| label4      = Family
<data source="residence"><label>City or country of residence</label></data>
| data4      = {{{family|}}}
<data source="marital"><label>Marital status</label></data>
 
<data source="birthDate"><label>Date of birth</label></data>
| label5      = Affiliations
<data source="birthPlace"><label>Place of birth</label></data>
| data5      = {{{affiliations|}}}
<data source="deathDate"><label>Date of death</label></data>
 
<data source="deathPlace"><label>Place of death</label></data>
| label6      = Friends
</group>
| data6      = {{{friends|}}}
<group>
 
<header>Physical description</header>
| label7      = Enemies
<data source="height"><label>Height</label></data>
| data7      = {{{enemies|}}}
<data source="weight"><label>Weight</label></data>
 
<data source="eyes"><label>Eye color</label></data>
| header8    = General information
</group>
 
<group>
| label9      = Age
<header>Socials</header>
| data9      = {{{age|}}}
<data source="webpage"><label>Webpage</label></data>
 
<data source="otherSocials"><label>Others</label></data>
| label10    = Sex
</group>
| data10      = {{{sex|}}}
</infobox><noinclude>
 
| label11    = Gender
| data11      = {{{gender|}}}
 
| label12    = Sexual orientation
| data12      = {{{sexualOrientation|}}}
 
| 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