Template:Favilink: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(fixed bug with across1-3) |
||
Line 1: | Line 1: | ||
<includeonly><span class="qud-image"><span class="qud-image-link-image-container">{{#cargo_query:table=GeneralData|fields= | <includeonly><span class="qud-image"><span class="qud-image-link-image-container">[[File:{{#cargo_query:table=GeneralData|fields=Image|where=_pageNamespace='0'AND _pageName='{{#replace:{{{1|}}}|'|''}}'|format=template|template=single query result}}|16x24px|link={{{1|}}}]]</span><span class="qud-image-link" style="color:#b1c9c3;">[[{{{1|}}}|{{#if: {{{2|}}}|{{Qud text|&y{{{2}}}|notxml}}|{{#cargo_query:table=GeneralData|fields=DisplayName|where=_pageNamespace='0' AND _pageName='{{#replace:{{{1|}}}|'|''}}'}}}}]]</span></span></includeonly><noinclude> | ||
[[Category:Templates]] | [[Category:Templates]] | ||
!!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. | !!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. | ||
Line 7: | Line 7: | ||
{{favilink|stopsvalinn}} | {{favilink|stopsvalinn}} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{favilink| | {{favilink|stopsvalinn}} | ||
You can also use a second argument to reword the link: | You can also use a second argument to reword the link: |
Revision as of 11:31, 7 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}}