Board Thread:Support Requests - Getting Technical/@comment-4654623-20150920032257/@comment-2170536-20150921185410

Since all parser functions ignore leading and trailing spaces on the input, any function that returns the entire string can be used as the equivalent of #trim (since #trim itself doesn't exist). #padleft is convenient because it doesn't require a second argument; #padright would work just as well. So would #sub, but you'd need something like, which makes it slightly less straightforward.

Yes, #explode works nicely too. It will have the same problem as my original solution if there is ever a boss name that includes a left parenthesis, but if that condition never occurs it's quite compact.

Where exactly are you attempting to use these default values? If you wish to allow someone to pass a bossname and bosstype and have those override the -generated names, you would do that as follows: That entire string would be used anywhere you wanted "bossname" to appear. If you need to use "bossname" multiple times throughout your template, you would need to place that entire string everywhere "bossname" is required, as unfortunately there is no way to directly set a parameter within the template itself.

If necessary, there is a Variables extension that Wikia Staff can enable on your wiki that will allow you to create pseudo-parameters like " " and "  " so you can calculate them once and then use them multiple times later on in the template.

By the way, a slightly shorter version of "bosstype" might be the following: