Difference between revisions of "Template:CompanyContact"

From Who Called Me
(Created page with "<noinclude> This is the "Company Contact" template. It should be called in the following format: <pre> {{CompanyContact |contact_name= |company_name= |workphone= |fax= |email=...")
 
Line 3: Line 3:
 
<pre>
 
<pre>
 
{{CompanyContact
 
{{CompanyContact
|contact_name=
+
| name=
|company_name=
+
| organization=
|workphone=
+
| db_ref=
|fax=
+
| workphone=
|email=
+
| fax=
|homepage=
+
| email=
|address_line1=
+
| homepage=
|address_line2=
+
| workstreet=
|town=
+
| workextendedaddress
|county=
+
| worklocality=
|country=
+
| workregion=
|postcode=
+
| workcountry=
|lat=
+
| workpostalcode=
|long=
+
| lat=
|sic=
+
| long=
|category=
+
| sic=
|url=
+
| category=
 +
| url=
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly>
+
</noinclude>
  
={{{company_name}}}=
+
<includeonly>
 +
{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
 +
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
 +
|-
 +
|Company name
 +
|{{{organization}}}
 +
|-
 +
|Contact phone
 +
|{{{workphone}}}
 +
|-
 +
|Fax
 +
|{{{fax}}}
 +
|-
 +
|E-mail
 +
|{{{email}}}
 +
|-
 +
|Web site
 +
|{{{homepage}}}
 +
|-
 +
|Address
 +
|[[:Category:{{{workstreet}}}|{{{workstreet}}}]]
 +
|-
 +
|Extended address
 +
|{{{workextendedaddress}}}
 +
|-
 +
|Town
 +
|[[:Category:{{{worklocality}}}|{{{worklocality}}}]]
 +
|-
 +
|County
 +
|[[:Category:{{{workregion}}}|{{{workregion}}}]]
 +
|-
 +
|Postcode
 +
|[[:Category:{{{workpostalcode}}}|{{{workpostalcode}}}]]
 +
|-
 +
|Category
 +
|[[:Category:{{{category}}}|{{{category}}}]]
 +
|}
 +
 
 +
={{{organization}}}=
 +
Phone number {{{workphone}}} is used by UK company {{{organization}}}.
 +
 
 +
==Contacts==
 +
{{#if: {{{workphone}}}
 +
  | {{{organization}}} can be contacted by calling to [[Companies:phone::{{{workphone}}}]].
 +
  |
 +
}}
 +
{{#if: {{{email}}}
 +
  | {{{organization}}} can be contacted by sending an e-mail to [[Companies:email::{{{email}}}]].
 +
  |
 +
}}
 +
{{#if: {{{homepage}}}
 +
  | {{{organization}}}'s homepage is at [[Companies:homepage::{{{homepage}}}]].
 +
  |
 +
}}
 +
{{#if: {{{fax}}}
 +
  | {{{organization}}} can be contacted by sending a fax to [[Companies:fax::{{{fax}}}]].
 +
  |
 +
}}
  
==Summary==
+
Get contacts as VCard:
Get contacts:
 
 
{{#ask:
 
{{#ask:
 
  [[Category:CompanyContact]]
 
  [[Category:CompanyContact]]
Line 34: Line 91:
 
  |?mail=email
 
  |?mail=email
 
  |?url=homepage
 
  |?url=homepage
 +
|?workphone
 +
|?fax
 +
|?homepage
 +
|?workstreet
 +
|?workextendedaddress
 +
|?worklocality
 +
|?workregion
 +
|?workcountry
 +
|?workpostalcode
 
  |format=vcard
 
  |format=vcard
 
  |searchlabel=vCard
 
  |searchlabel=vCard
Line 39: Line 105:
  
 
==Location==
 
==Location==
Company is located at [[Companies:address_line1::{{{address_line1}}}]], [[Companies:town::{{{town}}}]], [[Companies:county::{{{county}}}]] ([[Has coordinates::{{{lat}}}&#176;, {{{long}}}&#176;]]).
+
Company 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:{{{laiuskraad}}}, {{{pikkuskraad}}} }}
+
{{#display_map:{{{lat}}}, {{{long}}} }}
  
 
==Nearby companies==
 
==Nearby companies==
There are {{#ask: [[Category:Companies:Company]] [[Companies:town::{{{town}}}]] | format=count}} companies nearby:
+
There are {{#ask: [[Category:Companies:CompanyContact]] [[Companies:town::{{{worklocality}}}]] | format=count}} companies nearby:
 +
 
 +
{{#ask:
 +
[[Category:Companies:CompanyContact]] [[Companies:town::{{{worklocality}}}]]
 +
|?Companies:category
 +
|?Companies:town
 +
|?Companies:email
 +
|?Companies:homepage
 +
|?Companies:phone
 +
}}
 +
 
 +
 
 +
==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:
  
 
{{#ask:
 
{{#ask:
  [[Category:Companies:Company]] [[Companies:town::{{{town}}}]]
+
  [[Category:Companies:CompanyContact]] [[Companies:category::{{{category}}}]]
  |?Companies:sic
+
  |?Companies:category
 
  |?Companies:town
 
  |?Companies:town
 +
|?Companies:email
 +
|?Companies:homepage
 +
|?Companies:phone
 
}}
 
}}
  
 
==Further info==
 
==Further info==
Further details about [{{{url}}} {{{company_name}}}], including its [{{{url}}} credit rating] can be found at [https://scoriff.co.uk Scoriff].
+
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:{{{organization}}}|WIKI}} {{{organization}}}]).
 +
 
 +
[{{{url}}} {{{organization}}}] operates in the field of [[Companies:sic::{{{sic}}}]].
 +
 
 +
{{#if: {{{sic}}}
 +
  | [[Category:{{{sic}}}]]
 +
  |
 +
}}
 +
 
 +
{{#if: {{{category}}}
 +
  | [[Category:{{{category}}}]]
 +
  |
 +
}}
  
{|
+
{{#if: {{{workpostalcode}}}
! style="text-align:left;"|
+
  | [[Category:{{{workpostalcode}}}]]
!
+
  |
|-
+
}}
|Company number
 
|{{{company_number}}}
 
|-
 
|Company name
 
|[[Companies:company_name::{{{company_name}}}]]
 
|-
 
|Address line 1
 
|{{{address_line1}}}
 
|-
 
|Address line 2
 
|{{{address_line2}}}
 
|-
 
|Town
 
|[[:Category:{{{town}}}|{{{town}}}]]
 
|-
 
|County
 
|[[:Category:{{{county}}}|{{{county}}}]]
 
|-
 
|Country
 
|{{{country}}}
 
|-
 
|Postcode
 
|[[:Category:{{{postcode}}}|{{{postcode}}}]]
 
|-
 
|Category
 
|[[:Category:{{{category}}}|{{{category}}}]]
 
|-
 
|SIC
 
|[[:Category:{{{sic}}}|{{{sic}}}]]
 
|}
 
  
== Other facts ==
+
{{#if: {{{worklocality}}}
[{{{url}}} {{{company_name}}}] operates in the field of [[Companies:sic::{{{sic}}}]].
+
  | [[Category:{{{worklocality}}}]]
 +
  |
 +
}}
  
[[Category:{{{town}}}]]
+
{{#if: {{{workregion}}}
[[Category:{{{county}}}]]
+
  | [[Category:{{{workregion}}}]]
[[Category:{{{postcode}}}]]
+
  |
[[Category:{{{category}}}]]
+
}}
[[Category:{{{sic}}}]]
 
[[Category:{{{address}}}]]
 
  
 
[[Category:Companies:CompanyContact]]
 
[[Category:Companies:CompanyContact]]
 +
 
__SHOWFACTBOX__
 
__SHOWFACTBOX__
 
</includeonly>
 
</includeonly>

Revision as of 17:52, 7 July 2020

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.