Template:Infobox company: Difference between revisions

From Roses, Tulips, & Liberty
Content added Content deleted
(Pass through {{{bodystyle}}} parameter to Template:Infobox per protected edit request)
m (Tried to fix WikiData issue.)
 
(146 intermediate revisions by 31 users not shown)
Line 1: Line 1:
{{infobox
{{Infobox
| bodyclass = vcard
| bodyclass = vcard

| bodystyle = {{{bodystyle|}}}
| child = {{lc:{{{embed}}}}}
| decat = yes

| titleclass = fn org
| titleclass = fn org
| title = {{{name<includeonly>|{{{company_name|{{PAGENAME}}}}}</includeonly>}}}
| title = {{#ifeq:{{lc:{{{embed}}}}} | yes | '''Company''' | {{#if:{{{name|}}} | {{{name}}} | {{#if:{{{company_name|}}}|{{{company_name}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}} }} }}

| imageclass = logo
| imageclass = logo
| imagestyle =
| image = {{{logo<includeonly>|{{{company_logo|}}}</includeonly>}}}
| 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|}}}}}} }}
| caption = {{{caption|}}}
| caption = {{{logo_caption|}}}
| image2 = {{#invoke:InfoboxImage |InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |sizedefault=frameless |upright={{{image_upright|1}}} |alt={{{image_alt|}}} }}
| caption2 = {{{image_caption|}}}

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

| label1 = {{longitem|[[Trade name]]}}
| data1 = {{{trade_name|{{{trading_name|}}}}}}

| label2 = {{longitem|Native name}}
| data2 = {{#if:{{{native_name|}}} | {{#if:{{{native_name_lang|}}} | {{lang|{{{native_name_lang}}}|{{{native_name}}} }} | {{{native_name}}} }} }}

| label3 = {{longitem|[[Romanization|Romanized]] name}}
| data3 = {{{romanized_name|}}}

| label4 = Formerly
| class4 = nickname
| data4 = {{{former_names|{{{former_name|}}}}}}


| label5 = Type
| label1 = {{nowrap|[[Doing business as|Trading name]]}}
| class5 = category
| data1 = {{{trading_name<includeonly>|</includeonly>}}}
| data5 = {{{type|{{{company_type|}}}}}}


| label6 = {{longitem|[[Ticker symbol|Traded as]]}}
| label2 = Native name
| data2 = {{{native_name<includeonly>|</includeonly>}}}
| data6 = {{{traded_as|}}}


| label8 = Industry
| label3 = [[Romanization|Romanized]] name
| class8 = category
| data3 = {{{romanized_name<includeonly>|</includeonly>}}}
| 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
| label4 = {{#if:{{{defunct|}}}|[[Types of business entity|Former type]]|[[Types of business entity|Type]]}}
| class4 = category
| class9 = category
| data9 = {{{genre|}}}
| data4 = {{{type<includeonly>|{{{company_type|}}}</includeonly>}}}


| label10 = Predecessor{{#if:{{{predecessors|}}}|s}}
| label5 = [[Ticker symbol|Traded as]]
| 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|}}}}}} }}
| data5 = {{{traded_as<includeonly>|</includeonly>}}}


| label6 = Industry
| 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|}}}}}} }}
| class6 = category
| data6 = {{{industry<includeonly>|</includeonly>}}}


| label12 = Founder{{#if:{{{founders|}}}|s}}
| label7 = Genre
| class7 = category
| 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|}}}}}} }}
| data7 = {{{genre<includeonly>|</includeonly>}}}


| label8 = Fate
| 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|}}}}}} }}
| data8 = {{{fate<includeonly>|</includeonly>}}}


| label14 = Fate
| label9 = Predecessor(s)
| data14 = {{{fate|}}}
| data9 = {{{predecessor<includeonly>|{{{Predecessor|}}}</includeonly>}}}


| label10 = Successor(s)
| 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|}}}}}} }}
| data10 = {{{successor<includeonly>|</includeonly>}}}


