Template talk:Icon: Difference between revisions
Jump to navigation
Jump to search
Rchromatic (talk | contribs) No edit summary |
Technical 13 (talk | contribs) (→Text display options: New section) |
||
Line 10: | Line 10: | ||
It opens proper page but hint is not Russian. | It opens proper page but hint is not Russian. | ||
--[[User:Rchromatic|Rchromatic]] ([[User talk:Rchromatic|talk]]) 09:29, 27 June 2014 (CEST) | --[[User:Rchromatic|Rchromatic]] ([[User talk:Rchromatic|talk]]) 09:29, 27 June 2014 (CEST) | ||
== Text display options == | |||
Please modify the existing code above the <code><nowiki><noinclude>…</noinclude></nowiki></code> section to: | |||
<pre> | |||
<div class="factorio-icon" style="background-color:#{{{color|929292}}};">{{#ifexist: File:{{ConvertName|{{{1}}}}}.png | [[File:{{ConvertName|{{{1}}}}}.png{{!}}32px{{!}}link={{#if: {{{3|}}} |{{{3}}}|{{{1}}}{{If language suffix}}}}]] | [[File:Placeholder icon.png{{!}}link=]] <includeonly><div style="display:none;">[[File:{{{1}}}.png{{!}}32px]]</div></includeonly>}}<div class="{{{icon-text-class|factorio-icon-text}}}">{{{2|}}}</div></div> | |||
</pre> | |||
To allow other text such as level ranges to be entered into the template. eg:<div class="factorio-icon" style="background-color: #929292;">[[File:Mining productivity (research).png|32px]]<div class="navbox-icon-text">12-15</div></div> | |||
Thanks, [[User:Technical 13|Technical 13]] ([[User talk:Technical 13|talk]]) 15:07, 7 June 2017 (UTC) |
Revision as of 15:07, 7 June 2017
How to force it works?
It does not open Iron plate/ru after click on the image but it opens image.
It opens proper page but hint is not Russian. --Rchromatic (talk) 09:29, 27 June 2014 (CEST)
Text display options
Please modify the existing code above the <noinclude>…</noinclude>
section to:
<div class="factorio-icon" style="background-color:#{{{color|929292}}};">{{#ifexist: File:{{ConvertName|{{{1}}}}}.png | [[File:{{ConvertName|{{{1}}}}}.png{{!}}32px{{!}}link={{#if: {{{3|}}} |{{{3}}}|{{{1}}}{{If language suffix}}}}]] | [[File:Placeholder icon.png{{!}}link=]] <includeonly><div style="display:none;">[[File:{{{1}}}.png{{!}}32px]]</div></includeonly>}}<div class="{{{icon-text-class|factorio-icon-text}}}">{{{2|}}}</div></div>
To allow other text such as level ranges to be entered into the template. eg:
Thanks, Technical 13 (talk) 15:07, 7 June 2017 (UTC)