Difference between revisions of "Template:InfoboxRow"

From Culture.si
(restored by csi_restorechanges)
 
(7 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
*[[Template:InfoboxRow]]
 
*[[Template:InfoboxRow]]
 
*[[Template:Contact]]
 
*[[Template:Contact]]
</noinclude>
+
</noinclude>{{#if:{{{value|}}}
 
 
{{#if:{{{value|}}}
 
 
|{{#if:{{#switch:{{{type}}}
 
|{{#if:{{#switch:{{{type}}}
 
| image={{#ifexist:image:{{{value}}}
 
| image={{#ifexist:image:{{{value}}}
Line 14: Line 12:
 
|{{#set:{{{name}}}={{{value}}}}}}}
 
|{{#set:{{{name}}}={{{value}}}}}}}
 
{{#if:{{{hidden|}}}
 
{{#if:{{{hidden|}}}
||<tr class="ibr-{{{name}}} row-{{{label|}}}">
+
||<div class="ibr ibr-{{{name}}} row-{{{label|}}}">
 
{{#if: {{{label|}}}
 
{{#if: {{{label|}}}
|<th>{{{label}}}</th><td>
+
|<span class="row-label">{{{label}}}</span><span class="row-value">
|<td colspan="2">}}
+
|<span class="row-value">}}{{{display|{{#switch: {{{type|}}}
{{{display|{{#switch: {{{type|}}}
 
 
| image = {{#ifexist:image:{{{value}}}
 
| image = {{#ifexist:image:{{{value}}}
 
|[[Image:{{{value}}}
 
|[[Image:{{{value}}}
Line 28: Line 25:
 
| text = {{{value}}}
 
| text = {{{value}}}
 
    | split = {{#str:replace|{{{value}}}|,|<br>}}
 
    | split = {{#str:replace|{{{value}}}|,|<br>}}
    | embed = {{Embed|url={{{value}}}|width=226|height=226}}}}}}}
+
    | splitlast = {{#str:replace|{{{value}}}|^.*,|}}
    </td></tr>}}}}}}
+
    | embed = {{Embed|url={{{value}}}|width=226|height=226}}}}}}}</span></div>}}}}}}

Latest revision as of 18:50, 27 February 2023