Board Thread:Support Requests - Getting Technical/@comment-32507313-20170308195854

I want a user when using this template be able to optionally add an 'arc' parameter with or without the word 'Arc' at the end or uses the pagename if not provided.

The reason I'm using safesubst, is because this page is a boilerplate template where this information will be filled before creating a new page. But it might be excessive.

The code works when the user provides an 'arc' without the word 'Arc' at the end. Otherwise, the Arc Nav has the correct title (Arcname + Arc) but doesn't generate the chapter links.

This one is a bit complicated with multiple templates, because it involves a template parameter being modified and passed to another template.

Boilerplate/Arc

Boilerplate/Chapter

Arc Nav

NaviTable

P.S.

The 'arc', 'chapter' and 'part' options don't appear in the visual editor for the template. 