Template:Infobox company: Difference between revisions

From Roses, Tulips, & Liberty
Content added Content deleted
(Restoring tfd tag)
m (Tried to fix WikiData issue.)
 
(28 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{{Infobox
<noinclude>{{Tfm/dated|page=Infobox company|otherpage=Infobox KFC|link=Wikipedia:Templates for discussion/Log/2020 March 24#Template:Infobox KFC|type=sidebar|bigbox={{#invoke:Noinclude|noinclude|text=yes}}}}{{Tfm/dated|page=Infobox company|otherpage=Infobox McDonald's |link=Wikipedia:Templates for discussion/Log/2020 March 24#Template:Infobox McDonald's|type=sidebar|bigbox={{#invoke:Noinclude|noinclude|text=yes}}}}{{Tfm/dated|page=Infobox company|otherpage=Infobox Burger King|link=Wikipedia:Templates for discussion/Log/2020 March 24#Template:Infobox Burger King|type=sidebar|bigbox={{#invoke:Noinclude|noinclude|text=yes}}}}</noinclude>{{Tfm/dated|page=Infobox company|otherpage=Infobox U.S. national banks|link=Wikipedia:Templates for discussion/Log/2020 March 24#Template:Infobox U.S. national banks|type=sidebar|bigbox={{#invoke:Noinclude|noinclude|text=yes}}}}{{Infobox
| bodyclass = vcard
| bodyclass = vcard


Line 10: Line 10:
| imageclass = logo
| imageclass = logo
| imagestyle =
| imagestyle =
| image = {{#invoke:InfoboxImage |InfoboxImage |image={{{logo|{{{company_logo|{{wikidata|property|raw|P154}}}}}}}} |size={{{logo_size|}}} |sizedefault=frameless |alt={{{logo_alt|{{{alt|}}}}}}}}
| 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 = {{{logo_caption|}}}
| caption = {{{logo_caption|}}}
| image2 = {{#invoke:InfoboxImage |InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |sizedefault=frameless |alt={{{image_alt|}}}}}
| image2 = {{#invoke:InfoboxImage |InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |sizedefault=frameless |upright={{{image_upright|1}}} |alt={{{image_alt|}}} }}
| caption2 = {{{image_caption|}}}
| caption2 = {{{image_caption|}}}


Line 27: Line 27:
| data3 = {{{romanized_name|}}}
| data3 = {{{romanized_name|}}}


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


| label5 = Type
| label5 = {{longitem|[[List of legal entity types by country|{{#if:{{{defunct|}}}|Former t|T}}ype]]}}
| class5 = category
| class5 = category
| data5 = {{{type|{{{company_type|{{wikidata|property|edit|linked|P1454}}}}}}}}
| data5 = {{{type|{{{company_type|}}}}}}


| label6 = [[Ticker symbol|Traded&nbsp;as]]
| label6 = {{longitem|[[Ticker symbol|Traded as]]}}
| data6 = {{{traded_as|}}}
| data6 = {{{traded_as|}}}

| label7 = [[International Securities Identification Number|ISIN]]
| data7 = {{Br separated entries
| 1 = {{#if:{{{ISIN|{{wikidata|property|raw|P946}}}}} | <span class="plainlinks nourlexpansion">[{{fullurl:toollabs:isin/|language=en&isin={{urlencode:{{{ISIN|{{wikidata|property|raw|P946}}}}} }} }} {{{ISIN|{{wikidata|property|edit|P946}}}}}]</span> }}
| 2 = {{#if:{{{ISIN2|}}} | <span class="plainlinks nourlexpansion">[{{fullurl:toollabs:isin/|language=en&isin={{urlencode:{{{ISIN2}}}}}}} {{{ISIN2}}}]</span>}}
}}


| label8 = Industry
| label8 = Industry
| class8 = category
| 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|}}} }}
| data8 = {{{industry|{{wikidata|properties|edit|linked|P452}}}}}


| label9 = Genre
| label9 = Genre
Line 52: Line 46:
| data9 = {{{genre|}}}
| data9 = {{{genre|}}}


| label10 = Fate
| 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|}}}}}} }}
| data10 = {{{fate|}}}


| label11 = Predecessor{{#if:{{{predecessors|}}}|s}}
| 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|}}}}}} }}
| data11 = {{{predecessors|{{{predecessor|{{wikidata|properties|edit|P155}}}}}}}}


| label12 = Successor{{#if:{{{successors|}}}|s}}
| label12 = Founder{{#if:{{{founders|}}}|s}}
| class12 = agent
| data12 = {{{successors|{{{successor|{{wikidata|properties|edit|P156}}}}}}}}
| 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 = Founded
| 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|}}}}}} }}
| data13 = {{{foundation|{{{founded|{{wikidata|property|edit|P571}}}}}}}}


| label14 = Founder{{#if:{{{founders|}}}|s}}
| label14 = Fate
| class14 = agent
| data14 = {{{fate|}}}
| data14 = {{{founders|{{{founder|{{wikidata|properties|edit|linked|P112}}}}}}}}


| label15 = Defunct
| 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|}}}}}} }}
| data15 = {{{defunct|{{{dissolved|{{wikidata|property|edit|P576}}}}}}}}


