Template:Infobox company: Difference between revisions

Template page
No edit summary
mNo edit summary
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox">
<templatestyles src="Infobox.css" />
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<noinclude>{{#cargo_declare:
<div class="infobox-image">[[File:{{{image}}}|250px]]</div>}}
_table = Companies
<table>{{#if:{{{headquarter|}}}|<tr>
|country=String
    <th  style="text-align:left;">Headquarter</th>
|parentcompany=Page
    <td>{{{headquarter}}}</td>
|closed=Boolean
</tr>}}{{#if:{{{founded|}}}|<tr>
|closedDate = Date
    <th  style="text-align:left;">Founded</th>
|db_type=List (,) of String
    <td>{{{founded}}}</td>
}}</noinclude><includeonly>{{#cargo_store: _table = Companies |parentcompany={{#if: {{{parentcompany|}}} | Companies/{{{parentcompany|}}} }}
</tr>}}{{#if:{{{type|}}}|<tr>
|closed={{#if: {{{closed|}}} | Yes | No }}
    <th style="text-align:left;">Type</th>
|closedDate={{{closed|}}}
    <td>{{{type}}}</td>
}}{{#invoke:Infobox company|main}}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>
</tr>}}{{#if:{{{parentcompany|}}}|<tr>
    <th  style="text-align:left;">Parent company</th>
    <td>{{{parentcompany}}}</td>
</tr>}}{{#if:{{{employees|}}}|<tr>
    <th  style="text-align:left;">Employees</th>
    <td>{{{employees}}}</td>
</tr>}}{{#if:{{{socials|}}}|<tr>
    <th style="text-align:left;>Socials</th>
    <td>{{{socials}}}</td>
</tr>}}</table>
</div>

Latest revision as of 18:10, 11 February 2024

This template defines the table "Companies". View table.

Documentation (view - edit)

To add a company go to https://twogpedia.com/Form:Company and to edit a company just use the "Edit with form" button.

For a list of country codes / names check https://twogpedia.com/Module:Localisation/Data

For additional links check https://twogpedia.com/Module:Links