Difference between revisions of "Template:Contact"

From Culture.si
 
(21 intermediate revisions by 5 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|}}}}<tr class="contact-separator"><td colspan="2"></td></tr>
+
<includeonly>
}}{{infoboxRow
+
{{#if:{{{save|}}}|{{#var:set|contactSuffix|}}
| label =  
+
{{infoboxRow
| name  = Contact{{#var:get|contactSuffix|}}
+
| label =  
| value = {{{name|}}}
+
| name  = Contact{{#var:get|contactSuffix|}}
| display = '''{{{name|}}}'''{{#if:{{{role|}}}|, {{{role}}}}}
+
| value = {{{name|}}}
| type  = text
+
| display = '''{{{name|}}}'''{{#if:{{{role|}}}|, {{{role}}}}}
}}{{infoboxRow
+
| type  = text }}
| hidden = true
+
{{infoboxRow
| name  = Role{{#var:get|contactSuffix|}}
+
| hidden = true
| value = {{{role|}}}
+
| name  = Role{{#var:get|contactSuffix|}}
| type  = text
+
| value = {{{role|}}}
}}{{infoboxRow
+
| type  = text }}
| label =  
+
{{infoboxRow
| name = Website{{#var:get|contactSuffix|}}
+
| label   =
| value = {{{website|}}}
+
| name   = Street{{#var:get|contactSuffix|}}
| type = text
+
| value   = {{{street|}}}
}}{{infoboxRow
+
| type   = text
| label =  
+
| display = {{{street|}}}, {{{town}}} }}
| name = Email{{#var:get|contactSuffix|}}
+
{{infoboxRow
| value = {{{email|}}}
+
| label   =
| display = [mailto:{{{email|}}} {{{email|}}}]
+
| name   = Town{{#var:get|contactSuffix|}}
| type  = text
+
| value   = {{{town|}}}
}}{{infoboxRow
+
| display =
| label   =
+
| type    = text }}
| name   = Street{{#var:get|contactSuffix|}}
+
{{infoboxRow
| value   = {{{street|}}}
+
| label =
| type    = text
+
| name  = Website{{#var:get|contactSuffix|}}
| display = {{{street|}}}, [[{{{town}}}]]
+
| value = {{{website|}}}
}}{{infoboxRow
+
| type  = text }}
| label   =
+
{{infoboxRow
| name   = Town{{#var:get|contactSuffix|}}
+
| label =  
| value   = {{{town|}}}
+
| name = Email{{#var:get|contactSuffix|}}
| display =
+
| value = {{{email|}}}
| type   = text
+
| display = [mailto:{{{email|}}} {{{email|}}}]  
}}{{infoboxRow
+
| type  = text }}
| label = Phone
+
{{infoboxRow
| name  = Telephone{{#var:get|contactSuffix|}}
+
| label =  
| value = +{{#str:replace|{{#str:replace|{{{telephone|}}}|\(0\)|/}}|[()]|.}}
+
| name = Email{{#var:get|contactSuffix|}}
| display = {{{telephone|}}}
+
| value = {{{email 2|}}}
| type  = text
+
| display = [mailto:{{{email 2|}}} {{{email 2|}}}]
}}{{infoboxRow
+
| type = text }}
| label = Fax
+
{{infoboxRow
| name  = Fax{{#var:get|contactSuffix|}}
+
| label = Phone
| value = {{{fax|}}}
+
| name  = Telephone{{#var:get|contactSuffix|}}
| type  = text
+
| value = {{#if:{{{telephone|}}}|+{{#str:replace|{{#str:replace|{{{telephone|}}}|\(0\)|/}}|[()]|.}}|}}
}}<tr><td colspan="2" style="display:none">INSERT INTO subject ({{#var:get|sqlFields}}) VALUES ({{#var:get|sqlValues}});</td></tr></includeonly>
+
| display = {{{telephone|}}}
 +
| type  = text }}}}
 +
</includeonly>

Latest revision as of 18:38, 2 October 2024