Difference between revisions of "Template:Contact"

From Culture.si
 
(27 intermediate revisions by 6 users not shown)
Line 3: Line 3:
 
*[[Template:InfoboxRow]]
 
*[[Template:InfoboxRow]]
 
*[[Template:Contact]]
 
*[[Template:Contact]]
</noinclude><includeonly>{{#if:{{{save|}}}|{{#var:set|contactSuffix|}}
+
</noinclude>
|{{#var:inc|contactCount}}{{#var:set|contactSuffix|_{{#var:get|contactCount|}}}}
+
<includeonly>
<tr class="contact-separator"><td colspan="2"></td></tr>
+
{{#if:{{{save|}}}|{{#var:set|contactSuffix|}}
}}{{infoboxRow
 
| label =
 
| name  = Contact{{#var:get|contactSuffix|}}
 
| value = {{{name|}}}
 
| display = '''{{{name|}}}'''{{#if:{{{role|}}}|, {{{role}}}}}
 
| type  = text
 
}}
 
 
{{infoboxRow
 
{{infoboxRow
| hidden = true
+
| label =  
| name  = Role{{#var:get|contactSuffix|}}
+
| name  = Contact{{#var:get|contactSuffix|}}
| value = {{{role|}}}
+
| value = {{{name|}}}
| type  = text
+
| display = '''{{{name|}}}'''{{#if:{{{role|}}}|, {{{role}}}}}
}}
+
| type  = text }}
 
{{infoboxRow
 
{{infoboxRow
| label =  
+
| hidden = true
| name  = Website{{#var:get|contactSuffix|}}
+
| name  = Role{{#var:get|contactSuffix|}}
| value = {{{website|}}}
+
| value = {{{role|}}}
| type  = text
+
| type  = text }}
}}
 
 
{{infoboxRow
 
{{infoboxRow
| label =  
+
| label   =
| name = Email{{#var:get|contactSuffix|}}
+
| name   = Street{{#var:get|contactSuffix|}}
| value = {{{email|}}}
+
| value   = {{{street|}}}
| display = [mailto:{{{email|}}} {{{email|}}}]
+
| type    = text
| type  = text
+
| display = {{{street|}}}, {{{town}}} }}
}}
 
 
{{infoboxRow
 
{{infoboxRow
| label  =
+
| label  =
| name    = Street{{#var:get|contactSuffix|}}
+
| name    = Town{{#var:get|contactSuffix|}}
| value  = {{{street|}}}
+
| value  = {{{town|}}}
| type    = text
+
| display =
| display = {{{street|}}}, [[{{{town}}}]]
+
| type    = text }}
}}
 
 
{{infoboxRow
 
{{infoboxRow
| label   =
+
| label =  
| name   = Town{{#var:get|contactSuffix|}}
+
| name = Website{{#var:get|contactSuffix|}}
| value   = {{{town|}}}
+
| value = {{{website|}}}
| display =
+
| type = text }}
| type   = text
 
}}
 
 
{{infoboxRow
 
{{infoboxRow
| label = Phone
+
| label =  
| name  = Telephone{{#var:get|contactSuffix|}}
+
| name  = Email{{#var:get|contactSuffix|}}
| value = {{{telephone|}}}
+
| value = {{{email|}}}
| type  = text
+
| display = [mailto:{{{email|}}} {{{email|}}}]
}}
+
| type  = text }}
 
{{infoboxRow
 
{{infoboxRow
| label = Fax
+
| label =  
| name  = Fax{{#var:get|contactSuffix|}}
+
| name  = Email{{#var:get|contactSuffix|}}
| value = {{{fax|}}}
+
| value = {{{email 2|}}}
| type  = text
+
| display = [mailto:{{{email 2|}}} {{{email 2|}}}]
}}<tr><td colspan="2" style="display:none">INSERT INTO subject ({{#var:get|sqlFields}}) VALUES ({{#var:get|sqlValues}});</td></tr></includeonly>
+
| type  = text }}
 +
{{infoboxRow
 +
| label = Phone
 +
| name  = Telephone{{#var:get|contactSuffix|}}
 +
| value = {{#if:{{{telephone|}}}|+{{#str:replace|{{#str:replace|{{{telephone|}}}|\(0\)|/}}|[()]|.}}|}}
 +
| display = {{{telephone|}}}
 +
| type  = text }}}}
 +
</includeonly>

Latest revision as of 18:38, 2 October 2024