Template:Favilink: Difference between revisions

34 bytes added ,  20:32, 6 August 2019
upgraded to be more powerful
(Created page with "<includeonly>{{#cargo_query:table=ItemsTable|fields=CONCAT('16px')|where=_pageNamespace='0'AND _pageName='{{{1|}}}'|format=list}}{{{1|}}}|{{{2|{{{1|}}}}}}...")
 
(upgraded to be more powerful)
Line 1: Line 1:
<includeonly>{{#cargo_query:table=ItemsTable|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 ItemsTable!!
!!Currently only for use for objects in the tables: ItemsTable, Food, Corpses, Characters.
==Usage==
==Usage==
Used similar to regular wikipage linking syntax. First argument takes name of the page and will pull the image from that item.
Used similar to regular wikipage linking syntax. First argument takes name of the page and will pull the image from that item.