Difference between revisions of "Template:InfoboxImageRow"
(9 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|}}} |
− | + | | image = {{#ifexist:image:{{{value}}}|[[Image:{{{value}}}|226px|{{PAGENAME}}|Download this image]]{{{hasimage|}}}|{{{noimage|}}}}} | |
− | |||
− | | image = {{#ifexist:image:{{{value}}}|[[Image:{{{value}}}|226px|{{PAGENAME}}| | ||
| 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> | ||
− | }}}}}} |