Template:Infobox company: Difference between revisions
NeonWabbit (talk | contribs) No edit summary |
NeonWabbit (talk | contribs) No edit summary |
||
| Line 8: | Line 8: | ||
| titleclass = fn org | | titleclass = fn org | ||
| titlestyle = font-size: 125%; | | titlestyle = font-size: 125%; | ||
| title = {{#ifeq:{{lc:{{{embed}}}}} | yes | '''Company''' | {{ | | title = {{#ifeq:{{lc:{{{embed}}}}} | yes | '''Company''' | {{if empty|{{{name|}}}|{{PAGENAMEBASE}}}} }} | ||
| imageclass = ib-company-logo logo | | imageclass = ib-company-logo logo | ||
| image = {{#invoke:InfoboxImage |InfoboxImage |image={{#ifeq:{{lc:{{{embed}}}}} | yes | {{{logo| | | image = {{#invoke:InfoboxImage |InfoboxImage |image={{#ifeq:{{lc:{{{embed}}}}} | yes | {{{logo|}}} |{{#invoke:WikidataIB |getValue |rank=best |P154 |name=logo |qid={{{qid|}}} |fetchwikidata={{if empty|{{{fetchwikidata|}}}|ALL}} |suppressfields={{{suppressfields|}}} |onlysourced=no |noicon=yes |maxvals=1 |{{{logo|}}} }} }} |size={{{logo_size|}}} |sizedefault=frameless |upright={{if empty|{{{logo_upright|}}}|1}} |alt={{{logo_alt|}}} |class= {{{logo_class|}}} |maxsize=250px}} | ||
| caption = {{{logo_caption|}}} | | caption = {{{logo_caption|}}} | ||
| image2 = {{#invoke:InfoboxImage |InfoboxImage |image={{{image|}}} |size={{{image_size|}}} | | | image2 = {{#invoke:InfoboxImage |InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |upright={{if empty|{{{image_upright|}}}|1}} |alt={{{image_alt|}}} }} | ||
| caption2 = {{{image_caption|}}} | | caption2 = {{{image_caption|}}} | ||
| label1 = {{longitem|Trade name}} | | label1 = {{longitem|Trade name}} | ||
| data1 = {{{trade_name| | | data1 = {{{trade_name|}}} | ||
| label2 = {{longitem|Native name}} | | label2 = {{longitem|Native name}} | ||
| Line 27: | Line 27: | ||
| label4 = Formerly | | label4 = Formerly | ||
| class4 = nickname | | class4 = nickname | ||
| data4 = {{{former_names|{{{former_name| | | data4 = {{if empty|{{{former_names|}}}|{{{former_name|}}}}} | ||
| label5 = | | label5 = Type | ||
| class5 = category | | class5 = category | ||
| data5 = {{{type| | | data5 = {{{type|}}} | ||
| label6 = {{longitem|Traded as}} | | label6 = {{longitem|Traded as}} | ||
| data6 = {{{traded_as|}}} | | data6 = {{{traded_as|}}} | ||
| label7 = | | label7 = ISIN | ||
| data7 = {{#invoke:WikidataIB |getValue |rank=best |P946 |name=ISIN |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL | | data7 = {{#invoke:WikidataIB |getValue |rank=best |P946 |name=ISIN |qid={{{qid|}}} |fetchwikidata={{if empty|{{{fetchwikidata|}}}|ALL}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{if empty|{{{noicon|}}}|no}} |sep="<br />" |sorted=yes |{{{ISIN|}}} }} | ||
| label8 = Industry | | label8 = Industry | ||
| class8 = category | | class8 = category | ||
| data8 = {{#invoke:WikidataIB |getValue |rank=best |P452 |name=industry |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL | | data8 = {{#invoke:WikidataIB |getValue |rank=best |P452 |name=industry |qid={{{qid|}}} |fetchwikidata={{if empty|{{{fetchwikidata|}}}|ALL}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{if empty|{{{noicon|}}}|no}} |sep="<br />" |sorted=yes |{{{industry|}}} }} | ||
| label9 = Genre | | label9 = Genre | ||
| Line 48: | Line 48: | ||
| label10 = Predecessor{{#if:{{{predecessors|}}}|s}} | | label10 = Predecessor{{#if:{{{predecessors|}}}|s}} | ||
| data10 = {{#invoke:WikidataIB |getValue |rank=best |P155 |name=predecessor |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL | | data10 = {{#invoke:WikidataIB |getValue |rank=best |P155 |name=predecessor |qid={{{qid|}}} |fetchwikidata={{if empty|{{{fetchwikidata|}}}|ALL}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{if empty|{{{noicon|}}}|no}} |sep="<br />" |sorted=yes |{{if empty|{{{predecessors|}}}|{{{predecessor|}}}}} }} | ||
| label11 = Incorporated | | label11 = Incorporated | ||
| data11 = {{#invoke:WikidataIB |getValue |rank=best |P1001 |name=incorporated |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL | | data11 = {{#invoke:WikidataIB |getValue |rank=best |P1001 |name=incorporated |qid={{{qid|}}} |fetchwikidata={{if empty|{{{fetchwikidata|}}}|ALL}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{if empty|{{{noicon|}}}|no}} |sep="<br />" |sorted=yes |{{{incorporated|}}} }} | ||
| label12 = Founded | | label12 = Founded | ||
| data12 = {{#invoke:WikidataIB |getValue |rank=best |P571 |name=founded |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL | | data12 = {{#invoke:WikidataIB |getValue |rank=best |P571 |name=founded |qid={{{qid|}}} |fetchwikidata={{if empty|{{{fetchwikidata|}}}|ALL}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{if empty|{{{noicon|}}}|no}} |sep="<br />" |sorted=yes | {{{founded|}}} }} | ||
| label13 = Founder{{#if:{{{founders|}}}|s}} | | label13 = Founder{{#if:{{{founders|}}}|s}} | ||
| class13 = agent | | class13 = agent | ||
| data13 = {{#invoke:WikidataIB |getValue |rank=best |P112 |name=founder |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL | | data13 = {{#invoke:WikidataIB |getValue |rank=best |P112 |name=founder |qid={{{qid|}}} |fetchwikidata={{if empty|{{{fetchwikidata|}}}|ALL}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{if empty|{{{noicon|}}}|no}} |sep="<br />" |sorted=yes |{{if empty|{{{founders|}}}|{{{founder|}}}}} }} | ||
| label14 = Defunct | | label14 = Defunct | ||
| data14 = {{#invoke:WikidataIB |getValue |rank=best |P576 |name=defunct |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL | | data14 = {{#invoke:WikidataIB |getValue |rank=best |P576 |name=defunct |qid={{{qid|}}} |fetchwikidata={{if empty|{{{fetchwikidata|}}}|ALL}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{if empty|{{{noicon|}}}|no}} |sep="<br />" |sorted=yes |{{{defunct|}}} }} | ||
| label15 = Fate | | label15 = Fate | ||
| Line 67: | Line 67: | ||
| label16 = Successor{{#if:{{{successors|}}}|s}} | | label16 = Successor{{#if:{{{successors|}}}|s}} | ||
| data16 = {{#invoke:WikidataIB |getValue |rank=best |P156 |name=successor |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL | | data16 = {{#invoke:WikidataIB |getValue |rank=best |P156 |name=successor |qid={{{qid|}}} |fetchwikidata={{if empty|{{{fetchwikidata|}}}|ALL}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{if empty|{{{noicon|}}}|no}} |sep="<br />" |sorted=yes |{{if empty|{{{successors|}}}|{{{successor|}}}}} }} | ||
| label17 = Headquarters | | label17 = Headquarters | ||
| class17 = {{#if:{{{hq_location| | | class17 = {{#if:{{{hq_location|}}} | label | adr}} | ||
| data17 = {{#if:{{{hq_location| | | data17 = {{#if:{{{hq_location|}}}{{{hq_location_city|}}}{{{hq_location_country|}}} | ||
| {{Comma separated entries | | {{Comma separated entries | ||
| 1 = {{{hq_location | | 1 = {{{hq_location|}}} | ||
| 2 = {{#if:{{{hq_location_city | | 2 = {{#if:{{{hq_location_city|}}} |<div class="ib-company-locality locality"> {{{hq_location_city|}}}</div>}} | ||
| 3 = {{#if:{{{hq_location_country | | 3 = {{#if:{{{hq_location_country|}}} |<div class="ib-company-country country-name"> {{{hq_location_country|}}}</div>}} | ||
}} | }} | ||
| {{#if:{{#invoke:WikidataIB |getValue |rank=best |P159 |name=hq_location_city |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL | | {{#if:{{#invoke:WikidataIB |getValue |rank=best |P159 |name=hq_location_city |qid={{{qid|}}} |fetchwikidata={{if empty|{{{fetchwikidata|}}}|ALL}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{if empty|{{{noicon|}}}|no}} |maxvals=1 }}{{#invoke:WikidataIB |getValue |rank=best |P17 |name=hq_location_country |qid={{{qid|}}} |fetchwikidata={{if empty|{{{fetchwikidata|}}}|ALL}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{if empty|{{{noicon|}}}|no}} |maxvals=1 }} | ||
| {{Comma separated entries | | {{Comma separated entries | ||
| 1 = {{#if:{{#invoke:WikidataIB |getValue |rank=best |P159 |name=hq_location_city |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL | | 1 = {{#if:{{#invoke:WikidataIB |getValue |rank=best |P159 |name=hq_location_city |qid={{{qid|}}} |fetchwikidata={{if empty|{{{fetchwikidata|}}}|ALL}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{if empty|{{{noicon|}}}|no}} |maxvals=1 }} |<div class="ib-company-locality locality">{{#invoke:WikidataIB |getValue |rank=best |P159 |name=headquarters location |qid={{{qid|}}} |fetchwikidata={{if empty|{{{fetchwikidata|}}}|ALL}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{if empty|{{{noicon|}}}|no}} |maxvals=1 }}</div>}} | ||
| 2 = {{#if:{{#invoke:WikidataIB |getValue |rank=best |P17 |name=countrry |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL | | 2 = {{#if:{{#invoke:WikidataIB |getValue |rank=best |P17 |name=countrry |qid={{{qid|}}} |fetchwikidata={{if empty|{{{fetchwikidata|}}}|ALL}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{if empty|{{{noicon|}}}|no}} |maxvals=1 }} |<div class="ib-company-country country-name">{{#invoke:WikidataIB |getValue |rank=best |P17 |name=hq_location_country |qid={{{qid|}}} |fetchwikidata={{if empty|{{{fetchwikidata|}}}|ALL}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{if empty|{{{noicon|}}}|no}} |maxvals=1 }}</div>}} | ||
}} | }} | ||
}} | }} | ||
| Line 86: | Line 86: | ||
| label19 = {{longitem|Number of locations}} | | label19 = {{longitem|Number of locations}} | ||
| data19 = | | data19 = {{{num_locations|}}}{{#if:{{{num_locations_year|}}} | ({{{num_locations_year}}}) }} | ||
| label20 = {{longitem|Area{{#if:{{{areas_served|}}}|s}} served}} | | label20 = {{longitem|Area{{#if:{{{areas_served|}}}|s}} served}} | ||
| data20 = {{{areas_served|{{{area_served| | | data20 = {{if empty|{{{areas_served|}}}|{{{area_served|}}}}} | ||
| label21 = {{longitem|Key people}} | | label21 = {{longitem|Key people}} | ||
| Line 109: | Line 109: | ||
| label26 = Revenue | | label26 = Revenue | ||
| data26 = {{#invoke:WikidataIB |getValue |rank=best |P2139 |name=revenue |qual=P585 |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL | | data26 = {{#invoke:WikidataIB |getValue |rank=best |P2139 |name=revenue |qual=P585 |qid={{{qid|}}} |fetchwikidata={{if empty|{{{fetchwikidata|}}}|ALL}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{if empty|{{{noicon|}}}|no}} |maxvals=1 |{{{revenue|}}}{{#if:{{{revenue_year|}}} | ({{{revenue_year}}}) }} }} | ||
| label27 = {{longitem|Operating income}} | | label27 = {{longitem|Operating income}} | ||
| data27 = {{#invoke:WikidataIB |getValue |rank=best |P3362 |name=operating_income |qual=P585 |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL | | data27 = {{#invoke:WikidataIB |getValue |rank=best |P3362 |name=operating_income |qual=P585 |qid={{{qid|}}} |fetchwikidata={{if empty|{{{fetchwikidata|}}}|ALL}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{if empty|{{{noicon|}}}|no}} |maxvals=1 |{{{operating_income|}}}{{#if:{{{income_year|}}} | ({{{income_year}}}) }} }} | ||
| label28 = {{longitem|Net income}} | | label28 = {{longitem|Net income}} | ||
| data28 = {{#invoke:WikidataIB |getValue |rank=best |P2295 |name=net_income |qual=P585 |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL | | data28 = {{#invoke:WikidataIB |getValue |rank=best |P2295 |name=net_income |qual=P585 |qid={{{qid|}}} |fetchwikidata={{if empty|{{{fetchwikidata|}}}|ALL}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{if empty|{{{noicon|}}}|no}} |maxvals=1 |{{{net_income|}}}{{#if:{{{net_income_year|}}} | ({{{net_income_year|}}}) }} }} | ||
| label29 = | | label29 = AUM | ||
| data29 = {{{aum|}}} | | data29 = {{{aum|}}} | ||
| label30 = {{nowrap|Total assets}} | | label30 = {{nowrap|Total assets}} | ||
| data30 = {{#invoke:WikidataIB |getValue |rank=best |P2403 |name=assets |qual=P585 |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL | | data30 = {{#invoke:WikidataIB |getValue |rank=best |P2403 |name=assets |qual=P585 |qid={{{qid|}}} |fetchwikidata={{if empty|{{{fetchwikidata|}}}|ALL}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{if empty|{{{noicon|}}}|no}} |maxvals=1 |{{{assets|}}}{{#if:{{{assets_year|}}} | ({{{assets_year}}}) }} }} | ||
| label31 = {{nowrap|Total equity}} | | label31 = {{nowrap|Total equity}} | ||
| Line 127: | Line 127: | ||
| label32 = Owner{{#if:{{{owners|}}}|s}} | | label32 = Owner{{#if:{{{owners|}}}|s}} | ||
| data32 = {{{owners|{{{owner| | | data32 = {{if empty|{{{owners|}}}|{{{owner|}}}}} | ||
| label33 = Members | | label33 = Members | ||
| data33 = | | data33 = {{{num_members|}}}{{#if:{{{num_members_year|}}} | ({{{num_members_year|}}})}} | ||
| label34 = {{longitem|Number of employees}} | | label34 = {{longitem|Number of employees}} | ||
| data34 = {{#invoke:WikidataIB |getValue |rank=best |P1128 |name=num_employees |qual=P585 |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL | | data34 = {{#invoke:WikidataIB |getValue |rank=best |P1128 |name=num_employees |qual=P585 |qid={{{qid|}}} |fetchwikidata={{if empty|{{{fetchwikidata|}}}|ALL}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{if empty|{{{noicon|}}}|no}} |maxvals=1 |{{{num_employees|}}}{{#if:{{{num_employees_year|}}} | ({{{num_employees_year}}}) }} }} | ||
| label35 = Parent | | label35 = Parent | ||
| data35 = {{#ifeq:{{{owners|}}}{{{owner|}}}{{{parent|}}} || {{#invoke:WikidataIB |getValue |rank=best |P749 |name=parent |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL | | data35 = {{#ifeq:{{{owners|}}}{{{owner|}}}{{{parent|}}} || {{#invoke:WikidataIB |getValue |rank=best |P749 |name=parent |qid={{{qid|}}} |fetchwikidata={{if empty|{{{fetchwikidata|}}}|ALL}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{if empty|{{{noicon|}}}|no}} |sep="<br />" |sorted=yes }} | {{{parent|}}} }} | ||
| label36 = Divisions | | label36 = Divisions | ||
| Line 142: | Line 142: | ||
| label37 = Subsidiaries | | label37 = Subsidiaries | ||
| data37 = {{{ | | data37 = {{{subsidiaries|}}} | ||
| data39 = {{{module|}}} | | data39 = {{{module|}}} | ||
| Line 153: | Line 153: | ||
| label42 = Website | | label42 = Website | ||
| data42 = {{#if:{{{website | | data42 = {{#if:{{{website|}}}| {{{website|}}} |{{#invoke:WikidataIB |url2 |url={{#invoke:WikidataIB |getValue |rank=best |P856 |name=website |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{if empty|{{{fetchwikidata|}}}|ALL}} |onlysourced=yes |maxvals=1}} }} }} | ||
| below = {{#if:{{{footnotes|}}} | '''Footnotes | | below = {{#if:{{{footnotes|}}} | '''Footnotes'''{{break}}{{{footnotes}}} }} | ||
}}<!-- Tracking categories: | }}<!-- Tracking categories: | ||
-->{{main other|{{# | -->{{main other|{{#ifeq:{{if empty|{{{logo|}}}|{{wikidata|property|raw|P154}}}}|{{{logo|}}}||[[Category:Pages using infobox company with a logo from wikidata]] | ||
}}{{#if:{{{image|}}}|{{#ifeq:{{#invoke:string|replace|{{{image|}}}| |_}}|{{#invoke:string|replace|{{if empty|{{{logo|}}}|{{wikidata|property|raw|P154}}}}| |_}}|[[Category:Pages using infobox company with a duplicate image]]|}}|}} | |||
}}{{#if:{{{image|}}}|{{#ifeq:{{#invoke:string|replace|{{{image|}}}| |_}}|{{#invoke:string|replace|{{ | |||
}}<!-- | }}<!-- | ||
--> | -->{{#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| area_served | areas_served | assets | assets_year | aum | brands | defunct | divisions | embed | equity | equity_year | fate | fetchwikidata | footnotes | former_name | former_names | founded | founder | founders | genre | hq_location | hq_location_city | hq_location_country | image | image_alt | image_caption | image_size | image_upright | income_year | incorporated | industry | ISIN | key_people | logo | logo_alt | logo_caption | logo_class | logo_size | logo_upright | module | name | native_name | native_name_lang | net_income | net_income_year | noicon | num_employees | num_employees_year | num_locations | num_locations_year | num_members | num_members_year | operating_income | owner | owners | parent | predecessor | predecessors | production | production_year | products | qid | rating | ratio | revenue | revenue_year | romanized_name | services | subsidiaries | successor | successors | suppressfields | trade_name | traded_as | type | website }}{{#invoke:Check for conflicting parameters|check | ||
| template = [[Template:Infobox company]] | |||
| cat = {{main other|Category:Pages using infobox company with conflicting parameters}} | |||
| former_names; former_name | |||
| predecessors; predecessor | |||
| founders; founder | |||
| successors; successor | |||
| areas_served; area_served | |||
| owners; owner | |||
}} | |||