Forum:Template needs to return a ref

My template here ends with

(It now commented out because it doesnt work)

I call it with  and

its supposed to check to see if the page Transclude/Zeus exists

and if it does then I want it to return that page transcluded between ref tags.

It correctly determines whether the page exists or not but

the template treats everything between the ref tags as a reference

and doesnt replace the second  with the parameter.

I have tried all kinds of things to try to work around this and nothing works.

If I replace the ref tags with character entities or some kind of template that returns a ref tag

then the page that calls Template:Theoi doesnt recognize the ref tags and treats them as regular text. Granpa 15:09, March 20, 2011 (UTC)


 * Not sure if that's what you wanted but here's my version of the template and here's how it works. I hope I didn't forget anything, if so - keep us posted. Sovq 16:08, March 20, 2011 (UTC)


 * Thank you. It works perfectly. I always wondered what that #tag thing was for. Granpa 16:26, March 20, 2011 (UTC)


 * The #tag thing lets you pass wiki code inside various tags that normally wouldn't allow you to do so. It gives some control over the parsing order. Particularly useful in more complicated wiki projects that combine a number of tags/functions/templates. I try it if everything else fails ;). Sovq 17:31, March 20, 2011 (UTC)