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 (added subsidaries field)
m ({{#var:formerNames}})
 
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<table class="vertical-navbox template-infobox" id="infobox-company">
 
<table class="vertical-navbox template-infobox" id="infobox-company">
<caption class="template-infobox-title">{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}<includeonly>[[Category:Companies]]</includeonly></caption>
+
<caption class="template-infobox-title">{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}<includeonly>[[Category:Companies]]</includeonly></caption><!--
 
+
-->{{#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: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 14: Line 17:
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td class="template-infobox-info plainlinks" colspan="2">[[Website::{{{website}}}]]</td>
+
<td class="template-infobox-info plainlinks" colspan="2">{{{website|}}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
Line 24: Line 27:
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td class="template-infobox-info plainlinks" colspan="2">[[Parent company::Company:{{{parent}}}|{{{parent}}}]]</td>
+
<td class="template-infobox-info plainlinks" colspan="2">[[Company:{{{parent}}}|{{{parent}}}]]</td>
 
</tr>
 
</tr>
 
}}
 
}}
  
<!-- Subsidaries -->
+
<!-- Subsidiaries -->
{{#ifexpr: {{#ask: [[Parent company::{{FULLPAGENAME}}]] |format=count }} > 0 |
+
{{#if: {{#cargo_query:
 +
tables=Company
 +
|where={{#arraymap:{{#var:pageNameSpaces}},{{#var:formerNames}}|,|€€€€€|Parent="Company:€€€€€"|\sOR\s}}
 +
|default=
 +
}} |
 
<tr>
 
<tr>
<th class="template-infobox-header" colspan="2">Subsidaries</th>
+
<th class="template-infobox-header" colspan="2">Subsidiaries</th>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td class="template-infobox-info plainlinks" colspan="2">{{#ask: [[Parent company::{{FULLPAGENAME}}]] |format=list|sep=<br> }}</td>
+
<td class="template-infobox-info plainlinks" colspan="2">{{#cargo_query:
 +
tables=Company
 +
|where={{#arraymap:{{#var:pageNameSpaces}},{{#var:formerNames}}|,|€€€€€|Parent="Company:€€€€€"|\sOR\s}}
 +
|fields=_pageName
 +
|format=template
 +
|template=Infobox company/subsidiaries
 +
}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
  
 
<!-- 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|,|}}
 
}}
 
}}
  
Line 52: Line 65:
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td class="template-infobox-info plainlinks" colspan="2">[[Founded::{{{founded}}}]]</td>
+
<td class="template-infobox-info plainlinks" colspan="2">{{{founded|}}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
Line 62: Line 75:
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td class="template-infobox-info plainlinks" colspan="2">[[Defunct::{{{defunct}}}]]</td>
+
<td class="template-infobox-info plainlinks" colspan="2">{{{defunct|}}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
Line 72: Line 85:
 
-->{{#if: {{{wikipedia|}}} | <div title="{{PAGENAME}} at Wikipedia" class="template-infobox-icon svg-icon svg-18 infobox-wikipedia">[[Wikipedia:{{{wikipedia}}}|&nbsp;]]</div> }}</td>
 
-->{{#if: {{{wikipedia|}}} | <div title="{{PAGENAME}} at Wikipedia" class="template-infobox-icon svg-icon svg-18 infobox-wikipedia">[[Wikipedia:{{{wikipedia}}}|&nbsp;]]</div> }}</td>
 
</tr>
 
</tr>
}}<span style="display:none">{{#default_form:Company page}}</span>
+
}}<span style="display:none">{{#default_form:Company page}}</span></table><includeonly><!--
 
+
-->{{Tocbox}}{{#ifeq: {{{listgames|true}}} | false | | {{Infobox company/query}} }}<!--
<!-- Hidden properties -->
+
--></includeonly><noinclude>{{#cargo_declare:
{{#if: {{{wikipedia|}}}| [[Wikipedia::{{{wikipedia}}}| ]] }}
+
_table=Company
</table><includeonly><!--
+
|Website=URL
-->{{#ask: [[Category:Games]] [[Developed by::Company:{{PAGENAME}}]]
+
|Parent=Page
| ?Developed by
+
|Founded=Date
| ?Published by
+
|Defunct=Date
| ?Uses engine
+
}}</noinclude><includeonly>{{#cargo_store:
| ?Available on
+
_table=Company
| ?Release date PC booter
+
|Website={{{website|}}}
| ?Release date DOS
+
|Parent=Company:{{{parent|}}}
| ?Release date Windows 3x
+
|Founded={{{founded|}}}
| ?Release date Windows
+
|Defunct={{{defunct|}}}
| ?Release date Mac OS
 
| ?Release date OS X
 
| ?Release date Linux
 
| ?Release date#ISO|+limit=1
 
| intro          = <h2>Games developed</h2>
 
| outro          = [[Category:Developers]]
 
| introtemplate  = Infobox company/intro/company
 
| outrotemplate  = Infobox company/outro
 
| template      = Infobox company/row/company
 
| format        = template
 
| default        =
 
}}<!--
 
-->{{#ask: [[Category:Games]] [[Published by::Company:{{PAGENAME}}]]
 
| ?Developed by
 
| ?Published by
 
| ?Uses engine
 
| ?Available on
 
| ?Release date PC booter
 
| ?Release date DOS
 
| ?Release date Windows 3x
 
| ?Release date Windows
 
| ?Release date Mac OS
 
| ?Release date OS X
 
| ?Release date Linux
 
| ?Release date#ISO|+limit=1
 
| intro          = <h2>Games published</h2>
 
| outro          = [[Category:Publishers]]
 
| introtemplate  = Infobox company/intro/company
 
| outrotemplate  = Infobox company/outro
 
| template      = Infobox company/row/company
 
| format        = template
 
| default        =
 
}}<!--
 
-->{{#ask: [[Category:Engines]] [[Developed by::Company:{{PAGENAME}}]]
 
| ?Developed by
 
| ?Website
 
| ?Engine first release
 
| ?Engine latest release
 
| ?Engine first release#ISO
 
| ?Engine latest release#ISO
 
| intro          = <h2>Engines developed</h2>
 
| outro          = [[Category:Developers]]
 
| introtemplate  = Infobox company/intro/engine
 
| outrotemplate  = Infobox company/outro
 
| template      = Infobox company/row/engine
 
| format        = template
 
| default        =
 
}}<!--
 
-->{{#ask: [[Category:Games]] [[Ported to PC booter by::Company:{{PAGENAME}}]]
 
| ?Developed by
 
| ?Published by
 
| ?Uses engine
 
| ?Release date|+limit=1
 
| ?Release date PC booter
 
| ?Release date#ISO|+limit=1
 
| ?Release date PC booter#ISO
 
| intro          = <h2>Games ported to PC booter</h2>
 
| outro          = [[Category:Porters]]
 
| introtemplate  = Infobox company/intro/PC booter
 
| outrotemplate  = Infobox company/outro
 
| template      = Infobox company/row
 
| format        = template
 
| default        =
 
}}<!--
 
-->{{#ask: [[Category:Games]] [[Ported to DOS by::Company:{{PAGENAME}}]]
 
| ?Developed by
 
| ?Published by
 
| ?Uses engine
 
| ?Release date|+limit=1
 
| ?Release date DOS
 
| ?Release date#ISO|+limit=1
 
| ?Release date DOS#ISO
 
| intro          = <h2>Games ported to DOS</h2>
 
| outro          = [[Category:Porters]]
 
| introtemplate  = Infobox company/intro/DOS
 
| outrotemplate  = Infobox company/outro
 
| template      = Infobox company/row
 
| format        = template
 
| default        =
 
}}<!--
 
-->{{#ask: [[Category:Games]] [[Ported to Windows 3x by::Company:{{PAGENAME}}]]
 
| ?Developed by
 
| ?Published by
 
| ?Uses engine
 
| ?Release date|+limit=1
 
| ?Release date Windows 3x
 
| ?Release date#ISO|+limit=1
 
| ?Release date Windows 3x#ISO
 
| intro          = <h2>Games ported to Windows 3.x</h2>
 
| outro          = [[Category:Porters]]
 
| introtemplate  = Infobox company/intro/Windows 3.x
 
| outrotemplate  = Infobox company/outro
 
| template      = Infobox company/row
 
| format        = template
 
| default        =
 
}}<!--
 
-->{{#ask: [[Category:Games]] [[Ported to Windows by::Company:{{PAGENAME}}]]
 
| ?Developed by
 
| ?Published by
 
| ?Uses engine
 
| ?Release date|+limit=1
 
| ?Release date Windows
 
| ?Release date#ISO|+limit=1
 
| ?Release date Windows#ISO
 
| intro          = <h2>Games ported to Windows</h2>
 
| outro          = [[Category:Porters]]
 
| introtemplate  = Infobox company/intro/Windows
 
| outrotemplate  = Infobox company/outro
 
| template      = Infobox company/row
 
| format        = template
 
| default        =
 
}}<!--
 
-->{{#ask: [[Category:Games]] [[Ported to OS X by::Company:{{PAGENAME}}]]
 
| ?Developed by
 
| ?Published by
 
| ?Uses engine
 
| ?Release date|+limit=1
 
| ?Release date OS X
 
| ?MacOS Intel 64-bit app
 
| ?Release date#ISO|+limit=1
 
| ?Release date OS X#ISO
 
| intro          = <h2>Games ported to macOS (formerly OS X)</h2>
 
| outro          = [[Category:Porters]]
 
| introtemplate  = Infobox company/intro/OS X
 
| outrotemplate  = Infobox company/outro
 
| template      = Infobox company/row/OS X
 
| format        = template
 
| default        =
 
}}<!--
 
-->{{#ask: [[Category:Games]] [[Ported to Linux by::Company:{{PAGENAME}}]]
 
| ?Developed by
 
| ?Published by
 
| ?Uses engine
 
| ?Release date|+limit=1
 
| ?Release date Linux
 
| ?Linux XDG support
 
| ?Release date#ISO|+limit=1
 
| ?Release date Linux#ISO
 
| intro          = <h2>Games ported to Linux</h2>
 
| outro          = [[Category:Porters]]
 
| introtemplate  = Infobox company/intro/Linux
 
| outrotemplate  = Infobox company/outro
 
| template      = Infobox company/row/Linux
 
| format        = template
 
| default        =
 
}}<!--
 
-->{{#ask: [[Category:Games]] [[Ported to Mac OS by::Company:{{PAGENAME}}]]
 
| ?Developed by
 
| ?Published by
 
| ?Uses engine
 
| ?Release date|+limit=1
 
| ?Release date Mac OS
 
| ?Release date#ISO|+limit=1
 
| ?Release date Mac OS#ISO
 
| intro          = <h2>Games ported to Mac OS</h2>
 
| outro          = [[Category:Porters]]
 
| introtemplate  = Infobox company/intro/Mac OS
 
| outrotemplate  = Infobox company/outro
 
| template      = Infobox company/row
 
| format        = template
 
| default        =
 
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>

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