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:Infobox/styles.css" /> | ||
<table class="infobox"> | |||
<tbody> | |||
<tr><th colspan="2" class="infobox-title">{{{name|{{PAGENAME}}}}}</th></tr> | |||
{{#if: {{{image|}}} | | {{#if: {{{image|}}} | | ||
{{!}}- | |||
{{!}} colspan="2" class="infobox-image" {{!}} [[File:{{{image}}}|298px]] | |||
{{#if: {{{caption|}}} | | {{#if: {{{caption|}}} | | ||
{{!}}- | |||
{{!}} colspan="2" class="infobox-caption" {{!}} {{{caption}}} | |||
}} | }} | ||
}} | }} | ||
<tr><th colspan="2" class="infobox-header">General Information</th></tr> | |||
{{Infobox row | label = Race | data = {{{race|}}} }} | |||
{{Infobox row | label = Affiliation | data = {{{affiliation|}}} }} | |||
<tr><th colspan="2" class="infobox-header">Physical Description</th></tr> | |||
}} | {{Infobox row | label = Lifespan | data = {{{lifespan|}}} }} | ||
{{ | {{Infobox row | label = Distinctions | data = {{{distinctions|}}} }} | ||
{{Infobox row | label = Average Height | data = {{{height|}}} }} | |||
</tbody> | |||
</table><noinclude> | |||
}} | {{documentation}} | ||
|}<noinclude> | <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" }, | |||
"distinctions": { "label": "Distinctions", "type": "line" }, | |||
"height": { "label": "Average Height", "type": "line" } | |||
}} | }, | ||
</ | "description": "Creates an information box for characters or races.", | ||
"format": "block" | |||
} | |||
</templatedata> | |||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
</noinclude> | </noinclude> |
Revision as of 20:25, 12 June 2025
<tbody>
</tbody>
Character infobox | |
---|---|
General Information | |
Physical Description |
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" }, "distinctions": { "label": "Distinctions", "type": "line" }, "height": { "label": "Average Height", "type": "line" } }, "description": "Creates an information box for characters or races.", "format": "block"
} </templatedata>