Module:Sandbox/ShelleyAdams

local p = {}

function p.main(frame) local parts = require('Module:Demo').get(frame, 'code', frame) local source = frame:expandTemplate({title = 'Template:Pre2', args = { parts.source } }) local myOutput = frame:expandTemplate({title = 'Template:Hanging indent', args = { parts.output } }) local myArgs = { myOutput, source, collapsed = 'true', expandtext = 'Show source', collapsetext = 'Hide source' } local result = frame:expandTemplate({title = 'Template:Collapsible', args = myArgs }) result = result .. frame:expandTemplate({title = 'Template:Clear'}) return result end

return p