Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:ItemIcon Internal/Debug: Difference between revisions

Template page
.
more spaces might do the trick
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><onlyinclude>{{{1}}}/{{{2}}}/{{{3}}}/<span {{#if:{{{4|}}}|class="bg3wiki-itemicon bg3wiki-itemicon-{{#replace:{{{3|}}}|<nowiki> </nowiki>|-}}"}} {{#ifexpr: {{#if:{{{missing|}}}|1|0}} or {{#if:{{{1|}}}|0|1}}|style="width: {{{2}}}px; height: {{{2}}}px; display: inline-block; overflow: hidden; vertical-align: middle;"}}>{{Icon
<includeonly><onlyinclude>{{#lvardef:rarity|{{#switch:{{{3}}}
| very rare = very-rare
| {{{3}}}
}} }}{{#lvar:rarity}}{{#lvardef:is_missing
|{{#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
|{{#if:{{{1|}}}|{{{1}}}|{{{5|}}} Item Icon.png}}
|{{#if:{{{1|}}}|{{{1}}}|{{{5|}}} Item Icon.png}}
|{{{2}}}
|{{{2}}}
Line 16: Line 21:
missing: If specified will use missing css
missing: If specified will use missing css


'''Debug version of ItemIcon Internal.'''
Used by [[Template:ItemIcon]] to format cargo results.


Currently it inlines lvardef. Prints args.
=== Examples ===
 
{{ItemIcon|name=Potion of Superior Healing|show_name=true}}
{{ItemIcon|name=Potion of Supreme Healing|show_name=true|show_rarity=true}}
{{ItemIcon|name=Missing|show_name=true|show_rarity=true}}
{{ItemIcon|name=Template:ItemIcon/Item Missing Images|show_name=true|show_rarity=true}}
</noinclude>
</noinclude>