Board Thread:Policies/@comment-16461120-20160405024130/@comment-1618941-20160406102907

I proposed a switch ages ago, so that in input value of "Dating" would trip an output of "Single", but that idea was misunderstood and poo-pooed. That was before the Lua update, and the category output is from a linked module now.

I'm pretty clueless about Lua though. Translating a wikitext switch looks as though it would go something like this: if string.lower(status) == "single" or string.lower(status) == "dating" then output = output .. HF.CategoryLink( "Single Characters", args.Pagename, status )

...and that's the simple version. :-/