Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

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

From PCGamingWiki, the wiki about fixing PC games
(created page)
 
(migrated to Cargo query)
(4 intermediate revisions by 2 users not shown)
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 |+limit=1
+
|fields=_pageName,Developers,Publishers,Released,Available_on
| ?Available on=Systems|+order=desc
+
|format=template
| ?Release date#ISO|+limit=1
+
|named args=yes
| intro         = <h2>Games</h2>
+
|intro={{Infobox engine/ti}}
| introtemplate  = Template:Infobox engine/ti
+
|template=Infobox engine/row
| outrotemplate  = Template:Infobox engine/to
+
|outro=</table></div>
| template      = Template:Infobox engine/t
+
|default=
| format        = template
 
| default       =
 
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>

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.

Limited to 500 games by default, but can be adjusted using the second parameter. It is not recommended to increase this parameter as the template include size limit of PCGamingWiki is easily reached, which will end up with the query not producing any output.


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}}

Automatically includes a list of 250 games using the specified engine:

{{Infobox engine/query|Engine Name|250}}