Difference between revisions of "Template:InfoboxRow"

From Culture.si
(restored by csi_restorechanges)
Line 3: Line 3:
 
*[[Template:InfoboxRow]]
 
*[[Template:InfoboxRow]]
 
*[[Template:Contact]]
 
*[[Template:Contact]]
</noinclude>{{#if:{{{value|}}}|{{#if:
+
</noinclude>
  {{#switch:{{{type}}}
+
 
  | image={{#ifexist:image:{{{value}}}|TRUE|{{LOGGEDIN}}{{{noimage|}}}}}
+
{{#if:{{{value|}}}
  | #default=TRUE
+
|{{#if:{{#switch:{{{type}}}
  }}
+
| image={{#ifexist:image:{{{value}}}
|{{#if:{{{name|}}}
+
|TRUE
  |{{#set:{{{name}}}={{{value}}}}}
+
|{{LOGGEDIN}}{{{noimage|}}}}}
  }}{{#if:{{{hidden|}}}||<tr class="ibr-{{{name}}} row-{{{label|}}}">{{#if: {{{label|}}}
+
| #default=TRUE}}
  |<th>{{{label}}}</th><td>|<td colspan="2">
+
|{{#if:{{{name|}}}
  }}{{{display|{{#switch: {{{type|}}}
+
|{{#set:{{{name}}}={{{value}}}}}}}
  | image = {{#ifexist:image:{{{value}}}|[[Image:{{{value}}}|226px|{{PAGENAME}}]]|{{{noimage|}}}}}
+
{{#if:{{{hidden|}}}
  | link = [[{{{value}}}]]
+
||<tr class="ibr-{{{name}}} row-{{{label|}}}">
  | external link = [{{{value}}} {{{value}}}]
+
{{#if: {{{label|}}}
  | text = {{{value}}}
+
|<th>{{{label}}}</th><td>
  | split = {{#str:replace|{{{value}}}|,|<br>}}
+
|<td colspan="2">}}
  | embed = {{Embed|url={{{value}}}|width=226|height=226}}
+
{{{display|{{#switch: {{{type|}}}
  }}}}}</td></tr>}}}}}}
+
| image = {{#ifexist:image:{{{value}}}
 +
|[[Image:{{{value}}}
 +
|226px
 +
|{{PAGENAME}}]]
 +
|{{{noimage|}}}}}
 +
| link = [[{{{value}}}]]
 +
| external link = [{{{value}}} {{{value}}}]
 +
| text = {{{value}}}
 +
    | split = {{#str:replace|{{{value}}}|,|<br>}}
 +
    | embed = {{Embed|url={{{value}}}|width=226|height=226}}}}}}}
 +
    </td></tr>}}}}}}

Revision as of 01:13, 11 February 2021