Jump to content

Template:Infobox character: Difference between revisions

aw>Rikke
Added line breaks between spouses
Customized infobox to fit A3W style and added age parameter
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Infobox
{{Infobox
| bodystyle  = border: 2px outset var(--background-color-disabled-subtle); border-radius: 5px; background-color: var(--background-color-neutral-subtle); color: var(--base-color);
| autoheaders = y
| title      = <small>{{{title|}}}</small>
| title      = <small>{{{title|}}}</small>
| abovestyle  = background:#ffc757;
| abovestyle  = background:var(--color-warning); text-align:center; color: #151515;
| above      = {{#if: {{{name|}}} | {{{name|}}} | {{PAGENAME}}}}
| above      = {{#if: {{{name|}}} | {{{name|}}} | {{PAGENAME}}}}
| subheaderstyle = text-align:center;
| subheader  = {{{nickname|}}}
| subheader  = {{{nickname|}}}


| imagestyle  = text-align:center;
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}
| captionstyle = text-align:center;
| caption    = {{{caption|}}}
| caption    = {{{caption|}}}


| headerstyle = background:#f5dba6;
| headerstyle = background:#f5dba6; text-align:center; color: #151515;


| header1 = {{{governance|}}}
| header1 = {{{governance|}}}
Line 19: Line 25:
| header5 = Personal information
| header5 = Personal information


| label6  = Born
| label6 = Age
| data6   = {{#if: {{{birth_name|}}} | {{#if: {{{birth_date|}}} | {{#if: {{{birth_place|}}} | {{{birth_name|}}}</br>{{{birth_date|}}}</br>{{{birth_place|}}} | {{{birth_name|}}}</br>{{{birth_date|}}}}} | {{{birth_name|}}}}} | {{#if: {{{birth_date|}}} | {{#if: {{{birth_place|}}} | {{{birth_date|}}}</br>{{{birth_place|}}} | {{{birth_date|}}}}} | {{{birth_place|}}}}}
| data6  = {{{age|}}}
| label7 = Born
| data7   = {{#if: {{{birth_name|}}} | {{#if: {{{birth_date|}}} | {{#if: {{{birth_place|}}} | {{{birth_name|}}}</br>{{{birth_date|}}}</br>{{{birth_place|}}} | {{{birth_name|}}}</br>{{{birth_date|}}}}} | {{{birth_name|}}}}} | {{#if: {{{birth_date|}}} | {{#if: {{{birth_place|}}} | {{{birth_date|}}}</br>{{{birth_place|}}} | {{{birth_date|}}}}} | {{{birth_place|}}}}}
}}
}}
| label7 = Died
| label8 = Died
| data7   = {{#if: {{{death_date|}}} | {{#if: {{{death_place|}}} | {{{death_date|}}}</br>{{{death_place|}}} | {{{death_date|}}}}} | {{{death_place|}}}}}
| data8   = {{#if: {{{death_date|}}} | {{#if: {{{death_place|}}} | {{{death_date|}}}</br>{{{death_place|}}} | {{{death_date|}}}}} | {{{death_place|}}}}}
| label8 = Former names
| label9 = Former names
| data8   = {{{former_names|}}}
| data9   = {{{former_names|}}}
| label9 = Resting place
| label10 = Resting place
| data9   = {{{resting_place|}}}
| data10   = {{{resting_place|}}}
| label10 = Nationality
| label11 = Nationality
| data10 = {{{nationality|}}}
| data11 = {{{nationality|}}}
| label11 = Citizenship
| label12 = Citizenship
| data11 = {{{citizenship|}}}
| data12 = {{{citizenship|}}}
| label12 = Education
| label13 = Education
| data12 = {{{education|}}}
| data13 = {{{education|}}}
| label13 = Occupation
| label14 = Occupation
| data13 = {{{occupation|}}}
| data14 = {{{occupation|}}}
| label14 = Years active
| label15 = Years active
| data14 = {{{years_active|}}}
| data15 = {{{years_active|}}}
| label15 = Organization
| label16 = Organization
| data15 = {{{organization|}}}
| data16 = {{{organization|}}}
| label16 = Height
| label17 = Height
| data16 = {{{height|}}}
| data17 = {{{height|}}}
| label17 = Awards
| label18 = Awards
| data17 = {{{awards|}}}
| data18 = {{{awards|}}}
| label18 = Notable work
| label19 = Notable work
| data18 = {{{notable_work|}}}
| data19 = {{{notable_work|}}}
| header19 = {{#if: {{{spouse1|}}}{{{children|}}}{{{parents|}}} | Family info}}
| header20 = Family info
| label20 = {{#if: {{{spouse2|}}}{{{spouse3|}}} | Spouses | Spouse}}
| label21 = {{#if: {{{spouse2|}}}{{{spouse3|}}} | Spouses | Spouse}}
| data20 = {{#if: {{{spouse2|}}} | {{{spouse1|}}}</br>{{{spouse2|}}} | {{{spouse1|}}}}}{{#if: {{{spouse3|}}} | </br>{{{spouse3|}}}}}
| data21 = {{#if: {{{spouse2|}}} | {{{spouse1|}}}</br>{{{spouse2|}}} | {{{spouse1|}}}}}{{#if: {{{spouse3|}}} | </br>{{{spouse3|}}}}}
| label21 = Children
| label22 = Children
| data21 = {{{children|}}}
| data22 = {{{children|}}}
| label22 = Parents
| label23 = Parents
| data22 = {{{parents|}}}
| data23 = {{{parents|}}}
| data23 = {{#if: {{{signature|}}} | ''Signature''}}
| data24 = {{#if: {{{signature|}}} | ''Signature''}}
| data24  = {{{module1|}}}
| data25  = {{{module1|}}}
| data25  = {{{module1|}}}
| data26  = {{#invoke:InfoboxImage|InfoboxImage|image={{{signature|}}}|size={{{signature_size|}}}|sizedefault=150px|alt={{{signature alt|{{{signature_alt|}}}}}}}}
| data26 = {{{module1|}}}
| data27 = {{#invoke:InfoboxImage|InfoboxImage|image={{{signature|}}}|size={{{signature_size|}}}|sizedefault=150px|alt={{{signature alt|{{{signature_alt|}}}}}}}}
}}<noinclude>
}}<noinclude>
{{Documentation}}
{{Documentation}}


</noinclude>
</noinclude>

Latest revision as of 13:18, 21 July 2025

Infobox character