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="infobox floatright" style="
<div class="character-infobox" id="character-infobox-{{{name|}}}" style="
     /* Aggressive inline sizing to ensure it does not expand too wide */
     float: right !important;
    clear: right !important;
     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;  
    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="pi-title" style="
     <div class="character-header" style="
         background: #e7c361 !important; /* Forced background color (from your provided CSS) */
         background: #e7c361 !important;  
         color: black !important; /* Text color for contrast */
         color: #202122 !important;  
         padding: 5px !important;
         padding: 8px 10px !important;
         text-align: center !important;
        border-radius: 10px 10px 0 0 !important;
         font-weight: bold !important;
         text-align: center !important;  
         font-size: 1.5em !important;
         font-weight: 700 !important;
        border-top-left-radius: 10px !important;
         font-size: 0.875em !important;
         border-top-right-radius: 10px !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="infobox-image" style="padding: 10px !important; text-align: center !important;">
     <div class="character-image" style="padding: 10px !important; text-align: center !important; background: #f8f9fa !important;">
         [[File:{{{image|}}}|280px|alt={{{name|}}}]]
         [[File:{{{image|}}}|300px|alt={{{name|}}}]]
     </div>
     </div>
     }}
     }}
      
      
     <table class="wikitable infobox-table" style="
     <div class="character-section">
        background-color: transparent !important;
        <div class="section-title" style="
        border: none !important;
             font-size: 1.1em !important;  
        width: 100% !important;
             font-weight: 600 !important;
        margin: 0 !important;
             padding: 5px 10px !important;
    ">
             margin-top: 10px !important;
        <caption style="
             margin-bottom: 5px !important;
             text-align: center !important;
            border-bottom: 1px solid #a2a9b1 !important;
             font-weight: bold !important;
            color: #202122 !important;
            font-size: 1.2em !important;
             background: rgba(231, 195, 97, 0.1) !important;
             padding: 5px 0 !important;
        ">Quick Facts</div>
             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|}}} |  
         <div class="data-group" style="padding: 0 10px 10px 10px !important;">
        <tr>
           
            <th style="text-align: left !important; font-weight: 500 !important; background-color: transparent !important;">Age:</th>
            {{#if: {{{nickname|}}} |  
             <td style="text-align: right !important; background-color: transparent !important;">{{{age|}}}</td>
            <div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 5px 0 !important; border-bottom: 1px dotted #c8ccd1 !important;">
        </tr>
                <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: {{{race|}}} |  
            {{#if: {{{weapon|}}} |  
        <tr>
             <div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 5px 0 !important; border-bottom: 1px dotted #c8ccd1 !important;">
             <th style="text-align: left !important; font-weight: 500 !important; background-color: transparent !important;">Race:</th>
                <span class="data-label" style="font-weight: 500 !important; color: #54595d !important; flex: 1;">Weapon:</span>  
            <td style="text-align: right !important; background-color: transparent !important;">{{{race|}}}</td>
                <span class="data-value" style="padding-left: 10px !important; text-align: right; flex: 1;">{{{weapon|}}}</span>
        </tr>
            </div>  
        }}
            }}
       
        {{#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|}}} |  
            {{#if: {{{guild_status|}}} |  
        <tr>
             <div class="data-row" style="display: flex !important; justify-content: space-between !important; padding: 5px 0 !important; border-bottom: 1px dotted #c8ccd1 !important;">
             <th style="text-align: left !important; font-weight: 500 !important; background-color: transparent !important;">Weapon:</th>
                <span class="data-label" style="font-weight: 500 !important; color: #54595d !important; flex: 1;">Guild Status:</span>  
            <td style="text-align: right !important; background-color: transparent !important;">{{{weapon|}}}</td>
                <span class="data-value" style="padding-left: 10px !important; text-align: right; flex: 1;">{{{guild_status|}}}</span>
        </tr>
            </div>  
        }}
            }}


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


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


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>