Difference between revisions of "Template:InfoboxImageRow"

From Culture.si
 
(11 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}}|link=]]<div class="magnify">[[File:Magnify-clip.png|link=File:{{{value}}}|alt=Go to download page]]</div>|{{{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 20:04, 23 February 2021