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}}..." |
m fixed months |
||
| Line 21: | Line 21: | ||
{{!}}-}} | {{!}}-}} | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#e9ecef}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Age{{#if: {{{DeathYear|}}} | <span style="font-size: 75%; font-weight: normal; color: #718096; display: block;">(At Death)</span> }} | ! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#e9ecef}}}; width: 40%; border-bottom: 1px solid #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 = | | {{#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="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#e9ecef}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Date of Birth | ! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#e9ecef}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Date of Birth | ||
| 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" | ||
] | ] | ||
}, | }, | ||
Revision as of 15:01, 4 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 |