Board Thread:Support Requests - Getting Technical/@comment-33878615-20160710062311

Hi. I have a template which I have a problem with. It’s called “UserLock.”

What I want this template to do is this:
 * Using one parameter will use that parameter as the text instead of using the page name.
 * Using one parameter that’s either “his” or “her” will change the text “his or her” to “his” or “her,” respectively.
 * Using two parameters will change “his or her” to just “his” or “her” if “his” or “her” is one of the parameters, and the other parameter will replace the page name.

Here is what I have tried: and;  however, neither of those worked.

Here are some examples to show how the template works:As you can see, the template works how I want it to work, except in the last example. It should show the page name as the name and “her” instead of “his or her” (“UserLock does not want you to edit her user page”), but it doesn’t do that.

Basically, I want the template to ignore the order of the parameters and work no matter which order it’s in. If the first parameter is “his,” it’ll change “his or her” to “his.” If the first parameter is “her,” it’ll change “his or her” to “her.” If the first parameter is anything but “his” or “her,” it’ll use that parameter instead of the page name.

I’d really appreciate some help! 