Template talk:Software

From Valve Developer Community
(Redirected from Template talk:New icon)
Jump to: navigation, search
Icon-message-48px.png
Welcome to Template talk:Software!
This is the start of the Software discussion page.

To add a new message, click on "Add Topic/Reply" button below, and set the "Subject".
To add a Reply, do the same as above, but leave the "Subject" blank.

Parameter p

Icon-user.png
Empty.png
Popcorn16:38, 4 April 2022 (UTC)
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: "Team Fortress 2 This is a point entity available in Team Fortress 2".
Icon-user.png
Empty.png
Popcorn3:12, 5 April 2022 (UTC)
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>
ERR
Empty.png
Max_349:06, 5 April 2022 (UTC+4)
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.
Icon-user.png
Empty.png
Popcorn6:44, 5 April 2022 (UTC)
Right, I forgot about that.
Icon-user.png
Empty.png
Popcorn15:51, 18 April 2022 (UTC)
I just realized that we could allow {{csgo|p=only}} by adding only, since, not, removed right above in in the #switch statement so that {{{p}}} can be passed to {{in text}} instead of {{{type}}}. Roughly speaking, I mean:
{{#switch: {{{p|}}}
|... = ...
|only
|since
|not
|removed
|in = ... {{{in text|{{{p}}}}}} ...
}}
Changing that would be nice as it is much more intuitive to write {{csgo|p=since}} instead of {{csgo|p=in|type=since}} (by the way, why {{{p}}} and not {{{1}}}?), however, it would mean that all game icon templates would need another edit. Thoughts?
ERR
Empty.png
Max_3421:49, 18 April 2022 (UTC+4)(edited)
Yes, it's a great idea to get rid of "type". It just seemed to me before that if I didn't do it, I would have to write all the parameters in Template:New icon many times, but most likely I thought so before I did Template:in text. The parameter is called "p" because it stands for "parameter", but yes, it can be replaced with {{{1}}} if needed. Just write an answer if it really needs to be replaced and I will do it (nvrm I already started doing it). I did not think that all this fuss with icons would last so long.. but on the other hand, it is interesting to do it.

Generic Doc for game icon templates

Icon-user.png
Empty.png
Popcorn6:44, 5 April 2022 (UTC)
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.
ERR
Empty.png
Max_3410:54, 5 April 2022 (UTC+4)
I think it's worth renaming from "Template:Hl2/doc" to "Template:Icons_doc" or something like that. I have almost completed the structure of working with "in" templates, but there are many translations missing because I do not know all languages. Unfortunately, I didn't find a way to write multiple icons so that they are all connected, so I'll just make an additional parameter that will be written after the main icon.
Icon-user.png
Empty.png
Popcorn16:11, 5 April 2022 (UTC)
Well, I don't think Category:Game icons/doc is a good place for a /doc since it itself is a new category that we don't actually need and also we would have to write :Category as parameter in every transclusion of {{documentation}} to not have them added to that new /doc Category. I'd suggest going back to Template:Icon doc or Template:Hl2/doc. It's getting confusing with all the different page names.
Icon-user.png
Empty.png
Popcorn17:59, 6 April 2022 (UTC)
Ok, there is still a problem: It is awful to make changes to icon doc that can't be previewed. That's why I had put it to Template:Hl2/doc in the first place. Idea: Move it back and redirect icon doc to it. This way, any game icon template can use the "clean" :icon doc as doc page and there is no <includeonly> madness when editing the generic doc. Problem is, we can no longer move to Template:Hl2/doc because it has a (negligible) history by now, so I'm thinking of performing an improper page movement or finding a way to ask an admin to do that.
ERR
Empty.png
Max_340:17, 7 April 2022 (UTC+4)
Yes, there are similar things on the site, for example, I wanted to replace one icon with a new one and change .gif to .png, but I could not rename the file page because the new name does not match the file type. And when I tried to load a png, it couldn't load it because the file's page name had the wrong format. In other words, an endless loop. When loading a new texture, you can change the name of the page, but not when you load a new image over an existing one. I understand you, I will return everything to Template:Hl2/doc. If you have any more ideas on how to improve this idea with better icons, then it's better to write about it now, because I plan to remake all icons with a new structure. I can only add that I had one idea about auto-translation: if the page uses the Template:Lang template, then it somehow sends the article suffix to the article and already there, if icon templates are used, they put this suffix in "suf" parameter by default. This way you won't need to write the "suf" parameter all the time in other languages, but I have absolutely no idea how to do it, so it's still an idea for now.

Nearly all icons shouldn't omit text!

Icon-user.png
Empty.png
Lxm612:06, 28 March 2023 (UTC)
They did with these:
  1. Half-Life 2
  2. (in Half-Life 2)
  3. (only in Half-Life 2)
  4. (in all games since Half-Life 2)
  5. (not in Half-Life 2)
  6. (also in Half-Life 2Counter-Strike: Global Offensive Left 4 Dead 2)

Icons should not replace text in most situations.

Users should have more options about where icons will be

Icon-user.png
Empty.png
Lxm619:15, 9 April 2023 (UTC)(edited)

Why use a number for the display method?

Icon-user.png
Empty.png
Amicdict19:40, 2 May 2023 (UTC)
Using only a number is quite confusing to newcomers.

Kial uzi nombron por montronto de metodo? Uzas nur nombron konfuzantus komencantojn.

