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
(added DOS porter support)
m (escape double quotes (", html entity: ") in the query using a backslash (\))
(29 intermediate revisions by 3 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">{{{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 (\)
 +
-->
 
{{#if: {{{cover|}}} |
 
{{#if: {{{cover|}}} |
 
<tr>
 
<tr>
Line 14: Line 16:
 
</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 26:
 
</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>
 +
}}
 +
 
 +
<!-- Subsidiaries -->
 +
{{#if: {{#cargo_query:
 +
tables=Company
 +
|where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Parent="Company:€€€€€"|\sOR\s}}
 +
|default=
 +
}} |
 +
<tr>
 +
<th class="template-infobox-header" colspan="2">Subsidiaries</th>
 +
</tr>
 +
<tr>
 +
<td class="template-infobox-info plainlinks" colspan="2">{{#cargo_query:
 +
tables=Company
 +
|where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Parent="Company:€€€€€"|\sOR\s}}
 +
|fields=_pageName
 +
|format=template
 +
|template=Infobox company/subsidiaries
 +
}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
Line 42: Line 64:
 
</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 52: Line 74:
 
</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 62: Line 84:
 
-->{{#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>
}}[[Page has default form::Company page| ]]
+
}}<span style="display:none">{{#default_form:Company page}}</span></table><includeonly><!--
 
+
-->{{#cargo_query:
<!-- Hidden properties -->
+
tables=Infobox_game
{{#if: {{{wikipedia|}}}| [[Wikipedia::{{{wikipedia}}}| ]] }}
+
|where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Developers HOLDS LIKE "Company:€€€€€"|\sOR\s}}
</table><includeonly>
+
|fields=_pageName,Developers,Publishers,Engines,Released_PC_booter,Released_DOS,Released_Windows_3x,Released_Windows,Released_Mac_OS,Released_OS_X,Released_Linux,Released
{{#ask: [[Category:Games]] [[Developed by::Company:{{PAGENAME}}]]
+
|format=template
| ?Developed by  = Developer
+
|named args=yes
| ?Published by  = Publisher
+
|intro=<h2>Games developed</h2>{{Infobox company/intro/company}}
| ?Uses engine  = Engine
+
|template=Infobox company/row/company
| ?Release date  = First release |+limit=1
+
|outro=</table></div>[[Category:Developers]]
| ?Available on  = Systems
+
|default=
| mainlabel      = Game
+
}}<!--
| intro         = <h2>Games developed</h2>
+
-->{{#cargo_query:
| outro         = [[Category:Developers]]
+
tables=Infobox_game
| introtemplate  = Template:Infobox company/t1i
+
|where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Publishers HOLDS LIKE "Company:€€€€€"|\sOR\s}}
| outrotemplate  = Template:Infobox company/t1o
+
|fields=_pageName,Developers,Publishers,Engines,Released_PC_booter,Released_DOS,Released_Windows_3x,Released_Windows,Released_Mac_OS,Released_OS_X,Released_Linux,Released
| template       = Template:Infobox company/t1
+
|format=template
| format        = template
+
|named args=yes
| default       =
+
|intro=<h2>Games published</h2>{{Infobox company/intro/company}}
}}
+
|template=Infobox company/row/company
{{#ask: [[Category:Games]] [[Published by::Company:{{PAGENAME}}]]
+
|outro=</table></div>[[Category:Publishers]]
| ?Developed by  = Developer
+
|default=
| ?Published by  = Publisher
+
}}<!--
| ?Uses engine  = Engine
+
-->{{#cargo_query:
| ?Release date  = First release |+limit=1
+
tables=Engine
| ?Available on  = Systems
+
|where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Developer="Company:€€€€€"|\sOR\s}}
| mainlabel      = Game
+
|fields=_pageName,Developer,Website,First_release,Latest_release
| intro         = <h2>Games published</h2>
+
|format=template
| outro          = [[Category:Publishers]]
+
|named args=yes
| introtemplate  = Template:Infobox company/t1i
+
|intro={{Infobox company/intro/engine}}
| outrotemplate  = Template:Infobox company/t1o
+
|template=Infobox company/row/engine
| template       = Template:Infobox company/t1
+
|outro=</table></div>[[Category:Developers]]
| format        = template
+
|default=
| default       =
+
}}<!--
}}
+
-->{{#cargo_query:
{{#ask: [[Category:Engines]] [[Developed by::Company:{{PAGENAME}}]]
+
tables=Infobox_game
| ?Developed by=Developer
+
|where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Porters_PC_booter HOLDS LIKE "Company:€€€€€"|\sOR\s}}
| ?Website
+
|fields=_pageName,Developers,Publishers,Engines,Released_PC_booter=Released
| ?Engine first release=First release
+
|format=template
| ?Engine latest release=Latest release
+
|named args=yes
| mainlabel      = Engine
+
|intro=<h2>Games ported to PC booter</h2>{{Infobox company/intro/ported|PC booter}}
| intro         = <h2>Engines developed</h2>
+
|template=Infobox company/row
| outro          = [[Category:Developers]]
+
|outro=</table></div>[[Category:Porters]]
| introtemplate  = Template:Infobox company/t2i
+
|default=
| outrotemplate  = Template:Infobox company/t1o
+
}}<!--
| template       = Template:Infobox company/t2
+
-->{{#cargo_query:
| format        = template
+
tables=Infobox_game
| default       =
+
|where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Porters_DOS HOLDS LIKE "Company:€€€€€"|\sOR\s}}
}}
+
|fields=_pageName,Developers,Publishers,Engines,Released_DOS=Released
{{#ask: [[Category:Games]] [[Ported to DOS by::Company:{{PAGENAME}}]]
+
|format=template
| ?Developed by  = Developer
+
|named args=yes
| ?Published by  = Publisher
+
|intro=<h2>Games ported to DOS</h2>{{Infobox company/intro/ported|DOS}}
| ?Uses engine  = Engine
+
|template=Infobox company/row
| ?Release date  = First release |+limit=1
+
|outro=</table></div>[[Category:Porters]]
| ?Release date DOS=DOS release
+
|default=
| mainlabel      = Game
+
}}<!--
| intro         = <h2>Games ported to DOS</h2>
+
-->{{#cargo_query:
| outro          = [[Category:Porters]]
+
tables=Infobox_game
| introtemplate  = Template:Infobox company/t3i
+
|where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Porters_Windows_3x HOLDS LIKE "Company:€€€€€"|\sOR\s}}
| outrotemplate  = Template:Infobox company/t1o
+
|fields=_pageName,Developers,Publishers,Engines,Released_Windows_3x=Released
| template       = Template:Infobox company/t3
+
|format=template
| format        = template
+
|named args=yes
| default       =
+
|intro=<h2>Games ported to Windows 3.x</h2>{{Infobox company/intro/ported|Windows 3.x}}
}}
+
|template=Infobox company/row
{{#ask: [[Category:Games]] [[Ported to Windows by::Company:{{PAGENAME}}]]
+
|outro=</table></div>[[Category:Porters]]
| ?Developed by  = Developer
+
|default=
| ?Published by  = Publisher
+
}}<!--
| ?Uses engine  = Engine
+
-->{{#cargo_query:
| ?Release date  = First release |+limit=1
+
tables=Infobox_game
| ?Release date Windows=Windows release
+
|where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Porters_Windows HOLDS LIKE "Company:€€€€€"|\sOR\s}}
| mainlabel      = Game
+
|fields=_pageName,Developers,Publishers,Engines,Released_Windows=Released
| intro         = <h2>Games ported to Windows</h2>
+
|format=template
| outro          = [[Category:Porters]]
+
|named args=yes
| introtemplate  = Template:Infobox company/t3i
+
|intro=<h2>Games ported to Windows</h2>{{Infobox company/intro/ported|Windows}}
| outrotemplate  = Template:Infobox company/t1o
+
|template=Infobox company/row
| template       = Template:Infobox company/t3
+
|outro=</table></div>[[Category:Porters]]
| format        = template
+
|default=
| default       =
+
}}<!--
}}
+
-->{{#cargo_query:
{{#ask: [[Category:Games]] [[Ported to OS X by::Company:{{PAGENAME}}]]
+
tables=Infobox_game
| ?Developed by  = Developer
+
|where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Porters_Mac_OS HOLDS LIKE "Company:€€€€€"|\sOR\s}}
| ?Published by  = Publisher
+
|fields=_pageName,Developers,Publishers,Engines,Released_Mac_OS=Released
| ?Uses engine  = Engine
+
|format=template
| ?Release date  = First release |+limit=1
+
|named args=yes
| ?Release date OS X=OS X release
+
|intro=<h2>Games ported to Mac OS (Classic)</h2>{{Infobox company/intro/ported|Mac OS}}
| mainlabel      = Game
+
|template=Infobox company/row
| intro         = <h2>Games ported to OS X</h2>
+
|outro=</table></div>[[Category:Porters]]
| outro          = [[Category:Porters]]
+
|default=
| introtemplate  = Template:Infobox company/t4i
+
}}<!--
| outrotemplate  = Template:Infobox company/t1o
+
-->{{#cargo_query:
| template       = Template:Infobox company/t3
+
tables=Infobox_game
| format        = template
+
|where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Porters_OS_X HOLDS LIKE "Company:€€€€€"|\sOR\s}}
| default       =
+
|fields=_pageName,Developers,Publishers,Engines,Released_OS_X=Released
}}
+
|format=template
{{#ask: [[Category:Games]] [[Ported to Linux by::Company:{{PAGENAME}}]]
+
|named args=yes
| ?Developed by  = Developer
+
|intro=<h2>Games ported to macOS (formerly OS X)</h2>{{Infobox company/intro/ported|OS X}}
| ?Published by  = Publisher
+
|template=Infobox company/row
| ?Uses engine  = Engine
+
|outro=</table></div>[[Category:Porters]]
| ?Release date  = First release |+limit=1
+
|default=
| ?Release date Linux=Linux release
+
}}<!--
| ?Linux XDG support=XDG support
+
-->{{#cargo_query:
| mainlabel      = Game
+
tables=Infobox_game
| intro         = <h2>Games ported to Linux</h2>
+
|where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Porters_Linux HOLDS LIKE "Company:€€€€€"|\sOR\s}}
| outro          = [[Category:Porters]]
+
|fields=_pageName,Developers,Publishers,Engines,Released_Linux=Released
| introtemplate  = Template:Infobox company/t5i
+
|format=template
| outrotemplate  = Template:Infobox company/t1o
+
|named args=yes
| template       = Template:Infobox company/t5
+
|intro=<h2>Games ported to Linux</h2>{{Infobox company/intro/ported|Linux}}
| format        = template
+
|template=Infobox company/row
| default       =
+
|outro=</table></div>[[Category:Porters]]
}}
+
|default=
{{#ask: [[Category:Games]] [[Ported to Mac OS by::Company:{{PAGENAME}}]]
+
}}</includeonly><noinclude>{{#cargo_declare:
| ?Developed by  = Developer
+
_table=Company
| ?Published by  = Publisher
+
|Website=URL
| ?Uses engine  = Engine
+
|Parent=Page
| ?Release date  = First release |+limit=1
+
|Founded=Date
| ?Release date Mac OS=Mac OS release
+
|Defunct=Date
| mainlabel      = Game
+
}}</noinclude><includeonly>{{#cargo_store:
| intro         = <h2>Games ported to Mac OS</h2>
+
_table=Company
| outro         = [[Category:Porters]]
+
|Website={{{website|}}}
| introtemplate  = Template:Infobox company/t6i
+
|Parent=Company:{{{parent|}}}
| outrotemplate  = Template:Infobox company/t1o
+
|Founded={{{founded|}}}
| template      = Template:Infobox company/t3
+
|Defunct={{{defunct|}}}
| format        = template
 
| default        =
 
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 00:54, 29 November 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.

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