Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Difference between revisions of "Template:Infobox company"

From PCGamingWiki, the wiki about fixing PC games
m (moved over to using {{Infobox company/query}})
m ({{#var:formerNames}})
 
Line 4: Line 4:
 
-->{{#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:{{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:{{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:formerNames|{{{formernames|}}}}}
 
{{#if: {{{cover|}}} |
 
{{#if: {{{cover|}}} |
 
<tr>
 
<tr>
Line 34: Line 34:
 
{{#if: {{#cargo_query:
 
{{#if: {{#cargo_query:
 
tables=Company
 
tables=Company
|where={{#arraymap:{{#var:pageNameSpaces}},{{{formernames|}}}|,|€€€€€|Parent="Company:€€€€€"|\sOR\s}}
+
|where={{#arraymap:{{#var:pageNameSpaces}},{{#var:formerNames}}|,|€€€€€|Parent="Company:€€€€€"|\sOR\s}}
 
|default=
 
|default=
 
}} |
 
}} |
Line 43: Line 43:
 
<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={{#arraymap:{{#var:pageNameSpaces}},{{{formernames|}}}|,|€€€€€|Parent="Company:€€€€€"|\sOR\s}}
+
|where={{#arraymap:{{#var:pageNameSpaces}},{{#var:formerNames}}|,|€€€€€|Parent="Company:€€€€€"|\sOR\s}}
 
|fields=_pageName
 
|fields=_pageName
 
|format=template
 
|format=template
Line 52: Line 52:
  
 
<!-- Former names -->
 
<!-- Former names -->
{{#if: {{{formernames|}}}|
+
{{#if: {{#var:formerNames}}|
 
<tr>
 
<tr>
 
<th class="template-infobox-header" colspan="2">Previous names</th>
 
<th class="template-infobox-header" colspan="2">Previous names</th>
 
</tr>
 
</tr>
{{#arraymaptemplate:{{{formernames|}}}|Infobox company/fn|,|}}
+
{{#arraymaptemplate:{{#var:formerNames}}|Infobox company/fn|,|}}
 
}}
 
}}
  

Latest revision as of 17:53, 2 October 2022

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.

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
}}