Difference between revisions of "Template:Infobox company"
m (undid all formerName changes as they were unsuccessful) |
m (moved engine query over to using pageNameSpaces) |
||
Line 3: | Line 3: | ||
-->{{#vardefine:pageName|{{#arraymap:{{PAGENAME}}|\s|€€€€€|€€€€€|_}}}}<!-- convert spaces ( ) to underscore (_) | -->{{#vardefine:pageName|{{#arraymap:{{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:{{PAGENAME}}|"|€€€€€|€€€€€|\"}}}}<!-- page name with spaces (needed for subsidaries), but with escaped double quotes (", html entity: ") in the query using a backslash (\) | + | -->{{#vardefine:pageNameSpaces|{{#arraymap:{{PAGENAME}}|"|€€€€€|€€€€€|\"}}}}<!-- page name with spaces (needed for subsidaries and engine queries), but with escaped double quotes (", html entity: ") in the query using a backslash (\) |
--> | --> | ||
{{#if: {{{cover|}}} | | {{#if: {{{cover|}}} | | ||
Line 110: | Line 110: | ||
-->{{#cargo_query: | -->{{#cargo_query: | ||
tables=Engine | tables=Engine | ||
− | |where={{#arraymap:{{#var: | + | |where={{#arraymap:{{#var:pageNameSpaces}},{{{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 |
Revision as of 16:49, 18 September 2022
This template defines the table "Company". View table.
Description
Used on pages below the "Company" namespace.
Also automatically populates lists of games the company is involved in, unless disabled using listgames=false
. If the lists are disabled in this template call, add {{Infobox company/query}} call somewhere further down the page to have the lists appear there instead.
Syntax
{{Infobox company |title = |cover = |website = |parent = |formernames = |founded = |defunct = |wikipedia = |listgames = true }}