Difference between revisions of "Development:Infobox company"
From PCGamingWiki, the wiki about fixing PC games
(Cargo > SMW WIP) |
(Cargo) |
||
Line 29: | Line 29: | ||
<!-- Subsidiaries --> | <!-- Subsidiaries --> | ||
− | {{# | + | {{#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">{{# | + | <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> | ||
}} | }} |
Revision as of 07:55, 2 October 2021
Error: #cargo_declare must be called from a template page.
Documentation for the above template (sometimes hidden from view).
Visit Development:Infobox company/Documentation to edit this text. (How does this work?)