Template talk:Of
Capitalization bug
There's a bug on the Price identification article : {{of|potion|ESP}} gives ESP and not ESP. Regards, Willful (talk) 06:24, 5 November 2019 (UTC)
- Thanks for letting me know. Normally it changes the first letter of the second parameter to lowercase (so you can use e.g. {{of|potion|Booze}} to produce [[potion of booze|Booze]] rather than [[potion of Booze|Booze]]), but it didn't account for cases where the capitalization needs to stay. I've added a fix for when the second parameter is "ESP", which will hopefully be enough for now. — Ardub23 (talk) 03:41, 6 November 2019 (UTC)
Is a template named just "of" really the best choice for general wiki use?
It's really jarring for me to read some page source and come across this template being used, because it breaks the semantic order.
Proposal: follow the example already used in Template:Spell of, and create templates for the various object classes that heavily use "of" in their naming. E.g.
{{potion of|speed}} --> [[potion of speed|speed]]
In order to avoid duplicating code, those templates can internally use this one. E.g. the "potion of" template would be
{{of|potion|{{{1}}}}}
but the main text of this template should discourage general wiki use of it.
I think we can discard any special casing for the Amulet of Yendor; I doubt a scenario would arise where someone would want to have Yendor in their page without having the "Amulet of" in it. --Phol ende wodan (talk) 22:25, 7 March 2020 (UTC)