This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.

User talk:Level/Crewnav test

From Heroes Wiki
Jump to navigation Jump to search
Archive.jpg WARNING: User talk:Level/Crewnav test is an archive of past messages. New messages should be added to User talk:Level. Archive.jpg

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)