Difference between revisions of "Template:Contact"

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

Latest revision as of 18:38, 2 October 2024