Template:ItemIcon Internal/Debug: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Switch instead of replace?)
(use a switch)
Line 1: Line 1:
<includeonly><onlyinclude>{{#lvardef:rarity|{{#switch:{{{3|}}}
<includeonly><onlyinclude>{{#lvardef:rarity|{{#switch:{{{3|}}}
|very rare = very-rare
|very rare = very-rare
|{{{3|}}}
|{{{3}}}
}} }}{{#lvardef:is_missing
}} }}{{#lvardef:is_missing
|{{#expr: {{#if:{{{missing|}}}|1|0}} or {{#if:{{{1|}}}|0|1}} }}
|{{#expr: {{#if:{{{missing|}}}|1|0}} or {{#if:{{{1|}}}|0|1}} }}

Revision as of 16:18, 17 September 2023

1. Item icon name

2. Icon size

3. Item rarity

4. Whether to show rarity

5. Where to link to

missing: If specified will use missing css

Used by Template:ItemIcon to format cargo results.

Examples

Potion of Superior Healing Potion of Supreme Healing File:Missing Unfaded Icon.pngMissing File:Template:ItemIcon/Item Missing Images Unfaded Icon.pngTemplate:ItemIcon/Item Missing Images