Difference between revisions of "Template:InfoboxRow"

From Culture.si
 
(One intermediate revision by the same user not shown)
Line 14: Line 14:
 
||<div class="ibr ibr-{{{name}}} row-{{{label|}}}">
 
||<div class="ibr ibr-{{{name}}} row-{{{label|}}}">
 
{{#if: {{{label|}}}
 
{{#if: {{{label|}}}
|<div><div>{{{label}}}</div>
+
|<span class="row-label">{{{label}}}</span><span class="row-value">
|<div>}}{{{display|{{#switch: {{{type|}}}
+
|<span class="row-value">}}{{{display|{{#switch: {{{type|}}}
 
| image = {{#ifexist:image:{{{value}}}
 
| image = {{#ifexist:image:{{{value}}}
 
|[[Image:{{{value}}}
 
|[[Image:{{{value}}}
Line 25: Line 25:
 
| text = {{{value}}}
 
| text = {{{value}}}
 
    | split = {{#str:replace|{{{value}}}|,|<br>}}
 
    | split = {{#str:replace|{{{value}}}|,|<br>}}
    | embed = {{Embed|url={{{value}}}|width=226|height=226}}}}}}}</div></div>}}}}}}
+
    | splitlast = {{#str:replace|{{{value}}}|^.*,|}}
 +
    | embed = {{Embed|url={{{value}}}|width=226|height=226}}}}}}}</span></div>}}}}}}

Latest revision as of 19:50, 27 February 2023