Template:Infobox character: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Tag: Reverted
Line 1: Line 1:
<includeonly><infobox>
<noinclude>
<title source="name">
<templatedata>
<format>[[File:Infobox marker left.png|22px|link=]] {{{name}}} [[File:Infobox marker right.png|22px|link=]]</format>
{
<default>[[File:Infobox marker left.png|22px|link=]] {{PAGENAME}} [[File:Infobox marker right.png|22px|link=]]</default>
  "params": {
</title>
     "title": {
<image source="image">
      "label": "Title",
<caption source="caption"/>
      "type": "string",
</image>
      "default": "Infobox"
     <group>
     },
        <header>Bio</header>
     "image": {
        <data source="type"><label>Type</label><format>[[{{{type}}}]]</format></data>
      "label": "Image URL",
        <data source="real_name"><label>Real name</label></data>
      "type": "string"
<data source="gender"><label>Gender</label></data>
    },
<data source="birthday"><label>Birthday</label></data>
    "heart": {
        <data source="occupation"><label>Occupation</label></data>
      "label": "Base Heart",
        <data source="residence"><label>Residence</label><format>[[{{{residence}}}]]</format></data>
      "type": "string"
        <data source="friendship"><label>Friendship</label></data>
    },
        <data source="dateable"><label>Dateable</label></data>
    "damage": {
     </group>
      "label": "Damage",
     <group>
      "type": "string"
        <header>Family</header>
    },
            <data source="spouse">
    "speed": {
                <label>Spouse</label>
      "label": "Speed",
                <format><!--
      "type": "string"
                -->{{#ifeq:{{{spouse}}}|Unnamed|Unnamed|{{Exists|{{{spouse|}}}|[[{{{spouse|}}}]]|{{{spouse|}}}}}}}<!--
    },
-->{{#if:{{{spouse_note|}}}|<nowiki> </nowiki>({{{spouse_note}}})}}<!--
    "shield": {
                -->{{#if:{{{spouse_ref|}}}|{{{spouse_ref|}}}}}<!--
      "label": "Shield",
                --></format>
      "type": "string"
            </data>
    },
            <data source="father">
    "description": {
                <label>Father</label>
      "label": "Description",
                <format><!--
      "type": "string"
                -->{{#ifeq:{{{father}}}|Unnamed|Unnamed|{{Exists|{{{father|}}}|[[{{{father|}}}]]|{{{father|}}}}}}}<!--
    },
-->{{#if:{{{father_note|}}}|<nowiki> </nowiki>({{{father_note}}})}}<!--
    "custom": {
                -->{{#if:{{{father_ref|}}}|{{{father_ref|}}}}}<!--
      "label": "Custom Content",
                --></format>
      "type": "string"
            </data>
    }
            <data source="mother">
  }
                <label>Mother</label>
}
                <format><!--
</templatedata>
                -->{{#ifeq:{{{mother}}}|Unnamed|Unnamed|{{Exists|{{{mother|}}}|[[{{{mother|}}}]]|{{{mother|}}}}}}}<!--
[[Category:Infobox_templates]]
-->{{#if:{{{mother_note|}}}|<nowiki> </nowiki>({{{mother_note}}})}}<!--
[[Category:Templates]]
                -->{{#if:{{{mother_ref|}}}|{{{mother_ref|}}}}}<!--
</noinclude><includeonly>
                --></format>
<div class="infobox-right">
            </data>
<div class="pi-title">{{{title|Infobox}}}</div>
            <data source="sibling">
<div class="infobox-content">
<label>Sibling{{#if:{{{sibling2|}}}|s}}</label>
{{#if: {{{image|}}} | <div class="pi-image">{{{image}}}</div> }}
<format><!--
{{#if: {{{heart|}}} | <div class="pi-data"><strong>Base Heart:</strong> {{{heart}}}</div> }}
-->{{#ifeq:{{{sibling}}}|Unnamed|Unnamed|{{Exists|{{{sibling|}}}|[[{{{sibling|}}}]]|{{{sibling|}}}}}}}<!--
{{#if: {{{damage|}}} | <div class="pi-data"><strong>Damage:</strong> {{{damage}}}</div> }}
-->{{#if:{{{sibling_note|}}}|<nowiki> </nowiki>({{{sibling_note}}})}}<!--
{{#if: {{{speed|}}} | <div class="pi-data"><strong>Speed:</strong> {{{speed}}}</div> }}
-->{{#if:{{{sibling_ref|}}}|{{{sibling_ref|}}}}}<!--
{{#if: {{{shield|}}} | <div class="pi-data"><strong>Shield:</strong> {{{shield}}}</div> }}
-->{{#if:{{{sibling2|}}}|<br /><!--
{{#if: {{{description|}}} | <div class="pi-data"><strong>Description:</strong> {{{description}}}</div> }}
-->{{#ifeq:{{{sibling2}}}|Unnamed|Unnamed|{{Exists|{{{sibling2|}}}|[[{{{sibling2|}}}]]|{{{sibling2|}}}}}}}<!--
{{{custom|}}}
-->{{#if:{{{sibling_note2|}}}|<nowiki> </nowiki>({{{sibling_note2}}})}}<!--
</div>
-->{{#if:{{{sibling_ref2|}}}|{{{sibling_ref2|}}}}}<!--
</div>
-->}}<!--
</includeonly>
-->{{#if:{{{sibling3|}}}|<br /><!--
-->{{#ifeq:{{{sibling3}}}|Unnamed|Unnamed|{{Exists|{{{sibling3|}}}|[[{{{sibling3|}}}]]|{{{sibling3|}}}}}}}<!--
-->{{#if:{{{sibling_note3|}}}|<nowiki> </nowiki>({{{sibling_note3}}})}}<!--
-->{{#if:{{{sibling_ref3|}}}|{{{sibling_ref3|}}}}}<!--
-->}}<!--
-->{{#if:{{{sibling4|}}}|<br /><!--
-->{{#ifeq:{{{sibling4}}}|Unnamed|Unnamed|{{Exists|{{{sibling4|}}}|[[{{{sibling4|}}}]]|{{{sibling4|}}}}}}}<!--
-->{{#if:{{{sibling_note4|}}}|<nowiki> </nowiki>({{{sibling_note4}}})}}<!--
-->{{#if:{{{sibling_ref4|}}}|{{{sibling_ref4|}}}}}<!--
-->}}<!--
-->{{#if:{{{sibling5|}}}|<br /><!--
-->{{#ifeq:{{{sibling5}}}|Unnamed|Unnamed|{{Exists|{{{sibling5|}}}|[[{{{sibling5|}}}]]|{{{sibling5|}}}}}}}<!--
-->{{#if:{{{sibling_note5|}}}|<nowiki> </nowiki>({{{sibling_note5}}})}}<!--
-->{{#if:{{{sibling_ref5|}}}|{{{sibling_ref5|}}}}}<!--
-->}}<!--
--></format>
</data>
            <data source="child">
                <label>Child{{#if:{{{child2|}}}|ren}}</label>
                <format><!--
                -->{{#ifeq:{{{child}}}|Unnamed|Unnamed|{{Exists|{{{child|}}}|[[{{{child|}}}]]|{{{child|}}}}}}}<!--
                -->{{#if:{{{child_note|}}}|<nowiki> </nowiki>({{{child_note}}})}}<!--
                -->{{#if:{{{child_ref|}}}|{{{child_ref|}}}}}<!--
                -->{{#if:{{{child2|}}}|<br /><!--
                    -->{{#ifeq:{{{child2}}}|Unnamed|Unnamed|{{Exists|{{{child2|}}}|[[{{{child2|}}}]]|{{{child2|}}}}}}}<!--
                    -->{{#if:{{{child_note2|}}}|<nowiki> </nowiki>({{{child_note2}}})}}<!--
                    -->{{#if:{{{child_ref2|}}}|{{{child_ref2|}}}}}<!--
                -->}}<!--
                -->{{#if:{{{child3|}}}|<br /><!--
                    -->{{#ifeq:{{{child3}}}|Unnamed|Unnamed|{{Exists|{{{child3|}}}|[[{{{child3|}}}]]|{{{child3|}}}}}}}<!--
                    -->{{#if:{{{child_note3|}}}|<nowiki> </nowiki>({{{child_note3}}})}}<!--
                    -->{{#if:{{{child_ref3|}}}|{{{child_ref3|}}}}}<!--
                -->}}<!--
                -->{{#if:{{{child4|}}}|<br /><!--
                    -->{{#ifeq:{{{child4}}}|Unnamed|Unnamed|{{Exists|{{{child4|}}}|[[{{{child4|}}}]]|{{{child4|}}}}}}}<!--
                    -->{{#if:{{{child_note4|}}}|<nowiki> </nowiki>({{{child_note4}}})}}<!--
                    -->{{#if:{{{child_ref4|}}}|{{{child_ref4|}}}}}<!--
                -->}}<!--
                -->{{#if:{{{child5|}}}|<br /><!--
                    -->{{#ifeq:{{{child5}}}|Unnamed|Unnamed|{{Exists|{{{child5|}}}|[[{{{child5|}}}]]|{{{child5|}}}}}}}<!--
                    -->{{#if:{{{child_note5|}}}|<nowiki> </nowiki>({{{child_note5}}})}}<!--
                    -->{{#if:{{{child_ref5|}}}|{{{child_ref5|}}}}}<!--
                -->}}<!--
                --></format>
            </data>
            <data source="relative">
<label>Relative{{#if:{{{relative2|}}}|s}}</label>
<format><!--
-->{{#ifeq:{{{relative}}}|Unnamed|Unnamed|{{Exists|{{{relative|}}}|[[{{{relative|}}}]]|{{{relative|}}}}}}}<!--
-->{{#if:{{{relative_note|}}}|<nowiki> </nowiki>({{{relative_note}}})}}<!--
-->{{#if:{{{relative_ref|}}}|{{{relative_ref|}}}}}<!--
-->{{#if:{{{relative2|}}}|<br /><!--
-->{{#ifeq:{{{relative2}}}|Unnamed|Unnamed|{{Exists|{{{relative2|}}}|[[{{{relative2|}}}]]|{{{relative2|}}}}}}}<!--
-->{{#if:{{{relative_note2|}}}|<nowiki> </nowiki>({{{relative_note2}}})}}<!--
-->{{#if:{{{relative_ref2|}}}|{{{relative_ref2|}}}}}<!--
-->}}<!--
-->{{#if:{{{relative3|}}}|<br /><!--
-->{{#ifeq:{{{relative3}}}|Unnamed|Unnamed|{{Exists|{{{relative3|}}}|[[{{{relative3|}}}]]|{{{relative3|}}}}}}}<!--
-->{{#if:{{{relative_note3|}}}|<nowiki> </nowiki>({{{relative_note3}}})}}<!--
-->{{#if:{{{relative_ref3|}}}|{{{relative_ref3|}}}}}<!--
-->}}<!--
-->{{#if:{{{relative4|}}}|<br /><!--
-->{{#ifeq:{{{relative4}}}|Unnamed|Unnamed|{{Exists|{{{relative4|}}}|[[{{{relative4|}}}]]|{{{relative4|}}}}}}}<!--
-->{{#if:{{{relative_note4|}}}|<nowiki> </nowiki>({{{relative_note4}}})}}<!--
-->{{#if:{{{relative_ref4|}}}|{{{relative_ref4|}}}}}<!--
-->}}<!--
-->{{#if:{{{relative5|}}}|<br /><!--
-->{{#ifeq:{{{relative5}}}|Unnamed|Unnamed|{{Exists|{{{relative5|}}}|[[{{{relative5|}}}]]|{{{relative5|}}}}}}}<!--
-->{{#if:{{{relative_note5|}}}|<nowiki> </nowiki>({{{relative_note5}}})}}<!--
-->{{#if:{{{relative_ref5|}}}|{{{relative_ref5|}}}}}<!--
-->}}<!--
--></format>
</data>
    </group>
</infobox><!--
-->{{Namespace|main=<!--
--><!--{{DISPLAYTITLE:{{#if:{{{name|}}}|{{{name|}}}|{{#replace:{{PAGENAME}}|(character)|}}}}|noreplace}}--><!--
-->[[Category:Characters]]<!--
-->{{#if:{{{residence|}}}|[[Category:Lives at {{{residence}}}]]}}<!--
-->{{#ifeq:{{{friendship|}}}|Yes|[[Category:Characters with friendship]]|[[Category:Characters without friendship]]}}<!--
-->{{#ifeq:{{{dateable|}}}|Yes|[[Category:Dateable characters]]}}<!--
-->{{#if:{{{gender|}}}|[[Category:{{{gender}}} characters]]|[[Category:Unknown gender characters]]}}<!--
-->{{#if:{{{type|}}}|[[Category:{{{type}}} characters]]}}<!--
-->}}
</includeonly><noinclude>{{Documentation|type=Infobox}}<noinclude>

Revision as of 22:30, 17 November 2025

No description.

Template parameters

ParameterDescriptionTypeStatus
Titletitle

no description

Default
Infobox
Stringoptional
Image URLimage

no description

Stringoptional
Base Heartheart

no description

Stringoptional
Damagedamage

no description

Stringoptional
Speedspeed

no description

Stringoptional
Shieldshield

no description

Stringoptional
Descriptiondescription

no description

Stringoptional
Custom Contentcustom

no description

Stringoptional