Template:Creatures with the item: Difference between revisions

m
no edit summary
(Try to fix defaulting template)
mNo edit summary
Line 4: Line 4:
{{#cargo_query
{{#cargo_query
:tables = GeneralData,Inventory
:tables = GeneralData,Inventory
|join = GeneralData._pageID = Inventory._pageID
|join = GeneralData.JoinKey = Inventory.JoinKey
|fields = GeneralData.PlainName = Page
|fields = GeneralData.PlainName = Page
|where = BINARY Inventory.Item = '{{PAGENAME}}'
|where = BINARY Inventory.Item = '{{#replace:{{{1|{{PAGENAME}}}}}|'|''}}'
|template = favilink
|template = favilink
|default={{{1}}}
|default={{{1}}}