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="infobox | <div class="character-infobox" id="character-infobox-{{{name|}}}" style=" | ||
float: right !important; | |||
clear: right !important; | |||
max-width: 300px !important; | max-width: 300px !important; | ||
width: 100% !important; | width: 100% !important; | ||
margin: 0 0 16px 16px !important; | margin: 0 0 16px 16px !important; | ||
border: 1px solid #e7c361 !important; | |||
border-radius: 10px !important; | |||
background-color: rgba(255, 255, 255, 0.9) !important; | |||
font-size: 0.875em !important; | |||
font-family: Fredoka, sans-serif !important; | |||
box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important; | |||
"> | "> | ||
<div class=" | <div class="character-header" style=" | ||
background: #e7c361 !important; | background: #e7c361 !important; | ||
color: | color: #202122 !important; | ||
padding: | padding: 8px 10px !important; | ||
text-align: center !important; | border-radius: 10px 10px 0 0 !important; | ||
font-weight: | text-align: center !important; | ||
font-size: | font-weight: 700 !important; | ||
font-size: 0.875em !important; | |||
line-height: 1.6 !important; | |||
"> | "> | ||
{{{name|Unknown Character}}} | <div class="character-title" style="font-size: 1.5em !important; margin: 0 !important; color: #202122 !important;"> | ||
{{{name|Unknown Character}}} | |||
</div> | |||
</div> | </div> | ||
{{#if: {{{image|}}} | | {{#if: {{{image|}}} | | ||
<div class=" | <div class="character-image" style="padding: 10px !important; text-align: center !important; background: #f8f9fa !important;"> | ||
[[File:{{{image|}}}| | [[File:{{{image|}}}|300px|alt={{{name|}}}]] | ||
</div> | </div> | ||
}} | }} | ||
< | <div class="character-section"> | ||
<div class="section-title" style=" | |||
font-size: 1.1em !important; | |||
font-weight: 600 !important; | |||
padding: 5px 10px !important; | |||
margin-top: 10px !important; | |||
margin-bottom: 5px !important; | |||
border-bottom: 1px solid #a2a9b1 !important; | |||
font-weight: | color: #202122 !important; | ||
background: rgba(231, 195, 97, 0.1) !important; | |||
padding: 5px | ">Quick Facts</div> | ||
{{#if: {{{ | <div class="data-group" style="padding: 0 10px 10px 10px !important;"> | ||
{{#if: {{{nickname|}}} | | |||
< | <div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 5px 0 !important; border-bottom: 1px dotted #c8ccd1 !important;"> | ||
<span class="data-label" style="font-weight: 500 !important; color: #54595d !important; flex: 1;">Nickname:</span> | |||
<span class="data-value" style="padding-left: 10px !important; text-align: right; flex: 1;">{{{nickname|}}}</span> | |||
</div> | |||
}} | |||
{{#if: {{{age|}}} | | |||
<div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 5px 0 !important; border-bottom: 1px dotted #c8ccd1 !important;"> | |||
<span class="data-label" style="font-weight: 500 !important; color: #54595d !important; flex: 1;">Age:</span> | |||
<span class="data-value" style="padding-left: 10px !important; text-align: right; flex: 1;">{{{age|}}}</span> | |||
</div> | |||
}} | |||
{{#if: {{{race|}}} | | |||
<div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 5px 0 !important; border-bottom: 1px dotted #c8ccd1 !important;"> | |||
<span class="data-label" style="font-weight: 500 !important; color: #54595d !important; flex: 1;">Race:</span> | |||
<span class="data-value" style="padding-left: 10px !important; text-align: right; flex: 1;">{{{race|}}}</span> | |||
</div> | |||
}} | |||
{{#if: {{{element|}}} | | |||
<div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 5px 0 !important; border-bottom: 1px dotted #c8ccd1 !important;"> | |||
<span class="data-label" style="font-weight: 500 !important; color: #54595d !important; flex: 1;">Element:</span> | |||
<span class="data-value" style="padding-left: 10px !important; text-align: right; flex: 1;">{{{element|}}}</span> | |||
</div> | |||
}} | |||
{{#if: {{{weapon|}}} | | |||
<div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 5px 0 !important; border-bottom: 1px dotted #c8ccd1 !important;"> | |||
< | <span class="data-label" style="font-weight: 500 !important; color: #54595d !important; flex: 1;">Weapon:</span> | ||
<span class="data-value" style="padding-left: 10px !important; text-align: right; flex: 1;">{{{weapon|}}}</span> | |||
</div> | |||
}} | |||
{{#if: {{{guild_status|}}} | | |||
<div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 5px 0 !important; border-bottom: 1px dotted #c8ccd1 !important;"> | |||
< | <span class="data-label" style="font-weight: 500 !important; color: #54595d !important; flex: 1;">Guild Status:</span> | ||
<span class="data-value" style="padding-left: 10px !important; text-align: right; flex: 1;">{{{guild_status|}}}</span> | |||
</div> | |||
}} | |||
{{#if: {{{birthday|}}} | | |||
<div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 5px 0 !important; border-bottom: 1px dotted #c8ccd1 !important;"> | |||
< | <span class="data-label" style="font-weight: 500 !important; color: #54595d !important; flex: 1;">Birthday:</span> | ||
<span class="data-value" style="padding-left: 10px !important; text-align: right; flex: 1;">{{{birthday|}}}</span> | |||
</div> | |||
}} | |||
{{#if: {{{romance|}}} | | |||
<div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 5px 0 !important; border-bottom: 1px dotted #c8ccd1 !important;"> | |||
< | <span class="data-label" style="font-weight: 500 !important; color: #54595d !important; flex: 1;">Romance:</span> | ||
<span class="data-value" style="padding-left: 10px !important; text-align: right; flex: 1;">{{{romance|}}}</span> | |||
</div> | |||
}} | |||
</ | </div> | ||
</ | </div> | ||
{{#if: {{{tabs|}}} | | |||
<div class="character-tabs" style="display: flex !important; justify-content: space-around !important; padding: 10px !important; background: #eaecf0 !important; border-top: 1px solid #a2a9b1 !important; border-radius: 0 0 10px 10px !important;"> | |||
<button class="tab-button active" data-tab="tab-stats" style=" | |||
background-color: #e7c361 !important; | |||
color: #202122 !important; | |||
border: 1px solid #e7c361 !important; | |||
border-radius: 2px !important; | |||
padding: 5px 10px !important; | |||
font-family: inherit !important; | |||
font-size: 0.8125em !important; | |||
font-weight: bold !important; | |||
cursor: pointer !important; | |||
transition: background-color 100ms !important; | |||
">Stats</button> | |||
<button class="tab-button" data-tab="tab-abilities" style=" | |||
background-color: #f8f9fa !important; | |||
color: #202122 !important; | |||
border: 1px solid #a2a9b1 !important; | |||
border-radius: 2px !important; | |||
padding: 5px 10px !important; | |||
font-family: inherit !important; | |||
font-size: 0.8125em !important; | |||
font-weight: bold !important; | |||
cursor: pointer !important; | |||
transition: background-color 100ms !important; | |||
">Abilities</button> | |||
<button class="tab-button" data-tab="tab-strategy" style=" | |||
background-color: #f8f9fa !important; | |||
color: #202122 !important; | |||
border: 1px solid #a2a9b1 !important; | |||
border-radius: 2px !important; | |||
padding: 5px 10px !important; | |||
font-family: inherit !important; | |||
font-size: 0.8125em !important; | |||
font-weight: bold !important; | |||
cursor: pointer !important; | |||
transition: background-color 100ms !important; | |||
">Strategy</button> | |||
<button class="tab-button" data-tab="tab-lore" style=" | |||
background-color: #f8f9fa !important; | |||
color: #202122 !important; | |||
border: 1px solid #a2a9b1 !important; | |||
border-radius: 2px !important; | |||
padding: 5px 10px !important; | |||
font-family: inherit !important; | |||
font-size: 0.8125em !important; | |||
font-weight: bold !important; | |||
cursor: pointer !important; | |||
transition: background-color 100ms !important; | |||
">Lore</button> | |||
</div> | |||
}} | |||
</div> | </div> | ||
<style> | |||
/* Additional styles for hover effects */ | |||
.character-tabs .tab-button:hover { | |||
background-color: #ffffff !important; | |||
border-color: #72777d !important; | |||
} | |||
.character-tabs .tab-button.active:hover { | |||
background-color: #447ff5 !important; | |||
border-color: #447ff5 !important; | |||
color: #fff !important; | |||
} | |||
</style> | |||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 08:23, 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>