| label16 = Headquarters
| label16 = Headquarters
Line 79: Line 73:
| 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>}}
| 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 }}
| {{#if:{{wikidata|property|raw|P159}}{{wikidata|property|raw|P17}}
| {{Comma separated entries
| {{Comma separated entries
| 1 = {{#if:{{wikidata|property|raw|P159}} |<div style="display: inline;" class="locality">{{wikidata|property|edit|linked|P159}}</div>}}
| 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:{{wikidata|property|raw|P17}} |<div style="display: inline;" class="country-name">{{wikidata|property|edit|linked|P17}}</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>}}
}}
}}
}}
}}
Line 100: Line 94:
| data21 = {{{products|}}}
| data21 = {{{products|}}}


| label22 = Brands
| label22 = {{longitem|Production output}}
| data22 = {{#if:{{{production|}}} | {{{production|}}}{{#if:{{{production_year|}}} | &nbsp;({{{production_year}}}) }} }}
| data22 = {{{brands|}}}


| label23 = {{longitem|Production output}}
| label23 = Brands
| data23 = {{{brands|}}}
| data23 = {{#if:{{{production|}}} | {{{production|}}}{{#if:{{{production_year|}}} | &nbsp;({{{production_year}}}) }} }}


| label24 = Services
| label24 = Services
Line 111: Line 105:


| label25 = Revenue
| label25 = Revenue
| data25 = {{#if:{{{revenue|}}} | {{{revenue}}}{{#if:{{{revenue_year|}}} | &nbsp;({{{revenue_year}}}) }} | {{wikidata|property|edit|short|linked|qualifier|reference|P2139|P585|format=%p[%r]&#32;(%q[%s])}} }}
| 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]]}}
| label26 = {{longitem|[[Earnings before interest and taxes|Operating income]]}}
| data26 = {{#if:{{{operating_income|}}} | {{{operating_income}}}{{#if:{{{income_year|}}} | &nbsp;({{{income_year}}}) }} | {{wikidata|property|edit|short|linked|qualifier|reference|P3362|P585|format=%p[%r]&#32;(%q[%s])}} }}
| 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]]}}
| label27 = {{longitem|[[Net income]]}}
| data27 = {{#if:{{{net_income|{{{profit|}}}}}} | {{{net_income|{{{profit|}}}}}}{{#if:{{{net_income_year|{{{profit_year|}}}}}} | &nbsp;({{{net_income_year|{{{profit_year|}}}}}}) }} | {{wikidata|property|edit|linked|qualifier|reference|P2295|P585|format=%p[%r]&#32;(%q[%s])}} }}
| 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]]
| label28 = [[Assets under management|AUM]]
Line 123: Line 117:


| label29 = {{nowrap|[[Asset|Total assets]]}}
| label29 = {{nowrap|[[Asset|Total assets]]}}
| data29 = {{#if:{{{assets|}}} | {{{assets}}}{{#if:{{{assets_year|}}} | &nbsp;({{{assets_year}}}) }} | {{wikidata|property|edit|short|linked|qualifier|reference|P2403|P585|format=%p[%r]&#32;(%q[%s])}} }}
| 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]]}}
| label30 = {{nowrap|[[Equity (finance)|Total equity]]}}
Line 135: Line 129:


| label33 = {{longitem|Number of employees}}
| label33 = {{longitem|Number of employees}}
| data33 = {{#if:{{{num_employees|}}} | {{{num_employees}}}{{#if:{{{num_employees_year|}}} | &nbsp;({{{num_employees_year}}}) }} | {{wikidata|property|edit|qualifier|reference|P1128|P585|format=%p[%r]&#32;(%q[%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}}}) }} }}


| label34 = [[Parent company|Parent]]
| label34 = [[Parent company|Parent]]
| data34 = {{{parent|{{#if:{{{owners|{{{owner|{{{parent|}}}}}}}}}||{{wikidata|properties|edit|linked|P749}}}}}}}
| 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]]
| label35 = [[Division (business)|Divisions]]
Line 147: Line 141:


| data38 = {{{module|}}}
| data38 = {{{module|}}}

| label39 = [[Basel III|Capital ratio]]
| data39 = {{{ratio|}}}

| label40 = Rating
| data40 = {{{rating|}}}

| label41 = Website
| data41 = {{#if:{{{homepage|{{{website|}}}}}}
| {{#ifeq:{{{homepage|{{{website|}}}}}} | hide | | {{{homepage|{{{website|}}}}}} }}
| {{#if:{{wikidata|property|raw|P856}}
| {{#invoke:WikidataIB |url2 |url={{Wdib|P856|fwd=ALL|osd=no|maxvals=1}} }}
}}
}}


| belowstyle = line-height: 1.35em;
| belowstyle = line-height: 1.35em;
| below = {{#if:{{{footnotes|}}} | '''Footnotes{{\}}references'''<br />{{{footnotes}}} }}
| below = {{#if:{{{footnotes|}}} | '''Footnotes{{\}}references'''{{break}}{{{footnotes}}} }}


}}<!-- Tracking categories:
}}<!-- Tracking categories:


-->{{#if:{{{trading_name|}}}|[[Category:Pages using infobox company using trading name]]
-->{{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]]
}}{{#ifeq:{{{logo|{{{company_logo|{{wikidata|property|raw|P154}}}}}}}}|{{{logo|{{{company_logo|}}}}}}||[[Category:Pages using infobox company with a logo from wikidata]]
}}{{#invoke:Check for clobbered parameters|check|nested=1|template=Infobox company|cat={{main other|Category:Pages using infobox company with ignored parameters}}
}}{{#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
|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 | income_year | industry | ISIN | ISIN2 | key_people | location | location_city | location_country | locations | logo | logo_alt | logo_caption | logo_size | 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 }}<noinclude>
}}{{#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}}
</noinclude>
</noinclude>

Latest revision as of 16:05, 7 October 2023