User talk:Level/Crewnav test

From Heroes Wiki

Jump to: navigation, search
WARNING: Level/Crewnav test is an archive of past contributions. New contributions should be made on User talk:Level.

Pipes in 'if' function

The {{#if:}} function doesn't like having pipes inside it that it's not using, how can I get around this? -Lөvөl 16:52, 3 April 2007 (EDT)

  • I'm not sure I understand what you want to have happen, with my old, slow brain, and all. :) Could you explain what you're looking to have happen? — RyanGibsonStewart (talk) 17:01, 3 April 2007 (EDT)
    • I want to have it so if Gncrew is also on the page, they merge. I was trying to have it leave the table open if the Gncrew condition = True, but the end of the table has pipes so it thinks they are elses. -Lөvөl 17:14, 3 April 2007 (EDT)
      • Gotcha. I think the best thing to do is to create another template for the alternative table sections. You can't do {{#if:}} and then have all this code afterwards (as you found out the difficult way), but you can have something like {{#if: {{{Gncrew|}}} | true | {{bottomoftable}} }} or whatever it is you want it to do. That way you avoid upsetting the wiki gods with your rogue pipes. — RyanGibsonStewart (talk) 00:57, 4 April 2007 (EDT)


Personal tools
Ads: (info)

Heroes Merchandise