Module:Folger Shakespeare/configuration explained

-- This module's function lookup table, used by the calling contextlocal folger_config = ;

-- printf-like format string for the Folger play URLs.local url_pattern = 'http://www.folgerdigitaltexts.org/?chapter=5&play=%s&loc=%s'

-- printf-like format string for the act, scene, line display.local location_format = '[%s %s.%s.%s].'

-- printf-like format string for the FTLN display.local ftln_format = 'ftln [%s %s].'

-- TODO: Need some way to specify things like Prologue, Epilogue, Scene Direction, etc.

-- Aliases by which plays can be specified in the wrapping template.-- Every entry is (and must be) an associative array because we loop over it-- later in order to extract the aliases. The key is the play code from Folger.local _aliases =

-- Turn the table inside out, so looking up an alias will return the play code.local aliases = for play_id, alias_list in pairs(_aliases) do for iterator, alias in ipairs(alias_list) do aliases[alias] = play_id endend

-- Canonical names and Wikipedia article name for plays for display in output.-- A map from Folger play code to a canonical name for in-article display.-- All aliases are mapped to play code above, and here we map back to the-- canonical name and Wikipedia article about that play.local names =

return