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 (-->)
m (|)
Line 1: Line 1:
 
<includeonly><!--
 
<includeonly><!--
-->{{#if:{{#var:pageName|}}{{#var:pageNameSpaces|}}|<!--
+
-->{{#if:{{#var:pageName|}}{{#var:pageNameSpaces|}}||<!--
 
-->{{#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 (\)  

Revision as of 10:14, 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}}