Template:Creatures with the item: Difference between revisions
Jump to navigation
Jump to search
m (on) |
(Replace default with more helpful message, small doc) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
< | <includeonly>{{#invoke:cargoQuery|main | ||
|tables = GeneralData=GD,Inventory=I | |||
{{# | |join on = GD.JoinKey= I.JoinKey | ||
tables = GeneralData,Inventory | |fields = {{favilink format args}} | ||
|join on = | |where = I.Item = '{{{1|{{PAGENAME}}}}}' | ||
|fields = | |format = ul | ||
|where = | |template = favilink format | ||
|template = favilink | |default = No creatures spawn with {{{1|{{PAGENAME}}}}}. | ||
|default = {{{1}}} | }}</includeonly><noinclude>[[Category:Query Templates]] | ||
This template takes an optional one argument, which returns anything with the specified item page name. Leaving it blank will default to the page name the template was invoked on. | |||
}} | |||
</ | == Usage == | ||
<pre>{{Creatures with the item|Desert rifle}}</pre> | |||
<noinclude>[[Category:Query Templates]]</noinclude> | {{Creatures with the item|Desert rifle}} | ||
</noinclude> |
Latest revision as of 13:42, 13 August 2021
This template takes an optional one argument, which returns anything with the specified item page name. Leaving it blank will default to the page name the template was invoked on.
Usage
{{Creatures with the item|Desert rifle}}
No creatures spawn with Desert rifle.