FANDOM


-- Implements {{DramatisPersonæ}}, 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 = '¶</div>', noresultsheader = '', ordermethod = 'sortkey', order = 'ascending', allowedcachedresults = 'true' }
  if (level == "main") then
    DPLargs.category = story .. ' (story)/Characters/Main'
    DPLargs.resultsheader = '<div class="footer-item">¶²{HeadingAA¦Main Characters}²¶'
   elseif (level == "secondary") then
    DPLargs.category = story .. ' (story)/Characters/Supporting'
    DPLargs.notcategory = story .. ' (story)/Characters/Main'
    DPLargs.resultsheader = '<div class="footer-item">¶²{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

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.