Template:Infobox Character: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
(Created page with "<noinclude> <templatedata> { "params": { "title": { "label": "Title", "type": "string", "default": "Infobox" }, "image": { "label": "Image URL", "type": "string" }, "heart": { "label": "Base Heart", "type": "string" }, "damage": { "label": "Damage", "type": "string" }, "speed": { "label": "Speed", "type": "string" }, "shield": { "label": "Shield", "...")
 
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
<templatedata>
{{Documentation}}
{
</noinclude>
  "params": {
<includeonly>
    "title": {
<div class="game-info-box">
      "label": "Title",
     <div class="game-info-header">Game Information</div>
      "type": "string",
      
      "default": "Infobox"
     {{#if:{{{Manabreak|}}}|<div class="game-info-row">
    },
        <span class="game-info-label">Manabreak:</span>
    "image": {
        <span class="game-info-value">{{{Manabreak}}}</span>
      "label": "Image URL",
    </div>}}
      "type": "string"
   
     },
    {{#if:{{{Stairway Games|}}}|<div class="game-info-row">
    "heart": {
        <span class="game-info-label">Stairway Games:</span>
      "label": "Base Heart",
        <span class="game-info-value">{{{Stairway Games}}}</span>
      "type": "string"
    </div>}}
     },
   
     "damage": {
    {{#if:{{{Stairway Games|}}}|<div class="game-info-row">
      "label": "Damage",
        <span class="game-info-label">Stairway Games:</span>
      "type": "string"
        <span class="game-info-value">{{{Stairway Games}}}</span>
    },
    </div>}}
    "speed": {
   
      "label": "Speed",
    {{#if:{{{TBA|}}}|<div class="game-info-row">
      "type": "string"
        <span class="game-info-label">TBA:</span>
    },
        <span class="game-info-value">{{{TBA}}}</span>
    "shield": {
    </div>}}
      "label": "Shield",
   
      "type": "string"
    {{#if:{{{RPG|}}}|<div class="game-info-row">
    },
        <span class="game-info-label">RPG:</span>
    "description": {
        <span class="game-info-value">
      "label": "Description",
            {{#arraymap:{{{RPG|}}}|,|x|<span class="game-info-genre">{{x}}</span>}}
      "type": "string"
        </span>
    },
    </div>}}
    "custom": {
   
      "label": "Custom Content",
    {{#if:{{{Windows|}}}|<div class="game-info-row">
      "type": "string"
        <span class="game-info-label">Windows:</span>
    }
        <span class="game-info-value">{{{Windows}}</span>
  }
    </div>}}
}
   
</templatedata>
    {{#if:{{{rating|}}}|<div class="game-info-row">
[[Category:Infobox_templates]]
        <span class="game-info-label">Rating:</span>
[[Category:Templates]]
        <span class="game-info-value game-info-rating">{{{rating}}}/10</span>
</noinclude><includeonly>
    </div>}}
<div class="infobox-right">
<div class="pi-title">{{{title|Infobox}}}</div>
<div class="infobox-content">
{{#if: {{{image|}}} | <div class="pi-image">{{{image}}}</div> }}
{{#if: {{{heart|}}} | <div class="pi-data"><strong>Base Heart:</strong> {{{heart}}}</div> }}
{{#if: {{{damage|}}} | <div class="pi-data"><strong>Damage:</strong> {{{damage}}}</div> }}
{{#if: {{{speed|}}} | <div class="pi-data"><strong>Speed:</strong> {{{speed}}}</div> }}
{{#if: {{{shield|}}} | <div class="pi-data"><strong>Shield:</strong> {{{shield}}}</div> }}
{{#if: {{{description|}}} | <div class="pi-data"><strong>Description:</strong> {{{description}}}</div> }}
{{{custom|}}}
</div>
</div>
</div>
</includeonly>
</includeonly>

Revision as of 08:43, 8 December 2025

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