Template:Favilink

Revision as of 19:03, 6 August 2019 by Teamtoto (talk | contribs) (Created page with "<includeonly>{{#cargo_query:table=ItemsTable|fields=CONCAT('16px')|where=_pageNamespace='0'AND _pageName='{{{1|}}}'|format=list}}{{{1|}}}|{{{2|{{{1|}}}}}}...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

!!Currently only for use for objects in the ItemsTable!!

Usage

Used similar to regular wikipage linking syntax. First argument takes name of the page and will pull the image from that item.

{{favilink|torch}}
Error 1054: Unknown column 'Image' in 'SELECT'

Function: CargoSQLQuery::run Query: SELECT `ItemsTable`.`_pageID` AS `cargo_backlink_page_id_ItemsTable`,CONCAT('File:',Image,'') FROM `ItemsTable` WHERE _pageNamespace='0'AND _pageName='torch' ORDER BY `ItemsTable`.`_pageID`,CONCAT('File:',Image,'') LIMIT 100

torch

You can also use a second argument to reword the link:

{{favilink|torch|A really spicy meatball}}
Error 1054: Unknown column 'Image' in 'SELECT'

Function: CargoSQLQuery::run Query: SELECT `ItemsTable`.`_pageID` AS `cargo_backlink_page_id_ItemsTable`,CONCAT('File:',Image,'') FROM `ItemsTable` WHERE _pageNamespace='0'AND _pageName='torch' ORDER BY `ItemsTable`.`_pageID`,CONCAT('File:',Image,'') LIMIT 100

A really spicy meatball