Help:Template/onlyinclude demo

From Eugene Neighbors

Jump to: navigation, search
abcdefghi
only active template content is above

(Note whitespace (spaces) added to break onlyinclude block below despite it being within
a <pre>—</pre> block for it also stubbornly functions within the <pre>—</pre> block
unless broken deliberately, just like a <nowiki> block would and does.)
The verbatum active code within reads


abc <only include> def </only include> ghi <include only> jkl </include only>

... which means if transposed, the only part included will be the string literal 'def'. This page concludes with:


See the example on talk page. which result is itself shown next within a box:

Including Help:Template/onlyinclude_demo yields only (between square brackets): [def]

Demonstration and test complete // FrankB 20:25, 11 March 2007 (UTC)

Personal tools