User:Sanbeg/Sec

This template is intended as a proof of concept, to demonstrate transcluding sections of articles.

To transclude larger sections, it may be more useful to split the section into a daughter page, or some other seperate page/template, then transcluding that where necessary. If you always transclude the same section, i.e. to transclude the body of text without extra boilerplate, then it should be simple to use &lt;onlyinclude&gt;.

However, when there are many smaller sections, it's simpler to mark the sections, and call them by name. For example, if you have a a large article with small numbered sections, marked like

This is a sample article, with a few sections &lt;onlyinclude> &lt;/onlyinclude> &lt;onlyinclude> &lt;/onlyinclude>

Then, you could transclude section 1 with

All text between &lt;onlyinclude> and &lt;/onlyinclude> should be marked with a section (or marked somehow) to prevent unconditional transclusion. Of course, it's possible to have multiple &lt;onlyinclude> blocks.

See User:Sanbeg/Test for an example.

Please contact me with any feedback. -Sanbeg 19:28, 5 August 2006 (UTC)