Template:ItemIcon Internal: Difference between revisions
Jump to navigation
Jump to search
m size->2 |
Add rarity support |
||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#if: {{{1|}}}|{{Icon | <includeonly><onlyinclude>{{#lvardef:rarity|{{#replace:{{{3|}}}|<nowiki> </nowiki>|-}} }}<span {{#if:{{{4|}}}|class="bg3wiki-itemicon bg3wiki-itemicon-{{#lvar:rarity}}"}}>{{#if: {{{1|}}}|{{Icon | ||
|{{{1}}} | |{{{1}}} | ||
|{{{2 | |{{{2}}} | ||
}} }}</onlyinclude></includeonly><noinclude> | }} }}</span></onlyinclude></includeonly><noinclude> | ||
1. Item icon name | |||
2. Icon size | |||
3. Item rarity | |||
4. Whether to show rarity | |||
Used by [[Template:ItemIcon]] to format cargo results. | Used by [[Template:ItemIcon]] to format cargo results. | ||
=== Examples === | |||
{{ItemIcon|name=Potion of Superior Healing|show_name=true}} | |||
{{ItemIcon|name=Potion of Supreme Healing|show_name=true|show_rarity=true}} | |||
</noinclude> | </noinclude> |
Revision as of 09:17, 9 September 2023
1. Item icon name
2. Icon size
3. Item rarity
4. Whether to show rarity
Used by Template:ItemIcon to format cargo results.