Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Character infobox: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
<templatestyles src="Template:Infobox/styles.css" />
<templatestyles src="Template:Character_infobox/styles.css" />
<table class="infobox">
<div class="infobox-div">
<tbody>
    <div class="infobox-div-title">{{{name|{{PAGENAME}}}}}</div>
<tr><th colspan="2" class="infobox-title">{{{name|{{PAGENAME}}}}}</th></tr>
{{#if: {{{image|}}} |
{{#if: {{{image|}}} |
{{!}}-
    <div class="infobox-div-image">
{{!}} colspan="2" class="infobox-image" {{!}} [[File:{{{image}}}|298px]]
        [[File:{{{image}}}|288px]]
{{#if: {{{caption|}}} |
        {{#if: {{{caption|}}} |
  {{!}}-
            <div class="infobox-div-caption">{{{caption}}}</div>
  {{!}} colspan="2" class="infobox-caption" {{!}} {{{caption}}}
        }}
}}
    </div>
}}
}}
<tr><th colspan="2" class="infobox-header">General Information</th></tr>
<div class="infobox-div-header">General Information</div>
{{Infobox row | label = Race | data = {{{race|}}} }}
{{#if: {{{race|}}} |
{{Infobox row | label = Affiliation | data = {{{affiliation|}}} }}
    <div class="infobox-div-row">
<tr><th colspan="2" class="infobox-header">Physical Description</th></tr>
        <div class="infobox-div-label">Race</div>
{{Infobox row | label = Lifespan | data = {{{lifespan|}}} }}
        <div class="infobox-div-data">{{{race}}}</div>
{{Infobox row | label = Distinctions | data = {{{distinctions|}}} }}
    </div>
{{Infobox row | label = Average Height | data = {{{height|}}} }}
}}
</tbody>
{{#if: {{{affiliation|}}} |
</table><noinclude>
    <div class="infobox-div-row">
        <div class="infobox-div-label">Affiliation</div>
        <div class="infobox-div-data">{{{affiliation}}}</div>
    </div>
}}
{{#if: {{{lifespan|}}} |
    <div class="infobox-div-row">
        <div class="infobox-div-label">Lifespan</div>
        <div class="infobox-div-data">{{{lifespan}}}</div>
    </div>
}}
</div><noinclude>
{{documentation}}
{{documentation}}
<templatedata>
<templatedata>
{
{
    "params": {
"params": {
        "name": { "label": "Name", "type": "line" },
"name": { "label": "Name", "type": "line" },
        "image": { "label": "Image", "type": "wiki-file-name" },
"image": { "label": "Image", "type": "wiki-file-name" },
        "caption": { "label": "Image Caption", "type": "string" },
"caption": { "label": "Image Caption", "type": "string" },
        "race": { "label": "Race", "type": "line" },
"race": { "label": "Race", "type": "line" },
        "affiliation": { "label": "Affiliation", "type": "line" },
"affiliation": { "label": "Affiliation", "type": "line" },
         "lifespan": { "label": "Lifespan", "type": "line" },
         "lifespan": { "label": "Lifespan", "type": "line" }
        "distinctions": { "label": "Distinctions", "type": "line" },
},
        "height": { "label": "Average Height", "type": "line" }
"description": "Creates an information box for characters.",
    },
"format": "block"
    "description": "Creates an information box for characters or races.",
    "format": "block"
}
}
</templatedata>
</templatedata>
[[Category:Infobox templates]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Revision as of 20:31, 12 June 2025

Character infobox
General Information


Template:Documentation <templatedata> { "params": { "name": { "label": "Name", "type": "line" }, "image": { "label": "Image", "type": "wiki-file-name" }, "caption": { "label": "Image Caption", "type": "string" }, "race": { "label": "Race", "type": "line" }, "affiliation": { "label": "Affiliation", "type": "line" },

       "lifespan": { "label": "Lifespan", "type": "line" }

}, "description": "Creates an information box for characters.", "format": "block" } </templatedata>