Template:Infobox character: Difference between revisions
aw>Rikke m Fixed curly bracket error #2 |
Customized infobox to fit A3W style and added age parameter |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{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:# | | 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 = {{{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|}}}}} | |||
}} | }} | ||
| | | label8 = Died | ||
| | | data8 = {{#if: {{{death_date|}}} | {{#if: {{{death_place|}}} | {{{death_date|}}}</br>{{{death_place|}}} | {{{death_date|}}}}} | {{{death_place|}}}}} | ||
| | | label9 = Former names | ||
| | | data9 = {{{former_names|}}} | ||
| | | label10 = Resting place | ||
| | | data10 = {{{resting_place|}}} | ||
| | | label11 = Nationality | ||
| | | data11 = {{{nationality|}}} | ||
| | | label12 = Citizenship | ||
| | | data12 = {{{citizenship|}}} | ||
| | | label13 = Education | ||
| | | data13 = {{{education|}}} | ||
| | | label14 = Occupation | ||
| | | data14 = {{{occupation|}}} | ||
| | | label15 = Years active | ||
| | | data15 = {{{years_active|}}} | ||
| | | label16 = Organization | ||
| | | data16 = {{{organization|}}} | ||
| | | label17 = Height | ||
| | | data17 = {{{height|}}} | ||
| | | label18 = Awards | ||
| | | data18 = {{{awards|}}} | ||
| | | label19 = Notable work | ||
| | | data19 = {{{notable_work|}}} | ||
| | | header20 = Family info | ||
| | | label21 = {{#if: {{{spouse2|}}}{{{spouse3|}}} | Spouses | Spouse}} | ||
| | | data21 = {{#if: {{{spouse2|}}} | {{{spouse1|}}}</br>{{{spouse2|}}} | {{{spouse1|}}}}}{{#if: {{{spouse3|}}} | </br>{{{spouse3|}}}}} | ||
| | | label22 = Children | ||
| | | data22 = {{{children|}}} | ||
| | | label23 = Parents | ||
| | | data23 = {{{parents|}}} | ||
| | | data24 = {{#if: {{{signature|}}} | ''Signature''}} | ||
| 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 |
---|
Usage
Users should note that all parameters are made to be optional. Provide as much or as little information as you choose. If you wish to enter more than one data line to a single parameter, use </br>
between the entries.
{{Infobox character
<-- BASE INFO -->
|title = <!-- use only for royal, governmental or honorary titles -->
|name = <!-- if left blank, will default to the title of the page -->
|nickname = <!-- short and/or commonly used name for the character -->
|image =
|image_size = <!-- use this if the image appears too large/small, set a value e.g. 200px -->
|caption =
<-- INVOLVEMENT IN GOVERNING -->
|governance = <!-- political/hereditary position of power -->
|govern_period = <!-- time spent governing -->
|predecessor = <!-- character previously in the governing position -->
|successor = <!-- character following in the governing position -->
<-- PERSONAL INFORMATION -->
|age =
|birth_name =
|birth_date =
|birth_place =
|death_date =
|death_place =
|former_names = <!-- use if the same character has changed names -->
|resting_place = <!-- place of burial/memorial -->
<-- CITIZEN DATA -->
|nationality = <!-- usually country/region of birth -->
|citizenship = <!-- the country the character is formally associated with -->
|education =
|occupation = <!-- use this for regular jobs, for political positions/rulers, use "governance" given above -->
|years_active =
|organization =
|height =
|awards =
|notable_work = <!-- italics to work titles need to be added manually -->
<-- FAMILY INFO -->
|spouse1 =
|spouse2 =
|spouse3 =
|children =
|parents =
<-- SIGNATURE -->
|signature =
|signature_size = <!-- use this if the image appears too large/small, set a value e.g. 100px -->
}}