Template:Infobox Side Character: Difference between revisions
Created page with "<includeonly>{| style="float: right; width: 300px; margin: 0 0 1em 1em; border: 1px solid #1a1a1a; background-color: #f8f9fa; font-size: 88%; line-height: 1.5em; border-collapse: collapse; box-shadow: 0 2px 4px rgba(0,0,0,0.1);" |- <!-- MAIN TITLE HEADER --> ! colspan="2" style="background-color: {{{Colour|#6c757d}}}; color: {{{TextColour|#ffffff}}}; text-align: center; font-size: 125%; font-weight: bold; padding: 0.6em; border-bottom: 3px solid {{{BorderColour|#495057}}..." |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{| style=" | <includeonly>{| class="aquila-infobox" style="border: 1px solid {{{LineColour|#e2e8f0}}};" | ||
|- | |- | ||
<!-- MAIN TITLE HEADER --> | <!-- MAIN TITLE HEADER --> | ||
! colspan="2" style="background-color: {{{Colour|#6c757d}}}; color: {{{TextColour|#ffffff}}} | ! colspan="2" class="aquila-infobox-title" style="background-color: {{{Colour|#6c757d}}}; color: {{{TextColour|#ffffff}}}; border-bottom: 3px solid {{{BorderColour|#495057}}};" | {{{Name|{{PAGENAME}}}}} | ||
|- | |- | ||
<!-- IMAGE ROW --> | <!-- IMAGE ROW --> | ||
| colspan="2" | | colspan="2" class="aquila-infobox-image" style="border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" | [[File:{{{Image|Image.png}}}|280px|center]] | ||
|- | |- | ||
<!-- DATA ROWS BREAKDOWN --> | <!-- DATA ROWS BREAKDOWN --> | ||
{{#if: {{{Titles|}}} | | {{#if: {{{Titles|}}} | | ||
! style=" | ! class="aquila-infobox-label" style="background-color: {{{LabelColour|#e9ecef}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#e2e8f0}}}; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Titles | ||
{{!}} {{{Titles}}} | {{!}} class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} {{{Titles}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{#if: {{{Race|}}} | | {{#if: {{{Race|}}} | | ||
! style=" | ! class="aquila-infobox-label" style="background-color: {{{LabelColour|#e9ecef}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#e2e8f0}}}; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Race | ||
{{!}} [[{{{Race}}}]] | {{!}} class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} [[{{{Race}}}]] | ||
{{!}}-}} | {{!}}-}} | ||
{{#if: {{{Gender|}}} | | {{#if: {{{Gender|}}} | | ||
! style=" | ! class="aquila-infobox-label" style="background-color: {{{LabelColour|#e9ecef}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#e2e8f0}}}; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Gender | ||
{{!}} {{{Gender}}} | {{!}} class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} {{{Gender}}} | ||
{{!}}-}} | {{!}}-}} | ||
! style=" | ! class="aquila-infobox-label" style="background-color: {{{LabelColour|#e9ecef}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#e2e8f0}}}; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" | Age{{#if: {{{DeathYear|}}} | <span style="font-size: 75%; font-weight: normal; color: #718096; display: block;">(At Death)</span> }} | ||
| {{#if: {{{BirthYear|}}} | {{#expr: ({{#if: {{{DeathYear|}}} | {{{DeathYear}}} | {{CurrentLoreYear}} }} - {{{BirthYear}}}) - ({{#if: {{{DeathYear|}}} | {{#switch: {{{DeathMonth|}}} | January = 1 | January--February = 2 | February--March = 3 | March--April = 4 | April--May = 5 | May--June = 6 | June--July = | | class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" | {{#if: {{{BirthYear|}}} | {{#expr: ({{#if: {{{DeathYear|}}} | {{{DeathYear}}} | {{CurrentLoreYear}} }} - {{{BirthYear}}}) - ({{#if: {{{DeathYear|}}} | {{#switch: {{{DeathMonth|}}} | Early January = 1 | January--February = 2 | February--March = 3 | March--April = 4 | April--May = 5 | May--June = 6 | June = 7 | June--July = 8 | July--August = 9 | August--September = 10 | September--October = 11 | October--November = 12 | November--December = 13 | Late December = 14 | 1 }} | {{CurrentLoreMonthNumber}} }} < {{#switch: {{{BirthMonth|}}} | Early January = 1 | January--February = 2 | February--March = 3 | March--April = 4 | April--May = 5 | May--June = 6 | June = 7 | June--July = 8 | July--August = 9 | August--September = 10 | September--October = 11 | October--November = 12 | November--December = 13 | Late December = 14 | 1 }})}} | {{{age|TBA}}} }} | ||
|- | |- | ||
! style=" | ! class="aquila-infobox-label" style="background-color: {{{LabelColour|#e9ecef}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#e2e8f0}}}; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" | Date of Birth | ||
| {{#if: {{{BirthYear|}}} | {{#ifexpr: {{{BirthYear}}} < 1 | Era Vetus | Era Nova }}{{#if: {{{BirthMonth|}}} |, {{{BirthMonth}}} | }}, Year {{#ifexpr: {{{BirthYear}}} < 1 | {{#expr: abs({{{BirthYear}}}) }} | {{{BirthYear}}} }} | TBA }} | | class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" | {{#if: {{{BirthYear|}}} | {{#ifexpr: {{{BirthYear}}} < 1 | Era Vetus | Era Nova }}{{#if: {{{BirthMonth|}}} |, {{{BirthMonth}}} | }}, Year {{#ifexpr: {{{BirthYear}}} < 1 | {{#expr: abs({{{BirthYear}}}) }} | {{{BirthYear}}} }} | TBA }} | ||
|- | |- | ||
{{#if: {{{DeathYear|}}} | | {{#if: {{{DeathYear|}}} | | ||
! style=" | ! class="aquila-infobox-label" style="background-color: {{{LabelColour|#e9ecef}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#e2e8f0}}}; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Date of Death | ||
{{!}} {{#ifexpr: {{{DeathYear}}} < 1 | Era Vetus | Era Nova }}{{#if: {{{DeathMonth|}}} |, {{{DeathMonth}}} | }}, Year {{#ifexpr: {{{DeathYear}}} < 1 | {{#expr: abs({{{DeathYear}}}) }} | {{{DeathYear}}} }} | {{!}} class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} {{#ifexpr: {{{DeathYear}}} < 1 | Era Vetus | Era Nova }}{{#if: {{{DeathMonth|}}} |, {{{DeathMonth}}} | }}, Year {{#ifexpr: {{{DeathYear}}} < 1 | {{#expr: abs({{{DeathYear}}}) }} | {{{DeathYear}}} }} | ||
{{!}}-}} | {{!}}-}} | ||
{{#if: {{{Nation|}}} | | {{#if: {{{Nation|}}} | | ||
! style=" | ! class="aquila-infobox-label" style="background-color: {{{LabelColour|#e9ecef}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#e2e8f0}}}; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Nation | ||
{{!}} [[{{{Nation}}}]] | {{!}} class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} [[{{{Nation}}}]] | ||
{{!}}-}} | {{!}}-}} | ||
{{#if: {{{Occupation|}}} | | {{#if: {{{Occupation|}}} | | ||
! style=" | ! class="aquila-infobox-label" style="background-color: {{{LabelColour|#e9ecef}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#e2e8f0}}}; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Occupation | ||
{{!}} {{{Occupation}}} | {{!}} class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} {{{Occupation}}} | ||
{{!}}-}} | {{!}}-}} | ||
<!-- BOTTOM STATUS ROW --> | <!-- BOTTOM STATUS ROW --> | ||
! style=" | ! class="aquila-infobox-label" style="background-color: {{{LabelColour|#e9ecef}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#e2e8f0}}};" | Status | ||
| | | class="aquila-infobox-data" | <span class="aquila-status-badge" style="background: {{#switch: {{lc:{{{Status|{{{status|alive}}}}}}}}|alive=#f0fdf4|deceased|dead=#fef2f2|missing|unknown=#fff7ed|imprisoned|captured=#fefce8|retired=#eff6ff|undead=#faf5ff|#f0fdf4}}; color: {{#switch: {{lc:{{{Status|{{{status|alive}}}}}}}}|alive=#15803d|deceased|dead=#b91c1c|missing|unknown=#c2410c|imprisoned|captured=#a16207|retired=#1d4ed8|undead=#6b21a8|#15803d}}; border: 1px solid {{#switch: {{lc:{{{Status|{{{status|alive}}}}}}}}|alive=#bbf7d0|deceased|dead=#fecaca|missing|unknown=#ffedd5|imprisoned|captured=#fef08a|retired=#bfdbfe|undead=#e9d5ff|#bbf7d0}};">{{{Status|{{{status|Alive}}}}}}</span> | ||
|} {{#switch: {{{Race}}} | |} {{#switch: {{{Race}}} | ||
| Aquatic Kobold = [[Category:Kobold]] | | Aquatic Kobold = [[Category:Kobold]] | ||
| Line 94: | Line 94: | ||
"suggested": true, | "suggested": true, | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"January", "January--February", "February--March", "March--April", "April--May", "May--June", "June--July", "July--August", "August--September", "September-- | "Early January", "January--February", "February--March", "March--April", "April--May", "May--June", "June", "June--July", "July--August", "August--September", "September--October", "October--November", "November--December", "Late December" | ||
] | ] | ||
}, | }, | ||
| Line 104: | Line 104: | ||
"suggested": false, | "suggested": false, | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"January", "January--February", "February--March", "March--April", "April--May", "May--June", "June--July", "July--August", "August--September", "September-- | "Early January", "January--February", "February--March", "March--April", "April--May", "May--June", "June", "June--July", "July--August", "August--September", "September--October", "October--November", "November--December", "Late December" | ||
] | ] | ||
}, | }, | ||
Latest revision as of 21:28, 9 October 2026
Infobox Side Character
This template displays automated information for non-player side characters and NPCs. It features age calculations, death date locks, status color-coding, and automated race categorization.
Usage
Copy and paste this clean code snippet straight onto NPC profiles:
{{Infobox Side Character
| Colour = #6c757d
| TextColour = #ffffff
| BorderColour = #495057
| LabelColour = #e9ecef
| Name =
| Image = Image.png
| Titles =
| Race =
| Gender =
| BirthMonth =
| BirthYear =
| DeathMonth =
| DeathYear =
| Nation =
| Occupation =
| Status = Alive
}}
TemplateData
Project Aquila's official automated Side Character Infobox.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Banner Background Colour | Colour | Hex code for the top header background. | String | suggested |
| Banner Text Colour | TextColour | Colour code for the title text. | String | suggested |
| Banner Underline Colour | BorderColour | Hex code for the thick accent bar below the header. | String | suggested |
| Label Background Colour | LabelColour | Hex code for the background tint on left-hand labels. | String | suggested |
| Character Name | Name | Display name at the top. Defaults to the page title. | String | suggested |
| Image File Name | Image | Filename of the character portrait.
| File | suggested |
| Titles / Ranks | Titles | Character's honorifics or titles. Hides if blank. | String | suggested |
| Race | Race | Biological race of the character. Automatically linked and categorized. Hides if blank. | Page name | suggested |
| Gender | Gender | Character's gender identity. Hides if blank. | String | suggested |
| Birth Month | BirthMonth | The birth month used for age calculation.
| String | suggested |
| Birth Year | BirthYear | The year of birth (negative for Era Vetus, positive for Era Nova). | Number | suggested |
| Death Month | DeathMonth | The month of death for locking the age calculation. Optional.
| String | optional |
| Death Year | DeathYear | The year of death. Locks age calculation. Optional. | Number | optional |
| Nation Link | Nation | Internal link to the nation page. Hides if blank. | Page name | suggested |
| Occupation | Occupation | The character's job or role. Hides if blank. | String | suggested |
| Status | Status | Current status. Auto-colors (Alive, Deceased, Missing, etc). Defaults to Alive.
| String | suggested |