8,756
edits
(Created page with "<includeonly><ul><li>{{#invoke:CargoQuery|main |q?tables=GeneralData,Inventory |q?join=GeneralData._pageID=Inventory._pageID |q?fields=GeneralData.PlainName=Page |q?where= BIN...") |
(Replace default with more helpful message, small doc) |
||
(13 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly | <includeonly>{{#invoke:cargoQuery|main | ||
| | |tables = GeneralData=GD,Inventory=I | ||
| | |join on = GD.JoinKey= I.JoinKey | ||
| | |fields = {{favilink format args}} | ||
| | |where = I.Item = '{{{1|{{PAGENAME}}}}}' | ||
|template=favilink | |format = ul | ||
| | |template = favilink format | ||
|default = No creatures spawn with {{{1|{{PAGENAME}}}}}. | |||
}}</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> |