Difference between revisions of "Template:InfoboxRow"

From Culture.si
 
(21 intermediate revisions by 6 users not shown)
Line 3: Line 3:
 
*[[Template:InfoboxRow]]
 
*[[Template:InfoboxRow]]
 
*[[Template:Contact]]
 
*[[Template:Contact]]
</noinclude>{{#if:{{{value|}}}|{{#if:
+
</noinclude>{{#if:{{{value|}}}
  {{#switch:{{{type}}}
+
|{{#if:{{#switch:{{{type}}}
  | image={{#ifexist:image:{{{value}}}|TRUE|{{LOGGEDIN}}{{{noimage|}}}}}
+
| image={{#ifexist:image:{{{value}}}
  | #default=TRUE
+
|TRUE
  }}
+
|{{LOGGEDIN}}{{{noimage|}}}}}
| {{#if:{{{name|}}}
+
| #default=TRUE}}
  | {{#set:{{{name}}}={{{value}}}}}
+
|{{#if:{{{name|}}}
  }}{{#if:{{{hidden|}}}||<tr class="ibr-{{{name}}}">{{#if: {{{label|}}}
+
|{{#set:{{{name}}}={{{value}}}}}}}
  |<th>{{{label}}}</th><td>
+
{{#if:{{{hidden|}}}
  |<td colspan="2">
+
||<div class="ibr ibr-{{{name}}} row-{{{label|}}}">
  }}{{{display|{{#switch: {{{type|}}}
+
{{#if: {{{label|}}}
  | image = {{#ifexist:image:{{{value}}}|[[Image:{{{value}}}|226px|{{PAGENAME}}]]|{{{noimage|}}}}}
+
|<span class="row-label">{{{label}}}</span><span class="row-value">
  | link = [[{{{value}}}]]
+
|<span class="row-value">}}{{{display|{{#switch: {{{type|}}}
  | external link = [{{{value}}} {{{value}}}]
+
| image = {{#ifexist:image:{{{value}}}
  | text = {{{value}}}
+
|[[Image:{{{value}}}
  | embed = {{Embed|url={{{value}}}|width=226|height=226}}
+
|226px
  }}}}}
+
|{{PAGENAME}}]]
</td></tr>
+
|{{{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