| label16 = Headquarters
| label11 = Founded
| class16 = {{#if:{{{hq_location|{{{location|}}}}}} | label | adr}}
| data11 = {{{foundation<includeonly>|</includeonly>}}}
| 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}}
| label12 = Founder(s)
| data18 = {{#if:{{{num_locations|{{{locations|}}}}}} | {{{num_locations|{{{locations|}}}}}}{{#if:{{{num_locations_year|}}} | &nbsp;({{{num_locations_year}}}) }} }}
| class12 = agent
| data12 = {{{founder<includeonly>|</includeonly>}}}


| label19 = {{longitem|Area{{#if:{{{areas_served|}}}|s}} served}}
| label13 = Defunct
| data19 = {{{areas_served|{{{area_served|}}}}}}
| data13 = {{{defunct<includeonly>|</includeonly>}}}


| label20 = {{longitem|Key people}}
| label14 = Headquarters
| class20 = agent
| class14 = {{#if:{{{location|}}}|label|adr}}
| data20 = {{{key_people|}}}
| data14 = {{#if: {{{location_city<includeonly>|</includeonly>}}}|<span class="locality">{{{location_city}}}</span>{{#if: {{{location_country<includeonly>|</includeonly>}}}|,&#32;}}}}{{#if: {{{location_country<includeonly>|</includeonly>}}}|<span class="country-name">{{{location_country}}}</span>}}
{{#if:{{{location|}}}|{{{location}}} }}


| label21 = Products
| label15 = Number of locations
| data15 = {{{locations<includeonly>|</includeonly>}}}
| data21 = {{{products|}}}


| label22 = {{longitem|Production output}}
| label16 = Area served
| data22 = {{#if:{{{production|}}} | {{{production|}}}{{#if:{{{production_year|}}} | &nbsp;({{{production_year}}}) }} }}
| data16 = {{{area_served<includeonly>|</includeonly>}}}


| label23 = Brands
| label17 = Key people
| data23 = {{{brands|}}}
| class17 = agent
| data17 = {{{key_people<includeonly>|</includeonly>}}}


| label18 = Products
| label24 = Services
| class24 = category
| data18 = {{{products<includeonly>|</includeonly>}}}
| data24 = {{{services|}}}


| label25 = Revenue
| label19 = Production output
| 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}}}) }} }}
| data19 = {{{production<includeonly>|</includeonly>}}}


| label26 = {{longitem|[[Earnings before interest and taxes|Operating income]]}}
| label20 = Services
| 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}}}) }} }}
| class20 = category
| data20 = {{{services<includeonly>|</includeonly>}}}


| label27 = {{longitem|[[Net income]]}}
| label21 = Revenue
| 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|}}}}}}) }} }}
| data21 = {{{revenue<includeonly>|</includeonly>}}}


| label28 = [[Assets under management|AUM]]
| label22 = [[Earnings before interest and taxes|Operating income]]
| data28 = {{{aum|}}}
| data22 = {{{operating_income<includeonly>|</includeonly>}}}


| label23 = {{#ifeq:{{{intl|}}}|yes|[[Net income|Profit]]|[[Net income]]}}
| 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}}}) }} }}
| data23 = {{{net_income<includeonly>|</includeonly>}}}


| label30 = {{nowrap|[[Equity (finance)|Total equity]]}}
| label24 = [[Assets under management|AUM]]
| data30 = {{#if:{{{equity|}}} | {{{equity}}}{{#if:{{{equity_year|}}} | &nbsp;({{{equity_year}}})}} }}
| data24 = {{{aum<includeonly>|</includeonly>}}}


| label31 = Owner{{#if:{{{owners|}}}|s}}
| label25 = [[Asset|Total assets]]
| data25 = {{{assets<includeonly>|</includeonly>}}}
| data31 = {{{owners|{{{owner|}}}}}}


| label32 = Members
| label26 = [[Equity (finance)|Total equity]]
| data32 = {{#if:{{{members|}}} | {{{members}}}{{#if:{{{members_year|}}} | &nbsp;({{{members_year}}})}} }}
| data26 = {{{equity<includeonly>|</includeonly>}}}


| label33 = {{longitem|Number of employees}}
| label27 = Owner(s)
| 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}}}) }} }}
| data27 = {{{owner<includeonly>|</includeonly>}}}


| label34 = [[Parent company|Parent]]
| label28 = Employees
| 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|}}} }}
| data28 = {{{num_employees<includeonly>|</includeonly>}}}


| label29 = [[Holding company|Parent]]
| label35 = [[Division (business)|Divisions]]
| data29 = {{{parent<includeonly>|</includeonly>}}}
| data35 = {{{divisions|}}}


| label36 = [[Subsidiary|Subsidiaries]]
| label30 = [[Division (business)|Divisions]]
| data30 = {{{divisions<includeonly>|</includeonly>}}}
| data36 = {{{subsid|}}}


| data38 = {{{module|}}}
| label31 = [[Subsidiary|Subsidiaries]]
| data31 = {{{subsid<includeonly>|</includeonly>}}}


| belowstyle = line-height: 1.35em;
| label32 = Website
| below = {{#if:{{{footnotes|}}} | '''Footnotes{{\}}references'''{{break}}{{{footnotes}}} }}
| data32 = {{{homepage<includeonly>|{{{website|}}}</includeonly>}}}


}}<!-- Tracking categories:
| below = {{#if:{{{footnotes<includeonly>|</includeonly>}}}|'''References:''' {{{footnotes}}} }}
}}<noinclude>


-->{{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 ignored 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 | 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| qid | fetchwikidata | suppressfields | noicon | nocat | demo | categories }}<noinclude>
{{documentation}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 16:05, 7 October 2023