Difference between revisions of "Template:InfoboxImageRow"

From Culture.si
(Created page with '<noinclude> *Infobox *InfoboxRow *Contact </noinclude>{{#if:{{{value|}}}|{{#if: {{#switch:{{{type}}} | image={{#ifexist:image:{{{value}...')
 
 
(13 intermediate revisions by 3 users not shown)
Line 8: Line 8:
 
   | #default=TRUE
 
   | #default=TRUE
 
   }}
 
   }}
| {{#if:{{{name|}}}
+
  |{{#if:{{{name|}}}
   | {{#set:{{{name}}}=Image:{{{value}}}}}
+
   |{{#set:{{{name}}}=Image:{{{value}}}}}{{#set:{{{name}}}_url={{filepath:{{{value}}}}}}}
 
   }}{{#if:{{{hidden|}}}||<tr class="ibr-{{{name}}}">{{#if: {{{label|}}}
 
   }}{{#if:{{{hidden|}}}||<tr class="ibr-{{{name}}}">{{#if: {{{label|}}}
   |<th>{{{label}}}</th><td>
+
   |<th>{{{label}}}</th><td>|<td colspan="2">}}{{{display|{{#switch: {{{type|}}}
  |<td colspan="2">
+
   | image = {{#ifexist:image:{{{value}}}|[[Image:{{{value}}}|226px|{{PAGENAME}}|Download this image]]{{{hasimage|}}}|{{{noimage|}}}}}
  }}{{{display|{{#switch: {{{type|}}}
 
   | image = {{#ifexist:image:{{{value}}}|[[Image:{{{value}}}|226px|{{PAGENAME}}]]|{{{noimage|}}}}}
 
 
   | link = [[{{{value}}}]]
 
   | link = [[{{{value}}}]]
 
   | external link = [{{{value}}} {{{value}}}]
 
   | external link = [{{{value}}} {{{value}}}]
 
   | text = {{{value}}}
 
   | text = {{{value}}}
 
   | embed = {{Embed|url={{{value}}}|width=226|height=226}}
 
   | embed = {{Embed|url={{{value}}}|width=226|height=226}}
   }}}}}
+
   }}}}}</td></tr>}}}}}}
</td></tr>
 
}}}}}}
 

Latest revision as of 21:04, 23 February 2021