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
(updated most queries to use Cargo)
(migrated remaining Semantic MediaWiki handling to Cargo)
Line 14: Line 14:
 
</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 24:
 
</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>
 
</tr>
 
}}
 
}}
  
 
<!-- Subsidiaries -->
 
<!-- Subsidiaries -->
{{#ifexpr: {{#ask: [[Parent company::{{FULLPAGENAME}}]] |format=count }} > 0 |
+
{{#if: {{#cargo_query:
 +
tables=Company
 +
|where=Parent="Company:{{PAGENAME}}"
 +
|default=
 +
}} |
 
<tr>
 
<tr>
 
<th class="template-infobox-header" colspan="2">Subsidiaries</th>
 
<th class="template-infobox-header" colspan="2">Subsidiaries</th>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td class="template-infobox-info plainlinks" colspan="2">{{#ask: [[Parent company::{{FULLPAGENAME}}]] |format=list|sep=<br> }}</td>
+
<td class="template-infobox-info plainlinks" colspan="2">{{#cargo_query:
 +
tables=Company
 +
|where=Parent="Company:{{PAGENAME}}"
 +
|fields=_pageName
 +
|format=template
 +
|template=Infobox company/subsidiaries
 +
}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
Line 52: Line 62:
 
</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 62: Line 72:
 
</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 182: Line 192:
 
|outro=</table></div>[[Category:Porters]]
 
|outro=</table></div>[[Category:Porters]]
 
|default=
 
|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 07:56, 2 October 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
}}