Template:Item icon

Template page
Revision as of 22:55, 31 August 2023 by Sky (talk | contribs) (Created page with "<includeonly><onlyinclude>{{Icon |{{#cargo_query: tables=item_icon |fields=icon |where=item_icon.name={{{1}}} |limit=1 |format=list}} |{{{2|40}}}</onlyinclude></includeonly><noinclude> <!-- Cargo table definition --> {{#cargo_declare: _table = item_icon |name = String |icon = File }} This template fetches an icon for an item using Cargo. It also declares the Cargo table for the "item_icon" table that stores this information. The information is uploaded using...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


This template defines the table "item_icon". View table.

This template fetches an icon for an item using Cargo. It also declares the Cargo table for the "item_icon" table that stores this information. The information is uploaded using the standard item descriptions.

Usage: {{ItemIcon|the_items_page_name|optional_size}}

Example: {{Icon

|
Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'of Healing ORDER BY `cargo__item_icon`.`_pageID`,`icon` LIMIT 100' at line 1

Function: CargoSQLQuery::run Query: SELECT `cargo__item_icon`.`_pageID` AS `cargo_backlink_page_id_item_icon`,`icon` AS `icon` FROM `cargo__item_icon` WHERE `cargo__item_icon`.`name`=Potion of Healing ORDER BY `cargo__item_icon`.`_pageID`,`icon` LIMIT 100

|40

Copy-ready example: {{ItemIcon|}}