Difference between revisions of "Template:InfoboxRow"

From Culture.si
 
(11 intermediate revisions by 4 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}}} row-{{{label|}}}">{{#if: {{{label|}}}
+
|{{#set:{{{name}}}={{{value}}}}}}}
  |<th>{{{label}}}</th><td>|<td colspan="2">
+
{{#if:{{{hidden|}}}
  {{{display|{{#switch: {{{type|}}}
+
||<div class="ibr ibr-{{{name}}} row-{{{label|}}}">
  | image = {{#ifexist:image:{{{value}}}|[[Image:{{{value}}}|226px|{{PAGENAME}}]]|{{{noimage|}}}}}
+
{{#if: {{{label|}}}
  | link = [[{{{value}}}]]
+
|<span class="row-label">{{{label}}}</span><span class="row-value">
  | external link = [{{{value}}} {{{value}}}]
+
|<span class="row-value">}}{{{display|{{#switch: {{{type|}}}
  | text = {{{value}}}
+
| image = {{#ifexist:image:{{{value}}}
  | embed = {{Embed|url={{{value}}}|width=226|height=226}}
+
|[[Image:{{{value}}}
  }}}}}</td></tr>}}}}}}}}
+
|226px
 +
|{{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