Difference between revisions of "Template:InfoboxContactPrint"

From Culture.si
Line 3: Line 3:
 
*[[Template:infoboxRowPrint]]
 
*[[Template:infoboxRowPrint]]
 
*[[Template:InfoboxContactPrint]]
 
*[[Template:InfoboxContactPrint]]
</noinclude><includeonly>{{#if:{{{save|}}}|{{#var:set|contactSuffix|}}
+
</noinclude><includeonly>{{infoboxRowPrint
|{{#var:inc|contactCount}}{{#var:set|contactSuffix| {{#var:get|contactCount|}}}}}}<tr class="contact-separator"><td colspan="2">Sufi: {{#var:set|contactSuffix}}
 
</td></tr>
 
{{infoboxRowPrint
 
 
| label =  
 
| label =  
| name  = Contact{{#var:get|contactSuffix|}}
+
| name  = Name
| value = {{{Contact{{#var:get|contactSuffix|}}|}}}
+
| value = {{{name|}}}
| display = '''{{{Contact{{#var:get|contactSuffix|}}|}}}'''{{#if:{{{Role{{#var:get|contactSuffix|}}|}}}|, {{{Role{{#var:get|contactSuffix|}}}}}}}
+
| display = '''{{{name|}}}'''{{#if:{{{role|}}}|, {{{role}}}}}
 
| type  = text
 
| type  = text
 
}}{{infoboxRowPrint
 
}}{{infoboxRowPrint
 
| label =  
 
| label =  
| name  = Website{{#var:get|contactSuffix|}}
+
| name  = Website
| value = {{{Website{{#var:get|contactSuffix|}}|}}}
+
| value = {{{website|}}}
 
| type  = text
 
| type  = text
 
}}{{infoboxRowPrint
 
}}{{infoboxRowPrint
 
| label =  
 
| label =  
| name  = Email{{#var:get|contactSuffix|}}
+
| name  = Email
| value = {{{Email{{#var:get|contactSuffix|}}|}}}
+
| value = {{{email|}}}
| display = [mailto:{{{Email{{#var:get|contactSuffix|}}|}}} {{{Email{{#var:get|contactSuffix|}}|}}}]  
+
| display = [mailto:{{{email|}}} {{{email|}}}]  
 
| type  = text
 
| type  = text
 
}}{{infoboxRowPrint
 
}}{{infoboxRowPrint
 
| label  =
 
| label  =
| name    = Street{{#var:get|contactSuffix|}}
+
| name    = Street
| value  = {{{Street{{#var:get|contactSuffix|}}|}}}
+
| value  = {{{street|}}}
 
| type    = text
 
| type    = text
| display = {{{Street{{#var:get|contactSuffix|}}|}}}, [[{{{Town{{#var:get|contactSuffix|}}}}}]]
+
| display = {{{street|}}}, [[{{{town}}}]]
 
}}{{infoboxRowPrint
 
}}{{infoboxRowPrint
 
| label = Phone
 
| label = Phone
| name  = Telephone{{#var:get|contactSuffix|}}
+
| name  = Telephone
| value = {{#if:{{{Telephone{{#var:get|contactSuffix|}}|}}}|+{{#str:replace|{{#str:replace|{{{Telephone{{#var:get|contactSuffix|}}|}}}|\(0\)|/}}|[()]|.}}|}}
+
| value = {{#if:{{{telephone|}}}|+{{#str:replace|{{#str:replace|{{{telephone|}}}|\(0\)|/}}|[()]|.}}|}}
| display = {{{Telephone{{#var:get|contactSuffix|}}|}}}
+
| display = {{{telephone|}}}
 
| type  = text
 
| type  = text
 
}}{{infoboxRowPrint
 
}}{{infoboxRowPrint
 
| label = Fax
 
| label = Fax
| name  = Fax{{#var:get|contactSuffix|}}
+
| name  = Fax
| value = {{{Fax{{#var:get|contactSuffix|}}|}}}
+
| value = {{{fax|}}}
 
| type  = text
 
| type  = text
 
}}</includeonly>
 
}}</includeonly>

Revision as of 02:35, 27 March 2014