Difference between revisions of "Template:Character infobox"

From OMORI Wiki
Jump to navigation Jump to search
(added support for multiple images in the infobox so characters with both a headspace/real world counterpart can have both portraits)
 
(3 intermediate revisions by one other user 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:300px; text-transform:uppercase !important;"
{| 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>
<center>
|-
{{#if:{{{image2<includeonly>|</includeonly>}}} |
{{!}} colspan="2" {{!}} <div style="text-align:center; display: flex; align-items: center; justify-content: center;">[[File:{{{image2}}}|{{{size}}}]]</div>
{{!}}-
}}
|-
{{#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>}}} |
{{#if:{{{gender<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}gender
{{!}} 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" {{!}}{{{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:{{{image}}}|{{{size}}}]]
[[File:{{{image2}}}|{{{size}}}]]
sprites {{{sprites}}}
age {{{age}}}
birthday {{{birthday}}}
gender {{{gender}}}
location {{{location}}}
role {{{role}}}