!! Version 2 !! functionhooks lsth !! endfunctionhooks # This is the standard article assumed to exist. !! article LsthSections !! text this is the intro ==1== sec 1 ==2== sec 2 ===3=== sec 3 ==a== sec a ==b== this is ==not== a section !! endarticle !! test transclude a heading !! wikitext {{#lsth:LsthSections|1}} !! html
sec 1
!! end !! test transclude a heading (case insensitive) !! wikitext {{#lsth:LsthSections|A}} !! htmlsec a
!! end !! test transclude the intro !! wikitext {{#lsth:LsthSections}} !! htmlthis is the intro
!! end !! test transclude a heading !! wikitext {{#lsth:LsthSections|b}} !! htmlthis is ==not== a section
!! end !! test transclude a heading !! wikitext {{#lsth:LsthSections|not}} !! html !! end !! test transclude offset section -w- subs. !! wikitext {{#lsth:LsthSections|2}} !! htmlsec 2
sec 3
!! end !! test transclude nonesistent section !! wikitext {{#lsth:LsthSections|9999}} !! html !! end !! article LsthNoInclude !! text This sentence is outside noinclude tags.This sentence is outside noinclude tags.
broken noinclude tags.