Template:Infobox Side Character: Difference between revisions

From aquila
Jump to navigation Jump to search
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="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);"
<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}}}; text-align: center; font-size: 125%; font-weight: bold; padding: 0.6em; border-bottom: 3px solid {{{BorderColour|#495057}}};" | {{{Name|{{PAGENAME}}}}}
! 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" style="text-align: center; padding: 0.5em; background-color: #ffffff; border-bottom: 1px solid #a2a9b1;" | [[File:{{{Image|Image.png}}}|280px|center]]
| 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="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#e9ecef}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Titles
! 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="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#e9ecef}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Race
! 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="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#e9ecef}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Gender
! 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="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> }}
! 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 = 7 | July--August = 8 | August--September = 9 | September--October = 10 | October = 11 | October--November = 12 | November--December = 13 | Late December = 14 | 1 }} | {{CurrentLoreMonthNumber}} }} < {{#switch: {{{BirthMonth|}}} | January = 1 | January--February = 2 | February--March = 3 | March--April = 4 | April--May = 5 | May--June = 6 | June--July = 7 | July--August = 8 | August--September = 9 | September--October = 10 | October = 11 | October--November = 12 | November--December = 13 | Late December = 14 | 1 }})}} | {{{age|TBA}}} }}
| 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="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#e9ecef}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Date of Birth
! 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="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#e9ecef}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Date of Death
! 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="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#e9ecef}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Nation
! 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="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#e9ecef}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Occupation
! 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="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#e9ecef}}}; border-bottom: 1px solid #1a1a1a;" | Status
! class="aquila-infobox-label" style="background-color: {{{LabelColour|#e9ecef}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#e2e8f0}}};" | Status
| style="padding: 0.4em 0.6em; border-bottom: 1px solid #1a1a1a;" | <span style="font-weight: bold; color: {{#switch: {{lc:{{{Status|{{{status|alive}}}}}}}}|alive=#2f855a|deceased|dead=#c53030|missing|unknown=#dd6b20|imprisoned|captured=#d69e2e|retired=#3182ce|undead=#805ad5|archived=#718096|#2f855a}};">{{{Status|{{{status|Alive}}}}}}</span>
| 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--October", "October", "October--November", "November--December", "Late December"
"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--October", "October", "October--November", "November--December", "Late December"
"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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Banner Background ColourColour

Hex code for the top header background.

Stringsuggested
Banner Text ColourTextColour

Colour code for the title text.

Stringsuggested
Banner Underline ColourBorderColour

Hex code for the thick accent bar below the header.

Stringsuggested
Label Background ColourLabelColour

Hex code for the background tint on left-hand labels.

Stringsuggested
Character NameName

Display name at the top. Defaults to the page title.

Stringsuggested
Image File NameImage

Filename of the character portrait.

Default
Image.png
Filesuggested
Titles / RanksTitles

Character's honorifics or titles. Hides if blank.

Stringsuggested
RaceRace

Biological race of the character. Automatically linked and categorized. Hides if blank.

Page namesuggested
GenderGender

Character's gender identity. Hides if blank.

Stringsuggested
Birth MonthBirthMonth

The birth month used for age calculation.

Suggested values
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
Stringsuggested
Birth YearBirthYear

The year of birth (negative for Era Vetus, positive for Era Nova).

Numbersuggested
Death MonthDeathMonth

The month of death for locking the age calculation. Optional.

Suggested values
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
Stringoptional
Death YearDeathYear

The year of death. Locks age calculation. Optional.

Numberoptional
Nation LinkNation

Internal link to the nation page. Hides if blank.

Page namesuggested
OccupationOccupation

The character's job or role. Hides if blank.

Stringsuggested
StatusStatus

Current status. Auto-colors (Alive, Deceased, Missing, etc). Defaults to Alive.

Suggested values
Alive Deceased Dead Missing Unknown Imprisoned Captured Retired Undead Archived
Default
Alive
Stringsuggested