Icon-user.png
Empty.png
Popcorn8:44, 26 May 2023 (UTC)
Numbers are short and convenient. Assigning names to styles would be unnecessary, unnecessarily difficult, and hardly intuitive. If you don't know what to choose as a parameter, guessing a number is much faster than guessing some name.
ERR
224
SirYodaJedi13:49, 26 May 2023 (UTC)
The alt names are rarely used anyway; I just go to the applicable Template:Hl2, Template:Dod, Template:P2ce, etc and click edit to check the | name# = parameter when I need to use one.
Icon-user.png
Empty.png
Amicdict9:51, 26 May 2023 (UTC)
> Numbers are short and convenient.

Numbers are indeed short yes. but how are they convenient in this case? What about editors who aren't programmers?

>Assigning names to styles would be unnecessary, unnecessarily difficult, and hardly intuitive.

Uh, how and why?

Icon-user.png
Empty.png
Popcorn12:35, 26 May 2023 (UTC)
You would need the style names in a list if you want to use one at all. Numbers on the other hand are known by everybody, even by non-prorgammers. This makes numbers convenient: You just need to know that the styles have numbers and not names, from then on you don't really need to look up again, especially with our small number of styles.
Well: What should the names for the three styles that we have be? No matter what we two say: Not everyone will give the same answer to this question, making names not intuitive in this case. All the names that we two might come up with are things that we and everyone else would have to remember. Numbers (speaking of 1,2,...) are already there.
I'm referring to this template and not to generality; In different cases names would make more sense but not here in my opinion.

> You would need the style names in a list if you want to use one at all.

Can also substitute those numbers to words like name and ico and col.

> Numbers on the other hand are known by everybody, even by non-prorgammers.

What kind of proof do you have for those above claims?

> This makes numbers convenient: You just need to know that the styles have numbers and not names, from then on you don't really need to look up again, especially with our small number of styles.

Same case for names…

> Well: What should the names for the three styles that we have be? No matter what we two say: Not everyone will give the same answer to this question, making names not intuitive in this case.

Same future occassions for numbers.

---

For each of your argument why are names still used in this template? - Amicdict (talk) 12:37, 31 May 2023 (PDT)

Icon-user.png
Empty.png
Popcorn15:31, 1 June 2023 (UTC)
> Can also substitute those numbers to words like name and ico and col.

For each style you have a variant with an icon and one without, one with black background and one without. Do you think three names suffice?

> Using only a number is quite confusing to newcomers.
> What kind of proof do you have for those above claims?

Why do I need proof and you don't?

> For each of your argument why are names still used in this template?

Because they are already established across many wiki pages for quite some time.
---
Are you planning a change or are you just discussing? If you suggest a more precise change in functionality and usage then I can refer to that and don't need to give any proofs that no one needs.

>> Can also substitute those numbers to words like name and ico and col.

> For each style you have a variant with an icon and one without, one with black background and one without. Do you think three names suffice?

No, but 4 names would.

1 := without-icon 2 := with-icon 3 := background 4 := no-background

> Why do I need proof and you don't?

I do need proof; and I should quite frankly be pushed to provide proof more often tbh. "I did not say that I don't need proof!"

> Because they are already established across many wiki pages for quite some time.


---
Are you planning a change or are you just discussing? If you suggest a more precise change in functionality and usage then I can refer to that and don't need to give any proofs that no one needs.

Icon-user.png
Empty.png
Popcorn0:27, 6 June 2023 (UTC)
I also like proofs. But I'm not capable of prooving what the majority of the wiki editors prefers or what they will prefer in the long run.

If you feel like adding these names to the cases of the #switch statement of this template, go ahead. I personally would advise against it. Allowing multiple words for the same effect might only be more complicated and getting rid of one is unnecessary work. I won't explain it any further.
Apart from that, I don't know what you want me to answer.

Flag to change "in" to "for" or "on"

ERR
224
SirYodaJedi9:53, 2 June 2023 (UTC)
I'd like to add a {{{except}}} parameter, which would result in {{hl2|except}} becoming (except for Half-Life 2). It has a slightly different (generally more positive) usecase than the {{{not}}}; I've used it a couple times already by manually typing it out.
Icon-user.png
Empty.png
Popcorn12:05, 2 June 2023 (UTC)
Sounds ok. Even though its meaning is pretty identical to {{hl2|not}}, {{hl2|except}} may be more fitting in sentences. Maybe we should use the same color for both due to the similar meaning?
ERR
224
SirYodaJedi13:25, 2 June 2023 (UTC)
Sure, it probably can share a color; it means basically the same thing, with only the connotation and word flow being different.
ERR
224
SirYodaJedi18:25, 22 June 2023 (UTC)
I ended up using {{{addtext-front}}} instead (like so: (except in Sven Co-op)), since I'm using it as a positive thing, not a negative thing. I do think there should be a flag can change "in" in the various thingies to "for" or "on", though.

Add external links

Unresolved.

Icon-user.png
Empty.png
Lxm64:39, 20 July 2023 (UTC)
{{ps1|4|link=http://example.com}}
{{ps2|4|link=http://example.com}}
{{ps3|4|link=http://example.com}}
{{ps4|4|link=http://example.com}}
{{ps5|4|link=http://example.com}}

Change color and icon

ERR
Empty.png
Mr. SystemError11:50, 17 April 2024 (UTC)(edited)
It would be very cool if we could change the icon and the color. For example {{csgo|4|col=white}} would be Counter-Strike: Global OffensiveCounter-Strike: Global Offensive

and {{csgo|icon=Icon-Portal2.png}} would be Portal 2Counter-Strike: Global Offensive