FANDOM


  • Hi, Jay. I hate to bother you with this, but I'm nearing my wit's end, and seeing your post on the talk page for Template:Realworld (when I was about to leave one myself over the same concern) got me to thinking you might be one of the few people still around who could help me figure something out.

    I've been asked to help out on the wiki for Clear Skies, a Star Trek: Adventures RPG streaming show, and I've been trying to add some basic templates for citation and such. If you have a moment, could you please help me understand the syntax I need for something? I've researched and have found little relevant, and I've have asked on the Fandom Community help, and their responses haven't really been at all helpful.

    I have this template set up, but I want to get it to the point where we can have multiple parameters, and typing {ep|1.1|1.2|1.4} would give "Episode Name", "Episode Name", "Episode Name" for example. I know I probably need to move the #switch data to a subpage like Template:Ep/switch or something to that effect, and there's #if syntax involved. I'm just not sure exactly how it needs to be formatted. Basically, I just want it to appear as it does when we use the TNG or similar templates here, and have the episode titles properly listed with commas in-between.

    As I said, I'm sorry to bother you with this, but I figure you might know, and these days, I don't know who else to ask that's still active.

      Loading editor
    • I'm pretty out of practice with wikicode so this might not be the best or most efficient solution. I threw together a Test template. It's basically the episode citation templates with a switch instead of calling the additional template. It only goes 3 deep, but it would be easy enough to expand to however long you wished it to go.

        Loading editor
    • Thank you so much! I didn't expect you do to my work for me, but now that I see what you've done, I have a much better grasp of this aspect of wikicode. Looking at the sources at MA and MB, there's so much "other stuff" in their templates, I wasn't able to parse out just the basics. This is most helpful, Jay and I appreciate it very much! :) Thank you! --TimPendragon (talk) 19:19, February 28, 2020 (UTC)

        Loading editor
    • No problem.

        Loading editor
    • A FANDOM user
        Loading editor
Give Kudos to this message
You've given this message Kudos!
See who gave Kudos to this message
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+