Help:Templates/onlyinclude demo

abcdefghi

This is a demonstration for Help:Templates#Controlling template inclusion

The raw wikitext of the above example is:

abc<onlyinclude>def<onlyinclude>ghi<includeonly>jkl</includeonly>

The 'jkl' is not rendered above because it is inside includeonly tags.

Transcluding it results in:

def