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 ({{#var:formerNames}})
 
(2 intermediate revisions by the same user not shown)
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 (\)  
-->{{#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
|where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Developers HOLDS LIKE "Company:€€€€€"|\sOR\s}}
+
|where={{#arraymap:{{#var:pageName}},{{#var:formerNames}}|,|€€€€€|Developers HOLDS LIKE "Company:€€€€€"|\sOR\s}}
 
|fields=_pageName,Developers,Publishers,Engines,Released_PC_booter,Released_DOS,Released_Windows_3x,Released_Windows,Released_Mac_OS,Released_OS_X,Released_Linux,Released
 
|fields=_pageName,Developers,Publishers,Engines,Released_PC_booter,Released_DOS,Released_Windows_3x,Released_Windows,Released_Mac_OS,Released_OS_X,Released_Linux,Released
 
|format=template
 
|format=template
Line 17: Line 18:
 
-->{{#cargo_query:
 
-->{{#cargo_query:
 
tables=Infobox_game
 
tables=Infobox_game
|where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Publishers HOLDS LIKE "Company:€€€€€"|\sOR\s}}
+
|where={{#arraymap:{{#var:pageName}},{{#var:formerNames}}|,|€€€€€|Publishers HOLDS LIKE "Company:€€€€€"|\sOR\s}}
 
|fields=_pageName,Developers,Publishers,Engines,Released_PC_booter,Released_DOS,Released_Windows_3x,Released_Windows,Released_Mac_OS,Released_OS_X,Released_Linux,Released
 
|fields=_pageName,Developers,Publishers,Engines,Released_PC_booter,Released_DOS,Released_Windows_3x,Released_Windows,Released_Mac_OS,Released_OS_X,Released_Linux,Released
 
|format=template
 
|format=template
Line 28: Line 29:
 
-->{{#cargo_query:
 
-->{{#cargo_query:
 
tables=Engine
 
tables=Engine
|where={{#arraymap:{{#var:pageNameSpaces}},{{{formernames|}}}|,|€€€€€|Developer="Company:€€€€€"|\sOR\s}}
+
|where={{#arraymap:{{#var:pageNameSpaces}},{{#var:formerNames}}|,|€€€€€|Developer="Company:€€€€€"|\sOR\s}}
 
|fields=_pageName,Developer,Website,First_release,Latest_release
 
|fields=_pageName,Developer,Website,First_release,Latest_release
 
|format=template
 
|format=template
Line 39: Line 40:
 
-->{{#cargo_query:
 
-->{{#cargo_query:
 
tables=Infobox_game
 
tables=Infobox_game
|where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Porters_PC_booter HOLDS LIKE "Company:€€€€€"|\sOR\s}}
+
|where={{#arraymap:{{#var:pageName}},{{#var:formerNames}}|,|€€€€€|Porters_PC_booter HOLDS LIKE "Company:€€€€€"|\sOR\s}}
 
|fields=_pageName,Developers,Publishers,Engines,Released_PC_booter=Released
 
|fields=_pageName,Developers,Publishers,Engines,Released_PC_booter=Released
 
|format=template
 
|format=template
Line 50: Line 51:
 
-->{{#cargo_query:
 
-->{{#cargo_query:
 
tables=Infobox_game
 
tables=Infobox_game
|where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Porters_DOS HOLDS LIKE "Company:€€€€€"|\sOR\s}}
+
|where={{#arraymap:{{#var:pageName}},{{#var:formerNames}}|,|€€€€€|Porters_DOS HOLDS LIKE "Company:€€€€€"|\sOR\s}}
 
|fields=_pageName,Developers,Publishers,Engines,Released_DOS=Released
 
|fields=_pageName,Developers,Publishers,Engines,Released_DOS=Released
 
|format=template
 
|format=template
Line 61: Line 62:
 
-->{{#cargo_query:
 
-->{{#cargo_query:
 
tables=Infobox_game
 
tables=Infobox_game
|where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Porters_Windows_3x HOLDS LIKE "Company:€€€€€"|\sOR\s}}
+
|where={{#arraymap:{{#var:pageName}},{{#var:formerNames}}|,|€€€€€|Porters_Windows_3x HOLDS LIKE "Company:€€€€€"|\sOR\s}}
 
|fields=_pageName,Developers,Publishers,Engines,Released_Windows_3x=Released
 
|fields=_pageName,Developers,Publishers,Engines,Released_Windows_3x=Released
 
|format=template
 
|format=template
Line 72: Line 73:
 
-->{{#cargo_query:
 
-->{{#cargo_query:
 
tables=Infobox_game
 
tables=Infobox_game
|where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Porters_Windows HOLDS LIKE "Company:€€€€€"|\sOR\s}}
+
|where={{#arraymap:{{#var:pageName}},{{#var:formerNames}}|,|€€€€€|Porters_Windows HOLDS LIKE "Company:€€€€€"|\sOR\s}}
 
|fields=_pageName,Developers,Publishers,Engines,Released_Windows=Released
 
|fields=_pageName,Developers,Publishers,Engines,Released_Windows=Released
 
|format=template
 
|format=template
Line 83: Line 84:
 
-->{{#cargo_query:
 
-->{{#cargo_query:
 
tables=Infobox_game
 
tables=Infobox_game
|where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Porters_Mac_OS HOLDS LIKE "Company:€€€€€"|\sOR\s}}
+
|where={{#arraymap:{{#var:pageName}},{{#var:formerNames}}|,|€€€€€|Porters_Mac_OS HOLDS LIKE "Company:€€€€€"|\sOR\s}}
 
|fields=_pageName,Developers,Publishers,Engines,Released_Mac_OS=Released
 
|fields=_pageName,Developers,Publishers,Engines,Released_Mac_OS=Released
 
|format=template
 
|format=template
Line 94: Line 95:
 
-->{{#cargo_query:
 
-->{{#cargo_query:
 
tables=Infobox_game
 
tables=Infobox_game
|where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Porters_OS_X HOLDS LIKE "Company:€€€€€"|\sOR\s}}
+
|where={{#arraymap:{{#var:pageName}},{{#var:formerNames}}|,|€€€€€|Porters_OS_X HOLDS LIKE "Company:€€€€€"|\sOR\s}}
 
|fields=_pageName,Developers,Publishers,Engines,Released_OS_X=Released
 
|fields=_pageName,Developers,Publishers,Engines,Released_OS_X=Released
 
|format=template
 
|format=template
Line 105: Line 106:
 
-->{{#cargo_query:
 
-->{{#cargo_query:
 
tables=Infobox_game
 
tables=Infobox_game
|where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Porters_Linux HOLDS LIKE "Company:€€€€€"|\sOR\s}}
+
|where={{#arraymap:{{#var:pageName}},{{#var:formerNames}}|,|€€€€€|Porters_Linux HOLDS LIKE "Company:€€€€€"|\sOR\s}}
 
|fields=_pageName,Developers,Publishers,Engines,Released_Linux=Released
 
|fields=_pageName,Developers,Publishers,Engines,Released_Linux=Released
 
|format=template
 
|format=template

Latest revision as of 17:53, 2 October 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}}