Template:Itemicon insert: Difference between revisions
Jump to navigation
Jump to search
(Created) |
(Remove name field for now) |
||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#cargo_store: | <includeonly><onlyinclude>{{#cargo_store: | ||
_table:item_icon | _table:item_icon | ||
|icon={{#if:{{{icon|}}}|{{{icon}}}|{{{image|}}} }} | |icon={{#if:{{{icon|}}}|{{{icon}}}|{{{image|}}} }} | ||
}}</onlyinclude></includeonly><noinclude> | }}</onlyinclude></includeonly><noinclude> |
Revision as of 06:14, 7 September 2023
Inserts an icon into the Cargo item_icon database. Enables use of Template:ItemIcon.
{{ItemIcon Insert |icon=filename of the icon to use, without the File: prefix |image=(optional) filename of the image to use as an icon, without the File: prefix. Overridden if "icon" is defined. Used for item template pages which may have an image configured but not an icon. }}
This template adds rows to the table "item_icon", which is declared by the template Itemicon insert. View table.