Template:Infobox Characters: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<div class="character-infobox" id="character-infobox-{{{name|}}}" style="
<div class="infobox floatright" style="
     float: right !important;
     /* Aggressive inline sizing to ensure it does not expand too wide */
    clear: right !important;
     max-width: 300px !important;  
     max-width: 300px !important;  
     width: 100% !important; /* Ensures it takes full width up to max-width */
     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;  
    border: 1px solid var(--theme-border-color) !important;
    border-radius: var(--border-radius-md) !important; /* Use 8px fallback if var fails */
    background-color: var(--gray-050) !important; /* Light background */
    font-size: .9em !important;
">
">


     <div class="character-header" style="
     <div class="pi-title" style="
         background: var(--brown-300) !important;  
         background: #e7c361 !important; /* Forced background color (from your provided CSS) */
         color: var(--theme-accent-label-color) !important;  
        color: black !important; /* Text color for contrast */
         padding: 8px 10px !important;  
         padding: 5px !important;
         border-radius: 8px 8px 0 0 !important; /* Hardcode fallback */
        text-align: center !important;
         text-align: center !important;  
         font-weight: bold !important;
         font-weight: 700 !important;
         font-size: 1.5em !important;
         border-top-left-radius: 10px !important;
         border-top-right-radius: 10px !important;
     ">
     ">
         <div class="character-title" style="font-size: 1.5em !important; margin: 0 !important;">
         {{{name|Unknown Character}}}
            {{{name|Unknown Character}}}
        </div>
     </div>
     </div>
      
      
     {{#if: {{{image|}}} |
     {{#if: {{{image|}}} |
     <div class="character-image" style="padding: 10px !important; text-align: center !important;">
     <div class="infobox-image" style="padding: 10px !important; text-align: center !important;">
         [[File:{{{image|}}}|300px|alt={{{name|}}}]]
         [[File:{{{image|}}}|280px|alt={{{name|}}}]]
     </div>
     </div>
     }}
     }}
      
      
     <div class="character-section">
     <table class="wikitable infobox-table" style="
         <div class="section-title" style="
        background-color: transparent !important;
             font-size: 1.1em !important;  
        border: none !important;
             font-weight: 600 !important;
        width: 100% !important;
             padding: 5px 10px !important;
        margin: 0 !important;
             margin-top: 10px !important;
    ">
             margin-bottom: 5px !important;
         <caption style="
             border-bottom: 1px solid var(--theme-border-color--subtle) !important;
            text-align: center !important;
         ">Quick Facts</div>
             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>
        }}
          
          
         <div class="data-group" style="padding: 0 10px 10px 10px !important;">
         {{#if: {{{age|}}} |  
           
        <tr>
            {{#if: {{{nickname|}}} |  
            <th style="text-align: left !important; font-weight: 500 !important; background-color: transparent !important;">Age:</th>
            <div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 5px 0 !important; border-bottom: 1px dotted var(--gray-300) !important;">
             <td style="text-align: right !important; background-color: transparent !important;">{{{age|}}}</td>
                <span class="data-label" style="font-weight: 500 !important; color: var(--gray-700) !important;">Nickname:</span>
        </tr>
                <span class="data-value" style="padding-left: 10px !important;">{{{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 var(--gray-300) !important;">
                <span class="data-label" style="font-weight: 500 !important; color: var(--gray-700) !important;">Age:</span>
                <span class="data-value" style="padding-left: 10px !important;">{{{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 var(--gray-300) !important;">
                <span class="data-label" style="font-weight: 500 !important; color: var(--gray-700) !important;">Race:</span>
                <span class="data-value" style="padding-left: 10px !important;">{{{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 var(--gray-300) !important;">
                <span class="data-label" style="font-weight: 500 !important; color: var(--gray-700) !important;">Element:</span>
                <span class="data-value" style="padding-left: 10px !important;">{{{element|}}}</span>
            </div>  
            }}


            {{#if: {{{weapon|}}} |  
        {{#if: {{{race|}}} |  
             <div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 5px 0 !important; border-bottom: 1px dotted var(--gray-300) !important;">
        <tr>
                <span class="data-label" style="font-weight: 500 !important; color: var(--gray-700) !important;">Weapon:</span>  
             <th style="text-align: left !important; font-weight: 500 !important; background-color: transparent !important;">Race:</th>
                <span class="data-value" style="padding-left: 10px !important;">{{{weapon|}}}</span>
            <td style="text-align: right !important; background-color: transparent !important;">{{{race|}}}</td>
            </div>  
        </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: {{{guild_status|}}} |  
        {{#if: {{{weapon|}}} |  
             <div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 5px 0 !important; border-bottom: 1px dotted var(--gray-300) !important;">
        <tr>
                <span class="data-label" style="font-weight: 500 !important; color: var(--gray-700) !important;">Guild Status:</span>  
             <th style="text-align: left !important; font-weight: 500 !important; background-color: transparent !important;">Weapon:</th>
                <span class="data-value" style="padding-left: 10px !important;">{{{guild_status|}}}</span>
            <td style="text-align: right !important; background-color: transparent !important;">{{{weapon|}}}</td>
            </div>  
        </tr>
            }}
        }}


            {{#if: {{{birthday|}}} |  
        {{#if: {{{guild_status|}}} |  
             <div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 5px 0 !important; border-bottom: 1px dotted var(--gray-300) !important;">
        <tr>
                <span class="data-label" style="font-weight: 500 !important; color: var(--gray-700) !important;">Birthday:</span>  
             <th style="text-align: left !important; font-weight: 500 !important; background-color: transparent !important;">Guild Status:</th>
                <span class="data-value" style="padding-left: 10px !important;">{{{birthday|}}}</span>
            <td style="text-align: right !important; background-color: transparent !important;">{{{guild_status|}}}</td>
            </div>  
        </tr>
            }}
        }}


            {{#if: {{{romance|}}} |  
        {{#if: {{{birthday|}}} |  
             <div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 5px 0 !important; border-bottom: 1px dotted var(--gray-300) !important;">
        <tr>
                <span class="data-label" style="font-weight: 500 !important; color: var(--gray-700) !important;">Romance:</span>  
             <th style="text-align: left !important; font-weight: 500 !important; background-color: transparent !important;">Birthday:</th>
                <span class="data-value" style="padding-left: 10px !important;">{{{romance|}}}</span>
            <td style="text-align: right !important; background-color: transparent !important;">{{{birthday|}}}</td>
            </div>  
        </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>
        }}


         </div>
         </tbody>
     </div>
     </table>
   
    {{#if: {{{tabs|}}} |
    <div class="character-tabs" style="display: flex !important; justify-content: space-around !important; padding: 10px !important; background: var(--gray-200) !important; border-top: 1px solid var(--theme-border-color) !important;">
        <button class="tab-button active" data-tab="tab-stats">Stats</button>
        <button class="tab-button" data-tab="tab-abilities">Abilities</button>
        <button class="tab-button" data-tab="tab-strategy">Strategy</button>
        <button class="tab-button" data-tab="tab-lore">Lore</button>
    </div>
    }}
      
      
</div>
</div>

Revision as of 08:22, 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>