Template:Favilink: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(upgraded to be more powerful)
mNo edit summary
Line 1: Line 1:
<includeonly{{#cargo_query:table=GeneralData|fields=CONCAT('[[File:',Image,'|16px]]')|where=_pageNamespace='0'AND _pageName='{{{1|}}}'|format=list}}[[{{{1|}}}|{{{2|{{{1|}}}}}}]]</includeonly><noinclude>
<includeonly>{{#cargo_query:table=GeneralData|fields=CONCAT('[[File:',Image,'|16px]]')|where=_pageNamespace='0'AND _pageName='{{{1|}}}'|format=list}}[[{{{1|}}}|{{{2|{{{1|}}}}}}]]</includeonly><noinclude>
[[Category:Templates]]
[[Category:Templates]]
!!Currently only for use for objects in the tables: ItemsTable, Food, Corpses, Characters.
!!Currently only for use for objects in the tables: ItemsTable, Food, Corpses, Characters.

Revision as of 20:33, 6 August 2019

!!Currently only for use for objects in the tables: ItemsTable, Food, Corpses, Characters.

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}}

Torch.pngtorch

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

{{favilink|torch|A really spicy meatball}}

Torch.pngA really spicy meatball