Difference between revisions of "Template:Infobox company"

From PCGamingWiki, the wiki about fixing PC games
(migrated remaining Semantic MediaWiki handling to Cargo)
(updated subsidiaries to check against former names as well)
Line 31: Line 31:
 
{{#if: {{#cargo_query:
 
{{#if: {{#cargo_query:
 
tables=Company
 
tables=Company
|where=Parent="Company:{{PAGENAME}}"
+
|where={{#arraymap:{{PAGENAME}},{{{formernames|}}}|,|€€€€€|Parent="Company:€€€€€"|\sOR\s}}
 
|default=
 
|default=
 
}} |
 
}} |
Line 40: Line 40:
 
<td class="template-infobox-info plainlinks" colspan="2">{{#cargo_query:
 
<td class="template-infobox-info plainlinks" colspan="2">{{#cargo_query:
 
tables=Company
 
tables=Company
|where=Parent="Company:{{PAGENAME}}"
+
|where={{#arraymap:{{PAGENAME}},{{{formernames|}}}|,|€€€€€|Parent="Company:€€€€€"|\sOR\s}}
 
|fields=_pageName
 
|fields=_pageName
 
|format=template
 
|format=template

Revision as of 09:43, 5 October 2021

Infobox company

This template defines the table "Company". View table.

Documentation for the above template (sometimes hidden from view).

Description

Used on pages below the "Company" namespace.

Syntax

{{Infobox company
|title        = 
|cover        = 
|website      = 
|parent       = 
|formernames  = 
|founded      = 
|defunct      = 
|wikipedia    = 
}}