Template:Infobox Characters: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
mNo edit summary
m (Replaced content with "<includeonly>{{#invoke:InfoboxCharacter|infobox | name = {{{name|}}} | nickname = {{{nickname|}}} | image = {{{image|}}} | age = {{{age|}}} | race = {{{race|}}} | element = {{{element|}}} | occupation = {{{occupation|}}} | weapon = {{{weapon|}}} | guild_status = {{{guild_status|}}} | romance = {{{romance|}}} | residency = {{{residency|}}} | birthday = {{{birthday|}}} | voice_style = {{{voice_style|}}} }}</includeonly><noinclude> {{Documentation}} </noinclude>")
Tag: Replaced
 
Line 1: Line 1:
<includeonly>
<includeonly>{{#invoke:InfoboxCharacter|infobox
<div class="character-infobox" style="
| name = {{{name|}}}
    float: right !important;
| nickname = {{{nickname|}}}
    clear: right !important;
| image = {{{image|}}}
    max-width: 300px !important;
| age = {{{age|}}}
    width: 100% !important;
| race = {{{race|}}}
    margin: 0 0 16px 16px !important;
| element = {{{element|}}}
    border: 1px solid #E4B17F !important; /* --brown-300 */
| occupation = {{{occupation|}}}
    border-radius: 8px !important;
| weapon = {{{weapon|}}}
    background-color: #F6F6F6 !important; /* --gray-050 */
| guild_status = {{{guild_status|}}}
    font-size: .9em !important;
| romance = {{{romance|}}}
    font-family: Helvetica, Arial, sans-serif !important;
| residency = {{{residency|}}}
    box-shadow: 0 2px 5px rgba(0,0,0,0.08) !important;
| birthday = {{{birthday|}}}
">
| voice_style = {{{voice_style|}}}
 
}}</includeonly><noinclude>
    <div class="character-header" style="
        background: #E4B17F !important; /* --brown-300 */
        color: #000 !important;
        padding: 8px 10px !important;
        border-radius: 8px 8px 0 0 !important;
        text-align: center !important;
        font-weight: 700 !important;
    ">
        <div class="character-title" style="font-size: 1.5em !important; margin: 0 !important;">
            {{{name|Unknown Character}}}
        </div>
    </div>
   
    {{#if: {{{image|}}} |
    <div class="character-image" style="padding: 10px !important; text-align: center !important; background: #F6F6F6 !important;">
        [[File:{{{image|}}}|300px|alt={{{name|}}}]]
    </div>
    }}
   
    <div class="character-section">
        <div class="section-title" style="
            font-size: 1.1em !important;
            font-weight: 600 !important;
            padding: 8px 10px !important;
            margin: 0 !important;
            border-bottom: 1px solid #E9E5E5 !important; /* --gray-100 */
            color: #31302F !important; /* --gray-700 */
            background: #F6F6F6 !important; /* --gray-050 */
        ">Quick Facts</div>
       
        <div class="data-group" style="padding: 0 10px 10px 10px !important; background: #fff !important;">
           
            {{#if: {{{nickname|}}} |  
            <div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 6px 0 !important; border-bottom: 1px dotted #C7C4C4 !important; /* --gray-200 */">
                <span class="data-label" style="font-weight: 500 !important; color: #545353 !important; /* --gray-500 */ flex: 1;">Nickname:</span>
                <span class="data-value" style="text-align: right; flex: 1; font-weight: 500;">{{{nickname|}}}</span>
            </div>
            }}
           
            {{#if: {{{age|}}} |
            <div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 6px 0 !important; border-bottom: 1px dotted #C7C4C4 !important;">
                <span class="data-label" style="font-weight: 500 !important; color: #545353 !important; flex: 1;">Age:</span>
                <span class="data-value" style="text-align: right; flex: 1; font-weight: 500;">{{{age|}}}</span>
            </div>
            }}
           
            {{#if: {{{race|}}} |
            <div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 6px 0 !important; border-bottom: 1px dotted #C7C4C4 !important;">
                <span class="data-label" style="font-weight: 500 !important; color: #545353 !important; flex: 1;">Race:</span>
                <span class="data-value" style="text-align: right; flex: 1; font-weight: 500;">{{{race|}}}</span>
            </div>
            }}
           
            {{#if: {{{element|}}} |  
            <div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 6px 0 !important; border-bottom: 1px dotted #C7C4C4 !important;">
                <span class="data-label" style="font-weight: 500 !important; color: #545353 !important; flex: 1;">Element:</span>
                <span class="data-value" style="text-align: right; flex: 1; font-weight: 500;">{{{element|}}}</span>
            </div>
            }}
 
            {{#if: {{{weapon|}}} |
            <div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 6px 0 !important; border-bottom: 1px dotted #C7C4C4 !important;">
                <span class="data-label" style="font-weight: 500 !important; color: #545353 !important; flex: 1;">Weapon:</span>
                <span class="data-value" style="text-align: right; flex: 1; font-weight: 500;">{{{weapon|}}}</span>
            </div>
            }}
 
            {{#if: {{{guild_status|}}} |  
            <div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 6px 0 !important; border-bottom: 1px dotted #C7C4C4 !important;">
                <span class="data-label" style="font-weight: 500 !important; color: #545353 !important; flex: 1;">Guild Status:</span>
                <span class="data-value" style="text-align: right; flex: 1; font-weight: 500;">{{{guild_status|}}}</span>
            </div>
            }}
 
            {{#if: {{{birthday|}}} |  
            <div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 6px 0 !important; border-bottom: 1px dotted #C7C4C4 !important;">
                <span class="data-label" style="font-weight: 500 !important; color: #545353 !important; flex: 1;">Birthday:</span>
                <span class="data-value" style="text-align: right; flex: 1; font-weight: 500;">{{{birthday|}}}</span>
            </div>
            }}
 
            {{#if: {{{romance|}}} |  
            <div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 6px 0 !important; border-bottom: 1px dotted #C7C4C4 !important;">
                <span class="data-label" style="font-weight: 500 !important; color: #545353 !important; flex: 1;">Romance:</span>
                <span class="data-value" style="text-align: right; flex: 1; font-weight: 500;">{{{romance|}}}</span>
            </div>
            }}
 
        </div>
    </div>
   
    {{#if: {{{tabs|}}} |
    <div class="character-tabs" style="
        display: flex !important;
        justify-content: space-around !important;
        padding: 8px !important;
        background: #E9E5E5 !important; /* --gray-100 */
        border-top: 1px solid #E4B17F !important;
        border-radius: 0 0 8px 8px !important;
    ">
        <button class="tab-button active" data-tab="tab-stats" style="
            background-color: #E4B17F !important; /* --brown-300 */
            color: #000 !important;
            border: 1px solid #E4B17F !important;
            border-radius: 4px !important;
            padding: 6px 12px !important;
            font-family: inherit !important;
            font-size: 0.85em !important;
            font-weight: bold !important;
            cursor: pointer !important;
        ">Stats</button>
        <button class="tab-button" data-tab="tab-abilities" style="
            background-color: #F6F6F6 !important; /* --gray-050 */
            color: #545353 !important; /* --gray-500 */
            border: 1px solid #C7C4C4 !important; /* --gray-200 */
            border-radius: 4px !important;
            padding: 6px 12px !important;
            font-family: inherit !important;
            font-size: 0.85em !important;
            font-weight: bold !important;
            cursor: pointer !important;
        ">Abilities</button>
    </div>
    }}
   
</div>
</includeonly>
<noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 08:44, 15 December 2025

Documentation icon Template documentation
Note: parts of or the entire template might not be visible without values provided.

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>