-- Module to create selectively transcluded sections
require('strict')
local p =
-- create a LST section by wrapping "body" with
-- If no label return text without section wrapping if(sectionlabel
local base = mw.html.create base = base:tag('span') base:tag('section',) :attr('begin', sectionlabel)
base:wikitext(sectioncontent)
base:tag('br',) base:tag('section',) :attr('end', sectionlabel)
base = base:done return baseend
return p