Difference between revisions of "Template:Infobox company"

From PCGamingWiki, the wiki about fixing PC games
m (added |+order=asc|+limit=1 to everything)
(updated most queries to use Cargo)
Line 72: Line 72:
 
-->{{#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><!--
 
+
-->{{#cargo_query:
<!-- Hidden properties -->
+
tables=Infobox_game
{{#if: {{{wikipedia|}}}| [[Wikipedia::{{{wikipedia}}}| ]] }}
+
|where={{#arraymap:{{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
+
|named args=yes
| ?Published by
+
|intro=<h2>Games developed</h2>{{Infobox company/intro/company}}
| ?Uses engine
+
|template=Infobox company/row/company
| ?Available on
+
|outro=</table></div>[[Category:Developers]]
| ?Release date PC booter|+order=asc|+limit=1
+
|default=
| ?Release date DOS|+order=asc|+limit=1
 
| ?Release date Windows 3x|+order=asc|+limit=1
 
| ?Release date Windows|+order=asc|+limit=1
 
| ?Release date Mac OS|+order=asc|+limit=1
 
| ?Release date OS X|+order=asc|+limit=1
 
| ?Release date Linux|+order=asc|+limit=1
 
| ?Release date#ISO|+order=asc|+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}}]]
+
-->{{#cargo_query:
| ?Developed by
+
tables=Infobox_game
| ?Published by
+
|where={{#arraymap:{{PAGENAME}},{{{formernames|}}}|,|€€€€€|Publishers HOLDS LIKE "Company:€€€€€"|\sOR\s}}
| ?Uses engine
+
|fields=_pageName,Developers,Publishers,Engines,Released_PC_booter,Released_DOS,Released_Windows_3x,Released_Windows,Released_Mac_OS,Released_OS_X,Released_Linux,Released
| ?Available on
+
|format=template
| ?Release date PC booter|+order=asc|+limit=1
+
|named args=yes
| ?Release date DOS|+order=asc|+limit=1
+
|intro=<h2>Games published</h2>{{Infobox company/intro/company}}
| ?Release date Windows 3x|+order=asc|+limit=1
+
|template=Infobox company/row/company
| ?Release date Windows|+order=asc|+limit=1
+
|outro=</table></div>[[Category:Publishers]]
| ?Release date Mac OS|+order=asc|+limit=1
+
|default=
| ?Release date OS X|+order=asc|+limit=1
 
| ?Release date Linux|+order=asc|+limit=1
 
| ?Release date#ISO|+order=asc|+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}}]]
+
-->{{#cargo_query:
| ?Developed by
+
tables=Engine
| ?Website
+
|where={{#arraymap:{{PAGENAME}},{{{formernames|}}}|,|€€€€€|Developer="Company:€€€€€"|\sOR\s}}
| ?Engine first release|+order=asc|+limit=1
+
|fields=_pageName,Developer,Website,First_release,Latest_release
| ?Engine latest release|+order=asc|+limit=1
+
|format=template
| ?Engine first release#ISO|+order=asc|+limit=1
+
|named args=yes
| ?Engine latest release#ISO|+order=asc|+limit=1
+
|intro={{Infobox company/intro/engine}}
| intro         = <h2>Engines developed</h2>
+
|template=Infobox company/row/engine
| outro          = [[Category:Developers]]
+
|outro=</table></div>[[Category:Developers]]
| introtemplate  = Infobox company/intro/engine
+
|default=
| outrotemplate  = Infobox company/outro
 
| template       = Infobox company/row/engine
 
| format        = template
 
| default       =
 
 
}}<!--
 
}}<!--
-->{{#ask: [[Category:Games]] [[Ported to PC booter by::Company:{{PAGENAME}}]]
+
-->{{#cargo_query:
| ?Developed by
+
tables=Infobox_game
| ?Published by
+
|where={{#arraymap:{{PAGENAME}},{{{formernames|}}}|,|€€€€€|Porters_PC_booter HOLDS LIKE "Company:€€€€€"|\sOR\s}}
| ?Uses engine
+
|fields=_pageName,Developers,Publishers,Engines,Released_PC_booter=Released
| ?Release date|+order=asc|+limit=1
+
|format=template
| ?Release date PC booter|+order=asc|+limit=1
+
|named args=yes
| ?Release date#ISO|+order=asc|+limit=1
+
|intro=<h2>Games ported to PC booter</h2>{{Infobox company/intro/ported|PC booter}}
| ?Release date PC booter#ISO|+order=asc|+limit=1
+
|template=Infobox company/row
| intro         = <h2>Games ported to PC booter</h2>
+
|outro=</table></div>[[Category:Porters]]
| outro          = [[Category:Porters]]
+
|default=
| 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}}]]
+
-->{{#cargo_query:
| ?Developed by
+
tables=Infobox_game
| ?Published by
+
|where={{#arraymap:{{PAGENAME}},{{{formernames|}}}|,|€€€€€|Porters_DOS HOLDS LIKE "Company:€€€€€"|\sOR\s}}
| ?Uses engine
+
|fields=_pageName,Developers,Publishers,Engines,Released_DOS=Released
| ?Release date DOS|+order=asc|+limit=1
+
|format=template
| ?Release date DOS#ISO|+order=asc|+limit=1
+
|named args=yes
| intro         = <h2>Games ported to DOS</h2>
+
|intro=<h2>Games ported to DOS</h2>{{Infobox company/intro/ported|DOS}}
| outro          = [[Category:Porters]]
+
|template=Infobox company/row
| introtemplate  = Infobox company/intro/DOS
+
|outro=</table></div>[[Category:Porters]]
| outrotemplate  = Infobox company/outro
+
|default=
| template       = Infobox company/row
 
| format        = template
 
| default       =
 
 
}}<!--
 
}}<!--
-->{{#ask: [[Category:Games]] [[Ported to Windows 3x by::Company:{{PAGENAME}}]]
+
-->{{#cargo_query:
| ?Developed by
+
tables=Infobox_game
| ?Published by
+
|where={{#arraymap:{{PAGENAME}},{{{formernames|}}}|,|€€€€€|Porters_Windows_3x HOLDS LIKE "Company:€€€€€"|\sOR\s}}
| ?Uses engine
+
|fields=_pageName,Developers,Publishers,Engines,Released_Windows_3x=Released
| ?Release date Windows 3x|+order=asc|+limit=1
+
|format=template
| ?Release date Windows 3x#ISO|+order=asc|+limit=1
+
|named args=yes
| intro         = <h2>Games ported to Windows 3.x</h2>
+
|intro=<h2>Games ported to Windows 3.x</h2>{{Infobox company/intro/ported|Windows 3.x}}
| outro          = [[Category:Porters]]
+
|template=Infobox company/row
| introtemplate  = Infobox company/intro/Windows 3.x
+
|outro=</table></div>[[Category:Porters]]
| outrotemplate  = Infobox company/outro
+
|default=
| template       = Infobox company/row
 
| format        = template
 
| default       =
 
 
}}<!--
 
}}<!--
-->{{#ask: [[Category:Games]] [[Ported to Windows by::Company:{{PAGENAME}}]]
+
-->{{#cargo_query:
| ?Developed by
+
tables=Infobox_game
| ?Published by
+
|where={{#arraymap:{{PAGENAME}},{{{formernames|}}}|,|€€€€€|Porters_Windows HOLDS LIKE "Company:€€€€€"|\sOR\s}}
| ?Uses engine
+
|fields=_pageName,Developers,Publishers,Engines,Released_Windows=Released
| ?Release date Windows|+order=asc|+limit=1
+
|format=template
| ?Release date Windows#ISO|+order=asc|+limit=1
+
|named args=yes
| intro         = <h2>Games ported to Windows</h2>
+
|intro=<h2>Games ported to Windows</h2>{{Infobox company/intro/ported|Windows}}
| outro          = [[Category:Porters]]
+
|template=Infobox company/row
| introtemplate  = Infobox company/intro/Windows
+
|outro=</table></div>[[Category:Porters]]
| outrotemplate  = Infobox company/outro
+
|default=
| template       = Infobox company/row
 
| format        = template
 
| default       =
 
 
}}<!--
 
}}<!--
-->{{#ask: [[Category:Games]] [[Ported to OS X by::Company:{{PAGENAME}}]]
+
-->{{#cargo_query:
| ?Developed by
+
tables=Infobox_game
| ?Published by
+
|where={{#arraymap:{{PAGENAME}},{{{formernames|}}}|,|€€€€€|Porters_Mac_OS HOLDS LIKE "Company:€€€€€"|\sOR\s}}
| ?Uses engine
+
|fields=_pageName,Developers,Publishers,Engines,Released_Mac_OS=Released
| ?Release date OS X|+order=asc|+limit=1
+
|format=template
| ?Release date OS X#ISO|+order=asc|+limit=1
+
|named args=yes
| intro         = <h2>Games ported to macOS (formerly OS X)</h2>
+
|intro=<h2>Games ported to Mac OS (Classic)</h2>{{Infobox company/intro/ported|Mac OS}}
| outro          = [[Category:Porters]]
+
|template=Infobox company/row
| introtemplate  = Infobox company/intro/OS X
+
|outro=</table></div>[[Category:Porters]]
| outrotemplate  = Infobox company/outro
+
|default=
| template       = Infobox company/row
 
| format        = template
 
| default       =
 
 
}}<!--
 
}}<!--
-->{{#ask: [[Category:Games]] [[Ported to Linux by::Company:{{PAGENAME}}]]
+
-->{{#cargo_query:
| ?Developed by
+
tables=Infobox_game
| ?Published by
+
|where={{#arraymap:{{PAGENAME}},{{{formernames|}}}|,|€€€€€|Porters_OS_X HOLDS LIKE "Company:€€€€€"|\sOR\s}}
| ?Uses engine
+
|fields=_pageName,Developers,Publishers,Engines,Released_OS_X=Released
| ?Release date Linux|+order=asc|+limit=1
+
|format=template
| ?Release date Linux#ISO|+order=asc|+limit=1
+
|named args=yes
| intro         = <h2>Games ported to Linux</h2>
+
|intro=<h2>Games ported to macOS (formerly OS X)</h2>{{Infobox company/intro/ported|OS X}}
| outro          = [[Category:Porters]]
+
|template=Infobox company/row
| introtemplate  = Infobox company/intro/Linux
+
|outro=</table></div>[[Category:Porters]]
| outrotemplate  = Infobox company/outro
+
|default=
| template       = Infobox company/row
 
| format        = template
 
| default       =
 
 
}}<!--
 
}}<!--
-->{{#ask: [[Category:Games]] [[Ported to Mac OS by::Company:{{PAGENAME}}]]
+
-->{{#cargo_query:
| ?Developed by
+
tables=Infobox_game
| ?Published by
+
|where={{#arraymap:{{PAGENAME}},{{{formernames|}}}|,|€€€€€|Porters_Linux HOLDS LIKE "Company:€€€€€"|\sOR\s}}
| ?Uses engine
+
|fields=_pageName,Developers,Publishers,Engines,Released_Linux=Released
| ?Release date Mac OS|+order=asc|+limit=1
+
|format=template
| ?Release date Mac OS#ISO|+order=asc|+limit=1
+
|named args=yes
| intro         = <h2>Games ported to Mac OS</h2>
+
|intro=<h2>Games ported to Linux</h2>{{Infobox company/intro/ported|Linux}}
| outro          = [[Category:Porters]]
+
|template=Infobox company/row
| introtemplate  = Infobox company/intro/Mac OS
+
|outro=</table></div>[[Category:Porters]]
| outrotemplate  = Infobox company/outro
+
|default=
| template       = Infobox company/row
 
| format        = template
 
| default       =
 
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 06:48, 2 October 2021

Infobox company
Documentation for the above template (sometimes hidden from view).

Description

Used on pages below the "Company" namespace.

Syntax

{{Infobox company
|title        = 
|cover        = 
|website      = 
|parent       = 
|formernames  = 
|founded      = 
|defunct      = 
|wikipedia    = 
}}