Template:Favilink

From Caves of Qud Wiki
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)
Jump to navigation Jump to search

!!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 'field list' (localhost)

Function: CargoSQLQuery::run Query: SELECT CONCAT('File:',Image,'') FROM `ItemsTable` WHERE _pageNamespace='0'AND _pageName='torch' ORDER BY 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 'field list' (localhost)

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

A really spicy meatball