Template:Infobox company: Difference between revisions

From WikiMD's Wellness Encyclopedia

CSV import
 
No edit summary
 
Line 1: Line 1:
{{Infobox
<includeonly>
| bodyclass = vcard
<div style="border: 1px solid #a2a9b1; background-color: #f9f9f9; padding: 5px; float: right; clear: right; margin: 0 0 1em 1em; width: 22em; font-size: 90%;">


| child = {{lc:{{{embed}}}}}
<!-- Title -->
| decat = yes
<div style="background-color: #f8f9fa; text-align: center; font-weight: bold; font-size: 110%;">
{{{name|Company Name}}}
</div>


| titleclass = fn org
<!-- Logo -->
| title = {{#ifeq:{{lc:{{{embed}}}}} | yes | '''Company''' | {{#if:{{{name|}}} | {{{name}}} | {{#if:{{{company_name|}}}|{{{company_name}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}} }} }}
{{#if: {{{logo|}}} |
<div style="text-align: center; margin: 5px 0;">
[[File:{{{logo}}}|{{{logo_size|200px}}}|alt={{{logo_alt|}}}]]
</div>}}


| imageclass = logo
<!-- Company Info Table -->
| imagestyle =
<table style="width: 100%; border-spacing: 0; margin: 0;">
| image = {{#invoke:InfoboxImage |InfoboxImage |image={{#ifeq:{{lc:{{{embed}}}}} | yes | {{{logo|{{{company_logo|}}}}}} |{{#invoke:WikidataIB |getValue |rank=best |P154 |name=logo |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=no |noicon=yes |maxvals=1 |{{{logo|{{{company_logo|}}}}}} }} }} |size={{{logo_size|}}} |sizedefault=frameless |upright={{{logo_upright|1}}} |alt={{{logo_alt|{{{alt|}}}}}} }}
{{#if: {{{type|}}} | <tr><th style="text-align: left;">Type</th><td>{{{type}}}</td></tr> }}
| caption = {{{logo_caption|}}}
{{#if: {{{traded_as|}}} | <tr><th style="text-align: left;">Traded as</th><td>{{{traded_as}}}</td></tr> }}
| image2 = {{#invoke:InfoboxImage |InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |sizedefault=frameless |upright={{{image_upright|1}}} |alt={{{image_alt|}}} }}
{{#if: {{{foundation|}}} | <tr><th style="text-align: left;">Founded</th><td>{{{foundation}}}</td></tr> }}
| caption2 = {{{image_caption|}}}
{{#if: {{{location_city|}}} | <tr><th style="text-align: left;">Headquarters</th><td>{{{location_city}}}</td></tr> }}
{{#if: {{{locations|}}} | <tr><th style="text-align: left;">Locations</th><td>{{{locations}}}</td></tr> }}
{{#if: {{{key_people|}}} | <tr><th style="text-align: left;">Key people</th><td>{{{key_people}}}</td></tr> }}
{{#if: {{{industry|}}} | <tr><th style="text-align: left;">Industry</th><td>{{{industry}}}</td></tr> }}
{{#if: {{{products|}}} | <tr><th style="text-align: left;">Products</th><td>{{{products}}}</td></tr> }}
{{#if: {{{revenue|}}} | <tr><th style="text-align: left;">Revenue</th><td>{{{revenue}}}</td></tr> }}
{{#if: {{{operating_income|}}} | <tr><th style="text-align: left;">Operating income</th><td>{{{operating_income}}}</td></tr> }}
{{#if: {{{net_income|}}} | <tr><th style="text-align: left;">Net income</th><td>{{{net_income}}}</td></tr> }}
{{#if: {{{assets|}}} | <tr><th style="text-align: left;">Assets</th><td>{{{assets}}}</td></tr> }}
{{#if: {{{equity|}}} | <tr><th style="text-align: left;">Equity</th><td>{{{equity}}}</td></tr> }}
{{#if: {{{num_employees|}}} | <tr><th style="text-align: left;">Employees</th><td>{{{num_employees}}}</td></tr> }}
{{#if: {{{website|}}} | <tr><th style="text-align: left;">Website</th><td>[{{{website}}} Official website]</td></tr> }}
</table>


| labelstyle = padding-right: 0.5em;<!-- to ensure gap between (long/unwrapped) label and subsequent data on same line -->
</div>
| datastyle = line-height: 1.35em;
</includeonly>


| label1  = {{longitem|[[Trade name]]}}
<noinclude>
|  data1  = {{{trade_name|{{{trading_name|}}}}}}
== Usage ==
This template provides a standardized infobox for company information.


| label2  = {{longitem|Native name}}
=== Example ===
| data2  = {{#if:{{{native_name|}}} | {{#if:{{{native_name_lang|}}} | {{lang|{{{native_name_lang}}}|{{{native_name}}} }} | {{{native_name}}} }} }}
<syntaxhighlight lang="mediawiki">
{{Infobox company
| name            = McDonald's Corporation
| logo            = McDonald's Golden Arches.svg
| logo_alt        = McDonald's logo, two golden arches in a yellow circle
| type            = [[Public company]]
| traded_as      = {{NYSE|MCD}}
| foundation      =
1940 in San Bernardino, California, United States (as a [[Barbecue restaurant]])<br>
April 15, 1955 in Des Plaines, Illinois, United States (as McDonald's Corporation)
| location_city  = [[Chicago]], [[Illinois]], United States
| locations      = {{ubl|Over 38,000 in 119 countries (2021)}}
| key_people      =
* [[Chris Kempczinski]], CEO and President<br>
* [[Enrique Hernandez Jr.]], Chairman<br>
* [[Kevin Ozan]], CFO
| industry        = [[Fast food]]
| products        = [[Hamburger]]s, [[Cheeseburger]]s, [[Chicken sandwich|Chicken sandwiches]], [[French fries]], [[Soft drink]]s, breakfast items, desserts, shakes, and more
| revenue        = {{increase}} US$19.2 billion (2021)
| operating_income= {{increase}} US$4.9 billion (2021)
| net_income      = {{increase}} US$4.6 billion (2021)
| assets          = {{increase}} US$44.2 billion (2021)
| equity          = {{increase}} US$16.7 billion (2021)
| num_employees  = {{increase}} 205,000 (2021)
| website        = {{URL|https://www.mcdonalds.com}}
}}
</syntaxhighlight>


| label3  = {{longitem|[[Romanization|Romanized]] name}}
=== Parameters ===
|  data3  = {{{romanized_name|}}}
* `name` - Name of the company (required).
* `logo` - File name of the company logo.
* `logo_alt` - Alt text for the logo.
* `type` - Type of company (e.g., public, private).
* `traded_as` - Stock market listing.
* `foundation` - Year and location the company was founded.
* `location_city` - Headquarters city.
* `locations` - Number of locations or global reach.
* `key_people` - List of key executives.
* `industry` - Industry type.
* `products` - List of main products.
* `revenue`, `operating_income`, `net_income`, `assets`, `equity` - Financial information.
* `num_employees` - Number of employees.
* `website` - Official website URL.


| label4  = Formerly
== Notes ==
| class4  = nickname
* This template supports multiline entries with `<br>` or `{{ubl}}` (unordered list for neatness).
|  data4  = {{{former_names|{{{former_name|}}}}}}
* Place it at the top of company articles for consistent formatting.


| label5  = Company type
| class5  = category
|  data5  = {{{type|{{{company_type|}}}}}}
| label6  = {{longitem|[[Ticker symbol|Traded as]]}}
|  data6  = {{{traded_as|}}}
| label7  = [[International Securities Identification Number|ISIN]]
|  data7  = {{#invoke:WikidataIB |getValue |rank=best |P946 |name=ISIN |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |sep="<br />" |sorted=yes |{{{ISIN|}}} }}
| label8  = Industry
| class8  = category
|  data8  = {{#invoke:WikidataIB |getValue |rank=best |P452 |name=industry |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |sep="<br />" |sorted=yes |{{{industry|}}} }}
| label9  = Genre
| class9  = category
|  data9  = {{{genre|}}}
| label10 = Predecessor{{#if:{{{predecessors|}}}|s}}
|  data10 = {{#invoke:WikidataIB |getValue |rank=best |P155 |name=predecessor |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |sep="<br />" |sorted=yes |{{{predecessors|{{{predecessor|}}}}}} }}
| label11 = Founded
|  data11 = {{#invoke:WikidataIB |getValue |rank=best |P571 |name=founded |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |sep="<br />" |sorted=yes |{{{founded|{{{foundation|}}}}}} }}
| label12 = Founder{{#if:{{{founders|}}}|s}}
| class12 = agent
|  data12 = {{#invoke:WikidataIB |getValue |rank=best |P112 |name=founder |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |sep="<br />" |sorted=yes |{{{founders|{{{founder|}}}}}} }}
| label13 = Defunct
|  data13 = {{#invoke:WikidataIB |getValue |rank=best |P576 |name=defunct |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |sep="<br />" |sorted=yes |{{{defunct|{{{dissolved|}}}}}} }}
| label14 = Fate
|  data14 = {{{fate|}}}
| label15 = Successor{{#if:{{{successors|}}}|s}}
|  data15 = {{#invoke:WikidataIB |getValue |rank=best |P156 |name=successor |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |sep="<br />" |sorted=yes |{{{successors|{{{successor|}}}}}} }}
| label16 = Headquarters
| class16 = {{#if:{{{hq_location|{{{location|}}}}}} | label | adr}}
|  data16 = {{#if:{{{hq_location|{{{location|}}}}}}{{{hq_location_city|{{{location_city|}}}}}}{{{hq_location_country|{{{location_country|}}}}}}
            | {{Comma separated entries
                | 1 = {{{hq_location|{{{location|}}}}}}
                | 2 = {{#if:{{{hq_location_city|}}}{{{location_city|}}} |<div style="display: inline;" class="locality">{{#if:{{{hq_location_city|}}}{{{location_city|}}} | {{{hq_location_city|{{{location_city|}}}}}} | }}</div>}}
                | 3 = {{#if:{{{hq_location_country|}}}{{{location_country|}}} |<div style="display: inline;" class="country-name">{{#if:{{{hq_location_country|}}}{{{location_country|}}} | {{{hq_location_country|{{{location_country|}}}}}} | }}</div>}}
              }}
            | {{#if:{{#invoke:WikidataIB |getValue |rank=best |P159 |name=hq_location_city |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 }}{{#invoke:WikidataIB |getValue |rank=best |P17 |name=hq_location_country |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 }}
              | {{Comma separated entries
                | 1 = {{#if:{{#invoke:WikidataIB |getValue |rank=best |P159 |name=hq_location_city |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 }} |<div style="display: inline;" class="locality">{{#invoke:WikidataIB |getValue |rank=best |P159 |name=headquarters location |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 }}</div>}}
                | 2 = {{#if:{{#invoke:WikidataIB |getValue |rank=best |P17 |name=countrry |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 }} |<div style="display: inline;" class="country-name">{{#invoke:WikidataIB |getValue |rank=best |P17 |name=hq_location_country |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 }}</div>}}
                }}
              }}
            }}
| label18 = {{longitem|Number of locations}}
|  data18 = {{#if:{{{num_locations|{{{locations|}}}}}} | {{{num_locations|{{{locations|}}}}}}{{#if:{{{num_locations_year|}}} | &nbsp;({{{num_locations_year}}}) }} }}
| label19 = {{longitem|Area{{#if:{{{areas_served|}}}|s}} served}}
|  data19 = {{{areas_served|{{{area_served|}}}}}}
| label20 = {{longitem|Key people}}
| class20 = agent
|  data20 = {{{key_people|}}}
| label21 = Products
|  data21 = {{{products|}}}
| label22 = {{longitem|Production output}}
|  data22 = {{#if:{{{production|}}} | {{{production|}}}{{#if:{{{production_year|}}} | &nbsp;({{{production_year}}}) }} }}
| label23 = Brands
|  data23 = {{{brands|}}}
| label24 = Services
| class24 = category
|  data24 = {{{services|}}}
| label25 = Revenue
|  data25 = {{#invoke:WikidataIB |getValue |rank=best |P2139 |name=revenue |qual=P585 |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 |{{{revenue|}}}{{#if:{{{revenue_year|}}} | &nbsp;({{{revenue_year}}}) }} }}
| label26 = {{longitem|[[Earnings before interest and taxes|Operating income]]}}
|  data26 = {{#invoke:WikidataIB |getValue |rank=best |P3362 |name=operating_income |qual=P585 |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 |{{{operating_income|}}}{{#if:{{{income_year|}}} | &nbsp;({{{income_year}}}) }} }}
| label27 = {{longitem|[[Net income]]}}
|  data27 = {{#invoke:WikidataIB |getValue |rank=best |P2295 |name=net_income |qual=P585 |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 |{{{net_income|{{{profit|}}}}}}{{#if:{{{net_income_year|{{{profit_year|}}}}}} | &nbsp;({{{net_income_year|{{{profit_year|}}}}}}) }} }}
| label28 = [[Assets under management|AUM]]
|  data28 = {{{aum|}}}
| label29 = {{nowrap|[[Asset|Total assets]]}}
|  data29 = {{#invoke:WikidataIB |getValue |rank=best |P2403 |name=assets |qual=P585 |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 |{{{assets|}}}{{#if:{{{assets_year|}}} | &nbsp;({{{assets_year}}}) }} }}
| label30 = {{nowrap|[[Equity (finance)|Total equity]]}}
|  data30 = {{#if:{{{equity|}}} | {{{equity}}}{{#if:{{{equity_year|}}} | &nbsp;({{{equity_year}}})}} }}
| label31 = Owner{{#if:{{{owners|}}}|s}}
|  data31 = {{{owners|{{{owner|}}}}}}
| label32 = Members
|  data32 = {{#if:{{{members|}}} | {{{members}}}{{#if:{{{members_year|}}} | &nbsp;({{{members_year}}})}} }}
| label33 = {{longitem|Number of employees}}
|  data33 = {{#invoke:WikidataIB |getValue |rank=best |P1128 |name=num_employees |qual=P585 |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 |{{{num_employees|}}}{{#if:{{{num_employees_year|}}} | &nbsp;({{{num_employees_year}}}) }} }}
| label34 = [[Parent company|Parent]]
|  data34 = {{#ifeq:{{{owners|}}}{{{owner|}}}{{{parent|}}} || {{#invoke:WikidataIB |getValue |rank=best |P749 |name=parent |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |sep="<br />" |sorted=yes }} | {{{parent|}}} }}
| label35 = [[Division (business)|Divisions]]
|  data35 = {{{divisions|}}}
| label36 = [[Subsidiary|Subsidiaries]]
|  data36 = {{{subsid|}}}
|  data38 = {{{module|}}}
| label39 = [[Basel III|Capital ratio]]
|  data39 = {{{ratio|}}}
| label40 = Rating
|  data40 = {{{rating|}}}
| label41 = Website
|  data41 = {{#if:{{{website|{{{homepage|}}}}}} |{{{website|{{{homepage|}}}}}} |{{#invoke:WikidataIB |url2 |url={{#invoke:WikidataIB |getValue |rank=best |P856 |name=website |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=yes |maxvals=1}} }} }}
| belowstyle = line-height: 1.35em;
| below = {{#if:{{{footnotes|}}} | '''Footnotes{{\}}references'''{{break}}{{{footnotes}}} }}
}}<!-- Tracking categories:
-->{{main other|{{#if:{{{trading_name|}}}|[[Category:Pages using infobox company using trading name]]
}}{{#ifeq:{{{logo|{{{company_logo|{{wikidata|property|raw|P154}}}}}}}}|{{{logo|{{{company_logo|}}}}}}||[[Category:Pages using infobox company with a logo from wikidata]]
}}{{#if:{{{image|}}}|{{#ifeq:{{#invoke:string|replace|{{{image|}}}| |_}}|{{#invoke:string|replace|{{{logo|{{{company_logo|{{wikidata|property|raw|P154}}}}}}}}| |_}}|[[Category:Pages using infobox company with a duplicate image]]|}}|}}
}}<!--
-->{{#invoke:Check for clobbered parameters|check|nested=1|template=Infobox company|cat={{main other|Category:Pages using infobox company with conflicting parameters}}|name; company_name|logo; company_logo|logo_alt; alt|trade_name; trading_name|former_names; former_name|type; company_type|predecessors; predecessor|successors; successor|foundation; founded|founders; founder|defunct; dissolved|hq_location; location|hq_location_city; location_city|hq_location_country; location_country|num_locations; locations|areas_served; area_served|net_income; profit|net_income_year; profit_year|owners; owner |homepage; website
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox company with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox company]] with unknown parameter "_VALUE_" | ignoreblank=y | alt | area_served | areas_served | assets | assets_year | aum | brands | company_logo | company_name | company_type | defunct | dissolved | divisions | embed | equity | equity_year | fate | footnotes | former_name | former_names | foundation | founded | founder | founders | genre | homepage | hq_location | hq_location_city | hq_location_country | image | image_alt | image_caption | image_size | image_upright | income_year | industry | ISIN | key_people | location | location_city | location_country | locations | logo | logo_alt | logo_caption | logo_size | logo_upright | members | members_year | module | name | native_name | native_name_lang | net_income | net_income_year | num_employees | num_employees_year | num_locations | num_locations_year | operating_income | owner | owners | parent | predecessor | predecessors | production | production_year | products | profit | profit_year | rating | ratio | revenue | revenue_year | romanized_name | services | subsid | successor | successors | traded_as | trade_name | trading_name | type | website| qid | fetchwikidata | suppressfields | noicon | nocat | demo | categories }}<noinclude>
{{documentation}}
</noinclude>
</noinclude>
{{no-index-template}}

Latest revision as of 12:34, 17 December 2024


Usage[edit]

This template provides a standardized infobox for company information.

Example[edit]

{{Infobox company
| name            = McDonald's Corporation
| logo            = McDonald's Golden Arches.svg
| logo_alt        = McDonald's logo, two golden arches in a yellow circle
| type            = [[Public company]]
| traded_as       = {{NYSE|MCD}}
| foundation      = 
1940 in San Bernardino, California, United States (as a [[Barbecue restaurant]])<br>
April 15, 1955 in Des Plaines, Illinois, United States (as McDonald's Corporation)
| location_city   = [[Chicago]], [[Illinois]], United States
| locations       = {{ubl|Over 38,000 in 119 countries (2021)}}
| key_people      = 
* [[Chris Kempczinski]], CEO and President<br>
* [[Enrique Hernandez Jr.]], Chairman<br>
* [[Kevin Ozan]], CFO
| industry        = [[Fast food]]
| products        = [[Hamburger]]s, [[Cheeseburger]]s, [[Chicken sandwich|Chicken sandwiches]], [[French fries]], [[Soft drink]]s, breakfast items, desserts, shakes, and more
| revenue         = {{increase}} US$19.2 billion (2021)
| operating_income= {{increase}} US$4.9 billion (2021)
| net_income      = {{increase}} US$4.6 billion (2021)
| assets          = {{increase}} US$44.2 billion (2021)
| equity          = {{increase}} US$16.7 billion (2021)
| num_employees   = {{increase}} 205,000 (2021)
| website         = {{URL|https://www.mcdonalds.com}}
}}

Parameters[edit]

  • `name` - Name of the company (required).
  • `logo` - File name of the company logo.
  • `logo_alt` - Alt text for the logo.
  • `type` - Type of company (e.g., public, private).
  • `traded_as` - Stock market listing.
  • `foundation` - Year and location the company was founded.
  • `location_city` - Headquarters city.
  • `locations` - Number of locations or global reach.
  • `key_people` - List of key executives.
  • `industry` - Industry type.
  • `products` - List of main products.
  • `revenue`, `operating_income`, `net_income`, `assets`, `equity` - Financial information.
  • `num_employees` - Number of employees.
  • `website` - Official website URL.

Notes[edit]

  • This template supports multiline entries with `
    ` or `` (unordered list for neatness).
  • Place it at the top of company articles for consistent formatting.