Test:Section inclusion

From FollowTheScore
Revision as of 13:06, 9 December 2007 by Gero (talk | contribs) (New page: This page contains three labeled sections. * <section begin=sec1/>The first part is labeled with 'sec1'<section end=sec1/> * <section begin=sec2/>The second part is labeled with 'sec2'<sec...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page contains three labeled sections.

  • <section begin=sec1/>The first part is labeled with 'sec1'<section end=sec1/>
  • <section begin=sec2/>The second part is labeled with 'sec2'<section end=sec2/>
  • <section begin=sec1/>The third part is labeled again with 'sec1'<section end=sec1/>

We transclude sec1 using include=sec1

  • Test:Section inclusion -- The first part is labeled with 'sec1' ## The third part is labeled again with 'sec1'

We transclude sec1 using include=*[a-zA-Z]+2 Note that we receive the section tag name as a prefix.

  • Test:Section inclusion -- sec2::The second part is labeled with 'sec2'

We transclude all sections using include=** Note that we receive the section tag name as a prefix.

  • Test:Section inclusion -- sec1::The first part is labeled with 'sec1' ## sec2::The second part is labeled with 'sec2' ## sec1::The third part is labeled again with 'sec1'

Note that nested section tags will contain the complete contents of the outer tags; inner tags will not be returned as separate matches.