Difference between revisions of "Template:InfoboxRow"

From Culture.si
 
(31 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}}}}
+
| image={{#ifexist:image:{{{value}}}
  | #default=TRUE
+
|TRUE
  }}
+
|{{LOGGEDIN}}{{{noimage|}}}}}
| {{#if:{{{name|}}}
+
| #default=TRUE}}
  | {{#set:{{{name}}}={{{value}}}}}
+
|{{#if:{{{name|}}}
  }}{{#ifeq:{{{display}}}|||<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 = [[image:{{{value}}}|226px]]
+
|<span class="row-label">{{{label}}}</span><span class="row-value">
  | link = [[{{{value}}}]]
+
|<span class="row-value">}}{{{display|{{#switch: {{{type|}}}
  | text = {{{value}}}
+
| image = {{#ifexist:image:{{{value}}}
  | embed = {{Embed|url={{{value}}}|width=226|height=226}}
+
|[[Image:{{{value}}}
  }}}}}
+
|226px
</td></tr>
+
|{{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