Template:ItemBox: Difference between revisions

m Fixed text color contrast
m Centered item name
Line 31: Line 31:
   </div>
   </div>
</div></div></div>}}}}
</div></div></div>}}}}
|- style="display:flex;justify-content: center; align-items: center;border-radius: 0px 0px 5px 5px; height:60px; font-size: 12px; {{
|- style="border-radius: 0px 0px 5px 5px; height:60px; font-size: 12px; {{
#switch: {{#if: {{{ignore|}}}|Weapon|{{#if: {{{item_type|}}}|{{{item_type}}}|{{#invoke:ItemData|get_type|{{{item_name|{{{1}}}}}}}}}}}}
#switch: {{#if: {{{ignore|}}}|Weapon|{{#if: {{{item_type|}}}|{{{item_type}}}|{{#invoke:ItemData|get_type|{{{item_name|{{{1}}}}}}}}}}}}
  | Weapon = background-color: #FFF0D7; color: #151912;
  | Weapon = background-color: #FFF0D7; color: #151912;
Line 37: Line 37:
  | Spirit = background-color: #FFEFD7; color: #131610;
  | Spirit = background-color: #FFEFD7; color: #131610;
  | background-color: #FFF0D7; color: #151912;}}"
  | background-color: #FFF0D7; color: #151912;}}"
! |{{#if:{{{link|}}}|[[{{{link}}}|{{{item_loc|{{{item_name|{{{1}}}}}}}}}]]|[[{{{item_loc|{{{item_name|{{{1}}}}}}}}}|{{{item_loc|<span style="color: #111111">{{{item_name|{{{1}}}}}}</span>}}}]]}}
! style="text-align:center; vertical-align:middle;" |
{{#if:{{{link|}}}
| [[{{{link}}}|{{{item_loc|{{{item_name|{{{1}}}}}}}}}]]
| [[{{{item_loc|{{{item_name|{{{1}}}}}}}}}|{{{item_loc|<span style="color: #111111">{{{item_name|{{{1}}}}}}</span>}}}]]
}}
|}</div></includeonly><noinclude>{{Documentation}}</noinclude>
|}</div></includeonly><noinclude>{{Documentation}}</noinclude>