Template:Favilink: Difference between revisions
Jump to navigation
Jump to search
(auto escapes apostophes in searches) |
mNo edit summary |
||
Line 2: | Line 2: | ||
<span class="qud-image-link"> | <span class="qud-image-link"> | ||
<span class="qud-image-link-image-container"> | <span class="qud-image-link-image-container"> | ||
{{#cargo_query:table=GeneralData|fields=CONCAT('[[File:',Image,'|16x24px|top]]')|where=_pageNamespace='0'AND _pageName='{{#replace:{{{1|}}} | {{#cargo_query:table=GeneralData|fields=CONCAT('[[File:',Image,'|16x24px|top]]')|where=_pageNamespace='0'AND _pageName='{{#replace:{{{1|}}}| | ||
'|''}}'|format=list}} | '|''}}'|format=list}} | ||
</span> | </span> |
Revision as of 23:26, 6 August 2019
!!Currently only for use for objects in the tables: ItemsTable, Food, Corpses, Characters. All possible items can be found here: Special:CargoTables/GeneralData. If an item is missing, please let User:Teamtoto know.
Usage
Used similar to regular wikipage linking syntax. First argument takes name of the page and will pull the image from that item.
{{favilink|stopsvalinn}}
You can also use a second argument to reword the link:
{{favilink|torch|A &Rreally&y spicy meatball}}