Template talk:Imagelink

From Official Factorio Wiki
Revision as of 16:33, 23 April 2017 by RobbiRobb (talk | contribs)
Jump to navigation Jump to search

Automation

I don't know how well this would work because I don't know how the template is used in the Wiki, but how about automating the third parameter by replacing {{#if: {{{link|}}}| {{{3|{{{2}}}}}}|{{#if: {{{3|}}} | [[{{{2}}}{{!}}{{{3}}}]] | [[{{{2}}}]]}}}} with {{#if: {{{link|}}}|{{#if:{{#titleparts:{{{2}}}|1|2}}|{{translation/{{#titleparts:{{{2}}}|1|2}}|{{#titleparts:{{{2}}}|1|1}}}}|{{{2}}}}}|[[{{{2}}}{{!}}{{#if:{{#titleparts:{{{2}}}|1|2}}|{{translation/{{#titleparts:{{{2}}}|1|2}}|{{#titleparts:{{{2}}}|1|1}}}}|{{{2}}}}}]]}} so that the name written behind the icon ist always in the language the icon is linking to. The idea came up, when I was working on fuel/de when I saw that many names were not corret, but if they were taken from the translation-template, they could have been correct and that in the whole Wiki. I would be glad to get some response. -- RobbiRobb (talk) 12:27, 23 April 2017 (UTC)

Ah, yes, I see what you mean. Sure, I'll see about fixing this. Thanks for telling me. Edit: I have implemented your fix, and have fixed up Fuel/de. --(Gangsir) (talk) - Admin 12:45, 23 April 2017 (UTC)
Thanks, but you might have to check, where the third parameter is used, it seems to be a necessary parameter, when the language used is not english, which means it is used in many cases. -- RobbiRobb (talk) 16:33, 23 April 2017 (UTC)