Template:Infobox Characters: Difference between revisions
Jump to navigation
Jump to search
Template documentation
Note: parts of or the entire template might not be visible without values provided.
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class=" | <div class="infobox floatright" style=" | ||
/* Aggressive inline sizing to ensure it does not expand too wide */ | |||
max-width: 300px !important; | max-width: 300px !important; | ||
width: 100% !important; /* | width: 100% !important; | ||
/* Optional: margin override if the default 'floatright' margin is wrong */ | |||
margin: 0 0 16px 16px !important; | margin: 0 0 16px 16px !important; | ||
"> | "> | ||
<div class=" | <div class="pi-title" style=" | ||
background: | background: #e7c361 !important; /* Forced background color (from your provided CSS) */ | ||
color: black !important; /* Text color for contrast */ | |||
padding: 5px !important; | |||
text-align: center !important; | |||
font-weight: bold !important; | |||
font-size: 1.5em !important; | |||
border-top-left-radius: 10px !important; | |||
border-top-right-radius: 10px !important; | |||
"> | "> | ||
{{{name|Unknown Character}}} | |||
</div> | </div> | ||
{{#if: {{{image|}}} | | {{#if: {{{image|}}} | | ||
<div class=" | <div class="infobox-image" style="padding: 10px !important; text-align: center !important;"> | ||
[[File:{{{image|}}}| | [[File:{{{image|}}}|280px|alt={{{name|}}}]] | ||
</div> | </div> | ||
}} | }} | ||
< | <table class="wikitable infobox-table" style=" | ||
< | background-color: transparent !important; | ||
font- | border: none !important; | ||
font- | width: 100% !important; | ||
padding: 5px | margin: 0 !important; | ||
"> | |||
<caption style=" | |||
text-align: center !important; | |||
font-weight: bold !important; | |||
font-size: 1.2em !important; | |||
padding: 5px 0 !important; | |||
border: none !important; | |||
">Quick Facts</caption> | |||
<tbody> | |||
{{#if: {{{nickname|}}} | | |||
<tr> | |||
<th style="text-align: left !important; font-weight: 500 !important; background-color: transparent !important; width: 40% !important;">Nickname:</th> | |||
<td style="text-align: right !important; background-color: transparent !important;">{{{nickname|}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{age|}}} | | |||
<tr> | |||
<th style="text-align: left !important; font-weight: 500 !important; background-color: transparent !important;">Age:</th> | |||
<td style="text-align: right !important; background-color: transparent !important;">{{{age|}}}</td> | |||
</tr> | |||
}} | |||
< | |||
{{#if: {{{race|}}} | | |||
< | <tr> | ||
<th style="text-align: left !important; font-weight: 500 !important; background-color: transparent !important;">Race:</th> | |||
<td style="text-align: right !important; background-color: transparent !important;">{{{race|}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{element|}}} | | |||
<tr> | |||
<th style="text-align: left !important; font-weight: 500 !important; background-color: transparent !important;">Element:</th> | |||
<td style="text-align: right !important; background-color: transparent !important;">{{{element|}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{weapon|}}} | | |||
< | <tr> | ||
<th style="text-align: left !important; font-weight: 500 !important; background-color: transparent !important;">Weapon:</th> | |||
<td style="text-align: right !important; background-color: transparent !important;">{{{weapon|}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{guild_status|}}} | | |||
< | <tr> | ||
<th style="text-align: left !important; font-weight: 500 !important; background-color: transparent !important;">Guild Status:</th> | |||
<td style="text-align: right !important; background-color: transparent !important;">{{{guild_status|}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{birthday|}}} | | |||
< | <tr> | ||
<th style="text-align: left !important; font-weight: 500 !important; background-color: transparent !important;">Birthday:</th> | |||
<td style="text-align: right !important; background-color: transparent !important;">{{{birthday|}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{romance|}}} | | |||
<tr> | |||
<th style="text-align: left !important; font-weight: 500 !important; background-color: transparent !important;">Romance:</th> | |||
<td style="text-align: right !important; background-color: transparent !important;">{{{romance|}}}</td> | |||
</tr> | |||
}} | |||
</ | </tbody> | ||
</ | </table> | ||
</div> | </div> | ||
Revision as of 08:22, 15 December 2025
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
Description
This template is used to display key statistics and identifying details for all characters in ManaBreak using the standard infobox styling.
Usage
Place this code at the very top of the character's page. Any parameter left blank or omitted will not display in the final infobox.
Syntax
{{Infobox Character
| name = (Character's full name)
| nickname = (Commonly used nickname, for example Seb)
| image = (Filename of the character portrait)
| age = (Approximate age)
| race = (Racial classification)
| element = (Elemental Information)
| occupation = (Main job title)
| weapon = (Primary weapon type)
| guild_status = (Guild Information)
| romance = (Romance availability)
| residency = (Living Space, Location Info)
| birthday = (In-game birthday)
}}
Example
The following code produces the infobox on the Sebastian page:
{{Infobox Character
| name = Sebastian
| nickname = Seb
| image = Sebastian_Portrait.png
| age = ~28
| race = Mortal
| element = Wind
| occupation = Thief, Adventurer
| weapon = Dagger
| guild_status = Adventurer
| romance = N / A
| residency = Healer's Spare Room (Adventure District)
| birthday = Summer 15
}}
</noinclude>