Template:Favilink: Difference between revisions

8 bytes removed ,  11:11, 7 August 2019
changed to internal links
mNo edit summary
(changed to internal links)
Line 1: Line 1:
<includeonly><span class="qud-image"><span class="qud-image-link"><span class="qud-image-link-image-container">{{#ifeq: {{#cargo_query:table=GeneralData|fields=Image|where=_pageNamespace='0'AND _pageName='{{#replace:{{{1|}}}|'|''}}'|format=list|default=NONE}}| NONE | |{{#cargo_query:table=GeneralData|fields=CONCAT('[[File:',Image,'|16x24px|top]]')|where=_pageNamespace='0'AND _pageName='{{#replace:{{{1|}}}|'|''}}'|format=list}}}}</span> <span class="plainlinks">[{{canonicalurl:{{{1|}}}}} {{#if: {{{2|}}}|{{Qud text|&y{{{2}}}|notxml}}|{{#cargo_query:table=GeneralData|fields=DisplayName|where=_pageNamespace='0' AND _pageName='{{#replace:{{{1|}}}|'|''}}'}}}}]</span></span> </span></includeonly><noinclude>
<includeonly><span class="qud-image"><span class="qud-image-link-image-container">{{#ifeq: {{#cargo_query:table=GeneralData|fields=Image|where=_pageNamespace='0'AND _pageName='{{#replace:{{{1|}}}|'|''}}'|format=list|default=NONE}}| NONE | |{{#cargo_query:table=GeneralData|fields=CONCAT('[[File:',Image,'|16x24px|link={{{1|}}}]]')|where=_pageNamespace='0'AND _pageName='{{#replace:{{{1|}}}|'|''}}'|format=list}}}}</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> </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.