Difference between revisions of "Template:Item infobox"

From OMORI Wiki
Jump to navigation Jump to search
m (added visual indicators for heart and juice)
 
(11 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; font-size:%; width:25em; font-family:OMORI_GAME2; text-transform:uppercase !important; "
{| class="infobox theme-generic-border theme-generic-light" style="float:right; margin-left: 10px; font-family:OMORI_GAME2; width:300px; text-transform:uppercase !important;"
|-  
|-  
! colspan="2" class="theme-generic-dark" style="font-size:200%; 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;"| {{{name|{{PAGENAME}}}}}
|- style="text-align:center;"
|-
| colspan="2" style="padding:0.5em; align="center" |
| colspan="2" style="padding:0.5em; text-align:center;" |
<center>
<center>
{|style="align:center"
{|style="text-align:center;"
|<div class="theme-generic-border theme-generic-dark" style="display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;">{{{image|[[File:{{PAGENAME}}.png|center]]}}}</div>
|<div class="theme-generic-border theme-generic-dark" style="display: flex; align-items: center; justify-content: center;">[[File:{{{image}}}]]</div>
|}
|}
</center>
</center>
|-
|-
{{#if:{{{icon<includeonly>|</includeonly>}}} |
{{#if:{{{icon<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark" style="width:100px; padding-right: 10px; text-align:right; font-size:150%;" {{!}}icon
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}icon
{{!}} class="theme-generic-border theme-generic-light" style="padding-left:5px; font-size:125%;" {{!}}{{{icon}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{icon}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{location<includeonly>|</includeonly>}}} |
{{#if:{{{location<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark" style="width:100px; padding-right: 10px; text-align:right; font-size:150%;" {{!}}location
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}location
{{!}} class="theme-generic-border theme-generic-light" style="padding-left:5px; font-size:125%;" {{!}}{{{location}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{location}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{cost<includeonly>|</includeonly>}}} |
{{#if:{{{cost<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark" style="width:100px; padding-right: 10px; text-align:right; font-size:150%;" {{!}}cost
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}cost
{{!}} class="theme-generic-border theme-generic-light" style="padding-left:5px; font-size:125%;" {{!}}{{{cost}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{cost}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{sells for<includeonly>|</includeonly>}}} |
{{#if:{{{sells for<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark" style="width:100px; padding-right: 10px; text-align:right; font-size:150%;" {{!}}sells for
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}sells for
{{!}} class="theme-generic-border theme-generic-light" style="padding-left:5px; font-size:125%;" {{!}}{{{sells for}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{sells for}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{enemy<includeonly>|</includeonly>}}} |
{{#if:{{{enemy<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark" style="width:100px; padding-right: 10px; text-align:right; font-size:150%;" {{!}}enemy
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}enemy
{{!}} class="theme-generic-border theme-generic-light" style="padding-left:5px; font-size:125%;" {{!}}{{{enemy}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{enemy}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{user<includeonly>|</includeonly>}}} |
{{#if:{{{user<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark" style="width:100px; padding-right: 10px; text-align:right; font-size:150%;" {{!}}user
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}user
{{!}} class="theme-generic-border theme-generic-light" style="padding-left:5px; font-size:125%;" {{!}}{{{user}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{user}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{skill<includeonly>|</includeonly>}}} |
{{#if:{{{skill<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark" style="width:100px; padding-right: 10px; text-align:right; font-size:150%;" {{!}}skill
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}skill
{{!}} class="theme-generic-border theme-generic-light" style="padding-left:5px; font-size:125%;" {{!}}{{{skill}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{skill}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{heart<includeonly>|</includeonly>}}} |
{{#if:{{{heart<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark" style="width:100px; padding-right: 10px; text-align:right; font-size:150%;" {{!}}heart
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}{{HP}} heart
{{!}} class="theme-generic-border theme-generic-light" style="padding-left:5px; font-size:125%;" {{!}}{{{heart}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{heart}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{juice<includeonly>|</includeonly>}}} |
{{#if:{{{juice<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark" style="width:100px; padding-right: 10px; text-align:right; font-size:150%;" {{!}}juice
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}{{MP}} juice
{{!}} class="theme-generic-border theme-generic-light" style="padding-left:5px; font-size:125%;" {{!}}{{{juice}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{juice}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{attack<includeonly>|</includeonly>}}} |
{{#if:{{{attack<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark" style="width:100px; padding-right: 10px; text-align:right; font-size:150%;" {{!}}attack
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}attack
{{!}} class="theme-generic-border theme-generic-light" style="padding-left:5px; font-size:125%;" {{!}}{{{attack}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{attack}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{defense<includeonly>|</includeonly>}}} |
{{#if:{{{defense<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark" style="width:100px; padding-right: 10px; text-align:right; font-size:150%;" {{!}}defense
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}defense
{{!}} class="theme-generic-border theme-generic-light" style="padding-left:5px; font-size:125%;" {{!}}{{{defense}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{defense}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{speed<includeonly>|</includeonly>}}} |
{{#if:{{{speed<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark" style="width:100px; padding-right: 10px; text-align:right; font-size:150%;" {{!}}speed
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}speed
{{!}} class="theme-generic-border theme-generic-light" style="padding-left:5px; font-size:125%;" {{!}}{{{speed}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{speed}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{luck<includeonly>|</includeonly>}}} |
{{#if:{{{luck<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark" style="width:100px; padding-right: 10px; text-align:right; font-size:150%;" {{!}}luck
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}luck
{{!}} class="theme-generic-border theme-generic-light" style="padding-left:5px; font-size:125%;" {{!}}{{{luck}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{luck}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{hit<includeonly>|</includeonly>}}} |
{{#if:{{{hit<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark" style="width:100px; padding-right: 10px; text-align:right; font-size:150%;" {{!}}hit
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}hit
{{!}} class="theme-generic-border theme-generic-light" style="padding-left:5px; font-size:125%;" {{!}}{{{hit}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{hit}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{damage<includeonly>|</includeonly>}}} |
{{#if:{{{damage<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark" style="width:100px; padding-right: 10px; text-align:right; font-size:150%;" {{!}}damage
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}damage
{{!}} class="theme-generic-border theme-generic-light" style="padding-left:5px; font-size:125%;" {{!}}{{{damage}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{damage}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{emotion<includeonly>|</includeonly>}}} |
{{#if:{{{emotion<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark" style="width:100px; padding-right: 10px; text-align:right; font-size:150%;" {{!}}emotion
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}emotion
{{!}} class="theme-generic-border theme-generic-light" style="padding-left:5px; font-size:125%;" {{!}}{{{emotion}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{emotion}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{target(s)<includeonly>|</includeonly>}}} |
{{#if:{{{target(s)<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark" style="width:100px; padding-right: 10px; text-align:right; font-size:150%;" {{!}}target(s)
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}target(s)
{{!}} class="theme-generic-border theme-generic-light" style="padding-left:5px; font-size:125%;" {{!}}{{{target(s)}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{target(s)}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{quests<includeonly>|</includeonly>}}} |
{{#if:{{{quests<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark" style="width:100px; padding-right: 10px; text-align:right; font-size:150%;" {{!}}quests
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}quests
{{!}} class="theme-generic-border theme-generic-light" style="padding-left:5px; font-size:125%;" {{!}}{{{quests}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{quests}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{battle<includeonly>|</includeonly>}}} |
{{#if:{{{battle<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark" style="width:100px; padding-right: 10px; text-align:right; font-size:150%;" {{!}}battle
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}battle
{{!}} class="theme-generic-border theme-generic-light" style="padding-left:5px; font-size:125%;" {{!}}{{{battle}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{battle}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{id<includeonly>|</includeonly>}}} |
{{#if:{{{id<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark" style="width:100px; padding-right: 10px; text-align:right; font-size:150%;" {{!}}id
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}id
{{!}} class="theme-generic-border theme-generic-light" style="padding-left:5px; font-size:125%;" {{!}}{{{id}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{id}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
|}
|}
 
<noinclude>[[Category:Infobox templates]]</noinclude>
<noinclude>
==Code==
<pre>{{Infobox Items
|name      =
|image    =
|cost      =
|icon      =
|location  =
|sells for =
|enemy    =
|user      =
|skill    =
|heart    =
|juice    =
|attack    =
|defense  =
|speed    =
|luck      =
|accuracy  =
|damage    =
|emotion  =
|target(s) =
|quests    =
|battle    =
|id        =
}}</pre></noinclude>

Latest revision as of 23:21, 26 April 2022

Item infobox
[[File:{{{image}}}]]
icon {{{icon}}}
location {{{location}}}
cost {{{cost}}}
sells for {{{sells for}}}
enemy {{{enemy}}}
user {{{user}}}
skill {{{skill}}}
HP.png heart {{{heart}}}
MP.png juice {{{juice}}}
attack {{{attack}}}
defense {{{defense}}}
speed {{{speed}}}
luck {{{luck}}}
hit {{{hit}}}
damage {{{damage}}}
emotion {{{emotion}}}
target(s) {{{target(s)}}}
quests {{{quests}}}
battle {{{battle}}}
id {{{id}}}