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
m (added missing {} around template variable)
m ({{#var:formerNames}})
 
(4 intermediate revisions 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 (\)
-->{{#vardefine:formerNames|{{#arraymap:{{{formernames|}}}|#|€€€€€|€€€€€|&num;}}}}<!-- escape hash characters in former names using &num;, which it is stored as through another translation in Template:Infobox game/row/developer
+
-->{{#vardefine:formerNames|{{{formernames|}}}}}
-->
 
 
{{#if: {{{cover|}}} |
 
{{#if: {{{cover|}}} |
 
<tr>
 
<tr>
Line 53: Line 52:
  
 
<!-- Former names -->
 
<!-- Former names -->
{{#if: {{#var: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 87: 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><!--
-->{{#cargo_query:
+
-->{{Tocbox}}{{#ifeq: {{{listgames|true}}} | false | | {{Infobox company/query}} }}<!--
tables=Infobox_game
+
--></includeonly><noinclude>{{#cargo_declare:
|where={{#arraymap:{{#var:pageName}},{{#var:formerNames|}}|,|€€€€€|Developers 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 developed</h2>{{Infobox company/intro/company}}
 
|template=Infobox company/row/company
 
|outro=</table></div>[[Category:Developers]]
 
|default=
 
}}<!--
 
-->{{#cargo_query:
 
tables=Infobox_game
 
|where={{#arraymap:{{#var:pageName}},{{#var: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=
 
}}<!--
 
-->{{#cargo_query:
 
tables=Engine
 
|where={{#arraymap:{{#var:pageName}},{{#var: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=
 
}}<!--
 
-->{{#cargo_query:
 
tables=Infobox_game
 
|where={{#arraymap:{{#var:pageName}},{{#var: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
 
|outro=</table></div>[[Category:Porters]]
 
|default=
 
}}<!--
 
-->{{#cargo_query:
 
tables=Infobox_game
 
|where={{#arraymap:{{#var:pageName}},{{#var: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
 
|outro=</table></div>[[Category:Porters]]
 
|default=
 
}}<!--
 
-->{{#cargo_query:
 
tables=Infobox_game
 
|where={{#arraymap:{{#var:pageName}},{{#var: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
 
|outro=</table></div>[[Category:Porters]]
 
|default=
 
}}<!--
 
-->{{#cargo_query:
 
tables=Infobox_game
 
|where={{#arraymap:{{#var:pageName}},{{#var: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
 
|outro=</table></div>[[Category:Porters]]
 
|default=
 
}}<!--
 
-->{{#cargo_query:
 
tables=Infobox_game
 
|where={{#arraymap:{{#var:pageName}},{{#var: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]]
 
|default=
 
}}<!--
 
-->{{#cargo_query:
 
tables=Infobox_game
 
|where={{#arraymap:{{#var:pageName}},{{#var: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]]
 
|default=
 
}}<!--
 
-->{{#cargo_query:
 
tables=Infobox_game
 
|where={{#arraymap:{{#var:pageName}},{{#var: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
 
|outro=</table></div>[[Category:Porters]]
 
|default=
 
}}</includeonly><noinclude>{{#cargo_declare:
 
 
_table=Company
 
_table=Company
 
|Website=URL
 
|Website=URL

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