Difference between revisions of "Template:Infobox company/query"
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}}|"|€€€€€|€€€€€|\"}}}}<!-- escape double quotes (", html entity: ") in the query using a backslash (\) | -->{{#vardefine:pageName|{{#arraymap:{{#var:pageName}}|"|€€€€€|€€€€€|\"}}}}<!-- escape double quotes (", html entity: ") in the query using a backslash (\) | ||
− | -->{{#vardefine:pageNameSpaces|{{#arraymap:{{{1|{{PAGENAME}}}}}|"|€€€€€|€€€€€|\"}}}}<!-- page name with spaces (needed for subsidaries and engine queries), but with escaped double quotes (", html entity: ") in the query using a backslash (\)}}<!-- | + | -->{{#vardefine:pageNameSpaces|{{#arraymap:{{{1|{{PAGENAME}}}}}|"|€€€€€|€€€€€|\"}}}}<!-- page name with spaces (needed for subsidaries and engine queries), but with escaped double quotes (", html entity: ") in the query using a backslash (\) |
+ | -->}}<!-- | ||
-->{{#cargo_query: | -->{{#cargo_query: | ||
tables=Infobox_game | tables=Infobox_game |
Revision as of 10:13, 28 September 2022
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}}