Template:Contact

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
(callable phone links)
 
(18 intermediate revisions not shown)
Line 1: Line 1:
-
<includeonly>'''{{{name}}}''' <!--
+
<includeonly>{{if
-
-->{{if | test={{{1|}}}| then={{poi inline|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|name={{{name|}}}|type={{{type|}}} }} }}
+
| test={{{1|}}}{{{lat|}}}
-
{{if | test= {{{address|}}}| then=:Address: {{{address}}}}}
+
| then={{mark|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|
-
{{if | test= {{{phone|}}}| then=:Phone: {{{phone}}}}}
+
  | lat={{{lat|}}}| lon={{{lon|}}}
-
{{if | test= {{{fax|}}}| then=:Fax: {{{fax}}}}}
+
  | name={{{name|}}}| type={{{type|}}}
-
{{if | test= {{{email|}}}| then=:Email: {{email|{{{email}}}}}}}
+
  }}
-
{{if | test= {{{web|}}}| then=:Web: {{web|{{{web}}}}}}}
+
| else='''{{{name}}} '''
-
{{if | test= {{{hours|}}}| then=:Working hours: {{hours|{{{hours}}}}}}}
+
}}{{? | test= {{{VHF|}}}|
-
</includeonly><noinclude>
+
:VHF: {{{VHF}}}}}{{? | test= {{{phone|}}}|
-
test --[[User:Vadp|Vadp]] 19:19, 19 March 2015 (GMT)
+
:Phone: {{Tel link|{{{phone}}}}}}}{{? | test= {{{fax|}}}|
 +
:Fax: {{Tel link|{{{fax}}}}}}}{{? | test= {{{mobil|}}}|
 +
:Mobile: {{Tel link|{{{mobil}}}}}}}{{? | test= {{{email|}}}|
 +
:Email: {{email|{{{email}}}}}}}{{? | test= {{{web|}}}|
 +
:Web: {{web|{{{web}}}}}}}{{? | test= {{{address|}}}|
 +
:Address: {{{address}}}}}{{? | test= {{{hours|}}}|
 +
:Working hours: {{{hours}}}}}{{? | test= {{{text|}}}|
 +
:{{{text}}}}}</includeonly><noinclude>
{{doc}}
{{doc}}
 +
[[Category:Templates|Contact]]
</noinclude>
</noinclude>

Latest revision as of 10:54, 11 November 2018


This template creates a standard contact form.

To include it into an article copy & paste:

{{contact |DD|M.M|N|DDD|M.M|E|
| type= officials
| name= Harbour office
| address= 
| VHF=
| phone= 
| fax= 
| email= 
| web= 
| hours= 
}}

Example:

{{contact |41|55.068|N|008|44.554|E|
| type= officials
| name= Harbour office
| address= Ajaccio, Pays Ajaccien, PORT AJACCIO TINO ROSSI, Quai de la Citadelle, 20000
| VHF= Ch 09 
| phone= +33 4 95 51 93 28
| fax= +33 4 95 51 93 28
| mobil=+33 695 2017
| email= [email protected]
| web= http://www.2a.cci.fr/port-de-plaisance-et-de-peche-tino-rossi/
| hours= Summer: 8h00 - 21h00, Winter: 8h00 - 12h00 and 14h00 - 18h00 
}}

Gives:

Harbour office/wiki/Template:Contact#Harbour_officeWorld icon.png Harbour office [[Template:Contact#Harbour office|Harbour office]] 41°55.068′N, 008°44.554′E

VHF: Ch 09
Phone: +33 4 95 51 93 28
Fax: +33 4 95 51 93 28
Mobile: +33 695 2017
Email: [email protected]
Web: http://www.2a.cci.fr/port-de-plaisance-et-de-peche-tino-rossi/
Address: Ajaccio, Pays Ajaccien, PORT AJACCIO TINO ROSSI, Quai de la Citadelle, 20000
Working hours: Summer: 8h00 - 21h00, Winter: 8h00 - 12h00 and 14h00 - 18h00
Personal tools
advertisement
Friends of Cruisers Wiki