Difference between revisions of "Template:Item infobox"

From OMORI Wiki
Jump to navigation Jump to search
(item infoboxes now align to the right side of pages)
m (added visual indicators for heart and juice)
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| class="infobox" style="background-color: #ffffff; float:right; margin-left: 10px; border: 1px solid #000000; font-size:%;width:25em;font-family:Coming Soon; 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" style="padding-top:5px; font-size:150%;text-align:center; background: #000000; color:#FFFFFF"| {{{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 style="display: flex; align-items: center; justify-content: center; width: 100px; height: 100px; border: 5px double #fff; background: #000;">{{{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>}}} |
{{!}} style="width:100px; padding-top:5px; padding-right: 10px; text-align:right; color:#ffffff; font-weight:bold; background: #000000; border:0px; font-size:110%;" {{!}}icon
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}icon
{{!}} style="padding-top:5px; padding-left:5px; background: #ffffff; border:0px;" {{!}}{{{icon}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{icon}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{location<includeonly>|</includeonly>}}} |
{{#if:{{{location<includeonly>|</includeonly>}}} |
{{!}} style="width:100px; padding-top:5px;  padding-right: 10px; text-align:right; color:#ffffff; font-weight:bold; background: #000000; border:0px; font-size:110%;" {{!}}location
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}location
{{!}} style="padding-top:5px; padding-left:5px; background: #ffffff; border:0px;" {{!}}{{{location}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{location}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{cost<includeonly>|</includeonly>}}} |
{{#if:{{{cost<includeonly>|</includeonly>}}} |
{{!}} style="width:100px; padding-top:5px;  padding-right: 10px; text-align:right; color:#ffffff; font-weight:bold; background: #000000; border:0px; font-size:110%;" {{!}}cost
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}cost
{{!}} style="padding-top:5px; padding-left:5px; background: #ffffff; border:0px;" {{!}}{{{cost}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{cost}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{sells for<includeonly>|</includeonly>}}} |
{{#if:{{{sells for<includeonly>|</includeonly>}}} |
{{!}} style="width:100px; padding-top:5px;  padding-right: 10px; text-align:right; color:#ffffff; font-weight:bold; background: #000000; border:0px; font-size:110%;" {{!}}sells for
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}sells for
{{!}} style="padding-top:5px; padding-left:5px; background: #ffffff; border:0px;" {{!}}{{{sells for}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{sells for}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{enemy<includeonly>|</includeonly>}}} |
{{#if:{{{enemy<includeonly>|</includeonly>}}} |
{{!}} style="width:100px; padding-top:5px;  padding-right: 10px; text-align:right; color:#ffffff; font-weight:bold; background: #000000; border:0px; font-size:110%;" {{!}}enemy
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}enemy
{{!}} style="padding-top:5px; padding-left:5px; background: #ffffff; border:0px;" {{!}}{{{enemy}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{enemy}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{user<includeonly>|</includeonly>}}} |
{{#if:{{{user<includeonly>|</includeonly>}}} |
{{!}} style="width:100px; padding-top:5px; padding-right: 10px; text-align:right; color:#ffffff; font-weight:bold; background: #000000; border:0px; font-size:110%;" {{!}}user
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}user
{{!}} style="padding-top:5px; padding-left:5px; background: #ffffff; border:0px;" {{!}}{{{user}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{user}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{skill<includeonly>|</includeonly>}}} |
{{#if:{{{skill<includeonly>|</includeonly>}}} |
{{!}} style="width:100px; padding-top:5px;  padding-right: 10px; text-align:right; color:#ffffff; font-weight:bold; background: #000000; border:0px; font-size:110%;" {{!}}skill
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}skill
{{!}} style="padding-top:5px; padding-left:5px; background: #ffffff; border:0px;" {{!}}{{{skill}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{skill}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{heart<includeonly>|</includeonly>}}} |
{{#if:{{{heart<includeonly>|</includeonly>}}} |
{{!}} style="width:100px; padding-top:5px; padding-right: 10px; text-align:right; color:#ffffff; font-weight:bold; background: #000000; border:0px; font-size:110%;" {{!}}heart
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}{{HP}} heart
{{!}} style="padding-top:5px; padding-left:5px; background: #ffffff; border:0px;" {{!}}{{{heart}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{heart}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{juice<includeonly>|</includeonly>}}} |
{{#if:{{{juice<includeonly>|</includeonly>}}} |
{{!}} style="width:100px; padding-top:5px; padding-right: 10px; text-align:right; color:#ffffff; font-weight:bold; background: #000000; border:0px; font-size:110%;" {{!}}juice
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}{{MP}} juice
{{!}} style="padding-top:5px; padding-left:5px; background: #ffffff; border:0px;" {{!}}{{{juice}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{juice}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{attack<includeonly>|</includeonly>}}} |
{{#if:{{{attack<includeonly>|</includeonly>}}} |
{{!}} style="width:100px; padding-top:5px; padding-right: 10px; text-align:right; color:#ffffff; font-weight:bold; background: #000000; border:0px; font-size:110%;" {{!}}attack
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}attack
{{!}} style="padding-top:5px; padding-left:5px; background: #ffffff; border:0px;" {{!}}{{{attack}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{attack}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{defense<includeonly>|</includeonly>}}} |
{{#if:{{{defense<includeonly>|</includeonly>}}} |
{{!}} style="width:100px; padding-top:5px;  padding-right: 10px; text-align:right; color:#ffffff; font-weight:bold; background: #000000; border:0px; font-size:110%;" {{!}}defense
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}defense
{{!}} style="padding-top:5px; padding-left:5px; background: #ffffff; border:0px;" {{!}}{{{defense}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{defense}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{speed<includeonly>|</includeonly>}}} |
{{#if:{{{speed<includeonly>|</includeonly>}}} |
{{!}} style="width:100px; padding-top:5px;  padding-right: 10px; text-align:right; color:#ffffff; font-weight:bold; background: #000000; border:0px; font-size:110%;" {{!}}speed
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}speed
{{!}} style="padding-top:5px; padding-left:5px; background: #ffffff; border:0px;" {{!}}{{{speed}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{speed}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{luck<includeonly>|</includeonly>}}} |
{{#if:{{{luck<includeonly>|</includeonly>}}} |
{{!}} style="width:100px; padding-top:5px;  padding-right: 10px; text-align:right; color:#ffffff; font-weight:bold; background: #000000; border:0px; font-size:110%;" {{!}}luck
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}luck
{{!}} style="padding-top:5px; padding-left:5px; background: #ffffff; border:0px;" {{!}}{{{luck}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{luck}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{hit<includeonly>|</includeonly>}}} |
{{#if:{{{hit<includeonly>|</includeonly>}}} |
{{!}} style="width:100px; padding-top:5px;  padding-right: 10px; text-align:right; color:#ffffff; font-weight:bold; background: #000000; border:0px; font-size:110%;" {{!}}hit
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}hit
{{!}} style="padding-top:5px; padding-left:5px; background: #ffffff; border:0px;" {{!}}{{{hit}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{hit}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{damage<includeonly>|</includeonly>}}} |
{{#if:{{{damage<includeonly>|</includeonly>}}} |
{{!}} style="width:100px; padding-top:5px;  padding-right: 10px; text-align:right; color:#ffffff; font-weight:bold; background: #000000; border:0px; font-size:110%;" {{!}}damage
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}damage
{{!}} style="padding-top:5px; padding-left:5px; background: #ffffff; border:0px;" {{!}}{{{damage}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{damage}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{emotion<includeonly>|</includeonly>}}} |
{{#if:{{{emotion<includeonly>|</includeonly>}}} |
{{!}} style="width:100px; padding-top:5px;  padding-right: 10px; text-align:right; color:#ffffff; font-weight:bold; background: #000000; border:0px; font-size:110%;" {{!}}emotion
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}emotion
{{!}} style="padding-top:5px; padding-left:5px; background: #ffffff; border:0px;" {{!}}{{{emotion}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{emotion}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{target(s)<includeonly>|</includeonly>}}} |
{{#if:{{{target(s)<includeonly>|</includeonly>}}} |
{{!}} style="width:100px; padding-top:5px;  padding-right: 10px; text-align:right; color:#ffffff; font-weight:bold; background: #000000; border:0px; font-size:110%;" {{!}}target(s)
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}target(s)
{{!}} style="padding-top:5px; padding-left:5px; background: #ffffff; border:0px;" {{!}}{{{target(s)}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{target(s)}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{quests<includeonly>|</includeonly>}}} |
{{#if:{{{quests<includeonly>|</includeonly>}}} |
{{!}} style="width:100px; padding-top:5px;  padding-right: 10px; text-align:right; color:#ffffff; font-weight:bold; background: #000000; border:0px; font-size:110%;" {{!}}quests
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}quests
{{!}} style="padding-top:5px; padding-left:5px; background: #ffffff; border:0px;" {{!}}{{{quests}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{quests}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{battle<includeonly>|</includeonly>}}} |
{{#if:{{{battle<includeonly>|</includeonly>}}} |
{{!}} style="width:100px; padding-top:5px;  padding-right: 10px; text-align:right; color:#ffffff; font-weight:bold; background: #000000; border:0px; font-size:110%;" {{!}}battle
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}battle
{{!}} style="padding-top:5px; padding-left:5px; background: #ffffff; border:0px;" {{!}}{{{battle}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{battle}}}
{{!}}-
{{!}}-
}}
}}
|-
{{#if:{{{id<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}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    =
}}</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}}}