Difference between revisions of "Template:Contact"

From Culture.si
 
(55 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 +
<noinclude>
 +
*[[Template:Infobox]]
 +
*[[Template:InfoboxRow]]
 +
*[[Template:Contact]]
 +
</noinclude>
 
<includeonly>
 
<includeonly>
<div class="contact">
+
{{#if:{{{save|}}}|{{#var:set|contactSuffix|}}
{{infoboxRowRaw|CONTACT|{{{Name|}}}|
+
{{infoboxRow
}}{{infoboxRowRaw|Role|{{{Role|}}}|
+
| label =  
}}{{infoboxRowRaw|Email|{{{Email|}}}|
+
| name  = Contact{{#var:get|contactSuffix|}}
}}{{infoboxRowRaw|Street|{{{Street|}}}|
+
| value = {{{name|}}}
}}{{infoboxRowRaw|Town|{{{Town|}}}|
+
| display = '''{{{name|}}}'''{{#if:{{{role|}}}|, {{{role}}}}}
}}{{infoboxRowRaw|Telephone|{{{Telephone|}}}|
+
| type  = text }}
}}{{infoboxRowRaw|Fax|{{{Fax|}}}|
+
{{infoboxRow
}}
+
| hidden = true
</div>
+
| name  = Role{{#var:get|contactSuffix|}}
 +
| value = {{{role|}}}
 +
| type  = text }}
 +
{{infoboxRow
 +
| label  =
 +
| name    = Street{{#var:get|contactSuffix|}}
 +
| value  = {{{street|}}}
 +
| type    = text
 +
| display = {{{street|}}}, {{{town}}} }}
 +
{{infoboxRow
 +
| label  =
 +
| name    = Town{{#var:get|contactSuffix|}}
 +
| value  = {{{town|}}}
 +
| display =
 +
| type    = text }}
 +
{{infoboxRow
 +
| label =
 +
| name  = Website{{#var:get|contactSuffix|}}
 +
| value = {{{website|}}}
 +
| type  = text }}
 +
{{infoboxRow
 +
| label =
 +
| name  = Email{{#var:get|contactSuffix|}}
 +
| value = {{{email|}}}
 +
| display = [mailto:{{{email|}}} {{{email|}}}]
 +
| type  = text }}
 +
{{infoboxRow
 +
| label =
 +
| name  = Email{{#var:get|contactSuffix|}}
 +
| value = {{{email 2|}}}
 +
| display = [mailto:{{{email 2|}}} {{{email 2|}}}]
 +
| type  = text }}
 +
{{infoboxRow
 +
| label = Phone
 +
| name  = Telephone{{#var:get|contactSuffix|}}
 +
| value = {{#if:{{{telephone|}}}|+{{#str:replace|{{#str:replace|{{{telephone|}}}|\(0\)|/}}|[()]|.}}|}}
 +
| display = {{{telephone|}}}
 +
| type  = text }}}}
 
</includeonly>
 
</includeonly>

Latest revision as of 18:38, 2 October 2024