Difference between revisions of "Template:CompanyContact"

From Who Called Me
 
(38 intermediate revisions by the same user not shown)
Line 31: Line 31:
 
|-
 
|-
 
|Company name
 
|Company name
|{{{organization}}}
+
|[{{{url}}} {{{organization}}}]
|-
+
|- {{#if: {{{lat|}}} | | style="display: none;" }}
 +
|Navigation and Streetview
 +
|[https://www.google.com/maps/place/{{{lat}}}°+{{{long}}}° Google Maps]
 +
|- {{#if: {{{workphone|}}} | | style="display: none;" }}
 
|Contact phone
 
|Contact phone
 
|{{{workphone}}}
 
|{{{workphone}}}
|-
+
|- {{#if: {{{fax|}}} | | style="display: none;" }}
 
|Fax
 
|Fax
 
|{{{fax}}}
 
|{{{fax}}}
|-
+
|- {{#if: {{{email|}}} | | style="display: none;" }}
 
|E-mail
 
|E-mail
|{{{email}}}
+
| {{#arraymap:{{{email|}}}|;|x|[[Companies:email::x]]}}
|-
+
|- {{#if: {{{homepage|}}} | | style="display: none;" }}
 
|Web site
 
|Web site
 
|{{{homepage}}}
 
|{{{homepage}}}
|-
+
|- {{#if: {{{workstreet|}}} | | style="display: none;" }}
 
|Address
 
|Address
|[[:Category:{{{workstreet}}}|{{{workstreet}}}]]
+
|[[{{{workstreet}}}|{{{workstreet}}}]]
|-
+
|- {{#if: {{{workextendedaddress|}}} | | style="display: none;" }}
 
|Extended address
 
|Extended address
 
|{{{workextendedaddress}}}
 
|{{{workextendedaddress}}}
|-
+
|- {{#if: {{{worklocality|}}} | | style="display: none;" }}
 
|Town
 
|Town
|[[:Category:{{{worklocality}}}|{{{worklocality}}}]]
+
|[[{{{worklocality}}}|{{{worklocality}}}]]
|-
+
|- {{#if: {{{workregion|}}} | | style="display: none;" }}
 
|County
 
|County
|[[:Category:{{{workregion}}}|{{{workregion}}}]]
+
|[[{{{workregion}}}|{{{workregion}}}]]
|-
+
|- {{#if: {{{workpostalcode|}}} | | style="display: none;" }}
 
|Postcode
 
|Postcode
|[[:Category:{{{workpostalcode}}}|{{{workpostalcode}}}]]
+
|[[{{{workpostalcode}}}|{{{workpostalcode}}}]]
|-
+
|- {{#if: {{{category|}}} | | style="display: none;" }}
 
|Category
 
|Category
|[[:Category:{{{category}}}|{{{category}}}]]
+
|[[{{{category}}}|{{{category}}}]]
 
|}
 
|}
  
 
={{{organization}}}=
 
={{{organization}}}=
Phone number {{{workphone}}} is used by UK company {{{organization}}}.
+
Phone number [[Companies:phone::{{{workphone}}}]] is used by UK company {{{organization}}}.
<comments />
 
 
 
 
==Contacts==
 
==Contacts==
 
{{#if: {{{workphone}}}
 
{{#if: {{{workphone}}}
   | {{{organization}}} can be contacted by calling to [[Companies:phone::{{{workphone}}}]].
+
   | {{{organization}}} can be contacted by calling to [tel:{{{workphone}}} {{{workphone}}}].
 
   |
 
   |
 
}}
 
}}
 
{{#if: {{{email}}}
 
{{#if: {{{email}}}
   | {{{organization}}} can be contacted by sending an e-mail to [[Companies:email::{{{email}}}]].
+
   | {{{organization}}} can be contacted by sending an e-mail to {{#arraymap:{{{email|}}}|;|x|[[Companies:email::x]]}}.
 
   |
 
   |
 
}}
 
}}
Line 106: Line 107:
  
 
==Location==
 
==Location==
Company is located at [[Companies:address_line1::{{{workstreet}}}]], [[Companies:town::{{{worklocality}}}]], [[Companies:county::{{{workregion}}}]] (postcode [[Companies:postcode::{{{workpostalcode}}}]] ([[Has coordinates::{{{lat}}}&#176;, {{{long}}}&#176;]])).
+
[[Companies:company_name::{{{name}}}]] is located at [[Companies:address_line1::{{{workstreet}}}]], [[Companies:town::{{{worklocality}}}]], [[Companies:county::{{{workregion}}}]] (postcode [[Companies:postcode::{{{workpostalcode}}}]] ([[Has coordinates::{{{lat}}}&#176;, {{{long}}}&#176;]])).
  
 
{{#display_map:{{{lat}}}, {{{long}}} }}
 
{{#display_map:{{{lat}}}, {{{long}}} }}
Line 115: Line 116:
 
{{#ask:
 
{{#ask:
 
  [[Category:Companies:CompanyContact]] [[Companies:town::{{{worklocality}}}]]
 
  [[Category:Companies:CompanyContact]] [[Companies:town::{{{worklocality}}}]]
  |?Companies:category
+
|?Companies:company_name=Company
  |?Companies:town
+
  |?Companies:category=Business category
  |?Companies:email
+
  |?Companies:town=Location
  |?Companies:homepage
+
  |?Companies:email=E-mail
  |?Companies:phone
+
  |?Companies:homepage=Company homepage
 +
  |mainlabel=Phone number
 
}}
 
}}
 
  
 
==Similar companies==
 
==Similar companies==
The company operates mainly in the business of [[Companies:category::{{{category}}}]]. There are {{#ask: [[Category:Companies:CompanyContact]] [[Companies:category::{{{category}}}]] | format=count}} other companies with the same activity:
+
[{{{url}}} {{{organization}}}] operates mainly in the business of [[Companies:category::{{{category}}}]]. There are {{#ask: [[Category:Companies:CompanyContact]] [[Companies:category::{{{category}}}]] | format=count}} other companies with the same activity:
 
 
 
{{#ask:
 
{{#ask:
 
  [[Category:Companies:CompanyContact]] [[Companies:category::{{{category}}}]]
 
  [[Category:Companies:CompanyContact]] [[Companies:category::{{{category}}}]]
  |?Companies:category
+
|?Companies:company_name=Company
  |?Companies:town
+
  |?Companies:category=Business category
  |?Companies:email
+
  |?Companies:town=Location
  |?Companies:homepage
+
  |?Companies:email=E-mail
  |?Companies:phone
+
  |?Companies:homepage=Company homepage
 +
  |mainlabel=Phone number
 
}}
 
}}
  
 
==Further info==
 
==Further info==
Further details about [{{{url}}} {{{organization}}}], including its [{{{url}}} credit rating] can be found at [https://scoriff.co.uk Scoriff] and UK Company Database ([https://companydatabase.org.uk/wiki/{{urlencode:{{{db_ref}}}|WIKI}} {{{organization}}}]).
+
Further details about [{{{url}}} {{{organization}}}], including its credit rating, can be found at [https://scoriff.co.uk Scoriff].
 
 
[{{{url}}} {{{organization}}}] operates in the field of [[Companies:sic::{{{sic}}}]].
 
 
 
{{#if: {{{sic}}}
 
  | [[Category:{{{sic}}}]]
 
  |
 
}}
 
 
 
{{#if: {{{category}}}
 
  | [[Category:{{{category}}}]]
 
  |
 
}}
 
 
 
{{#if: {{{workpostalcode}}}
 
  | [[Category:{{{workpostalcode}}}]]
 
  |
 
}}
 
 
 
{{#if: {{{worklocality}}}
 
  | [[Category:{{{worklocality}}}]]
 
  |
 
}}
 
 
 
{{#if: {{{workregion}}}
 
  | [[Category:{{{workregion}}}]]
 
  |
 
}}
 
  
 
[[Category:Companies:CompanyContact]]
 
[[Category:Companies:CompanyContact]]

Latest revision as of 12:11, 14 December 2021

This is the "Company Contact" template. It should be called in the following format:

{{CompanyContact
| name=
| organization=
| db_ref=
| workphone=
| fax=
| email=
| homepage=
| workstreet=
| workextendedaddress
| worklocality=
| workregion=
| workcountry=
| workpostalcode=
| lat=
| long=
| sic=
| category=
| url=
}}

Edit the page to see the template text.