Template:ItemBox: Difference between revisions

Amend category to return 'None' if no category is found
(centering the image for when that matters)
(Amend category to return 'None' if no category is found)
Line 13: Line 13:
| '''Item ID:''' {{#invoke:Items|getItemStat|{{#var:item}}|id}}
| '''Item ID:''' {{#invoke:Items|getItemStat|{{#var:item}}|id}}
|-
|-
| '''Category:''' [[{{#invoke:Items|getItemStat|{{#var:item}}|category}}]]
| '''Category:''' {{#ifeq:{{#invoke:Items|getItemStat|{{#var:item}}|category}}||None|[[{{#invoke:Items|getItemStat|{{#var:item}}|category}}]]}}
|-
|-
| '''Type:''' {{#invoke:Items|getItemStat|{{#var:item}}|type}}
| '''Type:''' {{#invoke:Items|getItemStat|{{#var:item}}|type}}