Difference between revisions of "Template:InfoboxRow"

From Culture.si
 
(53 intermediate revisions by 7 users not shown)
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">{{#switch:{{{1}}}
 
|Telephone=☎
 
|Fax=℻
 
}}</span>{{#ifeq:Email|{{{1}}}|[mailto:{{{2}}} {{{2}}}]|{{{2}}} }}</div></div>
 
 
{{#ifeq:Town|{{{1}}}|{{#sub: {{{2}}} |0|4}}xxx }}
 
 
 
 
{{#set:{{{1}}}={{{2}}}}}}}}}
 
 
 
<noinclude>
 
<noinclude>
---
+
*[[Template:Infobox]]
<nowiki>{{InfoboxRow |Town |SI-1000 Ljubljana}}</nowiki>
+
*[[Template:InfoboxRow]]
{{InfoboxRow |Town |SI-1000 Ljubljana}}
+
*[[Template:Contact]]
 
+
</noinclude>{{#if:{{{value|}}}
</noinclude>
+
|{{#if:{{#switch:{{{type}}}
 +
| image={{#ifexist:image:{{{value}}}
 +
|TRUE
 +
|{{LOGGEDIN}}{{{noimage|}}}}}
 +
| #default=TRUE}}
 +
|{{#if:{{{name|}}}
 +
|{{#set:{{{name}}}={{{value}}}}}}}
 +
{{#if:{{{hidden|}}}
 +
||<div class="ibr ibr-{{{name}}} row-{{{label|}}}">
 +
{{#if: {{{label|}}}
 +
|<span class="row-label">{{{label}}}</span><span class="row-value">
 +
|<span class="row-value">}}{{{display|{{#switch: {{{type|}}}
 +
| image = {{#ifexist:image:{{{value}}}
 +
|[[Image:{{{value}}}
 +
|226px
 +
|{{PAGENAME}}]]
 +
|{{{noimage|}}}}}
 +
| link = [[{{{value}}}]]
 +
| external link = [{{{value}}} {{{value}}}]
 +
| text = {{{value}}}
 +
    | split = {{#str:replace|{{{value}}}|,|<br>}}
 +
    | splitlast = {{#str:replace|{{{value}}}|^.*,|}}
 +
    | embed = {{Embed|url={{{value}}}|width=226|height=226}}}}}}}</span></div>}}}}}}

Latest revision as of 18:50, 27 February 2023