8,756
edits
(refactor) |
(Replace default with more helpful message, small doc) |
||
Line 1: | Line 1: | ||
{{#invoke:cargoQuery|main | <includeonly>{{#invoke:cargoQuery|main | ||
|tables = GeneralData=GD,Inventory=I | |tables = GeneralData=GD,Inventory=I | ||
|join on = GD.JoinKey= I.JoinKey | |join on = GD.JoinKey= I.JoinKey | ||
Line 6: | Line 6: | ||
|format = ul | |format = ul | ||
|template = favilink format | |template = favilink format | ||
|default = {{{1}}} | |default = No creatures spawn with {{{1|{{PAGENAME}}}}}. | ||
}}<noinclude>[[Category:Query Templates]]</noinclude> | }}</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> | |||
{{Creatures with the item|Desert rifle}} | |||
</noinclude> |