Template:Imagelink: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
(Undo revision 131427 by TheWombatGuru (talk))
Line 1: Line 1:
<includeonly><div style="padding:5px;"><div class="icon" style="display:inline-block; position:relative; padding:3px; width:32px; height:32px; background-color:#999; border:1px solid #ccc;">[[File:{{{1}}}.png{{!}}32px{{#if: {{{link|}}}| |{{!}}link={{{2|}}}}}}]]</div><span style="position:relative; padding:3px; font-size:larger; color: black;">{{#if: {{{link|}}}| {{{3|{{{2}}}}}}|{{#if: {{{3|}}} | [[{{{2}}}{{!}}{{{3}}}]] | [[{{{2}}}]]}}}}</span></div></includeonly>
<includeonly><div style="padding:5px;"><div class="icon" style="display:inline-block; position:relative; padding:3px; width:32px; height:32px; background-color:#999; border:1px solid #ccc;">{{#if: {{{link|}}}|[[File:{{{1}}}.png{{!}}32px}}|[[File:{{{1}}}.png{{!}}32px{{!}}link={{{2|}}}]]}}}</div><span style="position:relative; padding:3px; font-size:larger; color: black;">{{#if: {{{link|}}}| {{{3|{{{2}}}}}}|{{#if: {{{3|}}} | [[{{{2}}}{{!}}{{{3}}}]] | [[{{{2}}}]]}}}}</span></div></includeonly>


<noinclude>
<noinclude>

Revision as of 22:36, 7 October 2016



Usage

{{imagelink|icon|link|caption}}
1. {{imagelink|rocket|Rocket}}
2. {{imagelink|basic-splitter|Transport network#Basic splitter|Basic splitter}}


Result

1.

{{#if: |[[File:rocket.png|32px}}|Rocket.png}}}
Rocket


2.

{{#if: |[[File:basic-splitter.png|32px}}|File:Basic-splitter.png}}}
Basic splitter