Template:Character infobox: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<templatestyles src="Template: | <templatestyles src="Template:Character_infobox/styles.css" /> | ||
< | <div class="infobox-div"> | ||
< | <div class="infobox-div-title">{{{name|{{PAGENAME}}}}}</div> | ||
{{#if: {{{image|}}} | | {{#if: {{{image|}}} | | ||
<div class="infobox-div-image"> | |||
[[File:{{{image}}}|288px]] | |||
{{#if: {{{caption|}}} | | |||
<div class="infobox-div-caption">{{{caption}}}</div> | |||
}} | |||
</div> | |||
}} | }} | ||
< | <div class="infobox-div-header">General Information</div> | ||
{{ | {{#if: {{{race|}}} | | ||
{{ | <div class="infobox-div-row"> | ||
< | <div class="infobox-div-label">Race</div> | ||
<div class="infobox-div-data">{{{race}}}</div> | |||
{{ | </div> | ||
}} | |||
</ | {{#if: {{{affiliation|}}} | | ||
</ | <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": { | |||
"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 | "lifespan": { "label": "Lifespan", "type": "line" } | ||
}, | |||
"description": "Creates an information box for characters.", | |||
"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>