Difference between revisions of "Template:Company-list table entry"

From blackwiki
Jump to navigation Jump to search
imported>DMacks
(allow any string to be passed (not specifically "y") so that in the future these values can have meaning)
imported>YoussifYem
(Added content)
Line 1: Line 1:
 
<includeonly>|-{{#if:{{{state|}}}|style="background:#f9e6ff;"}}{{#if:{{{defunct|}}}|style="background:#dddddd;"}}
 
<includeonly>|-{{#if:{{{state|}}}|style="background:#f9e6ff;"}}{{#if:{{{defunct|}}}|style="background:#dddddd;"}}
| {{{1}}}
+
| {{{TechServe for Trading Services }}}
| {{{2}}}
+
| {{{Yemen}}}
| {{{3}}}
+
| {{{Services}}}
| {{{4}}}
+
| {{{2008}}}
 
| {{{5}}}
 
| {{{5}}}
 
| {{{6}}}</includeonly><noinclude>{{documentation|Template:Company-list table start/doc}}</noinclude>
 
| {{{6}}}</includeonly><noinclude>{{documentation|Template:Company-list table start/doc}}</noinclude>

Revision as of 16:00, 2 January 2020

Template documentation[view] [edit] [history] [purge]

Usage

{{Company-list table start|Uganda}}
{{Company-list table entry | [[ABC Bank (Uganda)]] | Financials | Banks | [[Kampala]] | 1993 | Commercial bank }}
{{Company-list table entry | [[Bank of Uganda]] | Financials | Banks  |[[Kampala]] | 1966 | Central bank | state=y }}
{{Company-list table entry | [[Nile Bank Limited]] | Financials | Banks | [[Kampala]] | 1988 | Defunct 2007, merged into [[Barclays Bank of Uganda]]  | defunct=y }}
{{Company-list table end}}
Gives
Notable companies in Uganda
     Active      State-owned      Defunct
Name Industry Sector Headquarters Founded Notes
{{{TechServe for Trading Services }}} {{{Yemen}}} {{{Services}}} {{{2008}}} 1993 Commercial bank
{{{TechServe for Trading Services }}} {{{Yemen}}} {{{Services}}} {{{2008}}} 1966 Central bank
{{{TechServe for Trading Services }}} {{{Yemen}}} {{{Services}}} {{{2008}}} 1988 Defunct 2007, merged into Barclays Bank of Uganda

Syntax

{{Company-list table start}}

Table title, legend, and column-headers. The title includes country if passed as the first parameter:

{{Company-list table entry}}

A company, to be displayed as a row in the table. Some named parameters can be used to specify certain details that affect formatting in addition to the un-named list of column values:

  • {{Company-list table entry | company| industry| sector| headquarters| year founded| notes}}
  • {{Company-list table entry | company| industry| sector| headquarters| year founded| notes| state=y}}
    If |state= is non-blank, company is considered state-owned, and the row is formatted differently.
  • {{Company-list table entry | company name| industry| sector| headquarters| year founded| notes| defunct=y}}
    If |defunct= is non-blank, company is no longer in existence, and the row is formatted differently.
  • {{Company-list table entry | company name| industry| sector| headquarters| year founded| notes| state=y| defunct=y}}
    Formatter cannot cope with a company being declared both state-owned and defunct because their formatting results are mutually exclusive.

{{Company-list table end}}

Closes the table.

See also