Template talk:CsgoOperation

From Valve Developer Community
Jump to: navigation, search

Parameters

Hey, I think the parameters are a bit confusing. Wouldn't it be enough to have just {{{1}}} and {{{2}}} stand for the operation name (1) and an alternative link text (2)? The sentence constructs are nice, but should they be the default? It's a bit counter-intuitive that {{csgoOperation|hydra}} does not deliver the short version "[icon] Operation Hydra". If I really need the even shorter version, it's actually more intuitive (and shorter) to write {{csgoOperation|hydra|Hydra}} to get "[icon] Hydra" instead of writing {{csgoOperation|hydra|short=1|disableop=1}}, or isn't it? --Popcorn (talk) 10:54, 27 March 2022 (PDT)

I'll add parameters {{{name}}}, {{{link}}} and {{{icon}}}, but i don't want to remove parameter {{{disableop}}}, and make {{{short}}} default, because I alredy have page with it. --Kpabik (talk) 12:51, 27 March 2022 (PDT)
I have the suspicion that you're making the template more complicated and thus less intuitive to use than needs to be: In fact, apart from {{{1}}}, the {{{name}}} parameter is enough to construct any sentence and it also makes the {{{disableop}}} parameter redundant. Constructing sentences is a cool thing, but in the end, you'll most likely end up modifying that sentence all the time, so I'd suggest setting the {{{short}}} parameter to 1 by default. As this template is used just in one other page, it won't be much work, so in case you're concerned about any subsequent changes to the List of CS:GO Maps page; that's no problem, I can care about them if you'd like. --Popcorn (talk) 18:48, 27 March 2022 (PDT)
I added {{{short}}} by default, and added {{{prefix}}} --Kpabik (talk) 05:28, 28 March 2022 (PDT)