Template:Infobox company: Difference between revisions

From PZwiki
(added more params and re-ordered)
(re-added `products`)
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{Infobox|child={{{child|}}}
<noinclude>{{Documentation/sandbox|doc=
| bodyclass  = biography vcard
This template is used to create an infobox in an article about a company.
|bodystyle  = width:350px; -moz-box-shadow: 0px 0px 2px 2px #{{Infobox nc|{{{name_colour|}}}}}; -webkit-box-shadow: 0px 0px 2px 2px #{{Infobox nc|{{{name_colour|}}}}}; box-shadow: 0px 0px 2px 2px #{{Infobox nc|{{{name_colour|}}}}}; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}};
| above      = <div style="background: #{{Infobox nc|{{{name_colour|}}}}}; padding: 5px; font-weight: bold; text-align: center; font-size: 120%; color:#{{Infobox nc|{{{name_text_colour|}}}|text}};"><span class="fn">{{{name|{{{display_name|{{PAGENAME}}}}}}}}</span></div>
| image      = {{#if:{{{logo|}}}|[[File:{{{logo}}}|{{px|{{{logo size|{{{logo_size|{{{logosize|}}}}}}}}}|frameless}}|alt={{{alt|}}}]]}}
| caption    = {{{logo caption|{{{caption|{{{logo_caption|}}}}}}}}}


| imagestyle = padding:10px;
==Usage==
| headerstyle = background-color: #{{Infobox nc|{{{name_colour|}}}}}; color: #{{Infobox nc|{{{name_text_colour|}}}|text}};
To use this template in an article, copy the template below, then paste the template into an article.
| labelstyle = background-color:#eee; width:50%;
| datastyle  = width:50%;


| label1    = Type
Only the <code>name</code>, <code>logo_size</code> and <code>logo_caption</code> parameters are optional – those that are not populated will not be displayed correctly.
| data1      = {{{type|}}}
{{Infobox company
|name=name
|logo=image.png
|logo_size=200px
|logo_caption=logo_caption
|image=image.png
|image_caption=image_caption
|type=type
|industry=industry
|founded=founded
|founder=founder
|hq_city=hq_city
|hq_country=hq_country
|key_people=key_people
|products=products
|members=members
|members_year=members_year <!-- Year of members data (if known) -->
|num_employees=num_employees
|num_employees_year=num_employees_year
|website=website <!-- or: | url = -->
|notes=notes
}}


| label2    = Industry
<pre>
| data2      = {{{industry|}}}
{{Infobox company
|name=
|logo=
|logo_size=
|logo_caption=
|image=
|image_caption=
|type=
|industry=
|founded=
|founder= <!-- or: |founders= -->
|hq_city=
|hq_country=
|key_people=
|products=
|members=
|members_year= <!-- Year of members data (if known) -->
|num_employees=
|num_employees_year= <!-- Year of num_employees data (if known) -->
|website= <!-- or: |url= -->
|notes=
}}


| label3    = Founded
</pre>
| data3      = {{{founded|}}}
{{clear}}


| label4    = Founder
==Parameters==
| data4      = {{{founder|{{{founders|}}}}}}
;<code>name</code>
:The full, legal name of the company, correctly reproducing punctuation and abbreviations or lack thereof.


| label5    = Headquarters
;<code>logo</code>
| data5      = {{#if:{{{hq_city|}}}|{{{hq_city|}}}, {{{hq_country|}}} }}
:The company's current, primary wordmark or logo. Use the logo of the entity that is the subject of the article; the logo used may be different from the logo used on consumer products, particularly if the article is about a parent company or holding company.


| label6    = Key people
;<code>logo_size</code>
| data6      = {{{key_people|}}}
:Optional display width of logo. If not specified, the size default is 200px.


| label7    = Products
;<code>logo_caption</code>
| data7      = {{{products|}}}
:Descriptive information for the logo, if necessary.


| label8    = Members
;<code>image</code>
| data8      = {{#if:{{{members|}}} |{{{members}}}{{#if:{{{members_year|}}}|&nbsp;({{{members_year}}})}} }}
:Image of the company, whether it be a group photo, or headquarters photo.


| label9    = Number of employees
;<code>image_size</code>
| data9      = {{#if:{{{num_employees|}}} |{{{num_employees}}}{{#if:{{{num_employees_year|}}}|&nbsp;({{{num_employees_year}}})}} }}
:Optional display width of image. If not specified, the size default is 200px.


| label10    = Website
;<code>image_caption</code>
| data10      = {{{website|{{{homepage|{{{URL|{{{url|}}}}}}}}}}}}
:Descriptive information for the image, if necessary.


| below      = {{#if:{{{footnotes|}}}|<center>'''Notes'''</center><div style="line-height:1.2em;">{{{footnotes}}}</div>}}
;<code>type</code>
| belowstyle = border-top:1px solid #aaaaaa; text-align:left
:Type of the company (not their type of incorporation).
 
;<code>industry</code>
:The primary industry or industries in which the company operates, listed alphabetically.
 
;<code>founded</code>
:Date and location of the company's establishment / foundation.
 
;<code>hq_city</code>
:City of the company's headquarters
 
;<code>hq_country</code>
:Country of the company's headquarters
 
;<code>key_people</code>
:Up to four key individuals closely associated with the company. List the figures in order of organizational role importance. Give job title(s) in parentheses (round brackets); these job titles use standard English casing.
 
;<code>products</code>
:A representative selection of the company's well known current or former products, listed alphabetically.
 
;<code>members</code>
:Up to four key individuals closely associated with the company. List the figures in order of organizational role importance. Give job title(s) in parentheses (round brackets).
 
;<code>num_employees</code>
:Total number of people employed by the company in the most recent year and the year prior, with the applicable years in parentheses.
 
;<code>num_employees_year</code>
:The year associated with the data presented by num_employees.
 
;<code>website</code>
:Top-level URL of the company's website, using <code>//</code> preceding the URL. Do not include the leading <code>www.</code> unless the URL will not resolve without it.
 
;<code>notes</code>
:Used to list citations that validate the data in the infobox or to note information about the terms, names, and figures used.
 
==Examples==
'''[[The Indie Stone]] company infobox'''
{{Infobox company
|name=The Indie Stone
|logo=TIS_logo.png
|logo_size=200px
|logo_caption=The Indie Stone current logo (2018)
|type=Private
|industry=Video games
|founded=2009
|hq_city=Gateshead
|hq_country=England
|key_people=[[Chris Simpson]]<br><small>([[wikipedia:Director_(business)|Director]])</small><br>[[Andy Hodgetts]]<br><small>([[wikipedia:Director_(business)|Director]])</small><br>[[Marina Siu-Chong]]<br><small>([[wikipedia:Director_(business)|Director]])</small><br>[[Will Porter]]<br><small>([[wikipedia:Director_(business)|Director]])</small>
|products=[[Project Zomboid]]
|num_employees=20+
|num_employees_year=2021
|website=[//theindiestone.com theindiestone.com]
}}
 
<pre>{{Infobox company
| name = The Indie Stone
| logo = TIS_logo.png
| logo_size = 200px
| logo_caption = ''The Indie Stone current logo (2018)''
| type = Private
| industry = Video games
| founded = 2009
| hq_city = Gateshead
| hq_country = England
| key_people = [[Andy Hodgetts]]<br><small>([[wikipedia:Director_(business)|Director]])</small><br>[[Chris Simpson]]<br><small>([[wikipedia:Director_(business)|Director]])</small><br>[[Marina Siu-Chong]]<br><small>([[wikipedia:Director_(business)|Director]])</small><br>[[Will Porter]]<br><small>([[wikipedia:Director_(business)|Director]])</small>
| products = [[Project Zomboid]]
| num_employees = 20+
| num_employees_year = 2021
| website = [//theindiestone.com theindiestone.com]
}}</pre>
{{clear}}
 
{{Translation guide|<syntaxhighlight lang="html">{{#switch: {{{1|}}}
| type = Type
| industry = Industry
| founded = Founded
| founder = Founder
| headquarters = Headquarters
| key_people = Key people
| products = Products
| members = Members
| number_of_employees = Number of employees
| website = Website
| notes = Notes
}}
</syntaxhighlight>}}
 
==See also==
*{{ll|Template:Infobox person}}
*{{ll|Template:Infobox location}}
}}
{{ll|Category:Infobox}}
</noinclude><includeonly>{{Infobox/sandbox
  | title = {{{name|{{#getdisplaytitle:{{FULLPAGENAME}}}}}}}
  | color = var(--color-blue)
  | {{Infobox/image <!-- ## Logo ## -->
    | p1 = {{#if:{{{logo|}}}|[[File:{{{logo}}}|{{{logo_name1|{{{name|}}}}}}|{{{logo_size1|200px}}}|link=]]}}
    | caption = {{#if: {{{logo_caption|}}}|''{{{logo_caption|}}}''}}
  }}{{Infobox/image <!-- ## Image ## -->
    | p1 = {{#if:{{{image|}}}|[[File:{{{image}}}|{{{image_size|}}}|{{{image_name|{{{name|}}}}}}]]}}
    | 1 = {{#if:{{{image2|}}}|[[File:{{{icon|{{{image}}}}}}|{{{icon_name|{{{image_name|{{{name|}}}}}}}}}|link=]]}}
    | p2 = {{#if:{{{image2|}}}|[[File:{{{image2}}}|{{{image_size2|}}}|{{{image_name2|{{{name|}}}}}}]]}}
    | 2 = {{#if:{{{image2|}}}|[[File:{{{icon2|{{{image2}}}}}}|{{{icon_name2|{{{image_name2|{{{name|}}}}}}}}}|link=]]}}
    | p3 = {{#if:{{{image3|}}}|[[File:{{{image3}}}|{{{image_size3|}}}|{{{image_name3|{{{name|}}}}}}]]}}
    | 3 = {{#if:{{{image3|}}}|[[File:{{{icon3|{{{image3}}}}}}|{{{icon_name3|{{{image_name3|{{{name|}}}}}}}}}|link=]]}}
    | p4 = {{#if:{{{image4|}}}|[[File:{{{image4}}}|{{{image_size4|}}}|{{{image_name4|{{{name|}}}}}}]]}}
    | 4 = {{#if:{{{image4|}}}|[[File:{{{icon4|{{{image4}}}}}}|{{{icon_name4|{{{image_name4|{{{name|}}}}}}}}}|link=]]}}
    | p5 = {{#if:{{{image5|}}}|[[File:{{{image5}}}|{{{image_size5|}}}|{{{image_name5|{{{name|}}}}}}]]}}
    | 5 = {{#if:{{{image5|}}}|[[File:{{{icon5|{{{image5}}}}}}|{{{icon_name5|{{{image_name5|{{{name|}}}}}}}}}|link=]]}}
    | caption = {{#if: {{{image_caption|}}}|''{{{image_caption|}}}''}}
  }}{{#if:{{{type|}}}{{{industry|}}}{{{founded|}}}{{{founder|}}}{{{founders|}}}{{{hq_city|}}}{{{key_people|}}}{{{products|}}}{{{members|}}}{{{num_employees|}}}{{{website|}}}{{{homepage|}}}{{{url|}}}{{{notes|}}}
    |{{Infobox/sandbox/row
      |{{tt|name=Infobox company|default=Type|arg1=type}}
      |{{{type|}}}
    }}<!--
 
-->{{Infobox/sandbox/row
      |{{tt|name=Infobox company|default=Industry|arg1=industry}}
      |{{{industry|}}}
    }}<!--
 
-->{{Infobox/sandbox/row
      |{{tt|name=Infobox company|default=Founded|arg1=founded}}
      |{{{founded|}}}
    }}<!--
 
-->{{Infobox/sandbox/row
      |{{tt|name=Infobox company|default=Founder|arg1=founder}}
      |{{#if:{{{founder|}}}{{{founders|}}}|{{{founder|{{{founders|}}}}}} }}
    }}<!--
 
-->{{Infobox/sandbox/row
      |{{tt|name=Infobox company|default=Headquarters|arg1=headquarters}}
      |{{#if:{{{hq_city|}}}|{{{hq_city|}}}, {{{hq_country|}}} }}
    }}<!--
 
-->{{Infobox/sandbox/row
      |{{tt|name=Infobox company|default=Key people|arg1=key_people}}
      |{{{key_people|}}}
    }}<!--
 
-->{{Infobox/sandbox/row
      |{{tt|name=Infobox company|default=Products|arg1=products}}
      |{{{products|}}}
    }}<!--
 
-->{{Infobox/sandbox/row
      |{{tt|name=Infobox company|default=Members|arg1=members}}
      |{{#if:{{{members|}}}|{{{members}}}{{#if:{{{members_year|}}}|&nbsp;({{{members_year}}})}} }}
    }}<!--
 
-->{{Infobox/sandbox/row
      |{{tt|name=Infobox company|default=Number of employees|arg1=number_of_employees}}
      |{{#if:{{{num_employees|}}}|{{{num_employees}}}{{#if:{{{num_employees_year|}}}|&nbsp;({{{num_employees_year}}})}} }}
    }}<!--
 
-->{{Infobox/sandbox/row
      |{{tt|name=Infobox company|default=Website|arg1=website}}
      |{{#if:{{{website|}}}{{{homepage|}}}{{{url|}}}|{{{website|{{{homepage|{{{url|}}}}}}}}} }}
    }}
  }}<!--
 
-->{{#if:{{{notes|}}}{{{footnotes|}}}
      |{{Infobox/section
        | {{tt|name=Infobox company|default=Notes|arg1=notes}}
        | color = var(--color-blue)
        | id = company-notes
        | collapsed = true
        | <div style{{=}}"padding:0em 0.5em 0.5em;">{{{notes|{{{footnotes|}}}}}}</div>
      }}
    }}
}}</includeonly>
}}</includeonly>
<noinclude>[[Category:Infobox]]{{documentation}}</noinclude>

Revision as of 04:41, 17 March 2024

Notebook.pngTemplate Documentation

This template is used to create an infobox in an article about a company.

Usage

To use this template in an article, copy the template below, then paste the template into an article.

Only the name, logo_size and logo_caption parameters are optional – those that are not populated will not be displayed correctly.

name
name
logo_caption
name
image_caption
Type
type
Industry
industry
Founded
founded
Founder
founder
Headquarters
hq_city, hq_country
Key people
key_people
Products
products
Members
members (members_year)
Number of employees
num_employees (num_employees_year)
Website
website
Notes
notes
{{Infobox company
|name=
|logo=
|logo_size=
|logo_caption=
|image=
|image_caption=
|type=
|industry=
|founded=
|founder= <!-- or: |founders= -->
|hq_city=
|hq_country=
|key_people=
|products=
|members=
|members_year= <!-- Year of members data (if known) -->
|num_employees=
|num_employees_year= <!-- Year of num_employees data (if known) -->
|website= <!-- or: |url= -->
|notes= 
}}

Parameters

name
The full, legal name of the company, correctly reproducing punctuation and abbreviations or lack thereof.
logo
The company's current, primary wordmark or logo. Use the logo of the entity that is the subject of the article; the logo used may be different from the logo used on consumer products, particularly if the article is about a parent company or holding company.
logo_size
Optional display width of logo. If not specified, the size default is 200px.
logo_caption
Descriptive information for the logo, if necessary.
image
Image of the company, whether it be a group photo, or headquarters photo.
image_size
Optional display width of image. If not specified, the size default is 200px.
image_caption
Descriptive information for the image, if necessary.
type
Type of the company (not their type of incorporation).
industry
The primary industry or industries in which the company operates, listed alphabetically.
founded
Date and location of the company's establishment / foundation.
hq_city
City of the company's headquarters
hq_country
Country of the company's headquarters
key_people
Up to four key individuals closely associated with the company. List the figures in order of organizational role importance. Give job title(s) in parentheses (round brackets); these job titles use standard English casing.
products
A representative selection of the company's well known current or former products, listed alphabetically.
members
Up to four key individuals closely associated with the company. List the figures in order of organizational role importance. Give job title(s) in parentheses (round brackets).
num_employees
Total number of people employed by the company in the most recent year and the year prior, with the applicable years in parentheses.
num_employees_year
The year associated with the data presented by num_employees.
website
Top-level URL of the company's website, using // preceding the URL. Do not include the leading www. unless the URL will not resolve without it.
notes
Used to list citations that validate the data in the infobox or to note information about the terms, names, and figures used.

Examples

The Indie Stone company infobox

The Indie Stone
The Indie Stone
The Indie Stone current logo (2018)
Type
Private
Industry
Video games
Founded
2009
Headquarters
Gateshead, England
Products
Number of employees
20+ (2021)
{{Infobox company
| name = The Indie Stone
| logo = TIS_logo.png
| logo_size = 200px
| logo_caption = ''The Indie Stone current logo (2018)''
| type = Private
| industry = Video games
| founded = 2009
| hq_city = Gateshead
| hq_country = England
| key_people = [[Andy Hodgetts]]<br><small>([[wikipedia:Director_(business)|Director]])</small><br>[[Chris Simpson]]<br><small>([[wikipedia:Director_(business)|Director]])</small><br>[[Marina Siu-Chong]]<br><small>([[wikipedia:Director_(business)|Director]])</small><br>[[Will Porter]]<br><small>([[wikipedia:Director_(business)|Director]])</small>
| products = [[Project Zomboid]]
| num_employees = 20+
| num_employees_year = 2021
| website = [//theindiestone.com theindiestone.com]
}}

How to translate

This template is translatable.

Template code

Paste the following code into the <includeonly> tag of the translated template and translate the text after each = sign (except for #default =).

{{#switch: {{{1|}}}
| type = Type
| industry = Industry
| founded = Founded
| founder = Founder
| headquarters = Headquarters
| key_people = Key people
| products = Products
| members = Members
| number_of_employees = Number of employees
| website = Website
| notes = Notes
}}

Template documentation

Copy the code wrapped in the <noinclude> tag in this template and translate the text after doc = in the {{Documentation}} template.

{{Translation guide}} template should be removed from the translated documentation.

See also

Editors can experiment in this template's sandbox.