Difference between revisions of "Template:Infobox engine/query"

From PCGamingWiki, the wiki about fixing PC games
m (Garrett moved page Template:Infobox engine/ask to Template:Infobox engine/query: Cargo naming structure)
(migrated to Cargo query)
 
Line 1: Line 1:
<includeonly>{{#ask: [[Category:Games]] [[Uses engine::Engine:{{{1|{{PAGENAME}}}}}]]
+
<includeonly>{{#cargo_query:
| ?Developed by=Developer
+
tables=Infobox_game
| ?Published by=Publisher
+
|where=Engines HOLDS LIKE "Engine:{{{1|{{PAGENAME}}}}}"
| ?Release date=First release|+order=asc|+limit=1
+
|fields=_pageName,Developers,Publishers,Released,Available_on
| ?Available on=Systems|+order=desc
+
|format=template
| ?Release date#ISO|+order=asc|+limit=1
+
|named args=yes
| intro         = <h2>Games</h2>
+
|intro={{Infobox engine/ti}}
| introtemplate  = Infobox engine/ti
+
|template=Infobox engine/row
| outrotemplate  = Infobox engine/to
+
|outro=</table></div>
| template      = Infobox engine/t
+
|default=
| format        = template
 
| default       =
 
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 08:11, 2 October 2021

Documentation for the above template (sometimes hidden from view).

Description

Invoked either automatically through {{Infobox engine}} (if listgames is not set to false) or manually at an appropriate location of the engine pages.

Allows the selective hiding and repositioning of the list of games on engine pages, or includes lists of games using specific engines on other pages.


Syntax

Automatically includes a list of games using the engine of the page the command is called from. This basically only applies when used on engine pages:

{{Infobox engine/query}}

Automatically includes a list of games using the specified engine:

{{Infobox engine/query|Engine Name}}