On 20/04/06, Kirill Lokshin kirill.lokshin@gmail.com wrote:
Can a template transclude itself inside a <noinclude> section? In other words, would documentation that contains an example of the template in use (very useful for infoboxes, for example) parse properly if placed on the template itself, rather than its talk page?
Yes, as I discovered this morning, but it's confusing as all hell to actually create those examples. See: http://en.wikipedia.org/wiki/User:Stevage/templatetest
Example of confusion: I just edited it to add a couple of words. When I save, I don't see those words. When you edit it, they show up in the preview. If you save it again, they'll show up.
So basically, you just an extra blank save after every change to get changes to propagate through to the examples.
Steve