Ad placeholder

Template:Item icon: Difference between revisions

Jump to navigation Jump to search
add uid filtering
(add uid field)
(add uid filtering)
Line 2: Line 2:
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}}}")
|where=item_icon._pageName="{{{name}}}"
|where={{#if:{{{uid|}}}|item_icon.uid = "{{{uid}}}"|item_icon._pageName="{{{name}}}"}}
|limit=1
|limit=1
|order by=item_icon._pageName
|order by=item_icon._pageName
Line 68: Line 68:
"description": "If non-empty, will allow the item icon to wrap.",
"description": "If non-empty, will allow the item icon to wrap.",
"type": "boolean"
"type": "boolean"
},
"uid": {
"description": "If specified, will instead search by UID.",
"type": "string"
}
}
},
},
Line 73: Line 77:
"paramOrder": [
"paramOrder": [
"name",
"name",
"uid",
"size",
"size",
"show_name",
"show_name",

Navigation menu