Forum:Example Template for Documentation

The idea is to create a template that first shows the template's wiki code and then shows the output that code is generating. That should help adding examples to a documentation page. Here is what I got so far...

Template:

Use of the Template (on a documentation Page/doc):

But it's evil to have to write the same template call twice. So I am looking for something like this:

or

or (but don't like using | ...)

Any help is welcome on this :) Vanesyra 22:05, September 4, 2011 (UTC)