Module talk:Ep/Switcher

Compatibility Problem with Wikimarkup
I don't know how to code in LUA, so if someone could help with this, I'd appreciate it. When I wrote the original Ep/Switcher template using wikitext, the first thing I made the template do was to strip the brackets "[" and "]" out of the episode name parameter. This ensured that a parameter of  ep=Arrival at Kraghammer  would be passed along as simply  Arrival at Kraghammer .

There are several reasons to allow the episode name with brackets, like  ep=Arrival at Kraghammer :
 * Contributors can easily see the episode name when editing article source code, because the website highlights the bracketed text (which is the name of a page on this wiki).
 * The website will autocomplete page names as we type, reducing the likelihood of spelling errors or accidentally confusing a similarly-titled page with the episode's page title.
 * It allows easier copy/pasting of references and code across the website.

When the Ep/Switcher template was converted to [[Module:Ep/Switcher ]], it seems this feature was lost. This has broken compatibility with a lot of the older articles, especially where ep ref and ep time are concerned. Can someone help fix this? Here's the wikitext I used in the old template version, but I'm sure you could write it more elegantly in a LUA module:
 * which essentially means
 * Take the episode name parameter, which is a text string, and replace the opening bracket character "[" with no character, and also replace the closing bracket character "]" with no character, for every instance of those characters in the text string.
 * Take the episode name parameter, which is a text string, and replace the opening bracket character "[" with no character, and also replace the closing bracket character "]" with no character, for every instance of those characters in the text string.

Thanks to anyone who can help! –VeganCritter (talk) 22:49, December 18, 2018 (UTC)