6,366
editsAd placeholder
Template:Item icon/insert: Difference between revisions
Jump to navigation
Jump to search
add uid field
m (Sky moved page Template:ItemIcon Insert to Template:Itemicon insert) |
(add uid field) |
||
Line 3: | Line 3: | ||
|icon={{#if:{{{icon|}}}|{{{icon}}}|{{{image|}}} }} | |icon={{#if:{{{icon|}}}|{{{icon}}}|{{{image|}}} }} | ||
|rarity={{{rarity|common}}} | |rarity={{{rarity|common}}} | ||
}}</onlyinclude></includeonly><noinclude> | |uid={{{uid|}}} | ||
}}</onlyinclude></includeonly><noinclude>{{documentation|content= | |||
Inserts an icon into the Cargo item_icon database. Enables use of [[Template:ItemIcon]]. | Inserts an icon into the Cargo item_icon database. Enables use of [[Template:ItemIcon]]. | ||
Line 14: | Line 15: | ||
{{#cargo_attach:_table=item_icon}} | {{#cargo_attach:_table=item_icon}} | ||
</noinclude> | |||
==Template data== | |||
<templatedata> | |||
{ | |||
"params": { | |||
"icon": { | |||
"description": "The icon file name, without the File: namespace.", | |||
"required": true | |||
}, | |||
"image": { | |||
"description": "An image for the item. This is usually a faded image. Unfaded images should be put into \"icon\". Is overridden by \"icon\"." | |||
}, | |||
"rarity": { | |||
"description": "The rarity of the item. Defaults to common.", | |||
"suggestedvalues": [ | |||
"common", | |||
"uncommon", | |||
"rare", | |||
"very rare" | |||
], | |||
"suggested": true | |||
}, | |||
"uid": { | |||
"description": "The unique id for the item. Can be used to query items that have multiple of the same display name.", | |||
"suggested": true | |||
} | |||
} | |||
} | |||
</templatedata> | |||
}}[[Category:Templates]]</noinclude> |