Template talk:Icon: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Changed links going to the redirect File:iron-plate.png to go to File:Iron plate.png.)
m (Reverted edits by BilkaBot (talk) to last revision by Technical 13)
Line 1: Line 1:
How to force it works?
How to force it works?


{{Icon|File:Iron plate.png|2|[[Iron plate/ru|Железная пластина]]}}
{{icon|iron-plate|2|[[Iron plate/ru|Железная пластина]]}}
It does not open Iron plate/ru after click on the image but it opens image.
It does not open Iron plate/ru after click on the image but it opens image.


Line 7: Line 7:




  {{Icon|File:Iron plate.png|2|Iron plate/ru}}  
  {{icon|iron-plate|2|Iron plate/ru}}  
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)


<code><nowiki>{{Icon|File:Iron plate.png|2|Iron plate/ru{{!}}Железная пластина}}</nowiki></code> &rArr; {{Icon|File:Iron plate.png|2|Iron plate/ru{{!}}Железная пластина}}
<code><nowiki>{{Icon|iron-plate|2|Iron plate/ru{{!}}Железная пластина}}</nowiki></code> &rArr; {{Icon|iron-plate|2|Iron plate/ru{{!}}Железная пластина}}
Opens the proper page and the hint is Russian. [[User:Technical 13|Technical 13]] ([[User talk:Technical 13|talk]]) 15:09, 7 June 2017 (UTC)
Opens the proper page and the hint is Russian. [[User:Technical 13|Technical 13]] ([[User talk:Technical 13|talk]]) 15:09, 7 June 2017 (UTC)



Revision as of 10:22, 5 September 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)

{{Icon|iron-plate|2|Iron plate/ru{{!}}Железная пластина}}

Opens the proper page and the hint is Russian. Technical 13 (talk) 15:09, 7 June 2017 (UTC)

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:

Mining productivity (research).png

Thanks, Technical 13 (talk) 15:07, 7 June 2017 (UTC)

The change is a formatting change and has nothing to do with being able to add other text into the template, so I don't quite get your reasoning. In my opinion making the numbers smaller like in your examples is actually worse than the standard formatting because it decreases the readability. Could you please further detail your reasoning? -- Bilka (talk) - Admin 15:59, 7 June 2017 (UTC)
Mining productivity (research).png
12-15

doesn't fit in the div and looks much worse than the smaller text, in my opinion. Technical 13 (talk) 16:05, 7 June 2017 (UTC)