Template talk:AllPagesHeaderTemplate

Case sensitivity and templates -- ~Njt (talk) 21:06, October 27, 2019 (EDT)
User:Pyrrhus It's almost always best to just a template rather than direct to the module - the string templates also include things like error changing and make it a lot easier. There are Category:Lua String-based templates for nearly all the string and string2 module functions, and templates like Template:Lowercase and other Category:String manipulation templates that would make the task a whole lot easier. Any missing documentation for templates should be on Wikipedia, MediaWiki or WikiMedia's Commons - depending on where the template came from ~Njt (talk) 21:06, October 27, 2019 (EDT)
 * Thanks User:Notjusttired! Those are great templates, I've been looking through them.
 * Pyrrhus (talk) 00:02, October 28, 2019 (EDT)
 * I created a documentation page, to help test it, but for some reason it causes a template loop when I call the template from it, so I took that bit out. You might want to move your description there.
 * I think it's worth moving the #ifeq to a #switch statement since there will never be a time when both categories run. Template:Cquote has an example of a switch used to change font-size but it could be used for the whole statement, or just for background colors and category name. Setting class names for the colors makes it much easier of course for the different skins. You could make things much simpler by creating another template that takes 1 parameter - category name - which contains the formatting, and has the text. I've done this on cleanup templates to make them more manageable, eg Template:Cleanup/Too long calls Template:Cleanup ~Njt (talk) 10:18, October 28, 2019 (EDT)
 * By the way User:Notjusttired, I could not find a safe and effective way to set up this template. The string functions overloaded the parser on long pages.  We won't be able to use this template until Extension:PageInCat is installed.  Old banners have been reinstated for the time being.
 * Pyrrhus (talk) 22:19, October 28, 2019 (EDT)