Module:Extract short description: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 10:
return 'failed to extract Infobox television episode/sandbox'
end
return ibox_text
local template_name = 'Infobox television episode/sandbox'
-- return frame:callParserFunction ('#tag:syntaxhighlight', tostring(ibox_text))
local template_content = ibox_text:gsub ('{{%s' .. template_name, ''):gsub ('}}$', '')
-- return frame:expandTemplate ({title='code', args = {ibox_text}});
-- preprocess the template then apply syntax highlighting to get the raw html
-- return frame:callParserFunction ('#tag:syntaxhighlight', tostringframe:expandTemplate (ibox_text{title=template_name, args = {template_content}}));
end