Jump to content

Extension:Labeled Section Transclusion

From mediawiki.org
Revision as of 17:57, 3 November 2006 by Sanbeg (talk | contribs) (copy some notes from wikisource.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Basically, we'd implement section markers in the text, i.e.

<section begin=chapter1>this is a chapter</section end=chapter1>

Then, we define a special argument when we transclude it; the combination of the special argument and the section marker would trigger labelled section transclusion! i.e.

 {{#lts:article|chapter1}}

The template would only define the location of the section; its behavior would be determined by the caller; i.e.

{{#ltsx:article|chapter1}} or even {{#ltsx:article|chapter1|see chapter 1 in [[article]]}}