Difference between revisions of "Template:Infobox company"

From Wikidot - Australian Business Wiki
Jump to navigation Jump to search
(Created page with "{{Infobox | bodyclass = vcard | child = {{lc:{{{embed}}}}} | decat = yes | titleclass = fn org | title = {{#ifeq:{{lc:{{{embed}}}}} | yes | '''Company''' | {{#if:{{{name|}}}...")
 
Line 10: Line 10:
 
| imageclass = logo
 
| imageclass = logo
 
| imagestyle =
 
| imagestyle =
| image = {{#invoke:InfoboxImage |InfoboxImage |image={{#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 |alt={{{logo_alt|{{{alt|}}}}}} }}
+
| image = {{{image|}}}
 
| caption = {{{logo_caption|}}}
 
| caption = {{{logo_caption|}}}
| image2 = {{#invoke:InfoboxImage |InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |sizedefault=frameless |alt={{{image_alt|}}} }}
+
| image2 = {{{image2|}}}
 
| caption2 = {{{image_caption|}}}
 
| caption2 = {{{image_caption|}}}
  
Line 39: Line 39:
  
 
| label7  = [[International Securities Identification Number|ISIN]]
 
| label7  = [[International Securities Identification Number|ISIN]]
|  data7  = {{Br separated entries
+
|  data7  = {{{ISIN|}}}
  | 1 = {{#if:{{#invoke:WikidataIB |getValue |rank=best |P946 |name=ISIN |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 |{{{ISIN|}}} }} | <span class="plainlinks nourlexpansion">[{{fullurl:toollabs:isin/|language=en&isin={{urlencode:{{#invoke:WikidataIB |getValue |rank=best |P946 |name=ISIN |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 |{{{ISIN|}}} }} }} }} {{#invoke:WikidataIB |getValue |rank=best |P946 |name=ISIN |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 |{{{ISIN|}}} }}]</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|}}}
  
 
| label9  = Genre
 
| label9  = Genre
Line 56: Line 53:
  
 
| label11 = Predecessor{{#if:{{{predecessors|}}}|s}}
 
| label11 = Predecessor{{#if:{{{predecessors|}}}|s}}
|  data11 = {{#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|}}}}}} }}
+
|  data11 = {{{predecessor|}}}
  
 
| label12 = Successor{{#if:{{{successors|}}}|s}}
 
| label12 = Successor{{#if:{{{successors|}}}|s}}
|  data12 = {{#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|}}}}}} }}
+
|  data12 = {{{successor|}}}
  
 
| label13 = Founded
 
| label13 = Founded
|  data13 = {{#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|}}}}}} }}
+
|  data13 = {{{founded|}}}
  
 
| label14 = Founder{{#if:{{{founders|}}}|s}}
 
| label14 = Founder{{#if:{{{founders|}}}|s}}
 
| class14 = agent
 
| class14 = agent
|  data14 = {{#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|}}}}}} }}
+
|  data14 = {{{founders|{{{founder|}}}}}}
  
 
| label15 = Defunct
 
| label15 = Defunct
|  data15 = {{#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|}}}}}} }}
+
|  data15 = {{{defunct|{{{dissolved|}}}}}}
  
 
| label16 = Headquarters
 
| label16 = Headquarters
 
| class16 = {{#if:{{{hq_location|{{{location|}}}}}} | label | adr}}
 
| class16 = {{#if:{{{hq_location|{{{location|}}}}}} | label | adr}}
|  data16 = {{#if:{{{hq_location|{{{location|}}}}}}{{{hq_location_city|{{{location_city|}}}}}}{{{hq_location_country|{{{location_country|}}}}}}
+
|  data16 = {{{hq_location|}}}
            | {{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}}
 
| label18 = {{longitem|Number of locations}}
Line 111: Line 96:
  
 
| label25 = Revenue
 
| 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}}}) }} }}
+
|  data25 = {{{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 = {{#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}}}) }} }}
+
|  data26 = {{{operating_income|}}}{{#if:{{{income_year|}}} | &nbsp;({{{income_year}}}) }}
  
 
| label27 = {{longitem|[[Net income]]}}
 
| 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|}}}}}}) }} }}
+
|  data27 = {{{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 108:
  
 
| label29 = {{nowrap|[[Asset|Total assets]]}}
 
| 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}}}) }} }}
+
|  data29 = {{{assets|}}}{{#if:{{{assets_year|}}} | &nbsp;({{{assets_year}}}) }}
  
 
| label30 = {{nowrap|[[Equity (finance)|Total equity]]}}
 
| label30 = {{nowrap|[[Equity (finance)|Total equity]]}}
Line 135: Line 120:
  
 
| label33 = {{longitem|Number of employees}}
 
| 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}}}) }} }}
+
|  data33 = {{{num_employees|}}}{{#if:{{{num_employees_year|}}} | &nbsp;({{{num_employees_year}}}) }}
  
 
| label34 = [[Parent company|Parent]]
 
| 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|}}} }}
+
|  data34 = {{#ifeq:{{{owners|}}}{{{owner|}}}{{{parent|}}} }}
  
 
| label35 = [[Division (business)|Divisions]]
 
| label35 = [[Division (business)|Divisions]]
Line 155: Line 140:
  
 
| label41 = Website
 
| 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}} }} }}
+
|  data41 = {{#if:{{{website|{{{homepage|}}}}}} |{{{website|{{{homepage|}}}}}} }}
  
 
| belowstyle = line-height: 1.35em;
 
| belowstyle = line-height: 1.35em;
 
| below = {{#if:{{{footnotes|}}} | '''Footnotes{{\}}references'''{{break}}{{{footnotes}}} }}
 
| below = {{#if:{{{footnotes|}}} | '''Footnotes{{\}}references'''{{break}}{{{footnotes}}} }}
  
}}<!-- Tracking categories:
+
}}<noinclude>
 
 
-->{{#if:{{{trading_name|}}}|{{main other|[[Category:Pages using infobox company using trading name]]}}
 
}}{{#ifeq:{{{logo|{{{company_logo|{{wikidata|property|raw|P154}}}}}}}}|{{{logo|{{{company_logo|}}}}}}||{{main other|[[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}}
 
|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| qid | fetchwikidata | suppressfields | noicon }}<noinclude>
 
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 02:17, 15 December 2020

Lua error: Internal error: The interpreter exited with status 127.