Template talk:Ucfirstletter

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Better code?[edit]

Should this template use {{#invoke:String2|ucfirst|xxx}} instead? And why should it be subst-only? – Jonesey95 (talk) 20:43, 6 February 2022 (UTC)[reply]

It's different from the basic ucfirst function in that it acts on the first letter rather than the first character of any type. I figured it should be subst-only as I couldn't really think of a case where you'd want to transclude it, except for the apparent infobox issue, but I could be wrong. —swpbT • go beyond • bad idea 16:20, 8 February 2022 (UTC)[reply]
Re substing: Using a template in an article is a lot easier for most editors to understand than an obscure module invocation. Also, if you find that there is a better way to implement this functionality, all you have to do is fix the template rather than going through every article to update it. Unrelated: The new name is an improvement; thanks for that. – Jonesey95 (talk) 16:45, 8 February 2022 (UTC)[reply]