Template:Infobox company: Difference between revisions
From Roses, Tulips, & Liberty
Content added Content deleted
(Remove products wikidata bind as their definition is vastly different from ours. Furthermore, it does not account for necessary styling, such as italics on video games for video game companies. I'm open to discussing this but keeping it in would require a deep-clean of Wikidata.) |
m (Tried to fix WikiData issue.) |
||
(37 intermediate revisions by 14 users not shown) | |||
Line 6:
| titleclass = fn org
| title = {{#ifeq:{{lc:{{{embed}}}}} | yes | '''Company''' | {{#if:{{{name|}}} | {{{name}}} | {{#if:{{{company_name|}}}|{{{company_name}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}}
| imageclass = logo
| imagestyle =
| image = {{#invoke:InfoboxImage |InfoboxImage |image={{#ifeq:{{lc:{{{embed}}}}} | yes | {{{logo|{{{company_logo|}}}}}} |{{
| caption = {{{logo_caption|}}}
| image2 = {{#invoke:InfoboxImage |InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |sizedefault=frameless |upright={{{image_upright|1}}} |alt={{{image_alt|}}} }}
| caption2 = {{{image_caption|}}}
Line 27:
| data3 = {{{romanized_name|}}}
| label4 =
| class4 = nickname
| data4 = {{{former_names|{{{former_name|}}}}}}
| label5 = Type
| class5 = category
| data5 = {{{type|{{{company_type|
| label6 = {{longitem|[[Ticker symbol|Traded
| data6 = {{{traded_as|}}}
| 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
Line 52 ⟶ 46:
| data9 = {{{genre|}}}
| label10 =
| 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 =
| 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 =
| 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 =
| 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 =
|
| label15 =
| 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
Line 79 ⟶ 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>}}
}}
| {{#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:{{
| 2 = {{#if:{{
}}
}}
Line 100 ⟶ 94:
| data21 = {{{products|}}}
| label22 =
|
| label23 =
▲| data23 = {{#if:{{{production|}}} | {{{production|}}}{{#if:{{{production_year|}}} | ({{{production_year}}}) }} }}
| label24 = Services
Line 111 ⟶ 105:
| label25 = Revenue
| data25 = {{#
| label26 = {{longitem|[[Earnings before interest and taxes|Operating income]]}}
| data26 = {{#
| label27 = {{longitem|[[Net income]]}}
| data27 = {{#
| label28 = [[Assets under management|AUM]]
Line 123 ⟶ 117:
| label29 = {{nowrap|[[Asset|Total assets]]}}
| data29 = {{#
| label30 = {{nowrap|[[Equity (finance)|Total equity]]}}
Line 129 ⟶ 123:
| label31 = Owner{{#if:{{{owners|}}}|s}}
| data31 = {{{owners|{{{owner
| label32 = Members
Line 135 ⟶ 129:
| label33 = {{longitem|Number of employees}}
| data33 = {{#
| label34 = [[Parent company|Parent]]
| data34 =
| label35 = [[Division (business)|Divisions]]
Line 147 ⟶ 141:
| data38 = {{{module|}}}
| belowstyle = line-height: 1.35em;
| below = {{#if:{{{footnotes|}}} | '''Footnotes{{\}}references'''
}}<!-- Tracking categories:
-->{{main other|{{#if:{{{trading_name|}}}|[[Category:Pages using infobox company using trading name]]
}}{{#
}}{{#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 |
{{documentation}}
</noinclude>
|