On the Inanimate Insanity Wiki, I made a template that is used in Navboxes called Template:Navigation, which uses Template:NavSection. But right now the Navbox can only be used to create a navbox with a certain number of sections. I tried to use #if like you would normally do, but the pipes in the navbox formatting were interpreted as parser function formatting. How do I make the pipes act as text in the #if but still act as formatting for Template:Navigation once it's been parsed?