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
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#invoke:InfoboxCharacter|infobox
<div class="infobox floatright" style="
| name = {{{name|}}}
    /* Aggressive inline sizing to ensure it does not expand too wide */
| nickname = {{{nickname|}}}
    max-width: 300px !important;
| image = {{{image|}}}
    width: 100% !important;
| age = {{{age|}}}
    /* Optional: margin override if the default 'floatright' margin is wrong */
| race = {{{race|}}}
    margin: 0 0 16px 16px !important;
| element = {{{element|}}}
">
| occupation = {{{occupation|}}}
 
| weapon = {{{weapon|}}}
    <div class="pi-title" style="
| guild_status = {{{guild_status|}}}
        background: #e7c361 !important; /* Forced background color (from your provided CSS) */
| romance = {{{romance|}}}
        color: black !important; /* Text color for contrast */
| residency = {{{residency|}}}
        padding: 5px !important;
| birthday = {{{birthday|}}}
        text-align: center !important;
| voice_style = {{{voice_style|}}}
        font-weight: bold !important;
}}</includeonly><noinclude>
        font-size: 1.5em !important;
        border-top-left-radius: 10px !important;
        border-top-right-radius: 10px !important;
    ">
        {{{name|Unknown Character}}}
    </div>
   
    {{#if: {{{image|}}} |
    <div class="infobox-image" style="padding: 10px !important; text-align: center !important;">
        [[File:{{{image|}}}|280px|alt={{{name|}}}]]
    </div>
    }}
   
    <table class="wikitable infobox-table" style="
        background-color: transparent !important;
        border: none !important;
        width: 100% !important;
        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>
</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>