Ad placeholder

Template:Item icon: Difference between revisions

Jump to navigation Jump to search
Cargo definition moved to Template:Itemicon insert.
No edit summary
(Cargo definition moved to Template:Itemicon insert.)
Line 1: Line 1:
<includeonly><onlyinclude>{{#lvardef:margin|{{#expr:0.015 * {{{size|40}}} }} }}{{#lvardef:size|{{{size|40}}} }}<span class="bg3wiki-itemicon-wrapper {{#if:{{{wrap|}}}|wrap|nowrap}}" style="{{#if:{{{no_padding|}}}||"margin-left: {{#lvar:margin}}rem;}}">{{#if:{{{override_icon|}}}|{{ItemIcon Internal|{{{override_icon}}}|{{#lvar:size}}|{{{override_rarity}}}|{{{show_rarity|}}}|{{{name}}} }}|{{#cargo_query:
<includeonly>{{#lvardef:margin|{{#expr:0.015 * {{{size|40}}} }} }}{{#lvardef:size|{{{size|40}}} }}<span class="bg3wiki-itemicon-wrapper {{#if:{{{wrap|}}}|wrap|nowrap}}" style="{{#if:{{{no_padding|}}}||"margin-left: {{#lvar:margin}}rem;}}">{{#if:{{{override_icon|}}}|{{ItemIcon Internal|{{{override_icon}}}|{{#lvar:size}}|{{{override_rarity}}}|{{{show_rarity|}}}|{{{name}}} }}|{{#cargo_query:
tables=item_icon
tables=item_icon
|fields=TRIM(icon),CONCAT('', '{{#lvar:size}}'),LOWER(rarity),CONCAT('', '{{{show_rarity|}}}'),CONCAT('', "{{{name}}}")
|fields=TRIM(icon),CONCAT('', '{{#lvar:size}}'),LOWER(rarity),CONCAT('', '{{{show_rarity|}}}'),CONCAT('', "{{{name}}}")
Line 9: Line 9:
|format=template
|format=template
|template=ItemIcon Internal
|template=ItemIcon Internal
}} }}{{#if:{{{show_name|}}}|<span class="bg3wiki-itemicon-link" style="margin-left: 1ch">[[{{{name}}}{{#if:{{{alias|}}}|{{!}}{{{alias}}}}}]]</span> }}</span></onlyinclude></includeonly><noinclude>
}} }}{{#if:{{{show_name|}}}|<span class="bg3wiki-itemicon-link" style="margin-left: 1ch">[[{{{name}}}{{#if:{{{alias|}}}|{{!}}{{{alias}}}}}]]</span> }}</span></includeonly><noinclude>


{{/doc}}
{{/doc}}
<!-- Cargo table definition -->
{{#cargo_declare:
_table = item_icon
|rarity = String (allowed values=common,uncommon,rare, very rare,legendary,story)
|icon = File
|uid = String
}}


== Template Data Section ==
== Template Data Section ==

Navigation menu