Difference between revisions of "Template:Contact"

From Culture.si
 
(52 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|}}
{{infoboxRow|Contact|{{{Name|}}}|
+
{{infoboxRow
}}{{contactRow|Role|{{{Role|}}}|
+
| label =
}}{{contactRow|Email|{{{Email|}}}|
+
| name  = Contact{{#var:get|contactSuffix|}}
}}{{contactRow|Street|{{{Street|}}}|
+
| value = {{{name|}}}
}}{{contactRow|Town|{{{Town|}}}|
+
| display = '''{{{name|}}}'''{{#if:{{{role|}}}|, {{{role}}}}}
}}{{contactRow|Telephone|{{{Telephone|}}}|
+
| type  = text }}
}}{{contactRow|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