Template:Imagelink: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
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{{!}}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;">[[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>


<noinclude>
<noinclude>

Revision as of 22:34, 7 October 2016



Usage

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


Result

1.

link=Rocket}
Rocket


2.

Basic splitter