Difference between revisions of "Template:Character infobox"
Jump to navigation
Jump to search
(you guys liked my mockup character infobox, so here's a template! please tell me if you think anything should be added or removed...) |
(added support for multiple images in the infobox so characters with both a headspace/real world counterpart can have both portraits) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{| class="infobox theme-generic-border theme-generic-light" style="float:right; margin-left: 10px; margin-bottom: 10px; font-family:OMORI_GAME2; width: | {| class="infobox theme-generic-border theme-generic-light" style="float:right; margin-left: 10px; margin-bottom: 10px; font-family:OMORI_GAME2; width:300px; text-transform:uppercase !important; border-radius:2px;" | ||
|- | |- | ||
! colspan="2" class="theme-generic-border theme-generic-dark" style="font-size:250%; line-height:1; padding:5px; text-align:center;"| {{{name|{{PAGENAME}}}}} | ! colspan="2" class="theme-generic-border theme-generic-dark" style="font-size:250%; line-height:1; padding:5px; text-align:center; border-radius:2px;"| {{{name|{{PAGENAME}}}}} | ||
|- | |- | ||
| colspan="2" style="padding:0.5em; text-align:center;" | | | colspan="2" style="padding:0.5em; text-align:center;" | | ||
Line 8: | Line 8: | ||
|<div style="display: flex; align-items: center; justify-content: center;">[[File:{{{image}}}|{{{size}}}]]</div> | |<div style="display: flex; align-items: center; justify-content: center;">[[File:{{{image}}}|{{{size}}}]]</div> | ||
|} | |} | ||
< | <center> | ||
|- | |- | ||
{{#if:{{{ | {{#if:{{{image2<includeonly>|</includeonly>}}} | | ||
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}} | {{!}} colspan="2" {{!}} <div style="text-align:center; display: flex; align-items: center; justify-content: center;">[[File:{{{image2}}}|{{{size}}}]]</div> | ||
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{ | {{!}}- | ||
}} | |||
|- | |||
{{#if:{{{sprites<includeonly>|</includeonly>}}} | | |||
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" style="border-radius:2px;" {{!}}sprites | |||
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" style="border-radius:2px;" {{!}}{{{sprites}}} | |||
{{!}}- | {{!}}- | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{age<includeonly>|</includeonly>}}} | | {{#if:{{{age<includeonly>|</includeonly>}}} | | ||
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}age | {{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" style="border-radius:2px;" {{!}}age | ||
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{age}}} | {{!}} class="theme-generic-border theme-generic-light generic-infobox-row" style="border-radius:2px;" {{!}}{{{age}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{birthday<includeonly>|</includeonly>}}} | | {{#if:{{{birthday<includeonly>|</includeonly>}}} | | ||
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}birthday | {{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" style="border-radius:2px;"{{!}}birthday | ||
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{birthday}}} | {{!}} class="theme-generic-border theme-generic-light generic-infobox-row" style="border-radius:2px;"{{!}}{{{birthday}}} | ||
{{!}}- | |||
}} | |||
|- | |||
{{#if:{{{gender<includeonly>|</includeonly>}}} | | |||
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" style="border-radius:2px;" {{!}}gender | |||
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" style="border-radius:2px;" {{!}}{{{gender}}} | |||
{{!}}- | {{!}}- | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{location<includeonly>|</includeonly>}}} | | {{#if:{{{location<includeonly>|</includeonly>}}} | | ||
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}location | {{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" style="border-radius:2px;" {{!}}location | ||
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{location}}} | {{!}} class="theme-generic-border theme-generic-light generic-infobox-row" style="border-radius:2px;" {{!}}{{{location}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{role<includeonly>|</includeonly>}}} | | {{#if:{{{role<includeonly>|</includeonly>}}} | | ||
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}role | {{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" style="border-radius:2px;" {{!}}role | ||
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{role}}} | {{!}} class="theme-generic-border theme-generic-light generic-infobox-row" style="border-radius:2px;" {{!}}{{{role}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
|- | |- | ||
|} | |} | ||
<noinclude>[[Category:Infobox templates]]</noinclude> |
Latest revision as of 19:37, 28 October 2024
Character infobox | ||
---|---|---|
| ||
[[File:{{{image2}}}|{{{size}}}]]
| ||
sprites | {{{sprites}}} | |
age | {{{age}}} | |
birthday | {{{birthday}}} | |
gender | {{{gender}}} | |
location | {{{location}}} | |
role | {{{role}}} |