Template:ItemIcon Internal: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) mNo edit summary |
HiddenDragon (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#lvardef:rarity|{{#replace:{{{3|}}}|<nowiki> </nowiki>|-}} }}{{#lvardef:is_missing | <includeonly><onlyinclude>{{#lvardef:rarity|{{#replace:{{{3|}}}|<nowiki> </nowiki>|-}} }}{{#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: {{trim|{{{2}}}}}px; height: {{trim|{{{2}}}}}px; display: inline-block; overflow: hidden; vertical-align: middle;"}}>{{Icon | ||
|{{#if:{{{1|}}}|{{{1}}}|{{{5|}}} Item Icon.png}} | |{{#if:{{{1|}}}|{{{1}}}|{{{5|}}} Item Icon.png}} | ||
|{{{2}}} | |{{{2}}} |
Revision as of 07:53, 15 October 2024
1. Item icon name
2. Icon size
3. Item rarity
4. Whether to show rarity
5. Where to link to
6. Alt name for icon
missing: If specified will use missing css
Used by Template:ItemIcon to format cargo results.
Examples
Markup | Renders as |
---|---|
{{ItemIcon|name=Potion of Superior Healing|show_name=true}} | Potion of Superior Healing |
{{ItemIcon|name=Potion of Supreme Healing|show_name=true|show_rarity=true}} | Potion of Supreme Healing |
{{ItemIcon|name=Missing|size=60|show_name=true|show_rarity=true}} | Missing |
{{ItemIcon|name=Template:ItemIcon/Item Missing Images|show_name=true|show_rarity=true}} | Template:ItemIcon/Item Missing Images |