Template:ItemIcon Internal/Debug: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Link to file)
(.)
Line 1: Line 1:
<includeonly><onlyinclude>[[File:{{{1}}}]]/{{{2}}}/{{{3}}}/{{{4}}}/{{{5}}}<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 }}{{#lvardef:is_missing
|{{#expr: {{#if:{{{missing|}}}|1|0}} or {{#if:{{{1|}}}|0|1}} }}
}}<span {{#if:{{{4|}}}|class="bg3wiki-itemicon bg3wiki-itemicon-|{{#replace:{{{3|}}}|<nowiki> </nowiki>|-}}"}} {{#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}}}
|link = {{{5|}}}
|link = {{{5|}}}
}}</span></onlyinclude></includeonly><noinclude>
}}</span></onlyinclude></includeonly><noinclude>
1. Item icon name
filename. Item icon name


2. Icon size
2. Icon size


3. Item rarity
rarity. Item rarity


4. Whether to show rarity
4. Whether to show rarity
Line 15: Line 17:


missing: If specified will use missing css
missing: If specified will use missing css
 
====Debug====
'''Debug version of ItemIcon Internal.'''
Debug version.
 
Currently it inlines lvardef. Prints args.
</noinclude>
</noinclude>

Revision as of 15:59, 17 September 2023

filename. Item icon name

2. Icon size

rarity. Item rarity

4. Whether to show rarity

5. Where to link to

missing: If specified will use missing css

Debug

Debug version.