Module:DramatisPersonæ

-- Implements, a list of characters local DP = {} local HF = require('Module:HF') local getArgs = require('Module:Arguments').getArgs

function DP.main(frame) local args = getArgs(frame) return DP._main(args) end

function DP._main( args ) local story = HF.parseStory( args['story'] ) or '' local level = args['level'] local taglines = args['taglines'] local DPLargs = { format = ',* ,¶,', resultsfooter = '¶ ', noresultsheader = '', ordermethod = 'sortkey', order = 'ascending', allowedcachedresults = 'true' } if (level == "main") then DPLargs.category = story .. ' (story)/Characters/Main' DPLargs.resultsheader = ' ¶²{HeadingAA¦Main Characters}²¶' elseif (level == "secondary") then DPLargs.category = story .. ' (story)/Characters/Supporting' DPLargs.notcategory = story .. ' (story)/Characters/Main' DPLargs.resultsheader = ' ¶²{HeadingAA¦Supporting and Guest Characters}²¶' end if taglines == "true" then DPLargs.include = '{Infobox character¦Portrayer list taglined}' else DPLargs.include = '{Infobox character¦Portrayer list}' end frame:callParserFunction{ '#dpl', DPLargs } end

return DP