6,366
editsAd placeholder
Template:Item icon: Difference between revisions
Jump to navigation
Jump to search
add alias
(Add icon override) |
(add alias) |
||
Line 9: | Line 9: | ||
|format=template | |format=template | ||
|template=ItemIcon Internal | |template=ItemIcon Internal | ||
}} }}<span class="bg3wiki-itemicon-link" style="margin-left: {{#lvar:margin}}rem">{{#if:{{{show_name|}}}|[[{{{name}}}]] }}</span></span></onlyinclude></includeonly><noinclude> | }} }}<span class="bg3wiki-itemicon-link" style="margin-left: {{#lvar:margin}}rem">{{#if:{{{show_name|}}}|[[{{{name}}}{{#if:{{{alias|}}}|{{!}}{{{alias}}}}}]] }}</span></span></onlyinclude></includeonly><noinclude> | ||
{{/doc}} | {{/doc}} | ||
Line 52: | Line 52: | ||
}, | }, | ||
"override_icon": {}, | "override_icon": {}, | ||
"override_rarity": {} | "override_rarity": {}, | ||
"alias": { | |||
"description": "An alias for the item.", | |||
"type": "string" | |||
} | |||
}, | }, | ||
"description": "Inserts an item's icon automatically. Can also display a link to the item.", | "description": "Inserts an item's icon automatically. Can also display a link to the item.", | ||
Line 62: | Line 66: | ||
"show_rarity", | "show_rarity", | ||
"override_icon", | "override_icon", | ||
"override_rarity" | "override_rarity", | ||
"alias" | |||
], | ], | ||
"format": "inline" | "format": "inline" | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |