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

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

From PCGamingWiki, the wiki about fixing PC games
m (supported {{{1|{{PAGENAME}}}}})
m (-->)
Line 3: Line 3:
 
-->{{#vardefine:pageName|{{#arraymap:{{{1|{{PAGENAME}}}}}|\s|€€€€€|€€€€€|_}}}}<!-- convert spaces ( ) to underscore (_)
 
-->{{#vardefine:pageName|{{#arraymap:{{{1|{{PAGENAME}}}}}|\s|€€€€€|€€€€€|_}}}}<!-- convert spaces ( ) to underscore (_)
 
-->{{#vardefine:pageName|{{#arraymap:{{#var:pageName}}|&#34;|€€€€€|€€€€€|\"}}}}<!-- escape double quotes (", html entity: &#34;) in the query using a backslash (\)  
 
-->{{#vardefine:pageName|{{#arraymap:{{#var:pageName}}|&#34;|€€€€€|€€€€€|\"}}}}<!-- escape double quotes (", html entity: &#34;) in the query using a backslash (\)  
-->{{#vardefine:pageNameSpaces|{{#arraymap:{{{1|{{PAGENAME}}}}}|&#34;|€€€€€|€€€€€|\"}}}}<!-- page name with spaces (needed for subsidaries and engine queries), but with escaped double quotes (", html entity: &#34;) in the query using a backslash (\)}}<!--
+
-->{{#vardefine:pageNameSpaces|{{#arraymap:{{{1|{{PAGENAME}}}}}|&#34;|€€€€€|€€€€€|\"}}}}<!-- page name with spaces (needed for subsidaries and engine queries), but with escaped double quotes (", html entity: &#34;) in the query using a backslash (\)
 +
-->}}<!--
 
-->{{#cargo_query:
 
-->{{#cargo_query:
 
tables=Infobox_game
 
tables=Infobox_game

Revision as of 10:13, 28 September 2022

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

Description

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

Allows the selective hiding and repositioning of the list of games on company pages, or includes lists of games made by specific companies on other pages.


Syntax

Automatically includes a bunch of lists of games made by the name of the page the command is called from. This basically only applies when used on company pages:

{{Infobox company/query}}

Automatically includes a list of games made by the specified name:

{{Infobox company/query|Company Name}}