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

Difference between revisions of "Template:Infobox company"

From PCGamingWiki, the wiki about fixing PC games
(fixed DOS porter intro template)
m ({{#var:formerNames}})
 
(43 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 (\)
 +
-->{{#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>
 +
}}
 +
 
 +
<!-- Subsidiaries -->
 +
{{#if: {{#cargo_query:
 +
tables=Company
 +
|where={{#arraymap:{{#var:pageNameSpaces}},{{#var: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: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 42: 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 52: 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 62: 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>
}}[[Page has default form::Company page| ]]
+
}}<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  = Developer
+
|Founded=Date
| ?Published by  = Publisher
+
|Defunct=Date
| ?Uses engine  = Engine
+
}}</noinclude><includeonly>{{#cargo_store:
| ?Release date  = First release |+limit=1
+
_table=Company
| ?Available on  = Systems
+
|Website={{{website|}}}
| mainlabel      = Game
+
|Parent=Company:{{{parent|}}}
| intro          = <h2>Games developed</h2>
+
|Founded={{{founded|}}}
| outro          = [[Category:Developers]]
+
|Defunct={{{defunct|}}}
| introtemplate  = Template:Infobox company/t1i
 
| outrotemplate  = Template:Infobox company/t1o
 
| template      = Template:Infobox company/t1
 
| format        = template
 
| default        =
 
}}
 
{{#ask: [[Category:Games]] [[Published by::Company:{{PAGENAME}}]]
 
| ?Developed by  = Developer
 
| ?Published by  = Publisher
 
| ?Uses engine  = Engine
 
| ?Release date  = First release |+limit=1
 
| ?Available on  = Systems
 
| mainlabel      = Game
 
| intro          = <h2>Games published</h2>
 
| outro          = [[Category:Publishers]]
 
| introtemplate  = Template:Infobox company/t1i
 
| outrotemplate  = Template:Infobox company/t1o
 
| template      = Template:Infobox company/t1
 
| format        = template
 
| default        =
 
}}
 
{{#ask: [[Category:Engines]] [[Developed by::Company:{{PAGENAME}}]]
 
| ?Developed by=Developer
 
| ?Website
 
| ?Engine first release=First release
 
| ?Engine latest release=Latest release
 
| mainlabel      = Engine
 
| intro          = <h2>Engines developed</h2>
 
| outro          = [[Category:Developers]]
 
| introtemplate  = Template:Infobox company/t2i
 
| outrotemplate  = Template:Infobox company/t1o
 
| template      = Template:Infobox company/t2
 
| format        = template
 
| default        =
 
}}
 
{{#ask: [[Category:Games]] [[Ported to DOS by::Company:{{PAGENAME}}]]
 
| ?Developed by  = Developer
 
| ?Published by  = Publisher
 
| ?Uses engine  = Engine
 
| ?Release date  = First release |+limit=1
 
| ?Release date DOS=DOS release
 
| mainlabel      = Game
 
| intro          = <h2>Games ported to DOS</h2>
 
| outro          = [[Category:Porters]]
 
| introtemplate  = Template:Infobox company/t7i
 
| outrotemplate  = Template:Infobox company/t1o
 
| template      = Template:Infobox company/t3
 
| format        = template
 
| default        =
 
}}
 
{{#ask: [[Category:Games]] [[Ported to Windows by::Company:{{PAGENAME}}]]
 
| ?Developed by  = Developer
 
| ?Published by  = Publisher
 
| ?Uses engine  = Engine
 
| ?Release date  = First release |+limit=1
 
| ?Release date Windows=Windows release
 
| mainlabel      = Game
 
| intro          = <h2>Games ported to Windows</h2>
 
| outro          = [[Category:Porters]]
 
| introtemplate  = Template:Infobox company/t3i
 
| outrotemplate  = Template:Infobox company/t1o
 
| template      = Template:Infobox company/t3
 
| format        = template
 
| default        =
 
}}
 
{{#ask: [[Category:Games]] [[Ported to OS X by::Company:{{PAGENAME}}]]
 
| ?Developed by  = Developer
 
| ?Published by  = Publisher
 
| ?Uses engine  = Engine
 
| ?Release date  = First release |+limit=1
 
| ?Release date OS X=OS X release
 
| mainlabel      = Game
 
| intro          = <h2>Games ported to OS X</h2>
 
| outro          = [[Category:Porters]]
 
| introtemplate  = Template:Infobox company/t4i
 
| outrotemplate  = Template:Infobox company/t1o
 
| template      = Template:Infobox company/t3
 
| format        = template
 
| default        =
 
}}
 
{{#ask: [[Category:Games]] [[Ported to Linux by::Company:{{PAGENAME}}]]
 
| ?Developed by  = Developer
 
| ?Published by  = Publisher
 
| ?Uses engine  = Engine
 
| ?Release date  = First release |+limit=1
 
| ?Release date Linux=Linux release
 
| ?Linux XDG support=XDG support
 
| mainlabel      = Game
 
| intro          = <h2>Games ported to Linux</h2>
 
| outro          = [[Category:Porters]]
 
| introtemplate  = Template:Infobox company/t5i
 
| outrotemplate  = Template:Infobox company/t1o
 
| template      = Template:Infobox company/t5
 
| format        = template
 
| default        =
 
}}
 
{{#ask: [[Category:Games]] [[Ported to Mac OS by::Company:{{PAGENAME}}]]
 
| ?Developed by  = Developer
 
| ?Published by  = Publisher
 
| ?Uses engine  = Engine
 
| ?Release date  = First release |+limit=1
 
| ?Release date Mac OS=Mac OS release
 
| mainlabel      = Game
 
| intro          = <h2>Games ported to Mac OS</h2>
 
| outro          = [[Category:Porters]]
 
| introtemplate  = Template:Infobox company/t6i
 
| outrotemplate  = Template:Infobox company/t1o
 
| template      = Template:Infobox company/t3
 
| 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
}}