!! 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 !!input {{#lsth:LsthSections|1}} !!result
sec 1
!!end !!test transclude a heading (case insensitive) !!input {{#lsth:LsthSections|A}} !!resultsec a
!!end !!test transclude the intro !!input {{#lsth:LsthSections}} !!resultthis is the intro
!!end !!test transclude a heading !!input {{#lsth:LsthSections|b}} !!resultthis is ==not== a section
!!end !!test transclude a heading !!input {{#lsth:LsthSections|not}} !!result !!end !!test transclude offset section -w- subs. !!input {{#lsth:LsthSections|2}} !!resultsec 2
sec 3
!!end !!test transclude nonesistent section !!input {{#lsth:LsthSections|9999}} !!result !!end !! article LsthNoInclude !! text This sentence is outside noinclude tags.This sentence is outside noinclude tags.
broken noinclude tags.