Template talk:Software
Jump to navigation
Jump to search
Parameter p
Before p=4
comes into use, I'd like to suggest to change it such that p=4
delivers the {{game name}}
look with no icon and instead p=5 delivers the {{game color}}
. I'm thinking of sentences that have the game icon at the beginning, like the {{base point}}
templates, for example: " This is a point entity available in Template:Game name". --Popcorn (talk) 09:38, 4 April 2022 (PDT)
- Thanks, good solution! By the way, I just realized, that this template would also have the potential to replace the
{{in}}
templates, for example allow p=only and add the following switch case, however, I'm unsure if all those different but similar expressions (only, since, removed, not, also) would make this template unnecessarily complicated and whether that is useful at all.|only=<span style="background-color:#202020;font-weight:bold;padding:2px;{{border-radius|4px}}"><span title="{{{name}}}" style="color:{{{col|#ADD8E6}}}">(''only'' in [[File:{{{ico}}}|link={{{name}}}{{{suf|}}}|{{{name}}}]])</span></span>
--Popcorn (talk) 20:12, 4 April 2022 (PDT)- I thought about this idea too, but there is a problem with it: translations. The standard would be "(also in <game1> and <game2>)" for example, but it would be possible to replace "also" with other text, but writing the same values over and over again is not a good idea. If it were possible to add a set of translations to this template, and if a person wrote "suf=:es", then the text would be in Spanish according to the standard. There is also another problem: adding multiple icons. That is, you can try to add 2 variables, one will be responsible for the text at the beginning, the second for the text after, and in general, you can enter other icons in the text after, and the color will be taken from the main icon, but in other icons you will have to enter the "suf" parameter again and they will not be related to the main icon in any way. But the idea is good and I will try to improve it to avoid all problems. --Max34 (talk) 05:04, 5 April 2022 (UTC)
Generic Doc for game icon templates
I created a generic doc at {{hl2}} and would spread it in the next days like I did with {{csgo}}. I was thinking whether that documentation should be on the page Template:new icon/doc2 or something, however the examples of the doc would be broken on it. --Popcorn (talk) 23:43, 4 April 2022 (PDT)