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 (undid all formerName changes as they were unsuccessful)
m (added {{Tocbox}})
(One intermediate revision by the same user not shown)
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}}|&#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), 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 (\)
 
-->
 
-->
 
{{#if: {{{cover|}}} |
 
{{#if: {{{cover|}}} |
Line 86: Line 86:
 
</tr>
 
</tr>
 
}}<span style="display:none">{{#default_form:Company page}}</span></table><includeonly><!--
 
}}<span style="display:none">{{#default_form:Company page}}</span></table><includeonly><!--
 +
-->{{Tocbox}}<!--
 
-->{{#cargo_query:
 
-->{{#cargo_query:
 
tables=Infobox_game
 
tables=Infobox_game
Line 110: Line 111:
 
-->{{#cargo_query:
 
-->{{#cargo_query:
 
tables=Engine
 
tables=Engine
|where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Developer="Company:€€€€€"|\sOR\s}}
+
|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:50, 18 September 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
}}