Difference between revisions of "Template:Contact"

From Culture.si
 
(9 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
{{#if:{{{save|}}}
+
{{#if:{{{save|}}}|{{#var:set|contactSuffix|}}
|{{#var:set|contactSuffix|}}
+
{{infoboxRow
|{{#var:inc|contactCount}}{{#var:set|contactSuffix|_{{#var:get|contactCount|}}}}}}
+
| label =
{{#subobject:|
+
| name  = Contact{{#var:get|contactSuffix|}}
|Full_Name={{{name|}}}
+
| value = {{{name|}}}
|Role={{{role|}}}
+
| display = '''{{{name|}}}'''{{#if:{{{role|}}}|, {{{role}}}}}
|Website={{{website|}}}
+
| type  = text }}
|Email={{{email|}}}
+
{{infoboxRow
|Telephone={{{telephone|}}}}}
+
| hidden = true
 +
| name  = Role{{#var:get|contactSuffix|}}
 +
| value = {{{role|}}}
 +
| type  = text }}
 
{{infoboxRow
 
{{infoboxRow
 
| label  =
 
| label  =
Line 19: Line 22:
 
| value  = {{{street|}}}
 
| value  = {{{street|}}}
 
| type    = text
 
| type    = text
| display = {{{street|}}}, [[{{{town}}}]] }}
+
| display = {{{street|}}}, {{{town}}} }}
 
{{infoboxRow
 
{{infoboxRow
 
| label  =
 
| label  =
Line 26: Line 29:
 
| display =
 
| display =
 
| type    = text }}
 
| type    = text }}
{{infoboxRow
 
| label =
 
| name  = Contact{{#var:get|contactSuffix|}}
 
| value = {{{name|}}}
 
| display = '''{{{name|}}}'''{{#if:{{{role|}}}|, {{{role}}}}}
 
| type  = text }}
 
{{infoboxRow
 
| hidden = true
 
| name  = Role{{#var:get|contactSuffix|}}
 
| value = {{{role|}}}
 
| type  = text }}
 
 
{{infoboxRow
 
{{infoboxRow
 
| label =  
 
| label =  
Line 59: Line 51:
 
| value = {{#if:{{{telephone|}}}|+{{#str:replace|{{#str:replace|{{{telephone|}}}|\(0\)|/}}|[()]|.}}|}}
 
| value = {{#if:{{{telephone|}}}|+{{#str:replace|{{#str:replace|{{{telephone|}}}|\(0\)|/}}|[()]|.}}|}}
 
| display = {{{telephone|}}}
 
| display = {{{telephone|}}}
| type  = text }}
+
| type  = text }}}}
{{infoboxRow
 
| label = Fax
 
| name  = Fax{{#var:get|contactSuffix|}}
 
| value = {{#if:{{{fax|}}}|+{{#str:replace|{{#str:replace|{{{fax|}}}|\(0\)|/}}|[()]|.}}|}}
 
| display = {{{fax|}}}
 
| type  = text }}
 
 
</includeonly>
 
</includeonly>

Latest revision as of 18:38, 2 October 2024