Difference between revisions of "Template:Infobox company"
(updated OS X with 64-bit support status) |
m (escape double quotes (", html entity: ") in the query using a backslash (\)) |
||
(16 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}}|"|€€€€€|€€€€€|\"}}}}<!-- escape double quotes (", html entity: ") 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"> | + | <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">[[ | + | <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"> | + | <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"> | + | <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}}}| ]]</div> }}</td> | -->{{#if: {{{wikipedia|}}} | <div title="{{PAGENAME}} at Wikipedia" class="template-infobox-icon svg-icon svg-18 infobox-wikipedia">[[Wikipedia:{{{wikipedia}}}| ]]</div> }}</td> | ||
</tr> | </tr> | ||
− | }}<span style="display:none">{{#default_form:Company page}}</span> | + | }}<span style="display:none">{{#default_form:Company page}}</span></table><includeonly><!-- |
− | + | -->{{#cargo_query: | |
− | + | tables=Infobox_game | |
− | + | |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 |
− | -->{{# | + | |format=template |
− | | | + | |named args=yes |
− | | | + | |intro=<h2>Games developed</h2>{{Infobox company/intro/company}} |
− | | | + | |template=Infobox company/row/company |
− | | | + | |outro=</table></div>[[Category:Developers]] |
− | | | + | |default= |
− | | | ||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | | intro | ||
− | |||
− | |||
− | |||
− | | template | ||
− | | | ||
− | | default | ||
}}<!-- | }}<!-- | ||
− | -->{{# | + | -->{{#cargo_query: |
− | | | + | tables=Infobox_game |
− | | | + | |where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Publishers HOLDS LIKE "Company:€€€€€"|\sOR\s}} |
− | | | + | |fields=_pageName,Developers,Publishers,Engines,Released_PC_booter,Released_DOS,Released_Windows_3x,Released_Windows,Released_Mac_OS,Released_OS_X,Released_Linux,Released |
− | | | + | |format=template |
− | | | + | |named args=yes |
− | | | + | |intro=<h2>Games published</h2>{{Infobox company/intro/company}} |
− | + | |template=Infobox company/row/company | |
− | + | |outro=</table></div>[[Category:Publishers]] | |
− | + | |default= | |
− | |||
− | |||
− | | | ||
− | | intro | ||
− | |||
− | |||
− | |||
− | | template | ||
− | | | ||
− | | default | ||
}}<!-- | }}<!-- | ||
− | -->{{# | + | -->{{#cargo_query: |
− | | | + | tables=Engine |
− | | | + | |where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Developer="Company:€€€€€"|\sOR\s}} |
− | | | + | |fields=_pageName,Developer,Website,First_release,Latest_release |
− | | | + | |format=template |
− | | | + | |named args=yes |
− | | | + | |intro={{Infobox company/intro/engine}} |
− | + | |template=Infobox company/row/engine | |
− | | | + | |outro=</table></div>[[Category:Developers]] |
− | | | + | |default= |
− | |||
− | | template | ||
− | | | ||
− | | default | ||
}}<!-- | }}<!-- | ||
− | -->{{# | + | -->{{#cargo_query: |
− | | | + | tables=Infobox_game |
− | | | + | |where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Porters_PC_booter HOLDS LIKE "Company:€€€€€"|\sOR\s}} |
− | | | + | |fields=_pageName,Developers,Publishers,Engines,Released_PC_booter=Released |
− | | | + | |format=template |
− | | | + | |named args=yes |
− | | | + | |intro=<h2>Games ported to PC booter</h2>{{Infobox company/intro/ported|PC booter}} |
− | + | |template=Infobox company/row | |
− | | intro | + | |outro=</table></div>[[Category:Porters]] |
− | + | |default= | |
− | |||
− | |||
− | | template | ||
− | | | ||
− | | default | ||
}}<!-- | }}<!-- | ||
− | -->{{# | + | -->{{#cargo_query: |
− | | | + | tables=Infobox_game |
− | | | + | |where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Porters_DOS HOLDS LIKE "Company:€€€€€"|\sOR\s}} |
− | | | + | |fields=_pageName,Developers,Publishers,Engines,Released_DOS=Released |
− | | | + | |format=template |
− | | | + | |named args=yes |
− | | | + | |intro=<h2>Games ported to DOS</h2>{{Infobox company/intro/ported|DOS}} |
− | + | |template=Infobox company/row | |
− | | intro | + | |outro=</table></div>[[Category:Porters]] |
− | + | |default= | |
− | |||
− | |||
− | | template | ||
− | | | ||
− | | default | ||
}}<!-- | }}<!-- | ||
− | -->{{# | + | -->{{#cargo_query: |
− | | | + | tables=Infobox_game |
− | | | + | |where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Porters_Windows_3x HOLDS LIKE "Company:€€€€€"|\sOR\s}} |
− | | | + | |fields=_pageName,Developers,Publishers,Engines,Released_Windows_3x=Released |
− | | | + | |format=template |
− | | | + | |named args=yes |
− | | | + | |intro=<h2>Games ported to Windows 3.x</h2>{{Infobox company/intro/ported|Windows 3.x}} |
− | + | |template=Infobox company/row | |
− | | intro | + | |outro=</table></div>[[Category:Porters]] |
− | + | |default= | |
− | |||
− | |||
− | | template | ||
− | | | ||
− | | default | ||
}}<!-- | }}<!-- | ||
− | -->{{# | + | -->{{#cargo_query: |
− | | | + | tables=Infobox_game |
− | | | + | |where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Porters_Windows HOLDS LIKE "Company:€€€€€"|\sOR\s}} |
− | | | + | |fields=_pageName,Developers,Publishers,Engines,Released_Windows=Released |
− | | | + | |format=template |
− | | | + | |named args=yes |
− | | | + | |intro=<h2>Games ported to Windows</h2>{{Infobox company/intro/ported|Windows}} |
− | + | |template=Infobox company/row | |
− | | intro | + | |outro=</table></div>[[Category:Porters]] |
− | + | |default= | |
− | |||
− | |||
− | | template | ||
− | | | ||
− | | default | ||
}}<!-- | }}<!-- | ||
− | -->{{# | + | -->{{#cargo_query: |
− | | | + | tables=Infobox_game |
− | | | + | |where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Porters_Mac_OS HOLDS LIKE "Company:€€€€€"|\sOR\s}} |
− | | | + | |fields=_pageName,Developers,Publishers,Engines,Released_Mac_OS=Released |
− | | | + | |format=template |
− | | | + | |named args=yes |
− | + | |intro=<h2>Games ported to Mac OS (Classic)</h2>{{Infobox company/intro/ported|Mac OS}} | |
− | | | + | |template=Infobox company/row |
− | + | |outro=</table></div>[[Category:Porters]] | |
− | | intro | + | |default= |
− | |||
− | |||
− | | | ||
− | | | ||
− | |||
− | | default | ||
}}<!-- | }}<!-- | ||
− | -->{{# | + | -->{{#cargo_query: |
− | | | + | tables=Infobox_game |
− | | | + | |where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Porters_OS_X HOLDS LIKE "Company:€€€€€"|\sOR\s}} |
− | | | + | |fields=_pageName,Developers,Publishers,Engines,Released_OS_X=Released |
− | | | + | |format=template |
− | | | + | |named args=yes |
− | | | + | |intro=<h2>Games ported to macOS (formerly OS X)</h2>{{Infobox company/intro/ported|OS X}} |
− | + | |template=Infobox company/row | |
− | + | |outro=</table></div>[[Category:Porters]] | |
− | | intro | + | |default= |
− | |||
− | |||
− | | | ||
− | | template | ||
− | | | ||
− | | default | ||
}}<!-- | }}<!-- | ||
− | -->{{# | + | -->{{#cargo_query: |
− | | | + | tables=Infobox_game |
− | | | + | |where={{#arraymap:{{#var:pageName}},{{{formernames|}}}|,|€€€€€|Porters_Linux HOLDS LIKE "Company:€€€€€"|\sOR\s}} |
− | | | + | |fields=_pageName,Developers,Publishers,Engines,Released_Linux=Released |
− | | | + | |format=template |
− | | | + | |named args=yes |
− | | | + | |intro=<h2>Games ported to Linux</h2>{{Infobox company/intro/ported|Linux}} |
− | + | |template=Infobox company/row | |
− | | intro | + | |outro=</table></div>[[Category:Porters]] |
− | | outro | + | |default= |
− | | | + | }}</includeonly><noinclude>{{#cargo_declare: |
− | | | + | _table=Company |
− | | | + | |Website=URL |
− | | | + | |Parent=Page |
− | | | + | |Founded=Date |
+ | |Defunct=Date | ||
+ | }}</noinclude><includeonly>{{#cargo_store: | ||
+ | _table=Company | ||
+ | |Website={{{website|}}} | ||
+ | |Parent=Company:{{{parent|}}} | ||
+ | |Founded={{{founded|}}} | ||
+ | |Defunct={{{defunct|}}} | ||
}}</includeonly><noinclude>{{Documentation}}</noinclude> | }}</includeonly><noinclude>{{Documentation}}</noinclude> |
Revision as of 00:54, 29 November 2021
This template defines the table "Company". View table.
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 }}