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 ({{#var:formerNames}})
 
Line 7: Line 7:
 
-->{{#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 18: 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 29: 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 40: 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 51: 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 62: 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 73: 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 84: 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 95: 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 106: 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}}