Template:ItemIcon Internal/Debug: Difference between revisions
Jump to navigation
Jump to search
(no default?) |
(more spaces might do the trick) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><onlyinclude> | <includeonly><onlyinclude>{{#lvardef:rarity|{{#switch:{{{3}}} | ||
|very rare = very-rare | | very rare = very-rare | ||
|{{{3}}} | | {{{3}}} | ||
}} }}{{#lvardef:is_missing | }} }}{{#lvar:rarity}}{{#lvardef:is_missing | ||
|{{#expr: {{#if:{{{missing|}}}|1|0}} or {{#if:{{{1|}}}|0|1}} }} | |{{#expr: {{#if:{{{missing|}}}|1|0}} or {{#if:{{{1|}}}|0|1}} }} | ||
}}<span {{#if:{{{4|}}}|class="bg3wiki-itemicon bg3wiki-itemicon-{{#lvar:rarity}}"}} {{#ifexpr:{{#lvar:is_missing}}|style="width: {{{2}}}px; height: {{{2}}}px; display: inline-block; overflow: hidden; vertical-align: middle;"}}>{{Icon | }}<span {{#if:{{{4|}}}|class="bg3wiki-itemicon bg3wiki-itemicon-{{#lvar:rarity}}"}} {{#ifexpr:{{#lvar:is_missing}}|style="width: {{{2}}}px; height: {{{2}}}px; display: inline-block; overflow: hidden; vertical-align: middle;"}}>{{Icon |
Latest revision as of 16:22, 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 Missing Template:ItemIcon/Item Missing Images