Difference between revisions of "Template:InfoboxRow"

From Culture.si
Line 1: Line 1:
{{#if:{{{2|}}}|{{#if:{{{1|}}}|<div class="info-row"><div class="row-label">{{{1}}}</div><div class="row-value"><span class="row-badges">{{#ifeq:Telephone|{{{1}}}|☎}}{{#ifeq:Fax|{{{1}}}|℻}}</span>{{#ifeq:Email|{{{1}}}|[mailto:{{{2}}}{{{2}}}]|{{{2}}}}}</div></div>{{#set:{{{1}}}={{{2}}}}}}}}}
+
{{#if:{{{2|}}}|{{#if:{{{1|}}}|<div class="info-row"><div class="row-label">{{{1}}}</div><div class="row-value"><span class="row-badges">{{#switch:{{{1}}}
 +
|Telephone=
 +
|Fax=
 +
}}</span>{{#ifeq:Email|{{{1}}}|[mailto:{{{2}}}{{{2}}}]|{{{2}}}}}</div></div>{{#set:{{{1}}}={{{2}}}}}}}}}

Revision as of 18:36, 15 September 2009